[openstack-dev] [Monasca]

Brandt, Ryan ryan.brandt at hpe.com
Wed Jan 4 15:33:39 UTC 2017


Apologies for the delay in response, just returning from the holidays.

>From the trace, it would appear the monasca API is unable to authenticate with keystone. The API’s admin credentials may not be valid (either they do not exist in keystone or are configured incorrectly for the API) which would cause the API to be unable to validate tokens on incoming requests. The admin credentials for the python monasca API are under [keystone_authtoken] in ‘/etc/monasca/api-config.conf’.

Ryan

From: Sanjana Pai Nagarmat <Sanjana at hitachi.co.in<mailto:Sanjana at hitachi.co.in>>
Reply-To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
Date: Monday, January 2, 2017 at 1:48 AM
To: "openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>" <openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
Subject: [openstack-dev] [Monasca]

Hello,


I have a clean install of monasca-api and monasca-log-management plugins with devstack on ubuntu 14.04.
However when I try using the monasca CLI, I get HTTP 503:Service Unavailable error.
I tried accessing the monasca dashboard in Horizon, but that also throws error.

ubuntu at monasca:~$ monasca metric-list
ERROR (exc:80) exception: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\n\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}
HTTPException code=503 message={"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\n\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}
ubuntu at monasca:~$


The monasca-api log file has the following contents:
2017-01-02 08:15:20,158 DEBUG [gunicorn.error][GreenThread-2] Closing connection.
2017-01-02 08:15:24,952 DEBUG [gunicorn.error][GreenThread-5] GET /v2.0/metrics
2017-01-02 08:15:24,954 DEBUG [keystonemiddleware.auth_token][GreenThread-5] Authenticating user token
2017-01-02 08:15:24,957 DEBUG [keystoneauth.identity.v2][GreenThread-5] Making authentication request to http://127.0.0.1:35357/v2.0/tokens
2017-01-02 08:15:24,964 INFO [requests.packages.urllib3.connectionpool][GreenThread-5] Resetting dropped connection: 127.0.0.1
2017-01-02 08:15:27,342 DEBUG [requests.packages.urllib3.connectionpool][GreenThread-5] "POST /v2.0/tokens HTTP/1.1" 401 114
2017-01-02 08:15:27,343 DEBUG [keystoneauth.session][GreenThread-5] Request returned failure status: 401
2017-01-02 08:15:27,345 INFO [keystonemiddleware.auth_token][GreenThread-5] Identity server rejected authorization
2017-01-02 08:15:27,346 WARNING [keystonemiddleware.auth_token][GreenThread-5] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
2017-01-02 08:15:27,346 INFO [keystonemiddleware.auth_token][GreenThread-5] Retrying validation
2017-01-02 08:15:27,347 DEBUG [keystoneauth.identity.v2][GreenThread-5] Making authentication request to http://127.0.0.1:35357/v2.0/tokens
2017-01-02 08:15:27,535 DEBUG [requests.packages.urllib3.connectionpool][GreenThread-5] "POST /v2.0/tokens HTTP/1.1" 401 114
2017-01-02 08:15:27,536 DEBUG [keystoneauth.session][GreenThread-5] Request returned failure status: 401
2017-01-02 08:15:27,536 INFO [keystonemiddleware.auth_token][GreenThread-5] Identity server rejected authorization
2017-01-02 08:15:27,536 WARNING [keystonemiddleware.auth_token][GreenThread-5] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
2017-01-02 08:15:27,536 CRITICAL [keystonemiddleware.auth_token][GreenThread-5] Unable to validate token: Identity server rejected authorization necessary to fetch token data
2017-01-02 08:15:27,539 DEBUG [gunicorn.error][GreenThread-5] Closing connection.


Further the AUTH_URL is set
ubuntu at monasca:/var/log/monasca/api$ echo $OS_AUTH_URL
http://127.0.0.1:35357/v3/

I would like to mention the status of services:
ubuntu at monasca:~$ sudo service monasca-log-api status
monasca-log-api start/running, process 7938

ubuntu at monasca:~$ sudo service monasca-api status
monasca-api start/running, process 21465

ubuntu at monasca:~/devstack$ keystone service list
Ignoring domain related config project_domain_name because identity API version is 2.0
Ignoring domain related config user_domain_name because identity API version is 2.0
Ignoring domain related config project_domain_name because identity API version is 2.0
Ignoring domain related config user_domain_name because identity API version is 2.0
Ignoring domain related config project_domain_name because identity API version is 2.0
Ignoring domain related config user_domain_name because identity API version is 2.0
+----------------------------------+-------------+----------------+
| ID                               | Name        | Type           |
+----------------------------------+-------------+----------------+
| 301f29e503c845828ce4a24d61924ded | cinderv3    | volumev3       |
| 36ee63e1df644d4780cc2f16e93bc379 | monasca     | monitoring     |
| 448e665048314cc2af41bbfc99bdf7af | cinderv2    | volumev2       |
| 68db6f5f85be4007b0c6550b3fd8468e | neutron     | network        |
| 7b9313963b094fa0986016adbd6b92fd | cinder      | volume         |
| 7fccd72315ba4f6cbd400274054a5c88 | keystone    | identity       |
| 8cd5c25a911e468797bad4d709ff1adf | glance      | image          |
| b4c2a0986f674a93b7636d18ef4e81cb | nova        | compute        |
| f19e24d3633141c4892d10cdead98f20 | nova_legacy | compute_legacy |
+----------------------------------+-------------+----------------+

Please let me know how I can fix this issue. I want to use monasca logging service for my openstack environment.
Thanks in advance.



--Sanjana





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170104/9bfe092d/attachment.html>


More information about the OpenStack-dev mailing list