gnocchi.cli.api: No need to pass `--' in gnocchi-api command line anymore, please remove

Bug #1997935 reported by Tim.liang
10
This bug affects 2 people
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 7.9(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.

Q_Q # 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 Fri 2022-11-25 10:46:49 CST; 46s ago
  Process: 11086 ExecStart=/usr/bin/gnocchi-api -- --log-file /var/log/gnocchi/api.log (code=exited, status=1/FAILURE)
 Main PID: 11086 (code=exited, status=1/FAILURE)

Nov 25 10:46:49 allinone systemd[1]: Unit gnocchi-api.service entered failed state.
Nov 25 10:46:49 allinone systemd[1]: gnocchi-api.service failed.
Nov 25 10:46:49 allinone systemd[1]: gnocchi-api.service holdoff time over, scheduling restart.
Nov 25 10:46:49 allinone systemd[1]: Stopped Gnocchi API service.
Nov 25 10:46:49 allinone systemd[1]: start request repeated too quickly for gnocchi-api.service
Nov 25 10:46:49 allinone systemd[1]: Failed to start Gnocchi API service.
Nov 25 10:46:49 allinone systemd[1]: Unit gnocchi-api.service entered failed state.
Nov 25 10:46:49 allinone systemd[1]: gnocchi-api.service failed.

/var/log/gnocchi/api.log
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.ceph_conffile = /etc/ceph/ceph.conf
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.ceph_keyring = None
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.ceph_pool = gnocchi
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.ceph_secret = ****
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.ceph_timeout = 30
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.ceph_username = None
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.driver = file
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.file_basepath = /var/lib/gnocchi
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.file_subdir_len = 2
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.redis_url = redis://localhost:6379/
2022-11-25 11:01:00,966 [13744] DEBUG gnocchi.service: storage.s3_access_key_id = None
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.s3_bucket_prefix = gnocchi
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.s3_check_consistency_timeout = 60.0
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.s3_endpoint_url = None
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.s3_max_pool_connections = 50
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.s3_region_name = None
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.s3_secret_access_key = None
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_auth_insecure = False
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_auth_version = 1
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_authurl = http://localhost:8080/auth/v1.0
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_cacert = None
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_container_prefix = gnocchi
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_endpoint_type = publicURL
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_key = ****
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_preauthtoken = ****
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_project_domain_name = Default
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_project_name = None
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_region = None
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_service_type = object-store
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_timeout = 300
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_url = None
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_user = admin:admin
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: storage.swift_user_domain_name = Default
2022-11-25 11:01:00,967 [13744] DEBUG gnocchi.service: indexer.url = ****
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: api.auth_mode = keystone
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: api.host = 192.168.233.30
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: api.max_limit = 1000
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: api.operation_timeout = 10
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: api.paste_config = api-paste.ini
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: api.port = 8041
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: api.uwsgi_mode = http
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: archive_policy.default_aggregation_methods = ['mean', 'min', 'max', 'sum', 'std', 'count']
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: oslo_policy.enforce_scope = False
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: oslo_policy.policy_default_rule = default
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: oslo_policy.policy_dirs = ['policy.d']
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: oslo_policy.policy_file = policy.json
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: oslo_policy.remote_content_type = application/x-www-form-urlencoded
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: oslo_policy.remote_ssl_ca_crt_file = None
2022-11-25 11:01:00,968 [13744] DEBUG gnocchi.service: oslo_policy.remote_ssl_client_crt_file = None
2022-11-25 11:01:00,969 [13744] DEBUG gnocchi.service: oslo_policy.remote_ssl_client_key_file = None
2022-11-25 11:01:00,969 [13744] DEBUG gnocchi.service: oslo_policy.remote_ssl_verify_server_crt = False
2022-11-25 11:01:00,969 [13744] DEBUG gnocchi.service: ********************************************************************************
2022-11-25 11:01:00,969 [13744] WARNING gnocchi.cli.api: No need to pass `--' in gnocchi-api command line anymore, please remove
2022-11-25 11:01:01,960 [13758] INFO gnocchi.service: Gnocchi version 4.3.5
2022-11-25 11:01:01,960 [13758] DEBUG gnocchi.service: ********************************************************************************
2022-11-25 11:01:01,960 [13758] DEBUG gnocchi.service: Configuration options gathered from:
2022-11-25 11:01:01,960 [13758] DEBUG gnocchi.service: command line args: ['--log-file', '/var/log/gnocchi/api.log']
2022-11-25 11:01:01,960 [13758] DEBUG gnocchi.service: config files: ['/usr/share/gnocchi/gnocchi-dist.conf', '/etc/gnocchi/gnocchi.conf']

Q_Q # /usr/bin/gnocchi-api --log-file /var/log/gnocchi/api.log
/usr/sbin/uwsgi: option '--http' is ambiguous; possibilities: '--http-socket' '--https-socket-modifier2' '--https-socket-modifier1' '--https-socket' '--http11-socket' '--http-socket-modifier2' '--http-socket-modifier1'
getopt_long() error

[root@allinone:/usr/lib64/uwsgi]
Q_Q # ls -l
total 284K
-rwxr-xr-x 1 root root 29K 2018-06-14 23:18 cgi_plugin.so
-rwxr-xr-x 1 root root 64K 2018-06-14 23:18 http_plugin.so
-rwxr-xr-x 1 root root 186K 2018-06-14 23:18 python_plugin.so

gnocchi version:
Q_Q # rpm -qa | grep gnocchi
gnocchi-metricd-4.3.5-1.el7.noarch
python2-gnocchi-4.3.5-1.el7.noarch
python2-gnocchiclient-7.0.4-1.el7.noarch
gnocchi-common-4.3.5-1.el7.noarch
gnocchi-api-4.3.5-1.el7.noarch

uwsgi version:
Q_Q # rpm -qa | grep wsgi
uwsgi-plugin-common-2.0.16-1.el7.x86_64
mod_wsgi-3.4-18.el7.x86_64
uwsgi-2.0.16-1.el7.x86_64
uwsgi-plugin-python-2.0.16-1.el7.x86_64

Request help

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.