Missing os_region_name in config

Bug #2042924 reported by Gabriel Samfira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Masakari Charm
Fix Committed
Undecided
Unassigned

Bug Description

In a multi-region shared keystone environment, setting the region_name in the config is mandatory. Otherwise masakari will try to talk to the API endpoints (nova in this case) in other regions, leading to errors.

2023-11-07 06:53:33.377254 2023-11-07 06:53:33.370 1995911 ERROR masakari.api.openstack.extensions urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f6a1dba16f0>, 'Connection to 10.10.10.10 timed out. (connect timeout=None)')
2023-11-07 06:53:33.377537 2023-11-07 06:53:33.370 1995911 ERROR masakari.api.openstack.extensions urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='10.10.10.10', port=8774): Max retries exceeded with url: /v2.1/os-services?host=compute01.regionOne&binary=nova-compute (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6a1dba16f0>, 'Connection to 10.10.10.10 timed out. (connect timeout=None)'))
2023-11-07 06:53:33.377838 2023-11-07 06:53:33.370 1995911 ERROR masakari.api.openstack.extensions requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='10.10.10.10', port=8774): Max retries exceeded with url: /v2.1/os-services?host=compute01.regionOne&binary=nova-compute (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6a1dba16f0>, 'Connection to 10.10.10.10 timed out. (connect timeout=None)'))
2023-11-07 06:53:33.378434 2023-11-07 06:53:33.370 1995911 ERROR masakari.api.openstack.extensions keystoneauth1.exceptions.connection.ConnectTimeout: Request to https://10.10.10.10:8774/v2.1/os-services?host=compute01.regionOne&binary=nova-compute timed out
2023-11-07 07:21:30.688609 2023-11-07 07:21:30.678 1995905 ERROR masakari.api.openstack.extensions urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f6a1db6c640>, 'Connection to 10.10.10.10 timed out. (connect timeout=None)')
2023-11-07 07:21:30.689253 2023-11-07 07:21:30.678 1995905 ERROR masakari.api.openstack.extensions urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='10.10.10.10', port=8774): Max retries exceeded with url: /v2.1/os-services?host=compute01.regionOne&binary=nova-compute (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6a1db6c640>, 'Connection to 10.10.10.10 timed out. (connect timeout=None)'))
2023-11-07 07:21:30.690059 2023-11-07 07:21:30.678 1995905 ERROR masakari.api.openstack.extensions requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='10.10.10.10', port=8774): Max retries exceeded with url: /v2.1/os-services?host=compute01.regionOne&binary=nova-compute (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f6a1db6c640>, 'Connection to 10.10.10.10 timed out. (connect timeout=None)'))
2023-11-07 07:21:30.691612 2023-11-07 07:21:30.678 1995905 ERROR masakari.api.openstack.extensions keystoneauth1.exceptions.connection.ConnectTimeout: Request to https://10.10.10.10:8774/v2.1/os-services?host=compute01.regionOne&binary=nova-compute timed out

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

Reviewed: https://review.opendev.org/c/openstack/charm-masakari/+/900281
Committed: https://opendev.org/openstack/charm-masakari/commit/ec407665cbadc64f8c402b662c135d34ac336666
Submitter: "Zuul (22348)"
Branch: master

commit ec407665cbadc64f8c402b662c135d34ac336666
Author: Gabriel Adrian Samfira <email address hidden>
Date: Tue Nov 7 12:22:37 2023 +0200

    Add os_region_name config option

    In a multi-region shared keystone deployment, we must set the
    os_region_name config option. Without it, Masakari will try to connect
    to the wrong API endpoints when it needs to talk to other services.

    Closes-Bug: #2042924

    Change-Id: I31ae1e011354fc9ded114babcb92f366256fadea
    Signed-off-by: Gabriel Adrian Samfira <email address hidden>

Changed in charm-masakari:
status: In Progress → Fix Committed
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.