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-gnocchi-api.service, the status of it from activied to failed n the space of a few seconds.
[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/systemd/system/gnocchi-api.service; enabled; vendor preset: disabled)
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.slice/gnocchi-api.service
└─7869 /usr/bin/python3 /usr/bin/gnocchi-api -- --log-file /var/log/gnocchi/api.log
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/systemd/system/gnocchi-api.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2021-06-24 15:33:07 CST; 32s ago
Process: 7878 ExecStart=/usr/bin/gnocchi-api -- --log-file /var/log/gnocchi/api.log (code=exited, statu>
Main PID: 7878 (code=exited, status=1/FAILURE)
6月 24 15:33:07 controller systemd[1]: gnocchi-api.service: Failed with result 'exit-code'.
6月 24 15:33:07 controller systemd[1]: gnocchi-api.service: Service RestartSec=100ms expired, scheduling >
6月 24 15:33:07 controller systemd[1]: gnocchi-api.service: Scheduled restart job, restart counter is at >
6月 24 15:33:07 controller systemd[1]: Stopped Gnocchi API service.
6月 24 15:33:07 controller systemd[1]: gnocchi-api.service: Start request repeated too quickly.
6月 24 15:33:07 controller systemd[1]: gnocchi-api.service: Failed with result 'exit-code'.
6月 24 15:33:07 controller systemd[1]: Failed to start Gnocchi API service.
lines 1-13/13 (END)
[root@controller uwsgi]# /usr/bin/gnocchi-api --log-file /var/log/gnocchi/api.log
open("/usr/lib64/uwsgi/python_plugin.so"): No such file or directory [core/utils.c line 3724]
!!! UNABLE to load uWSGI plugin: /usr/lib64/uwsgi/python_plugin.so: cannot open shared object file: No such file or directory !!!
/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
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). gnocchi- api.service, the status of it from activied to failed n the space of a few seconds.
I install gnocchi for ceilometer. when I started openstack-
[root@controller uwsgi]# systemctl restart gnocchi-api.service systemd/ system/ gnocchi- api.service; enabled; vendor preset: disabled) slice/gnocchi- api.service gnocchi- api -- --log-file /var/log/ gnocchi/ api.log
[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. systemd/ system/ gnocchi- api.service; enabled; vendor preset: disabled) /usr/bin/ gnocchi- api -- --log-file /var/log/ gnocchi/ api.log (code=exited, statu>
[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- api.service: Failed with result 'exit-code'. api.service: Service RestartSec=100ms expired, scheduling > api.service: Scheduled restart job, restart counter is at > api.service: Start request repeated too quickly. api.service: Failed with result 'exit-code'.
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/ gnocchi/ api.log ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* *** gnocchi/ api.log' ] share/gnocchi/ gnocchi- dist.conf' , '/etc/gnocchi/ gnocchi. conf'] ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === ....... ....... . ....... ....... , ....... ....... . s3_access_ key_id = s3_bucket_ prefix = gnocchi s3_check_ consistency_ timeout = 60.0 s3_endpoint_ url = s3_max_ pool_connection s = 50 s3_region_ name = s3_secret_ access_ key = swift_auth_ insecure = False swift_auth_ version = 1 swift_authurl = http:// localhost: 8080/auth/ v1.0 swift_cacert = swift_container _prefix = gnocchi swift_endpoint_ type = publicURL swift_preauthto ken = **** swift_project_ domain_ name = Default swift_project_ name = swift_region = swift_service_ type = object-store swift_timeout = 300 swift_user_ domain_ name = Default archive_ policy_ name = None policy. default_ aggregation_ methods = ['mean', 'min', 'max', 'sum', 'std', 'count'] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ***
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/ gnocchi- api --log-file /var/log/ gnocchi/ api.log usr/lib64/ uwsgi/python_ plugin. so"): No such file or directory [core/utils.c line 3724] uwsgi/python_ plugin. so: cannot open shared object file: No such file or directory !!!
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
[root@controller uwsgi]# rpm -qa| grep gnocchi gnocchi- 4.3.4-1. uelc20. noarch common- 4.3.4-1. uelc20. noarch gnocchiclient- 7.0.4-1. uelc20. 01.noarch metricd- 4.3.4-1. uelc20. noarch api-4.3. 4-1.uelc20. noarch
python3-
gnocchi-
python3-
gnocchi-
gnocchi-
we have used python3, but the gnocchi 4.3.4 still seek the plugin of python2。