gnocchi-api install fails

Bug #1753109 reported by Sozo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Expired
Undecided
Unassigned

Bug Description

Following the Ceilometer's installation on a single machine devstack pike install https://docs.openstack.org/ceilometer/queens/install/install-base-ubuntu.html
I run into the following issue:

stack@devstack:~/devstack$ sudo apt-get install gnocchi-api gnocchi-metricd python-gnocchiclient
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnocchi-api is already the newest version (3.1.9-0ubuntu1~cloud0).
gnocchi-metricd is already the newest version (3.1.9-0ubuntu1~cloud0).
python-gnocchiclient is already the newest version (3.3.1-0ubuntu2~cloud0).
The following packages were automatically installed and are no longer required:
  libboost-random1.58.0 libboost-thread1.58.0 libpython3-dev libpython3.5-dev python3-dev python3-wheel python3.5-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up gnocchi-common (3.1.9-0ubuntu1~cloud0) ...
PKG-Openstack now calling: dbc_go gnocchi-common configure
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/gnocchi-common.conf
granting access to database gnocchidb for gnocchi-common@localhost: already exists.
creating database gnocchidb: already exists.
dbconfig-common: flushing administrative password
Now calling gnocchi-upgrade: this may take a while...
/usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  """)
/usr/lib/python2.7/dist-packages/sqlalchemy_utils/i18n.py:15: ExtDeprecationWarning: Importing flask.ext.babel is deprecated, use flask_babel instead.
  from flask.ext.babel import get_locale
2018-03-03 22:34:50.661 6476 INFO gnocchi.cli [-] Upgrading indexer <gnocchi.indexer.sqlalchemy.SQLAlchemyIndexer object at 0x7fada9bd9a50>
2018-03-03 22:34:50.819 6476 INFO alembic.runtime.migration [-] Context impl MySQLImpl.
2018-03-03 22:34:50.819 6476 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.
2018-03-03 22:34:50.858 6476 INFO alembic.runtime.migration [-] Context impl MySQLImpl.
2018-03-03 22:34:50.860 6476 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.
2018-03-03 22:34:50.982 6476 INFO gnocchi.cli [-] Upgrading storage <gnocchi.storage.file.FileStorage object at 0x7fada556c490>
Setting up gnocchi-api (3.1.9-0ubuntu1~cloud0) ...
Registering service and endpoints for gnocchi with type metric at http://10.0.3.15: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 0x7f6eff9b6090>: Failed to establish a new connection: [Errno 111] Connection refused',))
Warning - data is empty
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 0x7f4302a9f9d0>: 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
Setting up gnocchi-metricd (3.1.9-0ubuntu1~cloud0) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 gnocchi-api
E: Sub-process /usr/bin/dpkg returned an error code (1)

In my VM I have 2 IP addresses. The first is host-only and set for the horizon and all the openstack services. The second IP is NAT for external communication:
enp0s3 Link encap:Ethernet HWaddr 08:00:27:75:88:76
          inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0
          inet6 addr: fe80::c68c:3b9c:b0e4:55b8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:782 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1255 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:78788 (78.7 KB) TX bytes:1584906 (1.5 MB)

enp0s8 Link encap:Ethernet HWaddr 08:00:27:9f:f5:24
          inet addr:10.0.3.15 Bcast:10.0.3.255 Mask:255.255.255.0
          inet6 addr: fe80::b48:a93e:13c7:4c6e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:534875 errors:0 dropped:0 overruns:0 frame:0
          TX packets:90984 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:676749506 (676.7 MB) TX bytes:5917685 (5.9 MB)

Why the gnocchi-api tries to register enpoint with 10.0.3.15? Or if that is not an issue what could solve the error?

Revision history for this message
gordon chung (chungg) wrote :

sorry, can you clarify if you're using devstack or using distro packages? the doc you linked is using distro packages.

if you're using devstack, you should just add
CEILOMETER_BACKEND=gnocchi to your local.conf.

if anything, can you paste your local.conf (minus any passwords/personal IP)

Changed in ceilometer:
status: New → Incomplete
Revision history for this message
Sozo (zoszabo) wrote : Re: [Bug 1753109] Re: gnocchi-api install fails
Download full text (6.8 KiB)

I was using devstack. Yes I found the option to setup ceilometer with gnocchi in local.conf and that is worked! Thanks

In this case if I have a devstack install, I always need to follow the local.conf setup?

On 7/3/18, 7:30 AM, "gordon chung" <<email address hidden> on behalf of <email address hidden>> wrote:

    sorry, can you clarify if you're using devstack or using distro
    packages? the doc you linked is using distro packages.

    if you're using devstack, you should just add
    CEILOMETER_BACKEND=gnocchi to your local.conf.

    if anything, can you paste your local.conf (minus any passwords/personal
    IP)

    ** Changed in: ceilometer
           Status: New => Incomplete

    --
    You received this bug notification because you are subscribed to the bug
    report.
    https://bugs.launchpad.net/bugs/1753109

    Title:
      gnocchi-api install fails

    Status in Ceilometer:
      Incomplete

    Bug description:
      Following the Ceilometer's installation on a single machine devstack pike install https://docs.openstack.org/ceilometer/queens/install/install-base-ubuntu.html
      I run into the following issue:

      stack@devstack:~/devstack$ sudo apt-get install gnocchi-api gnocchi-metricd python-gnocchiclient
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      gnocchi-api is already the newest version (3.1.9-0ubuntu1~cloud0).
      gnocchi-metricd is already the newest version (3.1.9-0ubuntu1~cloud0).
      python-gnocchiclient is already the newest version (3.3.1-0ubuntu2~cloud0).
      The following packages were automatically installed and are no longer required:
        libboost-random1.58.0 libboost-thread1.58.0 libpython3-dev libpython3.5-dev python3-dev python3-wheel python3.5-dev
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
      3 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Do you want to continue? [Y/n]
      Setting up gnocchi-common (3.1.9-0ubuntu1~cloud0) ...
      PKG-Openstack now calling: dbc_go gnocchi-common configure
      Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
      dbconfig-common: writing config to /etc/dbconfig-common/gnocchi-common.conf
      granting access to database gnocchidb for gnocchi-common@localhost: already exists.
      creating database gnocchidb: already exists.
      dbconfig-common: flushing administrative password
      Now calling gnocchi-upgrade: this may take a while...
      /usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
        """)
      /usr/lib/python2.7/dist-packages/sqlalchemy_utils/i18n.py:15: ExtDeprecationWarning: Importing flask.ext.babel is deprecated, use flask_babel instead.
        from flask.ext.babel import get_locale
      2018-03...

Read more...

Revision history for this message
Debdiptaghosh (debdipta1078) wrote :

Facing same issue:
tack@ubuntu:/etc/init.d$ sudo apt-get install gnocchi-api
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnocchi-api is already the newest version (3.1.9-0ubuntu1~cloud0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up gnocchi-api (3.1.9-0ubuntu1~cloud0) ...
Registering service and endpoints for gnocchi with type metric at http://17.203.148.136:8041
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils. This warning is caused by an out-of-date import in /usr/local/lib/python2.7/dist-packages/zaqarclient/queues/cli.py
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 0x7f0d23e3a8d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
Warning - data is empty
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils. This warning is caused by an out-of-date import in /usr/local/lib/python2.7/dist-packages/zaqarclient/queues/cli.py
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 0x7ff5315f3250>: 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)
stack@ubuntu:/etc/init.d$

Already added CEILOMETER_BACKEND=gnocchi in local.conf.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ceilometer because there has been no activity for 60 days.]

Changed in ceilometer:
status: Incomplete → Expired
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.