← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1745149] Re: encrypted volume is in "in-use" state while boot from volume failed

 

This is actually invalid, failure during spawn should actually result in
the volume remaining attached and in-use as happens now. We could call
_disconnect_volume when we hit an error during attach_encryptor but I
believe we should also clean this up when the instance is destroyed
anyway.

** Changed in: nova
       Status: Triaged => Invalid

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

Title:
  encrypted volume is in "in-use" state while boot from volume failed

Status in Cinder:
  Incomplete
Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Description of problem:
  A bootable volume that is encrypted is created
  and encryption was not configured in nova.
  create new server failed but the volume status stay in "in-use" state.
  (openstack) server list 
  +--------------------------------------+-------+--------+-----------------------------------+--------+--------+
  | ID                                   | Name  | Status | Networks                          | Image  | Flavor |
  +--------------------------------------+-------+--------+-----------------------------------+--------+--------+
  | ea85b1a0-4bc7-40ec-ae4b-19e3a1095a4f | inst2 | ERROR  |                                   |        | tiny   |
  | 450255af-5341-4626-b5ef-17de749137ad | inst1 | ACTIVE | internal=192.168.0.11, 10.0.0.216 | cirros | tiny   |
  +--------------------------------------+-------+--------+-----------------------------------+--------+--------+
  (openstack) 
  (openstack) 
  (openstack) volume list 
  +--------------------------------------+-------------+-----------+------+--------------------------------+
  | ID                                   | Name        | Status    | Size | Attached to                    |
  +--------------------------------------+-------------+-----------+------+--------------------------------+
  | bb12b367-e4e1-471a-a0b9-86b7f32be740 | encrypt_vol | in-use    |    1 | Attached to inst2 on /dev/vda  |
  | 5c8ff52c-d7e4-4c1f-9104-b6a780539340 | vol1        | available |    1 |                                |
  +--------------------------------------+-------------+-----------+------+--------------------------------+

  
  Version-Release number of selected component (if applicable):
  puppet-cinder-11.3.0-2.el7ost.noarch
  python-cinder-11.0.1-2.el7ost.noarch
  python-cinderclient-3.1.0-1.el7ost.noarch
  openstack-cinder-11.0.1-2.el7ost.noarch
  openstack-nova-console-16.0.2-8.el7ost.noarch
  python-novaclient-9.1.1-1.el7ost.noarch
  openstack-nova-compute-16.0.2-8.el7ost.noarch
  openstack-nova-scheduler-16.0.2-8.el7ost.noarch
  openstack-nova-api-16.0.2-8.el7ost.noarch
  puppet-nova-11.4.0-2.el7ost.noarch
  openstack-nova-common-16.0.2-8.el7ost.noarch
  openstack-nova-placement-api-16.0.2-8.el7ost.noarch
  openstack-nova-conductor-16.0.2-8.el7ost.noarch
  python-nova-16.0.2-8.el7ost.noarch
  openstack-nova-migration-16.0.2-8.el7ost.noarch
  openstack-nova-novncproxy-16.0.2-8.el7ost.noarch

  
  How reproducible:
  100%

  Steps to Reproduce:
  1. Configure encryption in Cinder but not in nova
  2. Create bootable volume from image 
  3. Create server from volume 

  Actual results:
  Server create failed but volume status is "in-use" 

  Expected results:
  Server create failed but volume status is "available"

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