** Also affects: nova/liberty
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1482066
Title:
cannot delete nova instance if volume is not active
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) liberty series:
In Progress
Bug description:
I booted from an encrypted volume, when try to delete it, it failed
'Device ip-10.238.157.47:3260-iscsi-iqn.2010-10.org.openstack:volume-
d167a0ac-fab5-484a-865d-667f1583c2ab-lun-1 is not active.\n'
| fault | {"message": "Unexpected error while
running command.
|
| | Command: sudo nova-rootwrap
/etc/nova/rootwrap.conf cryptsetup luksClose
ip-10.238.157.47:3260-iscsi-iqn.2010-10.org.openstack:volume-d167a0ac-fab5-484a-865d-667f1583c2ab-lun-1
|
| | Exit code: 4
|
| | Stdout: u''
|
| | Stderr: u'Dev", "code": 500,
"details": " File \"/opt/stack/nova/nova/compute/manager.py\", line 351, in
decorated_function |
| | return function(self, context,
*args, **kwargs)
|
| | File
\"/opt/stack/nova/nova/compute/manager.py\", line 2370, in terminate_instance
|
| | do_terminate_instance(instance,
bdms)
|
| | File
\"/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py\", line
252, in inner
|
| | return f(*args, **kwargs)
|
| | File
\"/opt/stack/nova/nova/compute/manager.py\", line 2368, in
do_terminate_instance
|
| |
self._set_instance_error_state(context, instance)
|
| | File
\"/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py\", line 119, in
__exit__
|
| | six.reraise(self.type_,
self.value, self.tb)
|
| | File
\"/opt/stack/nova/nova/compute/manager.py\", line 2358, in
do_terminate_instance
|
| | self._delete_instance(context,
instance, bdms, quotas)
|
| | File
\"/opt/stack/nova/nova/hooks.py\", line 149, in inner
|
| | rv = f(*args, **kwargs)
|
| | File
\"/opt/stack/nova/nova/compute/manager.py\", line 2337, in _delete_instance
|
| | quotas.rollback()
|
| | File
\"/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py\", line 119, in
__exit__
|
| | six.reraise(self.type_,
self.value, self.tb)
|
| | File
\"/opt/stack/nova/nova/compute/manager.py\", line 2307, in _delete_instance
|
| | self._shutdown_instance(context,
instance, bdms)
|
| | File
\"/opt/stack/nova/nova/compute/manager.py\", line 2234, in _shutdown_instance
|
| | requested_networks)
|
| | File
\"/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py\", line 119, in
__exit__
|
| | six.reraise(self.type_,
self.value, self.tb)
|
| | File
\"/opt/stack/nova/nova/compute/manager.py\", line 2223, in _shutdown_instance
|
| | block_device_info)
|
| | File
\"/opt/stack/nova/nova/virt/libvirt/driver.py\", line 768, in destroy
|
| | destroy_disks, migrate_data)
|
| | File
\"/opt/stack/nova/nova/virt/libvirt/driver.py\", line 844, in cleanup
|
| |
encryptor.detach_volume(**encryption)
|
| | File
\"/opt/stack/nova/nova/volume/encryptors/cryptsetup.py\", line 101, in
detach_volume
|
| | self._close_volume(**kwargs)
|
| | File
\"/opt/stack/nova/nova/volume/encryptors/luks.py\", line 128, in _close_volume
|
| | attempts=3)
|
| | File
\"/opt/stack/nova/nova/utils.py\", line 229, in execute
|
| | return
processutils.execute(*cmd, **kwargs)
|
| | File
\"/usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py\",
line 275, in execute
|
| | cmd=sanitized_cmd)
|
| | ", "created":
"2015-08-06T03:30:52Z"}
|
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1482066/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp

