Can't remove VGs when partial LVs exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinder (Juju Charms Collection) |
Fix Released
|
Medium
|
Jason Hobbs |
Bug Description
I'm seeing this error:
2015-06-25 04:29:36 DEBUG worker.uniter.jujuc server.go:139 hook context id "cinder/
2015-06-25 04:29:37 INFO config-changed Couldn't find device with uuid qrTOA0-
2015-06-25 04:29:37 INFO config-changed Couldn't find device with uuid qrTOA0-
2015-06-25 04:29:37 INFO config-changed Couldn't find device with uuid qrTOA0-
2015-06-25 04:29:37 INFO config-changed Couldn't find device with uuid qrTOA0-
2015-06-25 04:29:37 INFO config-changed Couldn't find device with uuid qrTOA0-
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-
2015-06-25 04:29:54 INFO config-changed WARNING: Partial LV volume-
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/
2015-06-25 04:29:54 INFO config-changed hooks.execute(
2015-06-25 04:29:54 INFO config-changed File "/var/lib/
2015-06-25 04:29:54 INFO config-changed self._hooks[
2015-06-25 04:29:54 INFO config-changed File "/var/lib/
2015-06-25 04:29:54 INFO config-changed f(*args, **kwargs)
2015-06-25 04:29:54 INFO config-changed File "/var/lib/
2015-06-25 04:29:54 INFO config-changed conf['remove-
2015-06-25 04:29:54 INFO config-changed File "/var/lib/
2015-06-25 04:29:54 INFO config-changed reduce_
2015-06-25 04:29:54 INFO config-changed File "/var/lib/
2015-06-25 04:29:54 INFO config-changed subprocess.
2015-06-25 04:29:54 INFO config-changed File "/usr/lib/
2015-06-25 04:29:54 INFO config-changed raise CalledProcessEr
2015-06-25 04:29:54 INFO config-changed subprocess.
2015-06-25 04:29:54 INFO juju.worker.
2015-06-25 04:29:54 ERROR juju.worker.
Related branches
- Billy Olsen: Approve
- Corey Bryant (community): Approve
-
Diff: 165 lines (+64/-7)5 files modifiedconfig.yaml (+7/-0)
hooks/cinder_hooks.py (+2/-1)
hooks/cinder_utils.py (+14/-4)
unit_tests/test_cinder_hooks.py (+17/-2)
unit_tests/test_cinder_utils.py (+24/-0)
Changed in cinder (Juju Charms Collection): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in cinder (Juju Charms Collection): | |
status: | Triaged → Fix Committed |
assignee: | Corey Bryant (corey.bryant) → Jason Hobbs (jason-hobbs) |
Changed in cinder (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Not sure if the following scenarios should be mentioned in this bug or new bugs should be created (both similar but unique tracebacks included below in respective order):
1. A volume with that name already exists (perhaps on a different disk)
2. A volume group is assumed to exist when it does not
config-changed Physical volume "/dev/loop0" successfully created juju/agents/ unit-cinder- 0/charm/ hooks/config- changed" , line 519, in <module> sys.argv) juju/agents/ unit-cinder- 0/charm/ hooks/charmhelp ers/core/ hookenv. py", line 557, in execute hook_name] () juju/agents/ unit-cinder- 0/charm/ hooks/charmhelp ers/core/ host.py" , line 312, in wrapped_f juju/agents/ unit-cinder- 0/charm/ hooks/config- changed" , line 131, in config_changed missing' ]) juju/agents/ unit-cinder- 0/charm/ hooks/cinder_ utils.py" , line 372, in configure_ lvm_storage lvm_volume_ group(volume_ group, new_devices[0]) juju/agents/ unit-cinder- 0/charm/ hooks/charmhelp ers/contrib/ storage/ linux/lvm. py", line 105, in create_ lvm_volume_ group ['vgcreate' , volume_group, block_device]) python2. 7/subprocess. py", line 511, in check_call ror(retcode, cmd) CalledProcessEr ror: Command '['vgcreate', u'cinder-volumes', '/dev/loop0']' returned non-zero exit status 5
config-changed A volume group called cinder-volumes already exists.
config-changed Traceback (most recent call last):
config-changed File "/var/lib/
config-changed hooks.execute(
config-changed File "/var/lib/
config-changed self._hooks[
config-changed File "/var/lib/
config-changed f(*args, **kwargs)
config-changed File "/var/lib/
config-changed conf['remove-
config-changed File "/var/lib/
config-changed create_
config-changed File "/var/lib/
config-changed check_call(
config-changed File "/usr/lib/
config-changed raise CalledProcessEr
config-changed subprocess.
config-changed Volume group "cinder-volumes" not found juju/agents/ unit-cinder- 0/charm/ hooks/config- changed" , line 519, in <module> sys.argv) juju/agents/ unit-cinder- 0/charm/ hooks/charmhelp ers/core/ hookenv. py", line 557, in execute hook_name] () juju/agents/ unit-cinder- 0/charm/ hooks/charmhelp ers/core/ host.py" , line 312, in wrapped_f juju/agents/ unit-cinder- 0/charm/ hooks/config- changed" , line 131, in config_changed missing' ]) juju/agents/ unit-cinder- 0/charm/ hooks/cinder_ utils.py" , line 377, in configure_ lvm_storage lvm_volume_ group_missing( volume_ group) juju/agents/ unit-cinder- 0/charm/ hooks/cinder_ utils.py" , line 313, in reduce_ lvm_volume_ group_missing check_call( ['vgreduce' , '--removemissing', volume_group]) python2. 7/subprocess. py", line 511, in check_call ror(retcode, cmd) CalledProcessEr ror: Command '['vgreduce', '--removemissing', u'cin...
config-changed Traceback (most recent call last):
config-changed File "/var/lib/
config-changed hooks.execute(
config-changed File "/var/lib/
config-changed self._hooks[
config-changed File "/var/lib/
config-changed f(*args, **kwargs)
config-changed File "/var/lib/
config-changed conf['remove-
config-changed File "/var/lib/
config-changed reduce_
config-changed File "/var/lib/
config-changed subprocess.
config-changed File "/usr/lib/
config-changed raise CalledProcessEr
config-changed subprocess.