devstack(keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL)

Bug #2060382 reported by chufuchufu123
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Confirmed
Undecided
Unassigned

Bug Description

The recently installed devstack compute node keeps reporting authentication errors. How can I solve this problem?
System: ubuntu22.04
Version: 2023.2
------------------------------------------------------------------This is my local.conf configuration:
[[local|localrc]]
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
ADMIN_PASSWORD=password
Q_AGENT=openvswitch
NEUTRON_AGENT=$Q_AGENT
SERVICE_HOST=192.168.91.135
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
Q_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP
VNCSERVER_LISTEN=0.0.0.0
NOVNCPROXY_URL=${NOVNCPROXY_URL:-"http://$HOST_IP:6080/vnc_auto.html"}
[[local|localrc]]
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
ADMIN_PASSWORD=password
Q_AGENT=openvswitch
NEUTRON_AGENT=$Q_AGENT
SERVICE_HOST=192.168.91.135
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
Q_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP
VNCSERVER_LISTEN=0.0.0.0
NOVNCPROXY_URL=${NOVNCPROXY_URL:-"http://$HOST_IP:6080/vnc_auto.html"}
XVPVNCPROXY_URL=${XVPVNCPROXY_URL:-"http://$HOST_IP:6081/console"}
ENABLED_SERVICES=n-cpu,n-novnc,neutron,q-agt,q-l3,q-meta,q-dhcp

## Neutron options
FLOATING_RANGE="192.168.18.0/24"
Q_FLOATING_ALLOCATION_POOL=start=192.168.18.110,end=192.168.18.120
PUBLIC_NETWORK_GATEWAY="192.168.18.1"
PUBLIC_INTERFACE=ens33

# Open vSwitch provider networking configuration
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex

[[post-config|/$Q_PLUGIN_CONF_FILE]]
[ovs]
local_ip=<CHANGE_TO_YOUR_LOCAL_IP>
[agent]
tunnel_types=vxlan,gre
[[post-config|$Q_L3_CONF_FILE]]
[DEFAULT]
debug = False
verbose = True

-----------------------------------------------------------------------This is the specific error:

