Attaching the same multiattach volume to the same instance twice leaves the volume in 'Attaching' state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Shyama | ||
Kilo |
Fix Released
|
Medium
|
Mike Perez |
Bug Description
Calling reserve_volume and the attach api in sequence two times for the same instance and same multiattach volume leaves the volume in attaching state
First time
- reserve_volume sets the volume status to 'Attaching'
- attach api updates db with attachment information and marks the volume as 'In-Use'
Second time
- reserve_volume sets the volume to 'Attaching'
- cinder/
if instance_uuid:
else:
if attachment is not None:
The fix would be to revert the state back to in-use before return
@@ -785,6 +785,11 @@
if attachment is not None:
+ # In the case where volume is already attached to this instance
+ # we need to update the volume status from 'attaching' to
+ # 'in-use'
+ self.db.
+ {'status': 'in-use'})
Changed in cinder: | |
status: | New → Confirmed |
milestone: | none → liberty-1 |
importance: | Undecided → Medium |
tags: | added: kilo-backport-potential |
Changed in cinder: | |
assignee: | nobody → Walt Boring (walter-boring) |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | liberty-1 → 7.0.0 |
Fix proposed to branch: master /review. openstack. org/179019
Review: https:/