neutron-vif requires admin rights
Bug #1808506 reported by
Luis Tomas Bolivar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-kubernetes |
In Progress
|
Medium
|
Antoni Segura Puimedon |
Bug Description
The default neutron/policy.json does not allow normal tenant to specify host_id when creating the ports, nor retrieving the binding details:
"get_port:
"get_port:
"get_port:
"get_port:
"create_
This makes that, under a normal tenant, kuryr-controller will fail (at least) in the next actions:
https:/
Changed in kuryr-kubernetes: | |
importance: | Undecided → High |
importance: | High → Medium |
Changed in kuryr-kubernetes: | |
assignee: | Luis Tomas Bolivar (ltomasbo) → Antoni Segura Puimedon (celebdor) |
status: | New → In Progress |
To post a comment you must log in.
As an example of the error, when using the multi-pool driver, upon a kuryr-controller restart, trying to recover the precreated neutron ports will fail with: service [-] Error starting thread.: TypeError: sequence item 0: expected string, NoneType found service Traceback (most recent call last): service File "/usr/lib/ python2. 7/site- packages/ oslo_service/ service. py", line 796, in run_service service service.start() service File "/usr/lib/ python2. 7/site- packages/ kuryr_kubernete s/controller/ service. py", line 112, in start service self.pool_ driver. sync_pools( ) service File "/usr/lib/ python2. 7/site- packages/ kuryr_kubernete s/controller/ drivers/ vif_pool. py", line 855, in sync_pools service vif_drv. sync_pools( ) service File "/usr/lib/ python2. 7/site- packages/ oslo_concurrenc y/lockutils. py", line 328, in inner service return f(*args, **kwargs) service File "/usr/lib/ python2. 7/site- packages/ oslo_concurrenc y/lockutils. py", line 328, in inner service return f(*args, **kwargs) service File "/usr/lib/ python2. 7/site- packages/ kuryr_kubernete s/controller/ drivers/ vif_pool. py", line 299, in sync_pools service self._recover_ precreated_ ports() service File "/usr/lib/ python2. 7/site- packages/ kuryr_kubernete s/controller/ drivers/ vif_pool. py", line 416, in _recover_ precreated_ ports service vif = ovu.neutron_ to_osvif_ vif(vif_ plugin, port, subnet) service File "/usr/lib/ python2. 7/site- packages/ kuryr_kubernete s/os_vif_ util.py" , line 347, in neutron_ to_osvif_ vif service name=vif_ translator, invoke_ on_load= False) service File "/usr/lib/ python2. 7/site- packages/ stevedore/ driver. py", line 61, in __init__ service warn_on_ missing_ entrypoint= warn_on_ missing_ entrypoint service File "/usr/lib/ python2. 7/site- packages/ stevedore/ named.py" , line 88, in __init__ service ', '.join( self._missing_ names)) service TypeError: sequence item 0: expected string, NoneType found service
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.
2018-12-13 16:31:53.328 1 ERROR oslo_service.