Run Docker error in the network with Host Route

Bug #1583692 reported by Liping Mao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kuryr
Fix Released
Undecided
Liping Mao

Bug Description

When I run docker on the existed network with host route, I get the following error :

2016-05-19 16:11:38.908 9550 ERROR kuryr [-] Exception on /NetworkDriver.Join [POST]

2016-05-19 16:11:38.908 9550 ERROR kuryr Traceback (most recent call last):

2016-05-19 16:11:38.908 9550 ERROR kuryr File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app

2016-05-19 16:11:38.908 9550 ERROR kuryr response = self.full_dispatch_request()

2016-05-19 16:11:38.908 9550 ERROR kuryr File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request

2016-05-19 16:11:38.908 9550 ERROR kuryr rv = self.handle_user_exception(e)

2016-05-19 16:11:38.908 9550 ERROR kuryr File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception

2016-05-19 16:11:38.908 9550 ERROR kuryr reraise(exc_type, exc_value, tb)

2016-05-19 16:11:38.908 9550 ERROR kuryr File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request

2016-05-19 16:11:38.908 9550 ERROR kuryr rv = self.dispatch_request()

2016-05-19 16:11:38.908 9550 ERROR kuryr File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request

2016-05-19 16:11:38.908 9550 ERROR kuryr return self.view_functions[rule.endpoint](**req.view_args)

2016-05-19 16:11:38.908 9550 ERROR kuryr File "/opt/stack/kuryr/kuryr/controllers.py", line 846, in network_driver_join

2016-05-19 16:11:38.908 9550 ERROR kuryr static_route['RouteType'] = const.TYPES['NEXTHOP']

2016-05-19 16:11:38.908 9550 ERROR kuryr AttributeError: 'module' object has no attribute 'TYPES'

This is because we miss "TYPES" define in const.

Liping Mao (limao)
Changed in kuryr:
assignee: nobody → Liping Mao (limao)
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/318774

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

Reviewed: https://review.openstack.org/318774
Committed: https://git.openstack.org/cgit/openstack/kuryr/commit/?id=27106f56e4dc5cbdd4ef910310578a97f5670df8
Submitter: Jenkins
Branch: master

commit 27106f56e4dc5cbdd4ef910310578a97f5670df8
Author: Liping Mao <email address hidden>
Date: Fri May 20 00:39:55 2016 +0800

    Fix run docker error on the network with host route

    Add ROUTE_TYPE definition in constants.py, this is used when kuryr process
    host route.

    Change-Id: I6f076ea1d8f7dafe8d459b0dc04bf6b290e2ed48
    Closes-Bug: #1583692

Changed in kuryr:
status: In Progress → 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.