gnocchi-api install fails
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:/
I run into the following issue:
stack@devstack:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnocchi-api is already the newest version (3.1.9-
gnocchi-metricd is already the newest version (3.1.9-
python-
The following packages were automatically installed and are no longer required:
libboost-
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-
PKG-Openstack now calling: dbc_go gnocchi-common configure
Determining localhost credentials from /etc/mysql/
dbconfig-common: writing config to /etc/dbconfig-
granting access to database gnocchidb for gnocchi-
creating database gnocchidb: already exists.
dbconfig-common: flushing administrative password
Now calling gnocchi-upgrade: this may take a while...
/usr/local/
""")
/usr/lib/
from flask.ext.babel import get_locale
2018-03-03 22:34:50.661 6476 INFO gnocchi.cli [-] Upgrading indexer <gnocchi.
2018-03-03 22:34:50.819 6476 INFO alembic.
2018-03-03 22:34:50.819 6476 INFO alembic.
2018-03-03 22:34:50.858 6476 INFO alembic.
2018-03-03 22:34:50.860 6476 INFO alembic.
2018-03-03 22:34:50.982 6476 INFO gnocchi.cli [-] Upgrading storage <gnocchi.
Setting up gnocchi-api (3.1.9-
Registering service and endpoints for gnocchi with type metric at http://
Failed to discover available identity versions when contacting http://
Unable to establish connection to http://
Warning - data is empty
Failed to discover available identity versions when contacting http://
Unable to establish connection to http://
dpkg: error processing package gnocchi-api (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up gnocchi-metricd (3.1.9-
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.
inet6 addr: fe80::c68c:
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
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:
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
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?
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 BACKEND= gnocchi to your local.conf.
CEILOMETER_
if anything, can you paste your local.conf (minus any passwords/personal IP)