Ask Your Question

Revision history [back]

Network delete - does it work?

When using: nova-manage --flagfile=/etc/nova/nova.conf network delete --uuid=<net_uuid>

We are seeing:

(nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "/usr/local/bin/nova-manage", line 7, in <module> (nova): TRACE: execfile(__file__) (nova): TRACE: File "/opt/stack/nova/bin/nova-manage", line 2396, in <module> (nova): TRACE: main() (nova): TRACE: File "/opt/stack/nova/bin/nova-manage", line 2383, in main (nova): TRACE: fn(fn_args, *fn_kwargs) (nova): TRACE: File "/opt/stack/nova/bin/nova-manage", line 854, in delete (nova): TRACE: fixed_range, uuid) (nova): TRACE: File "/opt/stack/nova/nova/network/quantum/manager.py", line 254, in delete_network (nova): TRACE: raise exception.NetworkBusy(network=net_uuid) (nova): TRACE: NetworkBusy: Network ae1d67bf-b006-4c27-8543-04d0c408c015 has active ports, cannot delete. (nova): TRACE:

This is on account of the gateway port not getting cleaned up. I do see that the QuantumManager tries to clean up the gateway port if it's the only one remaining, but that does not seem to be happening for some reason.

I just want to check if anyone is able to delete networks successfully using the nova-manage command (specifically which have the gateway port already provisioned on them as consequence of at least one VM having attached to that network at some point).