A volume remains attached and cannot be detached after attaching it fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Lee Yarwood |
Bug Description
A volume has been attached in nova after attaching it fails.
But its status is 'available' in cinder.
And then, the volume cannot be detached
because an error(Invalid volume: Volume must be attached in order to detach) occurs.
The cause of the failure of attaching the volume is a rpc call timeout between nova-api and nova-compute
in 'reserve_
(a 'reserve_
A rpc call timeout occurs because of waiting to get the semaphore in nova-compute.
It takes long time when many requests for same VM instance comes.
The cause of the failure of detaching the volume is that the record remains in a 'block_
stack@devstack-
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 16eb66e3-
+------
stack@devstack-
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 474964ed-
+------
stack@devstack-
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c371e287-
* RPC time out occurred between nova-api and nova-compute in 'reserve_
stack@devstack-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2015-02-
| flavor | m1.tiny (1) |
| hostId | 358f8c0b777e6a5
| id | 16eb66e3-
| image | cirros-
| key_name | - |
| metadata | {} |
| name | server1 |
| os-extended-
| progress | 0 |
| public network | 10.0.2.195 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | 47b5fac1e13c4e9
| updated | 2015-02-
| user_id | 94cf43ae770c4a3
+------
stack@devstack-
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 474964ed-
+------
stack@devstack-
ERROR (BadRequest): Invalid volume: Volume must be attached in order to detach. (HTTP 400) (Request-ID: req-cdc4b447-
stack@devstack-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2015-02-
| flavor | m1.tiny (1) |
| hostId | 358f8c0b777e6a5
| id | 16eb66e3-
| image | cirros-
| key_name | - |
| metadata | {} |
| name | server1 |
| os-extended-
| progress | 0 |
| public network | 10.0.2.195 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | 47b5fac1e13c4e9
| updated | 2015-02-
| user_id | 94cf43ae770c4a3
+------
[Environment]
OS: Ubuntu 14.04 LTS
nova: stable/
cinder: stable/
Changed in nova: | |
assignee: | nobody → Takashi NATSUME (natsume-takashi) |
Changed in nova: | |
assignee: | Takashi NATSUME (natsume-takashi) → haruka tanizawa (h-tanizawa) |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in nova: | |
status: | In Progress → Confirmed |
assignee: | haruka tanizawa (h-tanizawa) → nobody |
Changed in nova: | |
assignee: | nobody → Srimadhav Puvvada (srimadhav) |
Changed in nova: | |
assignee: | Srimadhav Puvvada (srimadhav) → nobody |
Changed in nova: | |
status: | In Progress → Fix Released |
Fix proposed to branch: master /review. openstack. org/167510
Review: https:/