You have been subscribed to a public bug: 1. which version was this issue triggered:
[root@controller gnocchi]# rpm -qa | grep gnocchi openstack-gnocchi-indexer-sqlalchemy-3.0.3-1.el7.noarch python2-gnocchiclient-2.6.0-1.el7.noarch openstack-gnocchi-api-3.0.3-1.el7.noarch openstack-gnocchi-common-3.0.3-1.el7.noarch openstack-gnocchi-statsd-3.0.3-1.el7.noarch openstack-gnocchi-metricd-3.0.3-1.el7.noarch openstack-gnocchi-carbonara-3.0.3-1.el7.noarch python-gnocchi-3.0.3-1.el7.noarch 2. Issue description: [root@controller gnocchi]# openstack endpoint list +----------------------------------+-----------+--------------+----------------+---------+-----------+-------------------------------------------+ | ID | Region | Service Name | Service Type | Enabled | Interface | URL | +----------------------------------+-----------+--------------+----------------+---------+-----------+-------------------------------------------+ | 0939346c6b62453db64dc11c28d67b51 | RegionOne | gnocchi | metric | True | admin | http://controller:8041 | | 76df1920d52d4efa8fd544fb705d8022 | RegionOne | gnocchi | metric | True | internal | http://controller:8041 | | c1af04fd3b794dd2a0627d39b8db93ec | RegionOne | gnocchi | metric | True | public | http://controller:8041 | +----------------------------------+-----------+--------------+----------------+---------+-----------+-------------------------------------------+ When creating the endpoint for gnocchi, 8041 is used for gnocchi port. Run the command to start openstack-gnocchi-api.service but with failure systemctl start openstack-gnocchi-api.service [root@controller gnocchi]# systemctl status openstack-aodh-api.service ● openstack-gnocchi-api.service - OpenStack Alarm API service Loaded: loaded (/usr/lib/systemd/system/openstack-gnocchi-api.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since Mon 2017-03-13 11:50:48 EDT; 11s ago Process: 2781 ExecStart=/usr/bin/gnocchi-api --logfile /var/log/gnocchi/gnocchi.log (code=exited, status=2) Main PID: 2781 (code=exited, status=2) Mar 13 11:50:48 controller systemd[1]: Unit openstack-gnocchi-api.service entered failed state. Mar 13 11:50:48 controller systemd[1]: openstack-gnocchi-api.service failed. Mar 13 11:50:48 controller systemd[1]: openstack-gnocchi-api.service holdoff time over, scheduling restart. Mar 13 11:50:48 controller systemd[1]: start request repeated too quickly for openstack-gnocchi-api.service Mar 13 11:50:48 controller systemd[1]: Failed to start OpenStack Alarm API service. Mar 13 11:50:48 controller systemd[1]: Unit openstack-gnocchi-api.service entered failed state. Mar 13 11:50:48 controller systemd[1]: openstack-gnocchi-api.service failed. 3. Analysis and temporary solution: Let's have a look at the binary script for gnocchi-api: /usr/bin/aodh-api formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--port', '-p', type=int, default=8000, Please be noticed the default port for gnocchiapi is 8000. But the actually port is 8041 for gnocchi api. We can just go ahead to update "8000" to "8041" for gnocchi-api. Then update /usr/lib/systemd/system/openstack-gnocchi-api.service from "ExecStart=/usr/bin/gnocchi-api --logfile /var/log/gnocchi/api.log" to "ExecStart=/usr/bin/gnocchi-api " Do not forget to update the ownership for gnocchi-api.log chmod -R aodh:aodh /var/log/aodh/gnocchi-api.log ** Affects: gnocchi (Ubuntu) Importance: Undecided Status: New -- gnocchi-api server can not start with configured port 8041 https://bugs.launchpad.net/bugs/1672446 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
