settingsLogin | Registersettings

[Openstack-operators] ocata ceilometer-upgrade.log shows Unauthorized (HTTP 401)

0 votes

Hi All,
installing ocata on centos 7.33 with gnocchi and ceilometer, when I run :

ceilometer-upgrade --skip-metering-database

it exits with status = 1 and in the file
/var/log/ceilometer/ceilometer-upgrade.log

I found the following lines:

2017-06-12 15:43:08.982 35526 WARNING
osloreports.gurumeditationreport [-] Guru meditation now registers
SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1
will no longer be registered in a future release, so please use
SIGUSR2 to generate reports.
2017-06-12 15:43:08.982 35526 INFO ceilometer.cmd.storage [-] Skipping
metering database upgrade
2017-06-12 15:43:09.594 35526 CRITICAL ceilometer [-] Unauthorized:
Unauthorized (HTTP 401)
2017-06-12 15:43:09.594 35526 ERROR ceilometer Traceback (most recent
call last):
2017-06-12 15:43:09.594 35526 ERROR ceilometer File
"/usr/bin/ceilometer-upgrade", line 10, in
2017-06-12 15:43:09.594 35526 ERROR ceilometer sys.exit(upgrade())
2017-06-12 15:43:09.594 35526 ERROR ceilometer File
"/usr/lib/python2.7/site-packages/ceilometer/cmd/storage.py", line 53,
in upgrade
2017-06-12 15:43:09.594 35526 ERROR ceilometer
gnocchi
client.upgraderesourcetypes(conf)
2017-06-12 15:43:09.594 35526 ERROR ceilometer File
"/usr/lib/python2.7/site-packages/ceilometer/gnocchiclient.py", line
116, in upgrade
resourcetypes
2017-06-12 15:43:09.594 35526 ERROR ceilometer
gnocchi.resource
type.create(resourcetype=rt)
2017-06-12 15:43:09.594 35526 ERROR ceilometer File
"/usr/lib/python2.7/site-packages/gnocchiclient/v1/resource
type.py",
line 35, in create

Please, anyone ha solved this issue yet ?

Regards

Ignazio


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
asked Jun 14, 2017 in openstack-operators by Ignazio_Cassano (4,220 points)   2 10 22

7 Responses

0 votes

On 12/06/17 10:30 AM, Ignazio Cassano wrote:
2017-06-12 15:43:09.594 35526 CRITICAL ceilometer [-] Unauthorized: Unauthorized (HTTP 401)

the credentials you're using aren't valid.

my advice is to launch devstack with gnocchi and ceilometer enabled.
from there, take a look at the configuration settings for both which
should help you understand how to connect the two services.

cheers,

--
gord


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Jun 12, 2017 by gordon_chung (19,300 points)   2 3 12
0 votes

I'll try with your suggestion.
thx
Ignazio

2017-06-12 17:10 GMT+02:00 gordon chung gord@live.ca:

On 12/06/17 10:30 AM, Ignazio Cassano wrote:

2017-06-12 15:43:09.594 35526 CRITICAL ceilometer [-] Unauthorized:
Unauthorized (HTTP 401)

the credentials you're using aren't valid.

my advice is to launch devstack with gnocchi and ceilometer enabled.
from there, take a look at the configuration settings for both which
should help you understand how to connect the two services.

cheers,

--
gord


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Jun 12, 2017 by Ignazio_Cassano (4,220 points)   2 10 22
0 votes

Hi Gordon, I had no enough time for trying with devstack.
Anycase I tried to create an environment file ceil-openrc with the same
credentials stored in ceilometer.conf under service_c redentials section.
Doing:
source ceil-openrc
openstack user list

It shows users correctly, so I think c redentials are correct but
ceilometer-upgrade reports unautborized in log file.
Searching on google I found an unanswered question for the same issue.
https://ask.openstack.org/en/question/105833/ceilometer-upgradelog-shows-unauthorized-http-401/

I would be grateful if anyone could send me a configuration example that is
working.
Regards
Ignazio

Il 12/Giu/2017 17:13, "gordon chung" gord@live.ca ha scritto:

On 12/06/17 10:30 AM, Ignazio Cassano wrote:

2017-06-12 15:43:09.594 35526 CRITICAL ceilometer [-] Unauthorized:
Unauthorized (HTTP 401)

the credentials you're using aren't valid.

my advice is to launch devstack with gnocchi and ceilometer enabled.
from there, take a look at the configuration settings for both which
should help you understand how to connect the two services.

cheers,

--
gord


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Jun 13, 2017 by Ignazio_Cassano (4,220 points)   2 10 22
0 votes

On 13/06/17 01:17 PM, Ignazio Cassano wrote:
Hi Gordon, I had no enough time for trying with devstack.

you gave up after a day?

how about paste your ceilometer.conf and gnocchi.conf. did you follow
the steps here?
https://docs.openstack.org/project-install-guide/telemetry/ocata/install-base-rdo.html

the only step i see missing is that it doesn't tell you to set auth_mode
= keystone in gnocchi.conf (if you're using gnocchi3.1+)

cheers,
--
gord


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Jun 13, 2017 by gordon_chung (19,300 points)   2 3 12
0 votes

Hi Gordon, I followed the documentation https://docs.openstack.org/
project-install-guide/telemetry/ocata/install-base-rdo.html
and added auth_mode = keystone
Now ceilometer-upgrade works but the following command reports error:

source admin-openrc

gnocchi metric list

The request you have made requires authentication. (HTTP 401)

:-(
Ignazio

2017-06-13 21:39 GMT+02:00 gordon chung gord@live.ca:

On 13/06/17 01:17 PM, Ignazio Cassano wrote:

Hi Gordon, I had no enough time for trying with devstack.

you gave up after a day?

how about paste your ceilometer.conf and gnocchi.conf. did you follow
the steps here?
https://docs.openstack.org/project-install-guide/
telemetry/ocata/install-base-rdo.html

the only step i see missing is that it doesn't tell you to set auth_mode
= keystone in gnocchi.conf (if you're using gnocchi3.1+)

cheers,
--
gord


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Jun 14, 2017 by Ignazio_Cassano (4,220 points)   2 10 22
0 votes

On 14/06/17 05:15 AM, Ignazio Cassano wrote:

source admin-openrc

gnocchi metric list

The request you have made requires authentication. (HTTP 401)

i have no idea what admin-openrc sets, i'm guessing this?
https://docs.openstack.org/ocata/install-guide-rdo/keystone-openrc.html

the only thing i notice missing is it should have:

export OSAUTHTYPE=password

please read docs here:
http://gnocchi.xyz/gnocchiclient/shell.html?highlight=os_auth_type

cheers,

--
gord


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Jun 14, 2017 by gordon_chung (19,300 points)   2 3 12
0 votes

Many thanks, Gordon !!!!
It seems to work adding OSAUTHTYPE=password
I a going to modify glance, compute etc etc to verify if it collects
information
Regards
Ignazio

2017-06-14 15:06 GMT+02:00 gordon chung gord@live.ca:

On 14/06/17 05:15 AM, Ignazio Cassano wrote:

source admin-openrc

gnocchi metric list

The request you have made requires authentication. (HTTP 401)

i have no idea what admin-openrc sets, i'm guessing this?
https://docs.openstack.org/ocata/install-guide-rdo/keystone-openrc.html

the only thing i notice missing is it should have:

export OSAUTHTYPE=password

please read docs here:
http://gnocchi.xyz/gnocchiclient/shell.html?highlight=os_auth_type

cheers,

--
gord


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Jun 14, 2017 by Ignazio_Cassano (4,220 points)   2 10 22
...