Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

auth_plugins.MissingAuthPlugin exception in nova-compute

Hi, I have been following the step-by-step installation guide of OpenStack train to setup OpenStack in a virtual environment. When I was installing Nova on a compute node (following this guide), I am getting the following error in /var/log/nova/nova-compute.log:

2019-11-12 05:07:46.476 17194 INFO os_vif [-] Loaded VIF plugins: linux_bridge, noop, ovs
2019-11-12 05:07:46.583 17194 CRITICAL nova [req-8204f135-a787-4b06-ae1f-77315d04d35c - - - - -] Unhandled error: keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL
2019-11-12 05:07:46.583 17194 ERROR nova Traceback (most recent call last):
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/bin/nova-compute", line 10, in <module>
2019-11-12 05:07:46.583 17194 ERROR nova     sys.exit(main())
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/nova/cmd/compute.py", line 57, in main
2019-11-12 05:07:46.583 17194 ERROR nova     topic=compute_rpcapi.RPC_TOPIC)
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/nova/service.py", line 257, in create
2019-11-12 05:07:46.583 17194 ERROR nova     periodic_interval_max=periodic_interval_max)
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/nova/service.py", line 129, in __init__
2019-11-12 05:07:46.583 17194 ERROR nova     self.manager = manager_class(host=self.host, *args, **kwargs)
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 531, in __init__
2019-11-12 05:07:46.583 17194 ERROR nova     self.reportclient = report.SchedulerReportClient()
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/nova/scheduler/client/report.py", line 186, in __init__
2019-11-12 05:07:46.583 17194 ERROR nova     self._client = self._create_client()
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/nova/scheduler/client/report.py", line 229, in _create_client
2019-11-12 05:07:46.583 17194 ERROR nova     client = self._adapter or utils.get_sdk_adapter('placement')
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/nova/utils.py", line 1039, in get_sdk_adapter
2019-11-12 05:07:46.583 17194 ERROR nova     return getattr(conn, service_type)
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/openstack/service_description.py", line 92, in __get__
2019-11-12 05:07:46.583 17194 ERROR nova     endpoint = proxy_mod.Proxy.get_endpoint(proxy)
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 282, in get_endpoint
2019-11-12 05:07:46.583 17194 ERROR nova     return self.session.get_endpoint(auth or self.auth, **kwargs)
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 1198, in get_endpoint
2019-11-12 05:07:46.583 17194 ERROR nova     auth = self._auth_required(auth, 'determine endpoint URL')
2019-11-12 05:07:46.583 17194 ERROR nova   File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 1138, in _auth_required
2019-11-12 05:07:46.583 17194 ERROR nova     raise exceptions.MissingAuthPlugin(msg_fmt % msg)
2019-11-12 05:07:46.583 17194 ERROR nova keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL

The installed nova-compute version is

nova-compute/bionic-updates,now 2:20.0.0-0ubuntu1~cloud0 all [installed]

How to solve the exception? Thank you.