Can not delete a network which is associated with a project
Once a network is associated with project, I can’t delete this network with ‘nova-manage network delete’.
As you know, I can delete network by scrubbing the project with ‘nova-manage project scrub’.
However it is too much.
The cause of this problem is there is no modify command of network attribute.
Nova-manage should have a function to modify network attributes in which we can modify the association between network and project.
root@x61:~/workspace/nova/nova# nova-manage network delete 10.0.0.0/29
2011-08-17 14:43:33,215 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.api' from '/home/ishii/workspace/nova/nova/nova/db/sqlalchemy/api.pyc'> from (pid=32391) __get_backend /home/ishii/workspace/nova/nova/nova/utils.py:445
2011-08-17 14:43:33,216 INFO nova.db.sqlalchemy [-] Using mysql/eventlet db_pool.
Command failed, please check log for more info
2011-08-17 14:43:33,321 CRITICAL nova [-] Network must be disassociated from project admin before delete
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/home/ishii/workspace/nova/nova/bin/nova-manage", line 1560, in <module>
(nova): TRACE: main()
(nova): TRACE: File "/home/ishii/workspace/nova/nova/bin/nova-manage", line 1548, in main
(nova): TRACE: fn(*fn_args, **fn_kwargs)
(nova): TRACE: File "/home/ishii/workspace/nova/nova/bin/nova-manage", line 792, in delete
(nova): TRACE: ' before delete' % network.project_id))
(nova): TRACE: ValueError: Network must be disassociated from project admin before delete
(nova): TRACE: