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 <[email protected]<mailto:[email protected]>> Reply-To: "OpenStack Development Mailing List (not for usage questions)" <[email protected]<mailto:[email protected]>> Date: Monday, January 2, 2017 at 1:48 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> 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@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@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@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@monasca:~$ sudo service monasca-log-api status monasca-log-api start/running, process 7938 ubuntu@monasca:~$ sudo service monasca-api status monasca-api start/running, process 21465 ubuntu@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
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: [email protected]?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
