the zun server (zun-api) in controller host error(s)
iAfter I followed the official documentation and fixed a 'pip3' error, it still failed to run successfully. This is an error reported by the zun api. Other components work normally. If you need my profile, it is attached root@controller:~# systemctl status zun-api ● zun-api.service - OpenStack Container Service API Loaded: loaded (/etc/systemd/system/zun-api.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2022-12-11 11:43:04 CST; 1min 38s ago Process: 1017 ExecStart=/usr/local/bin/zun-api (code=exited, status=1/FAILURE) Main PID: 1017 (code=exited, status=1/FAILURE) Dec 11 11:43:04 controller zun-api[1017]: from zun import objects Dec 11 11:43:04 controller zun-api[1017]: File "/usr/local/lib/python3.8/dist-packages/zun/objects/__init__.py", line 13, in <module> Dec 11 11:43:04 controller zun-api[1017]: from zun.objects import compute_node Dec 11 11:43:04 controller zun-api[1017]: File "/usr/local/lib/python3.8/dist-packages/zun/objects/compute_node.py", line 16, in <module> Dec 11 11:43:04 controller zun-api[1017]: from zun.db import api as dbapi Dec 11 11:43:04 controller zun-api[1017]: File "/usr/local/lib/python3.8/dist-packages/zun/db/api.py", line 32, in <module> Dec 11 11:43:04 controller zun-api[1017]: @profiler.trace("db") Dec 11 11:43:04 controller zun-api[1017]: AttributeError: partially initialized module 'zun.common.profiler' has no attribute 'trace' (most likely due to a circular import) Dec 11 11:43:04 controller systemd[1]: zun-api.service: Main process exited, code=exited, status=1/FAILURE Dec 11 11:43:04 controller systemd[1]: zun-api.service: Failed with result 'exit-code'.
Hi, I submitted a fix for it: https://review.opendev.org/c/openstack/zun/+/868513 . Thanks for reporting. Best regards, Hongbin On Mon, Dec 12, 2022 at 11:11 PM 无数的星球 <2292613444@qq.com> wrote:
iAfter I followed the official documentation and fixed a 'pip3' error, it still failed to run successfully. This is an error reported by the zun api. Other components work normally. If you need my profile, it is attached
root@controller:~# systemctl status zun-api ● zun-api.service - OpenStack Container Service API Loaded: loaded (/etc/systemd/system/zun-api.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2022-12-11 11:43:04 CST; 1min 38s ago Process: 1017 ExecStart=/usr/local/bin/zun-api (code=exited, status=1/FAILURE) Main PID: 1017 (code=exited, status=1/FAILURE)
Dec 11 11:43:04 controller zun-api[1017]: from zun import objects Dec 11 11:43:04 controller zun-api[1017]: File "/usr/local/lib/python3.8/dist-packages/zun/objects/__init__.py", line 13, in <module> Dec 11 11:43:04 controller zun-api[1017]: from zun.objects import compute_node Dec 11 11:43:04 controller zun-api[1017]: File "/usr/local/lib/python3.8/dist-packages/zun/objects/compute_node.py", line 16, in <module> Dec 11 11:43:04 controller zun-api[1017]: from zun.db import api as dbapi Dec 11 11:43:04 controller zun-api[1017]: File "/usr/local/lib/python3.8/dist-packages/zun/db/api.py", line 32, in <module> Dec 11 11:43:04 controller zun-api[1017]: @profiler.trace("db") Dec 11 11:43:04 controller zun-api[1017]: AttributeError: partially initialized module 'zun.common.profiler' has no attribute 'trace' (most likely due to a circular import) Dec 11 11:43:04 controller systemd[1]: zun-api.service: Main process exited, code=exited, status=1/FAILURE Dec 11 11:43:04 controller systemd[1]: zun-api.service: Failed with result 'exit-code'.
participants (2)
-
Hongbin Lu
-
无数的星球