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
config-changed A volume group called cinder-volumes already exists.
config-changed Traceback (most recent call last):
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/config-changed", line 519, in <module>
config-changed hooks.execute(sys.argv)
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/charmhelpers/core/hookenv.py", line 557, in execute
config-changed self._hooks[hook_name]()
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/charmhelpers/core/host.py", line 312, in wrapped_f
config-changed f(*args, **kwargs)
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/config-changed", line 131, in config_changed
config-changed conf['remove-missing'])
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/cinder_utils.py", line 372, in configure_lvm_storage
config-changed create_lvm_volume_group(volume_group, new_devices[0])
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/charmhelpers/contrib/storage/linux/lvm.py", line 105, in create_lvm_volume_group
config-changed check_call(['vgcreate', volume_group, block_device])
config-changed File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
config-changed raise CalledProcessError(retcode, cmd)
config-changed subprocess.CalledProcessError: Command '['vgcreate', u'cinder-volumes', '/dev/loop0']' returned non-zero exit status 5
config-changed Volume group "cinder-volumes" not found
config-changed Traceback (most recent call last):
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/config-changed", line 519, in <module>
config-changed hooks.execute(sys.argv)
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/charmhelpers/core/hookenv.py", line 557, in execute
config-changed self._hooks[hook_name]()
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/charmhelpers/core/host.py", line 312, in wrapped_f
config-changed f(*args, **kwargs)
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/config-changed", line 131, in config_changed
config-changed conf['remove-missing'])
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/cinder_utils.py", line 377, in configure_lvm_storage
config-changed reduce_lvm_volume_group_missing(volume_group)
config-changed File "/var/lib/juju/agents/unit-cinder-0/charm/hooks/cinder_utils.py", line 313, in reduce_lvm_volume_group_missing
config-changed subprocess.check_call(['vgreduce', '--removemissing', volume_group])
config-changed File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
config-changed raise CalledProcessError(retcode, cmd)
config-changed subprocess.CalledProcessError: Command '['vgreduce', '--removemissing', u'cinder-volumes']' returned non-zero exit status 5
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'cinder-volumes']' returned non-zero exit status 5
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.