← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1222656] Re: Forget to change volume's status when an error occurs in swap volume

 

** Changed in: nova
       Status: Fix Committed => Fix Released

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

Title:
  Forget to change volume's status when an error occurs in swap volume

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  If the blockrebase(swap volume) fails, the status of the attached
  volume remains of detaching.

  Tried Commit ID:b037993984229bb698050f20e8719b8c06ff2be3

  1.Before Swap Volume
  $ cinder list
  +--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
  |                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable |             Attached to              |
  +--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
  | 66230802-aed6-4a90-9dec-42fec910d13d |   in-use  |    vol01     |  1   |     None    |  False   | 86d8d79c-be27-43c4-b148-b5637c435899 |
  | c3d51a52-764a-4007-976a-136b544c561b | available |    vol02     |  1   |     None    |  False   |                                      |
  +--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+

  2.Swap volume running
  $ cinder list
  +--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
  |                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable |             Attached to              |
  +--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
  | 66230802-aed6-4a90-9dec-42fec910d13d | detaching |    vol01     |  1   |     None    |  False   | 86d8d79c-be27-43c4-b148-b5637c435899 |
  | c3d51a52-764a-4007-976a-136b544c561b | attaching |    vol02     |  1   |     None    |  False   |                                      |
  +--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+

  3.An error occurs in swap volume
  For example, cancel a blockrebase job.
  libvirtError: virDomainGetBlockJobInfo() failed

  4.After an error occurs
  $ cinder list
  +--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
  |                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable |             Attached to              |
  +--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
  | 66230802-aed6-4a90-9dec-42fec910d13d | detaching |    vol01     |  1   |     None    |  False   | 86d8d79c-be27-43c4-b148-b5637c435899 |
  | c3d51a52-764a-4007-976a-136b544c561b | available |    vol02     |  1   |     None    |  False   |                                      |
  +--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+

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