yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04988
[Bug 1223180] Re: Block device mapping is not updated in the swap volume
** Changed in: nova
Status: New => 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/1223180
Title:
Block device mapping is not updated in the swap volume
Status in OpenStack Compute (Nova):
Invalid
Bug description:
swap volume is success.
But block device mapping is not updated.
Tried Commit ID:b037993984229bb698050f20e8719b8c06ff2be3
1. Try to swap volume from vol01 to vol02
$ nova show aa2c1541-d298-478c-9a35-7759a07a77b0
+--------------------------------------+------------------------------------------------------+
| Property | Value |
+--------------------------------------+------------------------------------------------------+
| status | ACTIVE |
| ... | ... |
| os-extended-volumes:volumes_attached | [{u'id': u'66230802-aed6-4a90-9dec-42fec910d13d'}] |
| ... | ... |
+--------------------------------------+------------------------------------------------------+
$ mysql -e "select is,device_name,volume_id from block_device_mapping where instance_uuid='aa2c1541-d298-478c-9a35-7759a07a77b0' and deleted=0"
+----+-------------+--------------------------------------+
| id | device_name | volume_id |
+----+-------------+--------------------------------------+
| 17 | /dev/vda | NULL |
| 19 | /dev/vdb | 66230802-aed6-4a90-9dec-42fec910d13d |
+----+-------------+--------------------------------------+
$ cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
| 66230802-aed6-4a90-9dec-42fec910d13d | in-use | vol01 | 1 | None | False | aa2c1541-d298-478c-9a35-7759a07a77b0 |
| c3d51a52-764a-4007-976a-136b544c561b | available | vol02 | 1 | None | False | |
+--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
$ virsh domblklist instance-0000000e
target source
------------------------------------------------
vda /opt/stack/data/nova/instances/aa2c1541-d298-478c-9a35-7759a07a77b0/disk
vdb /dev/disk/by-path/ip-192.168.122.180:3260-iscsi-iqn.2010-10.org.openstack:volume-66230802-aed6-4a90-9dec-42fec910d13d-lun-1
2. Swap volume is successful, but block device mapping is not updated.
$ cinder list => OK
+--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
| 66230802-aed6-4a90-9dec-42fec910d13d | available | vol01 | 1 | None | False | |
| c3d51a52-764a-4007-976a-136b544c561b | in-use | vol02 | 1 | None | False | aa2c1541-d298-478c-9a35-7759a07a77b0 |
+--------------------------------------+-----------+--------------+------+-------------+----------+--------------------------------------+
$ virsh domblklist instance-0000000e => OK
target source
------------------------------------------------
vda /opt/stack/data/nova/instances/aa2c1541-d298-478c-9a35-7759a07a77b0/disk
vdb /dev/disk/by-path/ip-192.168.122.218:3260-iscsi-iqn.2010-10.org.openstack:volume-c3d51a52-764a-4007-976a-136b544c561b-lun-1
$ nova show aa2c1541-d298-478c-9a35-7759a07a77b0 => NG
+--------------------------------------+------------------------------------------------------+
| Property | Value |
+--------------------------------------+------------------------------------------------------+
| status | ACTIVE |
| ... | ... |
| os-extended-volumes:volumes_attached | [{u'id': u'66230802-aed6-4a90-9dec-42fec910d13d'}] |
| ... | ... |
+--------------------------------------+------------------------------------------------------+
$ mysql -e "select is,device_name,volume_id from block_device_mapping where instance_uuid='aa2c1541-d298-478c-9a35-7759a07a77b0' and deleted=0" => NG
+----+-------------+--------------------------------------+
| id | device_name | volume_id |
+----+-------------+--------------------------------------+
| 17 | /dev/vda | NULL |
| 19 | /dev/vdb | 66230802-aed6-4a90-9dec-42fec910d13d |
+----+-------------+--------------------------------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1223180/+subscriptions