Activity log for bug #1552265

Date Who What changed Old value New value Message
2016-03-02 14:44:45 Rongze Zhu bug added bug
2016-03-02 14:46:20 Rongze Zhu description The Reproduce steps: I create a volume from image(the cinder backend is HDS FC Storage). Then I boot a instance from the volume, the call path is "nova-api => nova-compute => cinder-api => cinder-volume". Because the HDS Driver in cinder-volume is slow in my env, so nova-compute will timeout and set the stat of instance as "error". Then I try to delete the instance, because the value of 'os-extended-volumes:volumes_attached' in the instance is the volume id, so nova-compute will call detach-volume API in cinder-api. Because the state of volume in cinder database is 'available', so the cinder-api will raise a 'VolumeAttachmentNotFound' exception. Finally, I failed to delete the error instance. Solution: nova-compute need to check the state of volume before call detach-volume api to cinder-api. The Reproduce steps: I create a volume from image(the cinder backend is HDS FC Storage). Then I boot a instance from the volume, the call path is "nova-api => nova-compute => cinder-api => cinder-volume". Because the HDS Driver in cinder-volume is slow in my env, so nova-compute will timeout and set the status of instance as "error". Then I try to delete the instance, because the value of 'os-extended-volumes:volumes_attached' in the instance is the volume id, so nova-compute will call detach-volume API in cinder-api. Because the status of volume in cinder database is 'available', so the cinder-api will raise a 'VolumeAttachmentNotFound' exception. Finally, I failed to delete the error instance. Solution: nova-compute need to check the status of volume before call detach-volume api to cinder-api.
2016-03-02 15:07:24 Rongze Zhu nova: assignee Rongze Zhu (zrzhit)
2016-03-02 15:11:00 OpenStack Infra nova: status New In Progress
2016-05-06 19:39:12 Pushkar Umaranikar tags compute
2017-06-23 12:40:36 Sean Dague nova: status In Progress New
2017-06-23 12:40:40 Sean Dague nova: assignee Rongze Zhu (zrzhit)
2017-07-25 14:19:17 Sean Dague nova: status New Incomplete
2017-09-24 04:17:39 Launchpad Janitor nova: status Incomplete Expired