cyborg: miss nova conf lead to authorize exception

Bug #2030467 reported by Wenping Song
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Wenping Song
Antelope
Fix Released
Medium
Unassigned
Bobcat
Fix Released
Medium
Wenping Song
Yoga
Fix Released
Medium
Unassigned
Zed
Fix Released
Medium
Unassigned

Bug Description

cyborg.conf file miss nova section, makes cyborg and nova interaction exception as below:

2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server [None req-b53eb4ad-bd6a-4ad1-9e11-409d0733ca30 65e4970f342e456e92b351318b5b3b37 2e1ba5273cff44a588c4691d77c84030 - - default default] Exception during message handling: keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An
auth plugin is required to determine endpoint URL
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 309, in dispatch
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 229, in _do_dispatch
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/cyborg/conductor/manager.py", line 105, in arq_apply_patch
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server ExtARQ.apply_patch(context, patch_list, valid_fields)
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/cyborg/objects/extarq/ext_arq_job.py", line 243, in apply_patch
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server cls.master(context, arq_binds)
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/cyborg/objects/extarq/ext_arq_job.py", line 99, in master
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server cls.check_bindings_result(context, arq_binds.keys())
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/cyborg/objects/extarq/ext_arq_job.py", line 190, in check_bindings_result
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server cls.bind_notify(instance_uuid, cls.get_arq_bind_statuses(arq_list))
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/cyborg/objects/extarq/ext_arq_job.py", line 214, in bind_notify
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server nova_api = nova_client.NovaAPI()
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/cyborg/common/nova_client.py", line 25, in __init__
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server self.nova_client = utils.get_sdk_adapter('compute')
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/cyborg/common/utils.py", line 158, in get_sdk_adapter
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server return getattr(conn, service_type)
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/openstack/service_description.py", line 87, in __get__
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server proxy = self._make_proxy(instance)
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/openstack/service_description.py", line 262, in _make_proxy
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server found_version = temp_adapter.get_api_major_version()
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 354, in get_api_major_version
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server return self.session.get_api_major_version(auth or self.auth, **kwargs)
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/keystoneauth1/session.py", line 1275, in get_api_major_version
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server auth = self._auth_required(auth, 'determine endpoint URL')
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server File "/var/lib/kolla/venv/lib/python3.9/site-packages/keystoneauth1/session.py", line 1181, in _auth_required
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server raise exceptions.MissingAuthPlugin(msg_fmt % msg)
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL
2023-08-02 07:53:01.873 7 ERROR oslo_messaging.rpc.server
2023-08-02 07:53:01.918 7 INFO cyborg.objects.ext_arq [None req-408b89ce-6314-4496-a15c-27f0afc8ac1a 65e4970f342e456e92b351318b5b3b37 2e1ba5273cff44a588c4691d77c84030 - - default default] Attach handle(6290) deallocate for ARQ(81d7fc32-ee42-46c8-abf6-47709bc796af) successfully.

Wenping Song (wenping1)
Changed in kolla-ansible:
assignee: nobody → Wenping Song (wenping1)
Changed in kolla-ansible:
status: New → In Progress
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/904016

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

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/890292
Committed: https://opendev.org/openstack/kolla-ansible/commit/df6096db9e9759e2b6f7b0f303cea507b068cfda
Submitter: "Zuul (22348)"
Branch: master

commit df6096db9e9759e2b6f7b0f303cea507b068cfda
Author: songwenping <email address hidden>
Date: Mon Aug 7 14:25:02 2023 +0800

    Add nova conf for cyborg

    Closes-Bug: #2030467

    Change-Id: I7646f929b7edc2684102ae1b5927bcc75f0c87c9

Changed in kolla-ansible:
status: In Progress → Fix Released
no longer affects: kolla-ansible/wallaby
no longer affects: kolla-ansible/xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/904087

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/904088

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/904089

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/904088
Committed: https://opendev.org/openstack/kolla-ansible/commit/3e598dfc6b68e13995ad06cf929b9aea6e3abba2
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 3e598dfc6b68e13995ad06cf929b9aea6e3abba2
Author: songwenping <email address hidden>
Date: Mon Aug 7 14:25:02 2023 +0800

    Add nova conf for cyborg

    Closes-Bug: #2030467

    Change-Id: I7646f929b7edc2684102ae1b5927bcc75f0c87c9
    (cherry picked from commit df6096db9e9759e2b6f7b0f303cea507b068cfda)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/904087
Committed: https://opendev.org/openstack/kolla-ansible/commit/9beb926282c9db478901f3dea5c89437b2c450a9
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 9beb926282c9db478901f3dea5c89437b2c450a9
Author: songwenping <email address hidden>
Date: Mon Aug 7 14:25:02 2023 +0800

    Add nova conf for cyborg

    Closes-Bug: #2030467

    Change-Id: I7646f929b7edc2684102ae1b5927bcc75f0c87c9
    (cherry picked from commit df6096db9e9759e2b6f7b0f303cea507b068cfda)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/904089
Committed: https://opendev.org/openstack/kolla-ansible/commit/f1e57644ddb1b8d38b11a0f3eabbfc8086ec5130
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit f1e57644ddb1b8d38b11a0f3eabbfc8086ec5130
Author: songwenping <email address hidden>
Date: Mon Aug 7 14:25:02 2023 +0800

    Add nova conf for cyborg

    Closes-Bug: #2030467

    Change-Id: I7646f929b7edc2684102ae1b5927bcc75f0c87c9
    (cherry picked from commit df6096db9e9759e2b6f7b0f303cea507b068cfda)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/904016
Committed: https://opendev.org/openstack/kolla-ansible/commit/7d40850ca1bbc0355a55310250bf40deeda0c418
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 7d40850ca1bbc0355a55310250bf40deeda0c418
Author: songwenping <email address hidden>
Date: Mon Aug 7 14:25:02 2023 +0800

    Add nova conf for cyborg

    Closes-Bug: #2030467

    Change-Id: I7646f929b7edc2684102ae1b5927bcc75f0c87c9
    (cherry picked from commit df6096db9e9759e2b6f7b0f303cea507b068cfda)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 16.3.0

This issue was fixed in the openstack/kolla-ansible 16.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 17.1.0

This issue was fixed in the openstack/kolla-ansible 17.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 14.11.0

This issue was fixed in the openstack/kolla-ansible 14.11.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 15.4.0

This issue was fixed in the openstack/kolla-ansible 15.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 18.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 18.0.0.0rc1 release candidate.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.