[GNOCCHI] Regarding wrong ports in gnocchi-api and gnocchi-common packages

Nehal Bansal bansalnehal26 at gmail.com
Mon Jul 15 11:35:22 UTC 2019


Hi,

I am installing ceilometer queens version. While installing gnocchi-api,
gnocchi-metricd and python-gnocchiclient packages I encountered the error

Registering service and endpoints for gnocchi with type metric at
http://192.168.133.81:8041
Failed to discover available identity versions when contacting
http://127.0.0.1:35357/v3/. Attempting to parse version from URL.
Unable to establish connection to http://127.0.0.1:35357/v3/auth/tokens:
HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with
url: /v3/auth/tokens (Caused by
NewConnectionError('<urllib3.connection.HTTPConnection object at
0x7fa1c8b0cb90>: Failed to establish a new connection: [Errno 111]
Connection refused',))
dpkg: error processing package gnocchi-api (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 gnocchi-api
E: Sub-process /usr/bin/dpkg returned an error code (1)

I checked the postinst scripts of the packages and found that port 35357
has been configured instead of 5000. Therefore, I fetched the deb packages
separately and edited the postinst files of the packages, repackaged it and
installed the packages with dpkg -i <deb-file>.

Now the logs are
(Reading database ... 154597 files and directories currently installed.)
Preparing to unpack .../python3-gnocchi_4.2.5-0ubuntu1~cloud0_all.deb ...
Unpacking python3-gnocchi (4.2.5-0ubuntu1~cloud0) over
(4.2.5-0ubuntu1~cloud0) ...
Setting up python3-gnocchi (4.2.5-0ubuntu1~cloud0) ...
2019-07-15 16:48:48,434 - INFO - executing "dpkg -i
/var/cache/apt/archives/packages/fixed-gnocchi-common.deb" ...
(Reading database ... 154597 files and directories currently installed.)
Preparing to unpack .../fixed-gnocchi-common.deb ...
Unpacking gnocchi-common (4.2.5-0ubuntu1~cloud0) over
(4.2.5-0ubuntu1~cloud0) ...
Setting up gnocchi-common (4.2.5-0ubuntu1~cloud0) ...
2019-07-15 16:48:49,324 - INFO - executing "dpkg -i
/var/cache/apt/archives/packages/fixed-gnocchi-api.deb" ...
Selecting previously unselected package gnocchi-api.
(Reading database ... 154597 files and directories currently installed.)
Preparing to unpack .../packages/fixed-gnocchi-api.deb ...
Unpacking gnocchi-api (4.2.5-0ubuntu1~cloud0) ...
Setting up gnocchi-api (4.2.5-0ubuntu1~cloud0) ...
Registering service and endpoints for gnocchi with type metric at
http://192.168.133.81:8041
Service already registered: skipping service endpoint creation.
apache2_invoke: Enable site gnocchi-api.conf
2019-07-15 16:49:01,438 - INFO - executing "dpkg -i
/var/cache/apt/archives/packages/gnocchi-metricd_4.2.5-0ubuntu1~cloud0_all.deb"
...
Selecting previously unselected package gnocchi-metricd.
(Reading database ... 154601 files and directories currently installed.)
Preparing to unpack .../gnocchi-metricd_4.2.5-0ubuntu1~cloud0_all.deb ...
Unpacking gnocchi-metricd (4.2.5-0ubuntu1~cloud0) ...
Setting up gnocchi-metricd (4.2.5-0ubuntu1~cloud0) ...
Processing triggers for systemd (229-4ubuntu21.22) ...
Processing triggers for ureadahead (0.100.0-19.1) ...
2019-07-15 16:49:02,416 - INFO - executing "dpkg -i
/var/cache/apt/archives/packages/python-gnocchiclient_7.0.1-0ubuntu1~cloud0_all.deb"
...
Selecting previously unselected package python-gnocchiclient.
(Reading database ... 154606 files and directories currently installed.)
Preparing to unpack .../python-gnocchiclient_7.0.1-0ubuntu1~cloud0_all.deb
...
Unpacking python-gnocchiclient (7.0.1-0ubuntu1~cloud0) ...
Setting up python-gnocchiclient (7.0.1-0ubuntu1~cloud0) ...
update-alternatives: using /usr/bin/python2-gnocchi to provide
/usr/bin/gnocchi (gnocchi) in auto mode

The service gnocchi-metricd gets created but there are no signs of
gnocchi-api in /etc/init.d/.

Kindly, tell me how to proceed.

Thank you.
Regards,
Nehal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20190715/fa6c01b6/attachment-0001.html>


More information about the openstack-discuss mailing list