You have been subscribed to a public bug:
jichen@ubuntu3:/opt/stack/nova$ nova volume-attach
4d2abef4-acac-481a-ac64-c4805e139ba5 b6574dfa-523d-41e0-9956-abb94f5dc125
/dev/sdd
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| device | /dev/sdd |
| id | b6574dfa-523d-41e0-9956-abb94f5dc125 |
| serverId | 4d2abef4-acac-481a-ac64-c4805e139ba5 |
| volumeId | b6574dfa-523d-41e0-9956-abb94f5dc125 |
+----------+--------------------------------------+
jichen@ubuntu3:/opt/stack/nova$ nova volume-list
+--------------------------------------+-----------+--------------+------+-------------+--------------------------------------+
| ID | Status | Display Name | Size |
Volume Type | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+--------------------------------------+
| b6574dfa-523d-41e0-9956-abb94f5dc125 | in-use | s1 | 1 | SCSI
| 4d2abef4-acac-481a-ac64-c4805e139ba5 |
| bbbdc890-dc8e-4017-b6d3-10a4c082d3fe | available | s2 | 1 | SCSI
| |
+--------------------------------------+-----------+--------------+------+-------------+--------------------------------------+
jichen@ubuntu3:/opt/stack/nova$ nova volume-attach
4d2abef4-acac-481a-ac64-c4805e139ba5 b6574dfa-523d-41e0-9956-abb94f5dc125
/dev/sdd
ERROR: Invalid volume: status must be available (HTTP 400) (Request-ID:
req-2f78e939-4b96-42cc-810a-896b32afaf92)
jichen@ubuntu3:/opt/stack/nova$ nova volume-detach
4d2abef4-acac-481a-ac64-c4805e139ba5 b6574dfa-523d-41e0-9956-abb94f5dc125
ERROR: The resource could not be found. (HTTP 404) (Request-ID:
req-40b414cf-5bbf-49a5-a651-b7311c404b9a)
Is this a bug ?
Seems in the nova.compute.manager.py
self.conductor_api.block_device_mapping_update_or_create(context,
values)
will create 2 block mapping so the instance can't be found
I am working on my own driver but I guess my code should not have effect on the
routine
** Affects: ubuntu
Importance: Undecided
Status: Incomplete
--
attach same volume 2 times to same instance, can't detach it then
https://bugs.launchpad.net/bugs/1158199
You received this bug notification because you are a member of Ubuntu Bugs,
which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs