Should not be able to attach/detach interface during building state

Bug #1336883 reported by Drew Thorstensen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Thang Pham

Bug Description

During the VM building state, the nova API allows for interface attach and detach. It generally does not succeed because the VM may not be created yet on the hypervisor (ex. the image may be transferring if using local disks and glance). Then the VM is brought up as defined by the original spawn request. However, the attach_interface request reported as successful and the VM is reported as having the interface (even though it does not).

Recommend that this operation be blocked unless the VM is in a specific state where it is allowed to run.

Tags: api
Thang Pham (thang-pham)
Changed in nova:
assignee: nobody → Thang Pham (thang-pham)
tags: added: api
Revision history for this message
Alex Xu (xuhj) wrote :

Hi, Thang, there already have a patch and ready for merged for this bug https://review.openstack.org/#/c/87082/

Revision history for this message
Thang Pham (thang-pham) wrote :

Cool. I will update this bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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