← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1486880] [NEW] Can't delete an instance if boot from encryption volume

 

Public bug reported:

nova configuration:

[ephemeral_storage_encryption]
enabled = True
cipher = aes-xts-plain64
key_size = 512

[default]
# use lvm as images_type                                                                                                                       |
images_type=lvm                                                                                                                                |
# use that volume group                                                                                                                        |
# /opt/stack/data/stack-volumes-default-backing-file                                                                                           |
images_volume_group=stack-volumes-default                                                                                                      |
                                           
reproduce:

+--------------------------------------+-------+--------+------------+-------------+----------+
root@taget-ThinkStation-P300:/opt/stack/nova# nova boot --security-groups default  --key-name testkey --image 57b26b8f-0e8c-4ffd-87b9-0177e6331
b29 --nic net-id=e1d6382e-0e01-4172-9772-19d83058f8f3 --flavor 1 test3

root@taget-ThinkStation-P300:/opt/stack/nova# nova delete test3

root@taget-ThinkStation-P300:/opt/stack/nova# nova list
+--------------------------------------+-------+--------+------------+-------------+----------+
| ID                                   | Name  | Status | Task State | Power State | Networks |
+--------------------------------------+-------+--------+------------+-------------+----------+
| 9ac19e94-06e0-42c9-bbb5-aff44a70959e | test1 | ERROR  | deleting   | NOSTATE     |          |
| 6b8c201c-6e83-4eed-a12e-190e2fa9c1a5 | test2 | ERROR  | deleting   | NOSTATE     |          |
| d58b12ca-f983-47b8-93d8-a570fe4458d0 | test3 | ERROR  | -          | Shutdown    |          |
+--------------------------------------+-------+--------+------------+-------------+----------+


2015-08-20 15:52:22.113 ERROR oslo_messaging.rpc.dispatcher [req-5a58977e-04d6-47d4-b962-a98601d400d6 admin admin] Exception during message handling: Failed to remove volume(s): (Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf lvremove -f /dev/stack-volumes-default/d58b12ca-f983-47b8-93d8-a570fe4458d0_disk
Exit code: 5
Stdout: u''
Stderr: u'  WARNING: Ignoring duplicate config node: global_filter (seeking global_filter)\n  WARNING: Ignoring duplicate config node: global_filter (seeking global_filter)\n  Logical volume stack-volumes-default/d58b12ca-f983-47b8-93d8-a570fe4458d0_disk is used by another device.\n')
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     executor_callback))
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     executor_callback)
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 89, in wrapped
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     payload)
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 119, in __exit__
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 72, in wrapped
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     return f(self, context, *args, **kw)
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 345, in decorated_function
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     LOG.warning(msg, e, instance_uuid=instance_uuid)
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 119, in __exit__
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 316, in decorated_function

** Affects: nova
     Importance: High
     Assignee: Eli Qiao (taget-9)
         Status: Confirmed

** Changed in: nova
     Assignee: (unassigned) => Eli Qiao (taget-9)

-- 
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/1486880

Title:
  Can't delete an instance if boot from  encryption volume

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  nova configuration:

  [ephemeral_storage_encryption]
  enabled = True
  cipher = aes-xts-plain64
  key_size = 512

  [default]
  # use lvm as images_type                                                                                                                       |
  images_type=lvm                                                                                                                                |
  # use that volume group                                                                                                                        |
  # /opt/stack/data/stack-volumes-default-backing-file                                                                                           |
  images_volume_group=stack-volumes-default                                                                                                      |
                                             
  reproduce:

  +--------------------------------------+-------+--------+------------+-------------+----------+
  root@taget-ThinkStation-P300:/opt/stack/nova# nova boot --security-groups default  --key-name testkey --image 57b26b8f-0e8c-4ffd-87b9-0177e6331
  b29 --nic net-id=e1d6382e-0e01-4172-9772-19d83058f8f3 --flavor 1 test3

  root@taget-ThinkStation-P300:/opt/stack/nova# nova delete test3

  root@taget-ThinkStation-P300:/opt/stack/nova# nova list
  +--------------------------------------+-------+--------+------------+-------------+----------+
  | ID                                   | Name  | Status | Task State | Power State | Networks |
  +--------------------------------------+-------+--------+------------+-------------+----------+
  | 9ac19e94-06e0-42c9-bbb5-aff44a70959e | test1 | ERROR  | deleting   | NOSTATE     |          |
  | 6b8c201c-6e83-4eed-a12e-190e2fa9c1a5 | test2 | ERROR  | deleting   | NOSTATE     |          |
  | d58b12ca-f983-47b8-93d8-a570fe4458d0 | test3 | ERROR  | -          | Shutdown    |          |
  +--------------------------------------+-------+--------+------------+-------------+----------+


  
  2015-08-20 15:52:22.113 ERROR oslo_messaging.rpc.dispatcher [req-5a58977e-04d6-47d4-b962-a98601d400d6 admin admin] Exception during message handling: Failed to remove volume(s): (Unexpected error while running command.
  Command: sudo nova-rootwrap /etc/nova/rootwrap.conf lvremove -f /dev/stack-volumes-default/d58b12ca-f983-47b8-93d8-a570fe4458d0_disk
  Exit code: 5
  Stdout: u''
  Stderr: u'  WARNING: Ignoring duplicate config node: global_filter (seeking global_filter)\n  WARNING: Ignoring duplicate config node: global_filter (seeking global_filter)\n  Logical volume stack-volumes-default/d58b12ca-f983-47b8-93d8-a570fe4458d0_disk is used by another device.\n')
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     executor_callback))
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     executor_callback)
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 89, in wrapped
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     payload)
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 119, in __exit__
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 72, in wrapped
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     return f(self, context, *args, **kw)
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 345, in decorated_function
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     LOG.warning(msg, e, instance_uuid=instance_uuid)
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 119, in __exit__
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2015-08-20 15:52:22.113 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 316, in decorated_function

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1486880/+subscriptions


Follow ups