manila/devstack
Thomas Bechtold 49e68f8409 devstack: Do a vgscan before checking if the VG is there
There might be a rescan for volume groups needed before checking if
the volume group is already there. Otherwise, the check for the volume
group fails which means the code tries to create the volume, but that
fails then because the volume is already there.
Here is the devstack run log:

  [...]
  plugin.sh:configure_backing_file:538  sudo losetup -f --show /opt/stack/data/lvm-shares-backing-file
  plugin.sh:configure_backing_file:538  DEV=/dev/loop2
  plugin.sh:configure_backing_file:543  sudo vgs lvm-shares
    Volume group "lvm-shares" not found
    Cannot process volume group lvm-shares
  plugin.sh:configure_backing_file:543  sudo vgcreate lvm-shares /dev/loop2
    Physical volume '/dev/loop2' is already in volume group 'lvm-shares'
    Unable to add physical volume '/dev/loop2' to volume group 'lvm-shares'
    /dev/loop2: physical volume not initialized.
  plugin.sh:configure_backing_file:1  exit_trap
  [...]

Change-Id: I0189580ae40b180249fd5846aa986052e44ce2c2
2019-01-04 12:01:34 +01:00
..
files Allow devstack plugin to work without Cinder 2016-03-04 15:33:34 -05:00
upgrade [CI] Switch Xenial tempest jobs to Bionic Beaver 2018-11-01 14:13:35 -07:00
apache-manila.template Add possibility to run 'manila-api' with wsgi web servers 2017-04-10 12:49:20 +03:00
plugin.sh devstack: Do a vgscan before checking if the VG is there 2019-01-04 12:01:34 +01:00
README.rst Use the canonical URL for Manila repositories 2018-12-17 13:56:17 +01:00
settings Adjust ssh timeouts 2018-12-30 11:04:16 -06:00

Enabling in Devstack

  1. Download DevStack

  2. Add this repo as an external repository:

    > cat local.conf
    [[local|localrc]]
    enable_plugin manila https://git.openstack.org/openstack/manila
  3. run stack.sh