gnocchi-api fails upstream STEIN installation

Bug #1879712 reported by alfiaz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ceilometer (Ubuntu)
New
Undecided
Unassigned

Bug Description

CentOS 7 on bare-metal
active production OpenStack Stein
Trying to install Ceilometer

checking the status of the gnocchi services, it shows the API has failed to start
trying to invoke the API ExecStart manually, shows why
please advise

[root@controller]# systemctl status openstack-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: start-limit) since Wed 2020-05-20 16:05:35 IDT; 39min ago
  Process: 32176 ExecStart=/usr/bin/gnocchi-api --log-file /var/log/gnocchi/api.log --verbose (code=exited, status=1/FAILURE)
 Main PID: 32176 (code=exited, status=1/FAILURE)

May 20 16:05:34 controller systemd[1]: Unit gnocchi-api.service entered failed state.
May 20 16:05:34 controller systemd[1]: gnocchi-api.service failed.
May 20 16:05:35 controller systemd[1]: gnocchi-api.service holdoff time over, scheduling restart.
May 20 16:05:35 controller systemd[1]: Stopped Gnocchi API service.
May 20 16:05:35 controller systemd[1]: start request repeated too quickly for gnocchi-api.service
May 20 16:05:35 controller systemd[1]: Failed to start Gnocchi API service.
May 20 16:05:35 controller systemd[1]: Unit gnocchi-api.service entered failed state.
May 20 16:05:35 controller systemd[1]: gnocchi-api.service failed.

[root@controller]# /usr/bin/gnocchi-api
open("/usr/lib64/uwsgi/python_plugin.so"): No such file or directory [core/utils.c line 3713]
!!! UNABLE to load uWSGI plugin: /usr/lib64/uwsgi/python_plugin.so: cannot open shared object file: No such file or directory !!!
/sbin/uwsgi: unrecognized option '--wsgi'
getopt_long() error

set the api log to debug for more info. here's the output from /var/log/gnocchi/api.log

