Volume attach failed cause volume turn to available when delete the instance

Bug #1988325 reported by Wave Wang

This bug report will be marked for expiration in 12 days if no further activity occurs. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Incomplete
Undecided
Unassigned

Bug Description

Description
===========
Using admin user to sign in. When a volume C is attached to instance A, if i try to attach it to another instance B, nova-api will
 raise an error "Invalid volume: Volume xxxx status must be available or downloading (HTTP 400) (Request-ID: xxxxx) (HTTP 400) (Request-ID: xxxxx)".At this time there is a deleted bdm record in nova for this failed attach.But then i delete instance B, the volume C (which is still attached to instance A) turned to available...making instance A can not use this volume.

Steps to reproduce
==================
* Using admin user to log in
* create an volume C
* attach volume C to instance A
* attach volume C to instance B, it failed and left a deleted bdm record in nova
* delete instance B, volume C alse become available and detached from instance A......

Expected result
===============
volume C should not become available and detached from instance A

Actual result
=============
volume C become available and detached from instance A

Environment
===========
rpm -qa|grep nova
openstack-nova-common-18.2.2-1.el7.noarch
openstack-nova-api-18.2.2-1.el7.noarch
python2-novaclient-11.0.0-1.el7.noarch
python-nova-18.2.2-1.el7.noarch

Wave Wang (wave-wang)
description: updated
Rajesh Tailor (ratailor)
Changed in nova:
assignee: nobody → Rajesh Tailor (ratailor)
Revision history for this message
Uggla (rene-ribaud) wrote :
Revision history for this message
Uggla (rene-ribaud) wrote :

Thanks you for reporting this bug, I tried to reproduce using devstack and the Zed release.
But the bug can not be reproduced with this release on my side, unless if I'm wrong.

Please have a look at cmd log file attached and tell me if I miss something by setting back to new this bug.

Changed in nova:
status: New → Incomplete
Rajesh Tailor (ratailor)
Changed in nova:
assignee: Rajesh Tailor (ratailor) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.