4月 07 13:53:35 devstack systemd[1]: Started Devstack <email address hidden>.
4月 07 13:53:36 devstack nova-compute[94970]: DEBUG os_vif [-] Loaded VIF plugin class '<class 'vi>
4月 07 13:53:36 devstack nova-compute[94970]: DEBUG os_vif [-] Loaded VIF plugin class '<class 'vi>
4月 07 13:53:36 devstack nova-compute[94970]: DEBUG os_vif [-] Loaded VIF plugin class '<class 'vi>
4月 07 13:53:36 devstack nova-compute[94970]: INFO os_vif [-] Loaded VIF plugins: linux_bridge, no>
4月 07 13:53:37 devstack nova-compute[94970]: DEBUG oslo_concurrency.processutils [-] Running cmd >
4月 07 13:53:37 devstack nova-compute[94970]: DEBUG oslo_concurrency.processutils [-] CMD "grep -F>
4月 07 13:53:37 devstack nova-compute[94970]: INFO oslo_messaging._drivers.amqpdriver [None req-ff>
4月 07 13:53:37 devstack nova-compute[94970]: INFO oslo_messaging._drivers.amqpdriver [None req-ff>
4月 07 13:53:37 devstack nova-compute[94970]: INFO oslo_messaging._drivers.amqpdriver [-] Received>
4月 07 13:53:37 devstack nova-compute[94970]: CRITICAL nova [None req-fff90ba5-7f83-47df-8bd1-a770>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova Traceback (most recent call last):
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/data/venv/bin/nova-com>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova sys.exit(main())
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/nova/nova/cmd/compute.>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova server = service.Service.create(binar>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/nova/nova/service.py",>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova service_obj = cls(host, binary, topic>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/nova/nova/service.py",>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova self.manager = manager_class(host=sel>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/nova/nova/compute/mana>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova self.reportclient = report.SchedulerR>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/nova/nova/scheduler/cl>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova self._client = self._create_client()
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/nova/nova/scheduler/cl>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova client = self._adapter or utils.get_s>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/nova/nova/utils.py", l>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova return getattr(conn, service_type)
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/data/venv/lib/python3.>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova proxy = self._make_proxy(instance)
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/data/venv/lib/python3.>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova found_version = temp_adapter.get_api_>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/data/venv/lib/python3.>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova return self.session.get_api_major_ver>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/data/venv/lib/python3.>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova auth = self._auth_required(auth, 'det>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova File "/opt/stack/data/venv/lib/python3.>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova raise exceptions.MissingAuthPlugin(ms>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova keystoneauth1.exceptions.auth_plugins.Mis>
4月 07 13:53:37 devstack nova-compute[94970]: ERROR nova
4月 07 13:53:37 devstack systemd[1]: <email address hidden>: Main process exited, code=exited, sta>
4月 07 13:53:37 devstack systemd[1]: <email address hidden>: Failed with result 'exit-code'.
4月 07 13:53:37 devstack systemd[1]: <email address hidden>: Consumed 1.682s CPU time.
4月 07 15:08:52 devstack systemd[1]: Started Devstack <email address hidden>.
4月 07 15:08:53 devstack nova-compute[190547]: DEBUG os_vif [-] Loaded VIF plugin class '<class 'v>
4月 07 15:08:53 devstack nova-compute[190547]: DEBUG os_vif [-] Loaded VIF plugin class '<class 'v>
4月 07 15:08:53 devstack nova-compute[190547]: DEBUG os_vif [-] Loaded VIF plugin class '<class 'v>
4月 07 15:08:53 devstack nova-compute[190547]: INFO os_vif [-] Loaded VIF plugins: linux_bridge, n>
4月 07 15:08:53 devstack nova-compute[190547]: DEBUG oslo_concurrency.processutils [-] Running cmd>
4月 07 15:08:53 devstack nova-compute[190547]: DEBUG oslo_concurrency.processutils [-] CMD "grep ->
4月 07 15:08:53 devstack nova-compute[190547]: INFO oslo_messaging._drivers.amqpdriver [None req-5>
4月 07 15:08:53 devstack nova-compute[190547]: ERROR oslo.messaging._drivers.impl_rabbit [None req>
4月 07 15:08:54 devstack nova-compute[190547]: ERROR oslo.messaging._drivers.impl_rabbit [None req>
4月 07 15:08:57 devstack nova-compute[190547]: ERROR oslo.messaging._drivers.impl_rabbit [None req>
4月 07 15:09:03 devstack nova-compute[190547]: ERROR oslo.messaging._drivers.impl_rabbit [None req>
4月 07 15:09:10 devstack nova-compute[190547]: ERROR oslo.messaging._drivers.impl_rabbit [None req>
4月 07 15:09:19 devstack nova-compute[190547]: ERROR oslo.messaging._drivers.impl_rabbit [None req>
4月 07 15:09:30 devstack nova-compute[190547]: ERROR oslo.messaging._drivers.impl_rabbit [None req>
4月 07 15:09:43 devstack nova-compute[190547]: ERROR oslo.messaging._drivers.impl_rabbit [None req>
4月 07 15:09:55 devstack nova-compute[190547]: WARNING oslo_config.cfg [-] Deprecated: Option "liv>
4月 07 15:09:55 devstack nova-compute[190547]: live_migration_uri is deprecated for removal in fav>
4月 07 15:09:55 devstack nova-compute[190547]: allow to change live migration scheme and target UR>
4月 07 15:09:55 devstack nova-compute[190547]: and ``live_migration_inbound_addr`` respectively.
4月 07 15:09:55 devstack nova-compute[190547]: ). Its value may be silently ignored in the future.
4月 07 15:09:55 devstack nova-compute[190547]: WARNING oslo_config.cfg [-] Deprecated: Option "cpu>
4月 07 15:09:55 devstack nova-compute[190547]: ===================================================>
4月 07 15:09:55 devstack nova-compute[190547]: ==== Guru Meditation >
4月 07 15:09:55 devstack nova-compute[190547]: ===================================================>
4月 07 15:09:55 devstack nova-compute[190547]: |||||||||||||||||||||||||||||||||||||||||||||||||||>
4月 07 15:09:55 devstack nova-compute[190547]: ===================================================>
4月 07 15:09:55 devstack nova-compute[190547]: ==== Package >
4月 07 15:09:55 devstack nova-compute[190547]: ===================================================>
4月 07 15:09:55 devstack nova-compute[190547]: product = OpenStack Nova
4月 07 15:09:55 devstack nova-compute[190547]: vendor = OpenStack Foundation
4月 07 15:09:55 devstack nova-compute[190547]: version = 29.1.0
4月 07 15:09:55 devstack nova-compute[190547]: ===================================================>
4月 07 15:09:55 devstack nova-compute[190547]: ==== Threads >
4月 07 15:09:55 devstack nova-compute[190547]: ===================================================>
4月 07 15:09:55 devstack nova-compute[190547]: ------ Thread #128949073678336 >
4月 07 15:09:55 devstack nova-compute[190547]: /opt/stack/data/venv/lib/python3.10/site-packages/e>
4月 07 15:09:55 devstack nova-compute[190547]: `self.wait(sleep_time)`
4月 07 15:09:55 devstack nova-compute[190547]: /opt/stack/data/venv/lib/python3.10/site-packages/e>
4月 07 15:09:55 devstack nova-compute[190547]: `time.sleep(seconds)`
4月 07 15:09:55 devstack nova-compute[190547]: ===================================================>
4月 07 15:09:55 devstack nova-compute[190547]: ==== Green Threads >
4月 07 15:09:55 devstack nova-compute[190547]: ===================================================>
4月 07 15:09:55 devstack nova-compute[190547]: ------ Green Thread >
4月 07 15:09:55 devstack nova-compute[190547]: /opt/stack/data/venv/bin/nova-compute:10 in <module>
4月 07 15:09:55 devstack nova-compute[190547]: `sys.exit(main())`
4月 07 15:09:55 devstack nova-compute[190547]: /opt/stack/nova/nova/cmd/compute.py:59 in main
...skipping...
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova File "/opt/stack/nova/nova/service.py">
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova self.manager = manager_class(host=se>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova File "/opt/stack/nova/nova/compute/man>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova self.reportclient = report.Scheduler>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova File "/opt/stack/nova/nova/scheduler/c>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova self._client = self._create_client()
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova File "/opt/stack/nova/nova/scheduler/c>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova client = self._adapter or utils.get_>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova File "/opt/stack/nova/nova/utils.py", >
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova return getattr(conn, service_type)
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova File "/opt/stack/data/venv/lib/python3>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova proxy = self._make_proxy(instance)
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova File "/opt/stack/data/venv/lib/python3>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova found_version = temp_adapter.get_api>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova File "/opt/stack/data/venv/lib/python3>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova return self.session.get_api_major_ve>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova File "/opt/stack/data/venv/lib/python3>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova auth = self._auth_required(auth, 'de>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova File "/opt/stack/data/venv/lib/python3>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova raise exceptions.MissingAuthPlugin(m>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova keystoneauth1.exceptions.auth_plugins.Mi>
4月 07 16:44:56 devstack nova-compute[387940]: ERROR nova
4月 07 16:44:56 devstack systemd[1]: <email address hidden>: Main process exited, code=exited, sta>
4月 07 16:44:56 devstack systemd[1]: <email address hidden>: Failed with result 'exit-code'.
4月 07 16:44:56 devstack systemd[1]: <email address hidden>: Consumed 1.226s CPU time.

Tags: devstack
Changed in devstack:
assignee: nobody → chufuchufu123 (chufuchufu123)
assignee: chufuchufu123 (chufuchufu123) → nobody
Revision history for this message
chufuchufu123 (chufuchufu123) wrote :

keystone is not configured in nova on the compute node. Someone who is proficient in this area, please help me solve it, thank you!

Changed in devstack:
status: New → Confirmed
Revision history for this message
chufuchufu123 (chufuchufu123) wrote :

version:zed

stack@devstack:/etc/nova$ sudo journalctl -f --unit <email address hidden>
4月 09 09:55:51 devstack nova-compute[98720]: ERROR nova return self.session.get_api_major_version(auth or self.auth, **kwargs)
4月 09 09:55:51 devstack nova-compute[98720]: ERROR nova File "/usr/local/lib/python3.10/dist-packages/keystoneauth1/session.py", line 1275, in get_api_major_version
4月 09 09:55:51 devstack nova-compute[98720]: ERROR nova auth = self._auth_required(auth, 'determine endpoint URL')
4月 09 09:55:51 devstack nova-compute[98720]: ERROR nova File "/usr/local/lib/python3.10/dist-packages/keystoneauth1/session.py", line 1181, in _auth_required
4月 09 09:55:51 devstack nova-compute[98720]: ERROR nova raise exceptions.MissingAuthPlugin(msg_fmt % msg)
4月 09 09:55:51 devstack nova-compute[98720]: ERROR nova keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: An auth plugin is required to determine endpoint URL
4月 09 09:55:51 devstack nova-compute[98720]: ERROR nova
4月 09 09:55:51 devstack systemd[1]: <email address hidden>: Main process exited, code=exited, status=1/FAILURE
4月 09 09:55:51 devstack systemd[1]: <email address hidden>: Failed with result 'exit-code'.
4月 09 09:55:51 devstack systemd[1]: <email address hidden>: Consumed 1.877s CPU time.

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.