2020-05-20 16:05:34,889 [32176] DEBUG gnocchi.service: database.db_max_retries = 20
2020-05-20 16:05:34,890 [32176] DEBUG gnocchi.service: database.db_max_retry_interval = 10
2020-05-20 16:05:34,890 [32176] DEBUG gnocchi.service: database.db_retry_interval = 1
2020-05-20 16:05:34,890 [32176] DEBUG gnocchi.service: database.max_overflow = 50
2020-05-20 16:05:34,890 [32176] DEBUG gnocchi.service: database.max_pool_size = 5
2020-05-20 16:05:34,891 [32176] DEBUG gnocchi.service: database.max_retries = 10
2020-05-20 16:05:34,891 [32176] DEBUG gnocchi.service: database.min_pool_size = 1
2020-05-20 16:05:34,891 [32176] DEBUG gnocchi.service: database.mysql_enable_ndb = False
2020-05-20 16:05:34,891 [32176] DEBUG gnocchi.service: database.mysql_sql_mode = TRADITIONAL
2020-05-20 16:05:34,892 [32176] DEBUG gnocchi.service: database.pool_timeout = None
2020-05-20 16:05:34,892 [32176] DEBUG gnocchi.service: database.retry_interval = 10
2020-05-20 16:05:34,892 [32176] DEBUG gnocchi.service: database.slave_connection = ****
2020-05-20 16:05:34,892 [32176] DEBUG gnocchi.service: database.sqlite_synchronous = True
2020-05-20 16:05:34,892 [32176] DEBUG gnocchi.service: database.use_db_reconnect = False
2020-05-20 16:05:34,893 [32176] DEBUG gnocchi.service: storage.ceph_conffile = /etc/ceph/ceph.conf
2020-05-20 16:05:34,893 [32176] DEBUG gnocchi.service: storage.ceph_keyring = None
2020-05-20 16:05:34,893 [32176] DEBUG gnocchi.service: storage.ceph_pool = gnocchi
2020-05-20 16:05:34,893 [32176] DEBUG gnocchi.service: storage.ceph_secret = ****
2020-05-20 16:05:34,893 [32176] DEBUG gnocchi.service: storage.ceph_timeout = 30
2020-05-20 16:05:34,893 [32176] DEBUG gnocchi.service: storage.ceph_username = None
2020-05-20 16:05:34,894 [32176] DEBUG gnocchi.service: storage.driver = file
2020-05-20 16:05:34,894 [32176] DEBUG gnocchi.service: storage.file_basepath = /var/lib/gnocchi
2020-05-20 16:05:34,894 [32176] DEBUG gnocchi.service: storage.file_subdir_len = 2
2020-05-20 16:05:34,894 [32176] DEBUG gnocchi.service: storage.redis_url = redis://localhost:6379/
2020-05-20 16:05:34,894 [32176] DEBUG gnocchi.service: storage.s3_access_key_id = None
2020-05-20 16:05:34,894 [32176] DEBUG gnocchi.service: storage.s3_bucket_prefix = gnocchi
2020-05-20 16:05:34,894 [32176] DEBUG gnocchi.service: storage.s3_check_consistency_timeout = 60.0
2020-05-20 16:05:34,895 [32176] DEBUG gnocchi.service: storage.s3_endpoint_url = None
2020-05-20 16:05:34,895 [32176] DEBUG gnocchi.service: storage.s3_max_pool_connections = 50
2020-05-20 16:05:34,895 [32176] DEBUG gnocchi.service: storage.s3_region_name = None
2020-05-20 16:05:34,895 [32176] DEBUG gnocchi.service: storage.s3_secret_access_key = None
2020-05-20 16:05:34,895 [32176] DEBUG gnocchi.service: storage.swift_auth_insecure = False
2020-05-20 16:05:34,895 [32176] DEBUG gnocchi.service: storage.swift_auth_version = 1
2020-05-20 16:05:34,895 [32176] DEBUG gnocchi.service: storage.swift_authurl = http://localhost:8080/auth/v1.0
2020-05-20 16:05:34,896 [32176] DEBUG gnocchi.service: storage.swift_cacert = None
2020-05-20 16:05:34,896 [32176] DEBUG gnocchi.service: storage.swift_container_prefix = gnocchi
2020-05-20 16:05:34,896 [32176] DEBUG gnocchi.service: storage.swift_endpoint_type = publicURL
2020-05-20 16:05:34,896 [32176] DEBUG gnocchi.service: storage.swift_key = ****
2020-05-20 16:05:34,896 [32176] DEBUG gnocchi.service: storage.swift_preauthtoken = ****
2020-05-20 16:05:34,896 [32176] DEBUG gnocchi.service: storage.swift_project_domain_name = Default
2020-05-20 16:05:34,896 [32176] DEBUG gnocchi.service: storage.swift_project_name = None
2020-05-20 16:05:34,897 [32176] DEBUG gnocchi.service: storage.swift_region = None
2020-05-20 16:05:34,897 [32176] DEBUG gnocchi.service: storage.swift_service_type = object-store
2020-05-20 16:05:34,897 [32176] DEBUG gnocchi.service: storage.swift_timeout = 300
2020-05-20 16:05:34,897 [32176] DEBUG gnocchi.service: storage.swift_url = None
2020-05-20 16:05:34,897 [32176] DEBUG gnocchi.service: storage.swift_user = admin:admin
2020-05-20 16:05:34,897 [32176] DEBUG gnocchi.service: storage.swift_user_domain_name = Default
2020-05-20 16:05:34,898 [32176] DEBUG gnocchi.service: indexer.url = ****
2020-05-20 16:05:34,898 [32176] DEBUG gnocchi.service: api.auth_mode = keystone
2020-05-20 16:05:34,899 [32176] DEBUG gnocchi.service: api.host = controller
2020-05-20 16:05:34,899 [32176] DEBUG gnocchi.service: api.max_limit = 1000
2020-05-20 16:05:34,899 [32176] DEBUG gnocchi.service: api.operation_timeout = 10
2020-05-20 16:05:34,899 [32176] DEBUG gnocchi.service: api.paste_config = api-paste.ini
2020-05-20 16:05:34,900 [32176] DEBUG gnocchi.service: api.port = 8041
2020-05-20 16:05:34,900 [32176] DEBUG gnocchi.service: api.uwsgi_mode = http-socket
2020-05-20 16:05:34,900 [32176] DEBUG gnocchi.service: archive_policy.default_aggregation_methods = ['mean', 'min', 'max', 'sum', 'std', 'count']
2020-05-20 16:05:34,900 [32176] DEBUG gnocchi.service: oslo_policy.enforce_scope = False
2020-05-20 16:05:34,901 [32176] DEBUG gnocchi.service: oslo_policy.policy_default_rule = default
2020-05-20 16:05:34,901 [32176] DEBUG gnocchi.service: oslo_policy.policy_dirs = ['policy.d']
2020-05-20 16:05:34,901 [32176] DEBUG gnocchi.service: oslo_policy.policy_file = policy.json
2020-05-20 16:05:34,901 [32176] DEBUG gnocchi.service: oslo_policy.remote_content_type = application/x-www-form-urlencoded
2020-05-20 16:05:34,902 [32176] DEBUG gnocchi.service: oslo_policy.remote_ssl_ca_crt_file = None
2020-05-20 16:05:34,902 [32176] DEBUG gnocchi.service: oslo_policy.remote_ssl_client_crt_file = None
2020-05-20 16:05:34,902 [32176] DEBUG gnocchi.service: oslo_policy.remote_ssl_client_key_file = None
2020-05-20 16:05:34,902 [32176] DEBUG gnocchi.service: oslo_policy.remote_ssl_verify_server_crt = False
2020-05-20 16:05:34,902 [32176] DEBUG gnocchi.service: ********************************************************************************

