Cannot delete server if the instance in 'BUILD' status

Bug #1753069 reported by Trinh Nguyen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned
tacker
Won't Fix
Undecided
Unassigned

Bug Description

When my openstack fails to launch a vnf, the instance/server it created is still in BUILD state and cannot be deleted using this command:

`openstack server delete <instance id or name>`

The result is always like this:

`No server with a name or ID of '<instance id of name>' exists.`

Then the server stucks there forever.

Here is the nova logs when running openstack server delete:

 Policy check for os_compute_api:os-hide-server-addresses failed with credentials {'service_roles': [], 'user_id': u'e42e5ff4d57847ab88f5339e6c167e3f', 'roles': [u'admin', u'service'], 'user_domain_id': u'default', 'service_project_id': None, 'service_user_id': None, 'service_user_domain_id': None, 'service_project_domain_id': None, 'is_admin_project': True, 'is_admin': True, 'project_id': u'961d3c0c9c1c4ba4924b0791562574aa', 'project_domain_id': u'default'} {{(pid=7706) authorize /opt/stack/nova/nova/policy.py:168}}

description: updated
Revision history for this message
Matt Riedemann (mriedem) wrote :

What release is this happening on? Do you have the latest fixes?

Is there an entry in the nova_api.build_requests table for this instance? Or is the instance in the nova_cell0 database?

Changed in nova:
status: New → Incomplete
Revision history for this message
Trinh Nguyen (dangtrinhnt) wrote :

I running on devstack master. I will look into the db and get back to you.

Changed in tacker:
milestone: none → rocky-1
Yasufumi Ogawa (yasufum)
Changed in tacker:
status: New → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
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.