Comment 0 for bug 1933430

Revision history for this message
Han Guangyu (han-guangyu) wrote :

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)

/var/log/gnocchi/api.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/gnocchi/api.log']
2021-06-24 15:33:03,389 [7843] DEBUG gnocchi.service: config files: ['/usr/share/gnocchi/gnocchi-dist.conf', '/etc/gnocchi/gnocchi.conf']
2021-06-24 15:33:03,389 [7843] DEBUG gnocchi.service: ================================================================================
......................
.....................,
......................
2021-06-24 15:33:07,238 [7878] DEBUG gnocchi.service: incoming.s3_access_key_id =
2021-06-24 15:33:07,238 [7878] DEBUG gnocchi.service: incoming.s3_bucket_prefix = gnocchi
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.s3_check_consistency_timeout = 60.0
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.s3_endpoint_url =
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.s3_max_pool_connections = 50
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.s3_region_name =
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.s3_secret_access_key =
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.swift_auth_insecure = False
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.swift_auth_version = 1
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.swift_authurl = http://localhost:8080/auth/v1.0
2021-06-24 15:33:07,239 [7878] DEBUG gnocchi.service: incoming.swift_cacert =
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.swift_container_prefix = gnocchi
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.swift_endpoint_type = publicURL
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.swift_preauthtoken = ****
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.swift_project_domain_name = Default
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.swift_project_name =
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.swift_region =
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.swift_service_type = object-store
2021-06-24 15:33:07,240 [7878] DEBUG gnocchi.service: incoming.swift_timeout = 300
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.swift_user_domain_name = Default
2021-06-24 15:33:07,241 [7878] DEBUG gnocchi.service: statsd.archive_policy_name = None
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_policy.default_aggregation_methods = ['mean', 'min', 'max', 'sum', 'std', 'count']
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
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

[root@controller uwsgi]# rpm -qa| grep gnocchi
python3-gnocchi-4.3.4-1.uelc20.noarch
gnocchi-common-4.3.4-1.uelc20.noarch
python3-gnocchiclient-7.0.4-1.uelc20.01.noarch
gnocchi-metricd-4.3.4-1.uelc20.noarch
gnocchi-api-4.3.4-1.uelc20.noarch

we have used python3, but the gnocchi 4.3.4 still seek the plugin of python2。