openstack-gnocchi-api.service failed, it seek the plugin of python2 when the correspondin python version is python3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
New
|
Undecided
|
Unassigned |
Bug Description
Thanks. I deploy OpenStack Train and Ussuri in Uos 1020a which is a linux release baseed on Centos 8.2(And maybe you can similar deal with it in centos).
I install gnocchi for ceilometer. when I started openstack-
[root@controller uwsgi]# systemctl restart gnocchi-api.service
[root@controller uwsgi]# systemctl status gnocchi-api.service
● gnocchi-api.service - Gnocchi API service
Loaded: loaded (/usr/lib/
Active: active (running) since Thu 2021-06-24 15:33:05 CST; 392ms ago
Main PID: 7869 (gnocchi-api)
Tasks: 3 (limit: 37766)
Memory: 41.4M
CGroup: /system.
└─7869 /usr/bin/python3 /usr/bin/
6月 24 15:33:05 controller systemd[1]: Started Gnocchi API service.
[root@controller uwsgi]# systemctl status gnocchi-api.service
● gnocchi-api.service - Gnocchi API service
Loaded: loaded (/usr/lib/
Active: failed (Result: exit-code) since Thu 2021-06-24 15:33:07 CST; 32s ago
Process: 7878 ExecStart=
Main PID: 7878 (code=exited, status=1/FAILURE)
6月 24 15:33:07 controller systemd[1]: gnocchi-
6月 24 15:33:07 controller systemd[1]: gnocchi-
6月 24 15:33:07 controller systemd[1]: gnocchi-
6月 24 15:33:07 controller systemd[1]: Stopped Gnocchi API service.
6月 24 15:33:07 controller systemd[1]: gnocchi-
6月 24 15:33:07 controller systemd[1]: gnocchi-
6月 24 15:33:07 controller systemd[1]: Failed to start Gnocchi API service.
lines 1-13/13 (END)
/var/log/
2021-06-24 15:33:03,388 [7843] INFO gnocchi.service: Gnocchi version 4.3.4
2021-06-24 15:33:03,388 [7843] DEBUG gnocchi.service: *******
2021-06-24 15:33:03,388 [7843] DEBUG gnocchi.service: Configuration options gathered from:
2021-06-24 15:33:03,388 [7843] DEBUG gnocchi.service: command line args: ['--log-file', '/var/log/
2021-06-24 15:33:03,389 [7843] DEBUG gnocchi.service: config files: ['/usr/
2021-06-24 15:33:03,389 [7843] DEBUG gnocchi.service: =======
.......
.......
.......
2021-06-24 15:33:07,238 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,238 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.swift_key = ****
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: incoming.swift_url =
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: incoming.swift_user = admin:admin
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: incoming.
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: statsd.
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: statsd.creator = None
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: statsd.flush_delay = 10.0
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: statsd.host = 0.0.0.0
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: statsd.port = 8125
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: statsd.resource_id = None
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: archive_
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: *******
2021-06-24 15:33:07,241 [7878] WARNING gnocchi.cli.api: No need to pass `--' in gnocchi-api command line anymore, please remove
[root@controller uwsgi]# /usr/bin/
open("/
!!! UNABLE to load uWSGI plugin: /usr/lib64/
/usr/sbin/uwsgi: unrecognized option '--wsgi'
getopt_long() error
[root@controller uwsgi]# cd /usr/lib64/uwsgi/
[root@controller uwsgi]# ls
cgi_plugin.so http_plugin.so python3_plugin.so
gnocchi version:
python3-
gnocchi-
python3-
gnocchi-
gnocchi-api-4.3.4-1
we have used python3, but the gnocchi 4.3.4 still seek the plugin of python2。
description: | updated |
iirc, rdo packages (if you are using these), were using python2 in train release.