'module' object has no attribute 'AddressInUseException'

Bug #1651062 reported by Hong Hui Xiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kuryr
Fix Released
Medium
Hong Hui Xiao

Bug Description

I am trying to use kuryr-libnetwork and mis-use an ip address that has already been used. Then I got this error:

2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork [-] Exception on /IpamDriver.RequestAddress [POST]
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork Traceback (most recent call last):
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork response = self.full_dispatch_request()
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork rv = self.handle_user_exception(e)
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork reraise(exc_type, exc_value, tb)
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork rv = self.dispatch_request()
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork return self.view_functions[rule.endpoint](**req.view_args)
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork File "/opt/stack/kuryr-libnetwork/kuryr_libnetwork/controllers.py", line 1357, in ipam_request_address
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork raise exceptions.AddressInUseException(
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork AttributeError: 'module' object has no attribute 'AddressInUseException'
2016-12-18 05:41:10.852 55861 ERROR kuryr_libnetwork
[2016-12-18 05:41:10,854] ERROR in utils: Unexpected error happened: 'module' object has no attribute 'AddressInUseException'
2016-12-18 05:41:10.854 55861 ERROR kuryr_libnetwork [-] Unexpected error happened: 'module' object has no attribute 'AddressInUseException'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/stack/kuryr-libnetwork/kuryr_libnetwork/controllers.py", line 1357, in ipam_request_address
    raise exceptions.AddressInUseException(
AttributeError: 'module' object has no attribute 'AddressInUseException'

Hong Hui Xiao (xiaohhui)
Changed in kuryr:
assignee: nobody → Hong Hui Xiao (xiaohhui)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kuryr (master)

Fix proposed to branch: master
Review: https://review.openstack.org/412354

Changed in kuryr:
status: New → In Progress
Changed in kuryr:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kuryr (master)

Reviewed: https://review.openstack.org/412354
Committed: https://git.openstack.org/cgit/openstack/kuryr/commit/?id=3f88afa5a9b1c993101e8ce49a5745c7609cb0a9
Submitter: Jenkins
Branch: master

commit 3f88afa5a9b1c993101e8ce49a5745c7609cb0a9
Author: Hong Hui Xiao <email address hidden>
Date: Mon Dec 19 03:54:31 2016 -0500

    Add the missing AddressInUseException

    Commit fd904a6a656e338ece36f5353273bcb7220066ee uses an exception from
    kuryr lib. However, it missed to add the exception.

    Change-Id: I52507a547a5f20254e86a0b5cda9eb0b70617ead
    Closes-Bug: #1651062

Changed in kuryr:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kuryr 0.4.0

This issue was fixed in the openstack/kuryr 0.4.0 release.

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.