placement config is needed in nova cell controller's nova.conf

Bug #1850691 reported by Corey Bryant on 2019-10-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Nova Cell Controller Charm
High
Corey Bryant

Bug Description

Enablement of bionic-train functional tests are hitting an error where they are unable to deploy an instance.

/var/log/nova/nova-conductor.log on nova-cell-controller-cell2/0 repeatedly shows:

2019-10-30 17:59:21.341 9744 CRITICAL nova [-] Unhandled error: keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL
2019-10-30 17:59:21.341 9744 ERROR nova Traceback (most recent call last):
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/bin/nova-conductor", line 10, in <module>
2019-10-30 17:59:21.341 9744 ERROR nova sys.exit(main())
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/nova/cmd/conductor.py", line 44, in main
2019-10-30 17:59:21.341 9744 ERROR nova topic=rpcapi.RPC_TOPIC)
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/nova/service.py", line 257, in create
2019-10-30 17:59:21.341 9744 ERROR nova periodic_interval_max=periodic_interval_max)
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/nova/service.py", line 129, in __init__
2019-10-30 17:59:21.341 9744 ERROR nova self.manager = manager_class(host=self.host, *args, **kwargs)
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/nova/conductor/manager.py", line 117, in __init__
2019-10-30 17:59:21.341 9744 ERROR nova self.compute_task_mgr = ComputeTaskManager()
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/nova/conductor/manager.py", line 243, in __init__
2019-10-30 17:59:21.341 9744 ERROR nova self.report_client = report.SchedulerReportClient()
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/nova/scheduler/client/report.py", line 186, in __init__
2019-10-30 17:59:21.341 9744 ERROR nova self._client = self._create_client()
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/nova/scheduler/client/report.py", line 229, in _create_client
2019-10-30 17:59:21.341 9744 ERROR nova client = self._adapter or utils.get_sdk_adapter('placement')
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/nova/utils.py", line 1039, in get_sdk_adapter
2019-10-30 17:59:21.341 9744 ERROR nova return getattr(conn, service_type)
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/openstack/service_description.py", line 92, in __get__
2019-10-30 17:59:21.341 9744 ERROR nova endpoint = proxy_mod.Proxy.get_endpoint(proxy)
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 282, in get_endpoint
2019-10-30 17:59:21.341 9744 ERROR nova return self.session.get_endpoint(auth or self.auth, **kwargs)
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 1198, in get_endpoint
2019-10-30 17:59:21.341 9744 ERROR nova auth = self._auth_required(auth, 'determine endpoint URL')
2019-10-30 17:59:21.341 9744 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 1138, in _auth_required
2019-10-30 17:59:21.341 9744 ERROR nova raise exceptions.MissingAuthPlugin(msg_fmt % msg)
2019-10-30 17:59:21.341 9744 ERROR nova keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL

After adding [placement] details to /etc/nova/nova.conf on nova-cell-controller-cell2/0, the conductor error goes away and can now deploy instances.

Changed in charm-nova-cell-controller:
status: New → Triaged
importance: Undecided → High
Changed in charm-nova-cell-controller:
assignee: nobody → Corey Bryant (corey.bryant)
Changed in charm-nova-cell-controller:
status: Triaged → In Progress

Reviewed: https://review.opendev.org/689439
Committed: https://git.openstack.org/cgit/openstack/charm-nova-cell-controller/commit/?id=1625884690b04902737508e9ebdc21a7745d03a8
Submitter: Zuul
Branch: master

commit 1625884690b04902737508e9ebdc21a7745d03a8
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Fri Oct 18 14:24:31 2019 +0200

    Add train template and train functional tests

    A train template is added which pulls in sectional
    placement config from charm-layer-openstack.

    This requires adding identity-credentials as a required
    interface for train and above.

    This patch also updates the smoke test to run train.

    Closes-Bug: 1850691
    Depends-On: https://review.opendev.org/#/c/692426/
    Change-Id: Ib3937915c5195b5e031d5056959932849012fc23
    Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>

Changed in charm-nova-cell-controller:
status: In Progress → Fix Committed

Reviewed: https://review.opendev.org/693353
Committed: https://git.openstack.org/cgit/openstack/charm-nova-cell-controller/commit/?id=846db3dc23ed0c3f89b0fca4a5a203fba7e90454
Submitter: Zuul
Branch: stable/19.10

commit 846db3dc23ed0c3f89b0fca4a5a203fba7e90454
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Fri Oct 18 14:24:31 2019 +0200

    Add train template and train functional tests

    A train template is added which pulls in sectional
    placement config from charm-layer-openstack.

    This requires adding identity-credentials as a required
    interface for train and above.

    This patch also updates the smoke test to run train.

    Closes-Bug: 1850691
    Depends-On: https://review.opendev.org/#/c/692426/
    Depends-On: https://review.opendev.org/#/c/693535/
    Change-Id: Ib3937915c5195b5e031d5056959932849012fc23
    Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>

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

Other bug subscribers