← Back to team overview

openstack team mailing list archive

Cannot delete network

 


I've moved a cluster to a new network, and therefore want to delete the old private network, as it is in conflict with the new network.

nova-manage network delete --uuid=a37cbdd2-b016-4713-9ca4-962a1a1e5788

gives:
2012-09-04 19:40:04 DEBUG nova.utils [req-bb582d5d-4d87-407a-a702-21b298d82b50 None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=2648) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658


Command failed, please check log for more info


2012-09-04 19:40:04 CRITICAL nova [req-bb582d5d-4d87-407a-a702-21b298d82b50 None None] Network 1 is still in use. 2012-09-04 19:40:04 TRACE nova Traceback (most recent call last):


2012-09-04 19:40:04 TRACE nova File "/usr/bin/nova-manage", line 1746, in <module>

2012-09-04 19:40:04 TRACE nova main()


2012-09-04 19:40:04 TRACE nova File "/usr/bin/nova-manage", line 1733, in main

2012-09-04 19:40:04 TRACE nova fn(*fn_args, **fn_kwargs)


2012-09-04 19:40:04 TRACE nova File "/usr/bin/nova-manage", line 871, in delete

2012-09-04 19:40:04 TRACE nova fixed_range, uuid)


2012-09-04 19:40:04 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 257, in wrapped 2012-09-04 19:40:04 TRACE nova return func(self, context, *args, **kwargs)

2012-09-04 19:40:04 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1425, in delete_network 2012-09-04 19:40:04 TRACE nova self.db.network_delete_safe(context, network.id)

2012-09-04 19:40:04 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 740, in network_delete_safe 2012-09-04 19:40:04 TRACE nova return IMPL.network_delete_safe(context, network_id)

2012-09-04 19:40:04 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 102, in wrapper 2012-09-04 19:40:04 TRACE nova return f(*args, **kwargs)


2012-09-04 19:40:04 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1907, in network_delete_safe 2012-09-04 19:40:04 TRACE nova raise exception.NetworkInUse(network_id=network_id)

2012-09-04 19:40:04 TRACE nova NetworkInUse: Network 1 is still in use.


2012-09-04 19:40:04 TRACE nova


It looks like the network is in use. I've done
nova-manage project scrub projectname

for all the projects. And I still get the "Network 1 is still in use." exception. I've read about removing it directly from the nova DB, but I don't know if that is correct or dangerous.

Can I get some feedback about how to delete this network.

I'm using Essex on top of Ubuntu 12.04

Thank you,

Simon

--
simonsmicrophone.com


Follow ups