NetworkNotFound should be raised when a network is not found in network manager

Bug #872522 reported by Nachi Ueno
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Unassigned
OpenStack Quality Assurance
Won't Fix
Medium
Unassigned

Bug Description

db.network_get_by_cidr() can return None.
In that case some method in network manager such as delete_network raises AttriuteError.
But this is not informative. In this case, Network manager should throw exception.

Following methods have same problem.
- FloatingIP.associate_floating_ip()
- NetworkManager._get_dhcp_ip()
- NetworkManager.allocate_fixed_ip()
- NetworkManager.deallocate_fixed_ip()
- NetworkManager.lease_fixed_ip()
- NetworkManager.release_fixed_ip()
- NetworkManager.validate_networks()
- VlanManager.allocate_fixed_ip()

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Wishlist
status: New → Confirmed
Nachi Ueno (nati-ueno)
Changed in nova:
status: Confirmed → In Progress
Changed in openstack-qa:
status: New → In Progress
Changed in nova:
assignee: nobody → Nachi Ueno (nati-ueno)
Changed in openstack-qa:
assignee: nobody → Nachi Ueno (nati-ueno)
importance: Undecided → Medium
Revision history for this message
Nachi Ueno (nati-ueno) wrote :
tags: added: forward-port-needed
Nachi Ueno (nati-ueno)
Changed in nova:
assignee: Nachi Ueno (nati-ueno) → nobody
Changed in openstack-qa:
assignee: Nachi Ueno (nati-ueno) → nobody
Revision history for this message
Mark McLoughlin (markmc) wrote :

Moving from InProgress to Confirmed since nobody is assigned

Changed in nova:
status: In Progress → Confirmed
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

Looks like this issue is already fixed. Need someone more to verify it

Nachi Ueno (nati-ueno)
Changed in openstack-qa:
status: In Progress → Won't Fix
Revision history for this message
Tom Fifield (fifieldt) wrote :

Believe this 3 year old bug is long-fixed. If the bug recurs, please reopen.

summary: - NetworkNotFound should be raised when a network is not fould in network
+ NetworkNotFound should be raised when a network is not found in network
manager
Changed in nova:
status: Confirmed → 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.