Zun

zun compute start error with keystone conflict

Bug #2041835 reported by BY
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
New
Undecided
Unassigned

Bug Description

After I completed the basic components of openstack and the basic components of zun, all the steps were OK, but the following error was displayed when zun compute started on the compute node. I can't understand where the problem occurred. I hope someone can help. In addition, I have also tried other versions of openstack and zun, but this problem always occurs in the end.

Oct 30 20:00:09 compute1 systemd[1]: Started OpenStack Container Service Compute Agent.
Oct 30 18:58:18 compute1 zun-compute[944]: 2023-10-30 18:58:18.722 944 INFO zun.cmd.compute [-] Starting server in PID 944
Oct 30 18:58:19 compute1 zun-compute[944]: 2023-10-30 18:58:19.571 944 INFO zun.container.driver [-] Loading container driver 'docker'
Oct 30 18:58:20 compute1 zun-compute[944]: 2023-10-30 18:58:20.098 944 INFO zun.volume.driver [-] Loading volume driver 'cinder'
Oct 30 18:58:20 compute1 zun-compute[944]: 2023-10-30 18:58:20.099 944 INFO zun.volume.driver [-] Loading volume driver 'local'
Oct 30 18:58:20 compute1 zun-compute[944]: 2023-10-30 18:58:20.175 944 INFO zun.image.driver [-] Loading container image driver 'glance'
Oct 30 18:58:20 compute1 zun-compute[944]: 2023-10-30 18:58:20.176 944 INFO zun.image.driver [-] Loading container image driver 'docker'
Oct 30 18:58:20 compute1 zun-compute[944]: 2023-10-30 18:58:20.626 944 INFO zun.volume.driver [-] Loading volume driver 'cinder'
Oct 30 18:58:20 compute1 zun-compute[944]: 2023-10-30 18:58:20.627 944 INFO zun.volume.driver [-] Loading volume driver 'local'
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task [req-b66561a3-750f-4ca9-84ec-411e2652dc3e - - - - -] Error during Manager.inventory_host: keystoneauth1.>
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task Traceback (most recent call last):
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/lib/python3/dist-packages/oslo_service/periodic_task.py", line 216, in run_periodic_tasks
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task task(self, context)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/local/lib/python3.8/dist-packages/zun/compute/manager.py", line 1177, in inventory_host
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task rt.update_available_resources(context)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/local/lib/python3.8/dist-packages/zun/compute/compute_node_tracker.py", line 83, in update_>
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task self._update_available_resource(context)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py", line 360, in inner
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task return f(*args, **kwargs)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/local/lib/python3.8/dist-packages/zun/compute/compute_node_tracker.py", line 456, in _updat>
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task self._update(context, cn)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/local/lib/python3.8/dist-packages/zun/compute/compute_node_tracker.py", line 323, in _update
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task self._update_to_placement(context, compute_node)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/lib/python3/dist-packages/retrying.py", line 49, in wrapped_f
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task return Retrying(*dargs, **dkw).call(f, *args, **kw)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/lib/python3/dist-packages/retrying.py", line 206, in call
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task return attempt.get(self._wrap_exception)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/lib/python3/dist-packages/retrying.py", line 247, in get
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task six.reraise(self.value[0], self.value[1], self.value[2])
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task raise value
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/lib/python3/dist-packages/retrying.py", line 200, in call
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/local/lib/python3.8/dist-packages/zun/compute/compute_node_tracker.py", line 349, in _updat>
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task prov_tree = self.reportclient.get_provider_tree_and_ensure_root(
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/local/lib/python3.8/dist-packages/zun/scheduler/client/report.py", line 843, in get_provide>
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task self._ensure_resource_provider(
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/local/lib/python3.8/dist-packages/zun/scheduler/client/report.py", line 625, in _ensure_res>
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task created_rp = self._create_resource_provider(
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/local/lib/python3.8/dist-packages/zun/scheduler/client/report.py", line 511, in _create_res>
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task resp = self.post(url, payload,
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/local/lib/python3.8/dist-packages/zun/scheduler/client/report.py", line 222, in post
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task return self._client.post(url, endpoint_filter=self._ks_filter,
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 401, in post
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task return self.request(url, 'POST', **kwargs)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 257, in request
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task return self.session.request(url, method, **kwargs)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 976, in request
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task raise exceptions.from_response(resp, method, url)
Oct 30 18:58:24 compute1 zun-compute[944]: 2023-10-30 18:58:24.888 944 ERROR oslo_service.periodic_task keystoneauth1.exceptions.http.Conflict: Conflict (HTTP 409) (Request-ID: req-da4c25ad-90bd-462a-b89d-33e>

Revision history for this message
Baoqing Wang (baoqingwang) wrote :

Hello, I encountered the same problem as you. I have solved it, the following operations can help you:

Edit the /etc/zun/zun.conf

in the [compute] section, configure the 'host_shared_with_nova':

[compute]
...
host_shared_with_nova = true

Then, restart zun-compute

systemctl restart zun-compute

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.