<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IN" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a clean install of monasca-api and monasca-log-management plugins with devstack on ubuntu 14.04.<o:p></o:p></p>
<p class="MsoNormal">However when I try using the monasca CLI, I get HTTP 503:Service Unavailable error.<o:p></o:p></p>
<p class="MsoNormal">I tried accessing the monasca dashboard in Horizon, but that also throws error.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ubuntu@monasca:~$ monasca metric-list<o:p></o:p></p>
<p class="MsoNormal">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"}<o:p></o:p></p>
<p class="MsoNormal">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"}<o:p></o:p></p>
<p class="MsoNormal">ubuntu@monasca:~$<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The monasca-api log file has the following contents:<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:20,158 DEBUG [gunicorn.error][GreenThread-2] Closing connection.<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:24,952 DEBUG [gunicorn.error][GreenThread-5] GET /v2.0/metrics<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:24,954 DEBUG [keystonemiddleware.auth_token][GreenThread-5] Authenticating user token<o:p></o:p></p>
<p class="MsoNormal">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<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:24,964 INFO [requests.packages.urllib3.connectionpool][GreenThread-5] Resetting dropped connection: 127.0.0.1<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:27,342 DEBUG [requests.packages.urllib3.connectionpool][GreenThread-5] "POST /v2.0/tokens HTTP/1.1" 401 114<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:27,343 DEBUG [keystoneauth.session][GreenThread-5] Request returned failure status: 401<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:27,345 INFO [keystonemiddleware.auth_token][GreenThread-5] Identity server rejected authorization<o:p></o:p></p>
<p class="MsoNormal">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"}}<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:27,346 INFO [keystonemiddleware.auth_token][GreenThread-5] Retrying validation<o:p></o:p></p>
<p class="MsoNormal">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<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:27,535 DEBUG [requests.packages.urllib3.connectionpool][GreenThread-5] "POST /v2.0/tokens HTTP/1.1" 401 114<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:27,536 DEBUG [keystoneauth.session][GreenThread-5] Request returned failure status: 401<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:27,536 INFO [keystonemiddleware.auth_token][GreenThread-5] Identity server rejected authorization<o:p></o:p></p>
<p class="MsoNormal">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"}}<o:p></o:p></p>
<p class="MsoNormal">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<o:p></o:p></p>
<p class="MsoNormal">2017-01-02 08:15:27,539 DEBUG [gunicorn.error][GreenThread-5] Closing connection.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Further the AUTH_URL is set<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">ubuntu@monasca:/var/log/monasca/api$ echo $OS_AUTH_URL<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt"><a href="http://127.0.0.1:35357/v3/">http://127.0.0.1:35357/v3/</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I would like to mention the status of services:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">ubuntu@monasca:~$ sudo service monasca-log-api status<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">monasca-log-api start/running, process 7938<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">ubuntu@monasca:~$ sudo service monasca-api status<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">monasca-api start/running, process 21465<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">ubuntu@monasca:~/devstack$ keystone service list<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">Ignoring domain related config project_domain_name because identity API version is 2.0<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">Ignoring domain related config user_domain_name because identity API version is 2.0<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">Ignoring domain related config project_domain_name because identity API version is 2.0<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">Ignoring domain related config user_domain_name because identity API version is 2.0<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">Ignoring domain related config project_domain_name because identity API version is 2.0<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">Ignoring domain related config user_domain_name because identity API version is 2.0<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">+----------------------------------+-------------+----------------+<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">| ID | Name | Type |<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">+----------------------------------+-------------+----------------+<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">| 301f29e503c845828ce4a24d61924ded | cinderv3 | volumev3 |<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">| 36ee63e1df644d4780cc2f16e93bc379 | monasca | monitoring |<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">| 448e665048314cc2af41bbfc99bdf7af | cinderv2 | volumev2 |<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">| 68db6f5f85be4007b0c6550b3fd8468e | neutron | network |<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">| 7b9313963b094fa0986016adbd6b92fd | cinder | volume |<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">| 7fccd72315ba4f6cbd400274054a5c88 | keystone | identity |<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">| 8cd5c25a911e468797bad4d709ff1adf | glance | image |<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">| b4c2a0986f674a93b7636d18ef4e81cb | nova | compute |<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">| f19e24d3633141c4892d10cdead98f20 | nova_legacy | compute_legacy |<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">+----------------------------------+-------------+----------------+<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Please let me know how I can fix this issue. I want to use monasca logging service for my openstack environment.<o:p></o:p></p>
<p class="MsoNormal">Thanks in advance.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">--Sanjana<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>