Bug 902409
| Summary: | Network disassociation from a project doesn't work | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Rami Vaknin <rvaknin> |
| Component: | openstack-nova | Assignee: | Brent Eagles <beagles> |
| Status: | CLOSED ERRATA | QA Contact: | Ofer Blaut <oblaut> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.0 (Folsom) | CC: | beagles, ndipanov, oblaut, yeylon |
| Target Milestone: | snapshot4 | Keywords: | Triaged |
| Target Release: | 2.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-nova-2012.2.3-2.el6ost | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-03-21 18:15:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Rami Vaknin
2013-01-21 15:43:09 UTC
It should be determined whether this is a nova-manage bug or an actual nova issue before getting a true prioritization re: snapshots, etc. This is a bug in nova-manage. Starting on line 565: 565 if project: 566 net['project_id'] = project 567 elif dis_project: 568 net['project_id'] = None The if/elif is wrong. I could be written as: 565 if dis_project: 566 net['project_id'] = None 567 elif project: 568 net['project_id'] = project or 565 if project: 566 net['project_id'] = project 567 if dis_project: 568 net['project_id'] = None or some other equivalent form. Actually, the real issue appears to be that the --disassociate-X commands are not meant to take arguments at all. The "network modify" function can go haywire if you put anything after --disassociate-host or --disassociate-project (does it do positional parameter placement in this case?) In any case, the code could be hardened by having the --dissociate-X directives be "exclusive" (ie. you can only run one modification at a time. Patch for changed behavior submitted upstream: https://review.openstack.org/#/c/21447/ Verified on 2012.2.3-4.el6ost, now network deletion by nova-manage works without exception on disassociation issues, and network disassociation command works well - now the project uuid should not appear in the disassociation syntax. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0657.html |