Revision history for this message
Chris MacNaughton (chris.macnaughton) wrote :

I'm marking this as incomplete as it's targeting the Ubuntu package for ceilometer. If this affects the Ubuntu packages, please move this back to new.

Changed in ceilometer (Ubuntu):
status: New → Incomplete
Revision history for this message
alfiaz (alfiaz) wrote :

Thanks for your fast response Chris

being my first bug report - could you please send a link to the place it ought to be submitted ?
(Got this page from the installation page https://docs.openstack.org/ceilometer/stein/install/install-base-rdo.html)

Revision history for this message
alfiaz (alfiaz) wrote :

according to this - https://bugs.launchpad.net/ceilometer

ceilometer is only bug-managed here

that's how I got to this page.

if any information is missing - please advise and I'll add it.

Changed in ceilometer (Ubuntu):
status: Incomplete → New
Revision history for this message
Han Guangyu (han-guangyu) wrote :

您好。我在linux的发行版之一UOS 1020a上碰到了同样的问题。报错完全一致。
最后发现,根据报错信息“open("/usr/lib64/uwsgi/python_plugin.so"): No such file or directory”,发现我的/usr/lib64/uwsgi/目录下有python3_plugin.so,系统上已使用python3,而我们所使用的gnocchi仍在使用python2版本时的命名。修改vim /usr/lib/python3.6/site-packages/gnocchi/cli/api.py的第93行的“python”为“python3”,解决了我碰到的问题。
92 args = [
93 "--if-not-plugin", "python", "--plugin", "python3", "--endif",
94 "--%s" % conf.api.uwsgi_mode, "%s:%d" % (
我的gnocchi版本如下。
[root@controller ~]# rpm -qa|grep gnocchi
gnocchi-api-4.3.4-1.uelc20.noarch
gnocchi-metricd-4.3.4-1.uelc20.noarch
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

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.