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)
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 BACKEND= gnocchi to your local.conf.
CEILOMETER_
if anything, can you paste your local.conf (minus any passwords/personal
IP)
** Changed in: ceilometer
Status: New => Incomplete
-- /bugs.launchpad .net/bugs/ 1753109
You received this bug notification because you are subscribed to the bug
report.
https:/
Title:
gnocchi-api install fails
Status in Ceilometer:
Incomplete
Bug description: /docs.openstack .org/ceilometer /queens/ install/ install- base-ubuntu. html
Following the Ceilometer's installation on a single machine devstack pike install https:/
I run into the following issue:
stack@ devstack: ~/devstack$ sudo apt-get install gnocchi-api gnocchi-metricd python- gnocchiclient 0ubuntu1~ cloud0) . metricd is already the newest version (3.1.9- 0ubuntu1~ cloud0) . gnocchiclient is already the newest version (3.3.1- 0ubuntu2~ cloud0) .
libboost- random1. 58.0 libboost- thread1. 58.0 libpython3-dev libpython3.5-dev python3-dev python3-wheel python3.5-dev 0ubuntu1~ cloud0) ... debian. cnf: succeeded. common: writing config to /etc/dbconfig- common/ gnocchi- common. conf common@ localhost: already exists. common: flushing administrative password 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: ExtDeprecationW arning: Importing flask.ext.babel is deprecated, use flask_babel instead. indexer. sqlalchemy. SQLAlchemyIndex er object at 0x7fada9bd9a50> runtime. migration [-] Context impl MySQLImpl. runtime. migration [-] Will assume non-transactional DDL. runtime. migration [-] Context impl MySQLImpl. runtime. migration [-] Will assume non-transactional DDL. storage. file.FileStorag e object at 0x7fada556c490> 0ubuntu1~ cloud0) ... 10.0.3. 15:8041 127.0.0. 1:35357/ v3/. Attempting to parse version from URL. 127.0.0. 1:35357/ v3/auth/ tokens: HTTPConnectionP ool(host= '127.0. 0.1', port=35357): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionEr ror('<urllib3. connection. HTTPConnection object at 0x7f6eff9b6090>: Failed to establish a new connection: [Errno 111] Connection refused',)) 127.0.0. 1:35357/ v3/. Attempting to parse version from URL. 127.0.0. 1:35357/ v3/auth/ tokens: HTTPConnectionP ool(host= '127.0. 0.1', port=35357): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionEr ror('<urllib3. connection. HTTPConnection object at 0x7f4302a9f9d0>: Failed to establish a new connection: [Errno 111] Connection refused',)) 0ubuntu1~ cloud0) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnocchi-api is already the newest version (3.1.9-
gnocchi-
python-
The following packages were automatically installed and are no longer required:
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-
granting access to database gnocchidb for gnocchi-
creating database gnocchidb: already exists.
dbconfig-
Now calling gnocchi-upgrade: this may take a while...
/
""")
/
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:
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
collisions: 0 txqueuelen:1000
enp0s3 Link encap:Ethernet HWaddr 08:00:27:75:88:76
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: a93e:13c7: 4c6e/64 Scope:Link
collisions: 0 txqueuelen:1000
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?
To manage notifications about this bug go to: /bugs.launchpad .net/ceilometer /+bug/1753109/ +subscriptions
https:/