Can not detach port when vm is soft-deleted

Bug #1794683 reported by huanhongda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Undecided
huanhongda

Bug Description

Description
===========
When vm is soft-deleted, we can not detach port from it. But when vm is shutoff, we can detach port.
VM in SOFT-DELETED and SHUTOFF status are the same status at the hypervisor level. The guest is shutdown. Why can't they do the same operation?

Steps to reproduce
==================
1) set reclaim_instance_interval > 0 to enable soft-delete
2) create an instance vm01
3) create a port port01 and then attach it to vm01
4) delete vm01
5) detach port01 from vm01

Expected result
===============
port01 can be detached successfully.

Actual result
=============
The detach operation failed.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/605602

Changed in nova:
assignee: nobody → huanhongda (hongda)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Balazs Gibizer (<email address hidden>) on branch: master
Review: https://review.opendev.org/605602
Reason: This is an old patch with negative code review. I'm abandoning it.

Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

I don't think this is a bug per se. Soft delete means you might or might not want to restore the instance that is being deleted. If the instance is end up being really deleted then the port will be freed anyhow. But if the instance will be restored then the port is still need to be present so your instance is restored to the state from where it was soft deleted.

Marking this bug Opinion. If you disagree please set it back to New.

Changed in nova:
status: In Progress → Opinion
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.