[Bug 1469309] Re: Can't remove VGs when partial LVs exist

James Page james.page at ubuntu.com
Fri Sep 4 09:21:37 UTC 2015


** Changed in: cinder (Juju Charms Collection)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to cinder in Juju Charms Collection.
Matching subscriptions: charm-bugs
https://bugs.launchpad.net/bugs/1469309

Title:
  Can't remove VGs when partial LVs exist

Status in cinder package in Juju Charms Collection:
  Fix Released

Bug description:
  I'm seeing this error:

  2015-06-25 04:29:36 DEBUG worker.uniter.jujuc server.go:139 hook context id "cinder/0-config-changed-3607276790042541683"; dir "/var/lib/juju/agents/unit-cinder-0/charm"
  2015-06-25 04:29:37 INFO config-changed   Couldn't find device with uuid qrTOA0-RXw2-iTx5-iMnC-ZT9L-e6Nk-rAc1Y1.
  2015-06-25 04:29:37 INFO config-changed   Couldn't find device with uuid qrTOA0-RXw2-iTx5-iMnC-ZT9L-e6Nk-rAc1Y1.
  2015-06-25 04:29:37 INFO config-changed   Couldn't find device with uuid qrTOA0-RXw2-iTx5-iMnC-ZT9L-e6Nk-rAc1Y1.
  2015-06-25 04:29:37 INFO config-changed   Couldn't find device with uuid qrTOA0-RXw2-iTx5-iMnC-ZT9L-e6Nk-rAc1Y1.
  2015-06-25 04:29:37 INFO config-changed   Couldn't find device with uuid qrTOA0-RXw2-iTx5-iMnC-ZT9L-e6Nk-rAc1Y1.
  2015-06-25 04:29:37 INFO config-changed   No physical volume label read from /dev/loop0
  2015-06-25 04:29:37 INFO config-changed   Failed to read physical volume "/dev/loop0"
  2015-06-25 04:29:37 INFO config-changed   No physical volume label read from /dev/loop0
  2015-06-25 04:29:37 INFO config-changed   Failed to read physical volume "/dev/loop0"
  2015-06-25 04:29:53 INFO config-changed Creating new GPT entries.
  2015-06-25 04:29:53 INFO config-changed Warning: The kernel is still using the old partition table.
  2015-06-25 04:29:53 INFO config-changed The new table will be used at the next reboot.
  2015-06-25 04:29:53 INFO config-changed GPT data structures destroyed! You may now partition the disk using fdisk or
  2015-06-25 04:29:53 INFO config-changed other utilities.
  2015-06-25 04:29:53 INFO config-changed Warning: The kernel is still using the old partition table.
  2015-06-25 04:29:53 INFO config-changed The new table will be used at the next reboot.
  2015-06-25 04:29:53 INFO config-changed The operation has completed successfully.
  2015-06-25 04:29:54 INFO config-changed 1+0 records in
  2015-06-25 04:29:54 INFO config-changed 1+0 records out
  2015-06-25 04:29:54 INFO config-changed 1048576 bytes (1.0 MB) copied, 0.00360436 s, 291 MB/s
  2015-06-25 04:29:54 INFO config-changed 100+0 records in
  2015-06-25 04:29:54 INFO config-changed 100+0 records out
  2015-06-25 04:29:54 INFO config-changed 51200 bytes (51 kB) copied, 0.000633994 s, 80.8 MB/s
  2015-06-25 04:29:54 INFO config-changed   Physical volume "/dev/loop0" successfully created
  2015-06-25 04:29:54 INFO config-changed   Couldn't find device with uuid qrTOA0-RXw2-iTx5-iMnC-ZT9L-e6Nk-rAc1Y1.
  2015-06-25 04:29:54 INFO config-changed   WARNING: Partial LV volume-f9770314-d037-4176-b2ad-407985063579 needs to be repaired or removed. 
  2015-06-25 04:29:54 INFO config-changed   WARNING: There are still partial LVs in VG cinder-volumes.
  2015-06-25 04:29:54 INFO config-changed   To remove them unconditionally use: vgreduce --removemissing --force.
  2015-06-25 04:29:54 INFO config-changed   Proceeding to remove empty missing PVs.
  2015-06-25 04:29:54 INFO config-changed Traceback (most recent call last):
  2015-06-25 04:29:54 INFO config-changed   File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/config-changed", line 519, in <module>
  2015-06-25 04:29:54 INFO config-changed     hooks.execute(sys.argv)
  2015-06-25 04:29:54 INFO config-changed   File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/charmhelpers/core/hookenv.py", line 557, in execute
  2015-06-25 04:29:54 INFO config-changed     self._hooks[hook_name]()
  2015-06-25 04:29:54 INFO config-changed   File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/charmhelpers/core/host.py", line 312, in wrapped_f
  2015-06-25 04:29:54 INFO config-changed     f(*args, **kwargs)
  2015-06-25 04:29:54 INFO config-changed   File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/config-changed", line 131, in config_changed
  2015-06-25 04:29:54 INFO config-changed     conf['remove-missing'])
  2015-06-25 04:29:54 INFO config-changed   File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/cinder_utils.py", line 377, in configure_lvm_storage
  2015-06-25 04:29:54 INFO config-changed     reduce_lvm_volume_group_missing(volume_group)
  2015-06-25 04:29:54 INFO config-changed   File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/cinder_utils.py", line 313, in reduce_lvm_volume_group_missing
  2015-06-25 04:29:54 INFO config-changed     subprocess.check_call(['vgreduce', '--removemissing', volume_group])
  2015-06-25 04:29:54 INFO config-changed   File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
  2015-06-25 04:29:54 INFO config-changed     raise CalledProcessError(retcode, cmd)
  2015-06-25 04:29:54 INFO config-changed subprocess.CalledProcessError: Command '['vgreduce', '--removemissing', u'cinder-volumes']' returned non-zero exit status 5
  2015-06-25 04:29:54 INFO juju.worker.uniter.context context.go:534 handling reboot
  2015-06-25 04:29:54 ERROR juju.worker.uniter.operation runhook.go:107 hook "config-changed" failed: exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/charms/+source/cinder/+bug/1469309/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list