VM instance can not be deleted by nova

Bug #1258083 reported by chenhaiq
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

When I run cmd:
nova delete 98106004-feca-419f-8781-ec79333032d6

There is an exception in n-cpu process:

2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 1919, in _delete_instance
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp self._shutdown_instance(context, db_inst, bdms)
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 1829, in _shutdown_instance
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp network_info = self._get_instance_nw_info(context, instance)
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/compute/manager.py", line 871, in _get_instance_nw_info
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp instance)
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/network/neutronv2/api.py", line 449, in get_instance_nw_info
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp result = self._get_instance_nw_info(context, instance, networks)
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/network/api.py", line 49, in wrapper
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp res = f(self, context, *args, **kwargs)
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/network/neutronv2/api.py", line 456, in _get_instance_nw_info
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp nw_info = self._build_network_info_model(context, instance, networks)
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/network/neutronv2/api.py", line 1027, in _build_network_info_model
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp subnets)
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp File "/opt/stack/nova/nova/network/neutronv2/api.py", line 957, in _nw_info_build_network
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp label=network_name,
2013-12-05 01:59:04.309 TRACE nova.openstack.common.rpc.amqp UnboundLocalError: local variable 'network_name' referenced before assignment

Revision history for this message
chenhaiq (chenhaiq) wrote :

I can delete the instance after restart n-cpu process.

Revision history for this message
Gary Kotton (garyk) wrote :

Please note that this has been address in https://review.openstack.org/#/c/54521/

Revision history for this message
Kai Qiang Wu(Kennan) (wkqwu) wrote :

Not sure when that fix would be merged in master, since I not find work-around to delete the instance, (db delete is not workround)

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.