Wrong default region name definition

Bug #1843194 reported by Maysa de Macedo Souza on 2019-09-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kuryr
Undecided
Maysa de Macedo Souza

Bug Description

We should be using None as the default region_name in the config. Otherwise, we might end up in a situation that there's not region in the
openstack cloud with the name provided in the config.

2019-09-08 09:40:26.647 1 ERROR oslo_service.service [-] Error starting thread.: EndpointNotFound: public endpoint for network service in RegionOne region not found [23/1881]
2019-09-08 09:40:26.647 1 ERROR oslo_service.service Traceback (most recent call last):
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 810, in run_service
2019-09-08 09:40:26.647 1 ERROR oslo_service.service service.start()
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kuryr_kubernetes/controller/service.py", line 112, in start
2019-09-08 09:40:26.647 1 ERROR oslo_service.service self.pool_driver.sync_pools()
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kuryr_kubernetes/controller/drivers/vif_pool.py", line 1036, in sync_pools
2019-09-08 09:40:26.647 1 ERROR oslo_service.service vif_drv.sync_pools()
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 328, in inner
2019-09-08 09:40:26.647 1 ERROR oslo_service.service return f(*args, **kwargs)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 328, in inner
2019-09-08 09:40:26.647 1 ERROR oslo_service.service return f(*args, **kwargs)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kuryr_kubernetes/controller/drivers/vif_pool.py", line 319, in sync_pools
2019-09-08 09:40:26.647 1 ERROR oslo_service.service self._cleanup_leftover_ports()
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kuryr_kubernetes/controller/drivers/vif_pool.py", line 389, in _cleanup_leftover_ports
2019-09-08 09:40:26.647 1 ERROR oslo_service.service existing_ports = c_utils.get_ports_by_attrs(**attrs)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/kuryr_kubernetes/controller/drivers/utils.py", line 547, in get_ports_by_attrs
2019-09-08 09:40:26.647 1 ERROR oslo_service.service ports = neutron.list_ports(**attrs)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 795, in list_ports
2019-09-08 09:40:26.647 1 ERROR oslo_service.service **_params)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 369, in list
2019-09-08 09:40:26.647 1 ERROR oslo_service.service for r in self._pagination(collection, path, **params):
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
2019-09-08 09:40:26.647 1 ERROR oslo_service.service res = self.get(path, params=params)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 354, in get
2019-09-08 09:40:26.647 1 ERROR oslo_service.service headers=headers, params=params)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
2019-09-08 09:40:26.647 1 ERROR oslo_service.service headers=headers, params=params)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
2019-09-08 09:40:26.647 1 ERROR oslo_service.service headers=headers)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 339, in do_request
2019-09-08 09:40:26.647 1 ERROR oslo_service.service self._check_uri_length(url)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 332, in _check_uri_length
2019-09-08 09:40:26.647 1 ERROR oslo_service.service uri_len = len(self.endpoint_url) + len(url)
2019-09-08 09:40:26.647 1 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 346, in endpoint_url

summary: - Wrong default region name defintion
+ Wrong default region name definition
Changed in kuryr:
status: New → Confirmed
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kuryr (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/680982

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kuryr (master)

Reviewed: https://review.opendev.org/680885
Committed: https://git.openstack.org/cgit/openstack/kuryr/commit/?id=027247329dcbcc300ebbc29f5571ddb8574cd1cf
Submitter: Zuul
Branch: master

commit 027247329dcbcc300ebbc29f5571ddb8574cd1cf
Author: Maysa Macedo <email address hidden>
Date: Sun Sep 8 20:57:55 2019 +0200

    Fix default region name definition

    This commit sets the default value of the region_name to 'None' in the
    config, this way its avoided the use of a region name
    that might not exists on the OpenStack cloud.

    Closes-Bug: 1843194
    Change-Id: Ic9deca9cb073b5458f5aa063f669b30ae2568f30

Changed in kuryr:
status: Confirmed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kuryr (stable/train)

Reviewed: https://review.opendev.org/680982
Committed: https://git.openstack.org/cgit/openstack/kuryr/commit/?id=41e696464b6ab827c455d8866dd81936f4c0ab0e
Submitter: Zuul
Branch: stable/train

commit 41e696464b6ab827c455d8866dd81936f4c0ab0e
Author: Maysa Macedo <email address hidden>
Date: Sun Sep 8 20:57:55 2019 +0200

    Fix default region name definition

    This commit sets the default value of the region_name to 'None' in the
    config, this way its avoided the use of a region name
    that might not exists on the OpenStack cloud.

    Closes-Bug: 1843194
    Change-Id: Ic9deca9cb073b5458f5aa063f669b30ae2568f30
    (cherry picked from commit 027247329dcbcc300ebbc29f5571ddb8574cd1cf)

tags: added: in-stable-train
Changed in kuryr:
assignee: nobody → Maysa de Macedo Souza (maysa)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kuryr 1.1.1

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kuryr 2.0.0

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers