Can not delete a network which is associated with a project

Bug #828399 reported by Hisaharu Ishii
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Hisaharu Ishii

Bug Description

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:

Related branches

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Wishlist
status: New → Confirmed
Changed in nova:
assignee: nobody → Hisaharu Ishii (ishii-hisaharu)
status: Confirmed → In Progress
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-4
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-4 → 2011.3
status: Fix Committed → Fix Released
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.