nova list --status SOFT_DELETED does not return soft-deleted instance

Bug #1789455 reported by Mike Chen
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Fan Zhang

Bug Description

Description
===========
nova list --status SOFT_DELETED does not return soft-deleted instance

Steps to reproduce
==================
1 enable soft-delete by setting reclaim_instance_interval > 0 in nova.conf on api and compute nodes.
2 $ nova boot --flavor xxx --image xxx --nic xxx VM
3 $ nova delete VM
4 $ nova list --status SOFT_DELETED

Expected result
===============
VM is the returned table.

Actual result
=============
It is not.

Environment
===========
$ nova --version
10.1.0

Revision history for this message
Mike Chen (chenn2) wrote :

The problem seems to be that soft-deleted instance's "DELETED" field is set to "True" whereas "nova list --status SOFT_DELETED" queries with search_opts's 'deleted' filter set to "False".

Mike Chen (chenn2)
Changed in nova:
assignee: nobody → Chen (chenn2)
Revision history for this message
Mike Chen (chenn2) wrote :

I am not so sure why this is happening actually. It also might be that soft_deleted filter is not passed properly.

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/597434

Changed in nova:
assignee: Chen (chenn2) → huanhongda (hongda)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in nova:
assignee: huanhongda (hongda) → Chen (chenn2)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by huanhongda (<email address hidden>) on branch: master
Review: https://review.openstack.org/597434
Reason: https://review.openstack.org/#/c/597443/
This patch is a better way.

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

Related fix proposed to branch: master
Review: https://review.openstack.org/598482

Changed in nova:
assignee: Mike Chen (chenn2) → Fan Zhang (fanzhang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.opendev.org/700520

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/598482
Reason: This is an old change with negative review and merge conflict. I'm abandoning it. Please feel free to restore it (or ask me, gibi, on IRC to restore it for you) if you want to continue working on this.

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.