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

Bug #1789455 reported by Mike Chen on 2018-08-28
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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

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) on 2018-08-28
Changed in nova:
assignee: nobody → Chen (chenn2)
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.

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

Changed in nova:
assignee: Chen (chenn2) → huanhongda (hongda)
status: New → In Progress

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

Changed in nova:
assignee: huanhongda (hongda) → Chen (chenn2)

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.

Changed in nova:
assignee: Mike Chen (chenn2) → Fan Zhang (fanzhang)

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

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  Edit
Everyone can see this information.

Other bug subscribers