Add instance_state to ensure volume attachment successful
In continuous attaching volumes, if the attching volume takes off too long time in nova-compute, and at the same time, another attaching request received by nova-api, nova-api will post RPC call request to nova-compute to create bdm. If the nova-compute won't return the response in time, the nova-api will wait timeout and raise Exception. However, the nova-compute will still create bdm when attaching the previous volume over. The log is the problem log when attaching the second volume.
We would like to add attaching/
An alternative would be to drop the RPC call to reserve_
more details you can refer https:/
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Brin Zhang
- Direction:
- Needs approval
- Assignee:
- Brin Zhang
- Definition:
- New
- Series goal:
- Proposed for wallaby
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
reject attach and detach volume while task_state is not None
Addressed by: https:/
add task state for attach volume and detach volume
Addressed by: https:/
Add ensure-