Bogdan Katynski 8175df1912 Remove VGs when cleaning LVM up in devstack
This patch adds removing of the volume group
before removing the loopback device and
the backing file when performing LVM cleanup
in unstack.sh

Without this commit:

unstack.sh removes logical volumes, removes the
loopback devices and deletes the backing file
but leaves a dangling volume group

  $ ./stack.sh && ./unstack.sh
  $ sudo vgs
  VG                    #PV #LV #SN Attr   VSize  VFree
  stack-volumes-default   1   0   0 wz--n- 10.01g 10.01g
  $ sudo losetup -a
  $ sudo vgremove stack-volumes-default
  /dev/loop0: lseek 4096 failed: Invalid argument
  vg_remove_mdas stack-volumes-default failed

With this commit:

unstack.sh removes volume groups after removing
all logical volumes but before removing
the loopback device and deleting the backing file

Partial-Bug: 1441236
Change-Id: Id9c06fa50f6cad28764f5a3396f559cac9999649
2017-07-12 09:34:52 +00:00
..
2015-11-27 15:36:04 +11:00
2015-11-27 15:36:04 +11:00
2017-06-22 08:43:27 +00:00
2017-01-05 18:41:29 -05:00
2015-11-27 15:36:04 +11:00
2016-01-05 07:41:35 -05:00
2017-06-14 12:09:21 -07:00
2017-06-20 14:09:30 -04:00
2017-06-14 12:09:21 -07:00
2015-12-01 14:52:35 -05:00