ocata ceilometer-upgrade.log shows Unauthorized (HTTP 401)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

ocata ceilometer-upgrade.log shows Unauthorized (HTTP 401)

Ignazio Cassano
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 oslo_reports.guru_meditation_report [-] 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 <module>
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.upgrade_resource_types(conf)
2017-06-12 15:43:09.594 35526 ERROR ceilometer File "/usr/lib/python2.7/site-packages/ceilometer/gnocchi_client.py", line 116, in upgrade_resource_types
2017-06-12 15:43:09.594 35526 ERROR ceilometer gnocchi.resource_type.create(resource_type=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
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Reply | Threaded
Open this post in threaded view
|

Re: ocata ceilometer-upgrade.log shows Unauthorized (HTTP 401)

gordon chung-2


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
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Reply | Threaded
Open this post in threaded view
|

Re: ocata ceilometer-upgrade.log shows Unauthorized (HTTP 401)

Ignazio Cassano
I'll try with your suggestion.
thx
Ignazio

2017-06-12 17:10 GMT+02:00 gordon chung <[hidden email]>:


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
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


_______________________________________________
OpenStack-operators mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Reply | Threaded
Open this post in threaded view
|

Re: ocata ceilometer-upgrade.log shows Unauthorized (HTTP 401)

Ignazio Cassano
In reply to this post by gordon chung-2
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. 

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" <[hidden email]> 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
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

_______________________________________________
OpenStack-operators mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Reply | Threaded
Open this post in threaded view
|

Re: ocata ceilometer-upgrade.log shows Unauthorized (HTTP 401)

gordon chung-2


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
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Reply | Threaded
Open this post in threaded view
|

Re: ocata ceilometer-upgrade.log shows Unauthorized (HTTP 401)

Ignazio Cassano
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 <[hidden email]>:


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
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Reply | Threaded
Open this post in threaded view
|

Re: ocata ceilometer-upgrade.log shows Unauthorized (HTTP 401)

gordon chung-2


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 OS_AUTH_TYPE=password

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

cheers,

--
gord
_______________________________________________
OpenStack-operators mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Reply | Threaded
Open this post in threaded view
|

Re: ocata ceilometer-upgrade.log shows Unauthorized (HTTP 401)

Ignazio Cassano
Many thanks, Gordon !!!!
It seems to work adding OS_AUTH_TYPE=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 <[hidden email]>:


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 OS_AUTH_TYPE=password

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

cheers,

--
gord


_______________________________________________
OpenStack-operators mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators