<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Hello zhihao , </div>
<div>I am barely new about openstack :)) however I saw  almost same problem im my test env. </div>
<div>I remember that i entered wrong http address in , </div>
<div>Keystone endpoint-create . </div>
<div><br>
</div>
<div>Would you check </div>
<div>keystone endpoint-list   </div>
<div>And http addresses </div>
<div>Hakan .</div>
<div><br>
</div>
<div><br>
</div>
<!-- originalMessage -->
<div>-------- Original message --------</div>
<div>From: zhihao wang <wangzhihaocom@hotmail.com> </div>
<div>Date: 10/07/2016 01:33 (GMT+02:00) </div>
<div>To: Turbo Fredriksson <turbo@bayour.com>, OpenStack Mailing List <openstack@lists.openstack.org>
</div>
<div>Subject: Re: [Openstack] Quesion about Openstack Magnum </div>
<div><br>
</div>
<style>
<!--
.x_hmmessage 
        {margin:0px;
        padding:0px}
body.x_hmmessage
        {font-size:12pt;
        font-family:Calibri}
-->
</style>
<div class="x_hmmessage">
<div dir="ltr">
<div><font color="#8c0095">Hi openstack member</font></div>
<div><font color="#8c0095"><br>
</font></div>
<div><font color="#8c0095">May I ask some question about Magnum:</font></div>
<div><font color="#8c0095"><br>
</font></div>
<div>
<div>I installed Magnum on my Mitaka openstack,(1 controller, 2 compute nodes), all ubuntu 14.04</div>
<div><br>
</div>
<div>
<div>root@controller:~# magnum --version</div>
<div>2.1.1</div>
<div>root@controller:~# </div>
</div>
<div><br>
</div>
<div>when I run this command,  it return error,</div>
<div><br>
</div>
<div>:~# magnum --debug service-list</div>
<div>
<div><br>
</div>
<div>Return error below:</div>
</div>
</div>
<div><font color="#8c0095"><br>
</font></div>
<div><font color="#8c0095">1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "e19f44a3a172405280a66f16ef959b4d"}], "type": "cloudformation", "id": "b5788e7efb994957b519a434425dd6b9", "name": "heat-cfn"}, {"endpoints": [{"url":
 "http://controller:8774/v2.1/d6db96ca29594b4484d088f4323d5e92", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "1b7ce295d295455bb7fcf9f9a004d475"}, {"url": "http://controller:8774/v2.1/d6db96ca29594b4484d088f4323d5e92", "interface":
 "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "3d24493855c741ccb5a9ad2bc1cd5923"}, {"url": "http://controller:8774/v2.1/d6db96ca29594b4484d088f4323d5e92", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "bc70665e12a04ae2abcebeb5dd2af5e0"}],
 "type": "compute", "id": "c55d92a3ae794e7b9dcef1cc43cc69aa", "name": "nova"}, {"endpoints": [{"url": "http://controller:5000/v3", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "9487e203bba8428ca8ac428174ef6d7d"}, {"url": "http://controller:5000/v3",
 "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "95063ab0451d42e4a5b3793854ce5ba9"}, {"url": "http://controller:35357/v3", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "ea259ce1e48a4d4a8c3237f17c15ec9b"}],
 "type": "identity", "id": "dd1d703ef482499d8050cdb46cacc94f", "name": "keystone"}, {"endpoints": [{"url": "http://controller:8042", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "1f1d9d9d8d344ac6855409758e52f163"}, {"url": "http://controller:8042",
 "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "74a7360d6de04c67beae3722e9da9b76"}, {"url": "http://controller:8042", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "aa1f5a21b4b24b4a8c1d5b26bb60fcc6"}],
 "type": "alarming", "id": "e725e37c3b664c24a86641a70c7bd755", "name": "aodh"}, {"endpoints": [{"url": "http://controller:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "59644ca42da54b9db21b4f3417983e3e"}, {"url": "http://controller:9292",
 "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "f7520560a106411d9ffbc70ee8d0f20a"}, {"url": "http://controller:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "f78dcd29efca4d77abfdd695e24d4b2f"}],
 "type": "image", "id": "ee3c8188b308452eba5dcdf6ce43919e", "name": "glance"}], "user": {"domain": {"id": "969d9e6600ba48e9bccea230bdc87863", "name": "default"}, "id": "1928fffbe6fb40c394018c38535e1955", "name": "admin"}, "audit_ids": ["ngTj6FqcSCG8MWkcJvpsyA"],
 "issued_at": "2016-07-09T22:14:05.000000Z"}}</font></div>
<div><font color="#8c0095">DEBUG (session:329) REQ: curl -g -i -X GET http://controller:9511/v1/mservices -H "User-Agent: magnum keystoneauth1/2.9.0 python-requests/2.10.0 CPython/2.7.6" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token:
 {SHA1}bfded5e8d86e6ff4779b48afe2d8bb72bd5964c1"</font></div>
<div><font color="#8c0095">INFO (connectionpool:213) Starting new HTTP connection (1): controller</font></div>
<div><font color="#8c0095">DEBUG (connectionpool:395) "GET /v1/mservices HTTP/1.1" 503 170</font></div>
<div><font color="#d24726">DEBUG (session:358) RESP: [503] Date: Sat, 09 Jul 2016 22:14:06 GMT Server: WSGIServer/0.1 Python/2.7.6 Content-Length: 170 Content-Type: application/json; charset=UTF-8 x-openstack-request-id: req-4f94ffd5-132f-40e9-9176-ca22a860b2b8 </font></div>
<div><font color="#d24726">RESP BODY: {"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"}</font></div>
<div><font color="#8c0095"><br>
</font></div>
<div><font color="#8c0095">DEBUG (shell:609) 'errors'</font></div>
<div><font color="#8c0095">Traceback (most recent call last):</font></div>
<div><font color="#8c0095">  File "/usr/local/lib/python2.7/dist-packages/magnumclient/shell.py", line 606, in main</font></div>
<div><font color="#8c0095">    OpenStackMagnumShell().main(map(encodeutils.safe_decode, sys.argv[1:]))</font></div>
<div><font color="#8c0095">  File "/usr/local/lib/python2.7/dist-packages/magnumclient/shell.py", line 548, in main</font></div>
<div><font color="#8c0095">    args.func(self.cs, args)</font></div>
<div><font color="#8c0095">  File "/usr/local/lib/python2.7/dist-packages</font></div>
<div><font color="#8c0095">/magnumclient/v1/mservices_shell.py", line 22, in do_service_list</font></div>
<div><font color="#8c0095">    mservices = cs.mservices.list()</font></div>
<div><font color="#8c0095">  File "/usr/local/lib/python2.7/dist-packages/magnumclient/v1/mservices.py", line 68, in list</font></div>
<div><font color="#8c0095">    return self._list(self._path(path), "mservices")</font></div>
<div><font color="#8c0095">  File "/usr/local/lib/python2.7/dist-packages/magnumclient/common/base.py", line 121, in _list</font></div>
<div><font color="#8c0095">    resp, body = self.api.json_request('GET', url)</font></div>
<div><font color="#8c0095">  File "/usr/local/lib/python2.7/dist-packages/magnumclient/common/httpclient.py", line 343, in json_request</font></div>
<div><font color="#8c0095">    resp = self._http_request(url, method, **kwargs)</font></div>
<div><font color="#8c0095">  File "/usr/local/lib/python2.7/dist-packages/magnumclient/common/httpclient.py", line 323, in _http_request</font></div>
<div><font color="#8c0095">    error_json = _extract_error_json(resp.content)</font></div>
<div><font color="#8c0095">  File "/usr/local/lib/python2.7/dist-packages/magnumclient/common/httpclient.py", line 48, in _extract_error_json</font></div>
<div><font color="#8c0095">    error_body = body_json['errors'][0]</font></div>
<div><font color="#8c0095">KeyError: 'errors'</font></div>
<div><font color="#8c0095">ERROR: 'errors'</font></div>
<div><font color="#8c0095">root@controller:~# </font></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
>From the magnum-api.log
<div><br>
</div>
<div>
<div>
<div><font color="#8c0095">2016-07-09 14:51:46.440 12425 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}</font></div>
<div><font color="#8c0095">2016-07-09 14:51:46.461 12425 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}</font></div>
<div><font color="#8c0095">2016-07-09 14:51:46.462 12425 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data</font></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Any one knows what is wrong and how to fix this?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks a lot</div>
<div>wally</div>
<div><br>
</div>
<div><br>
</div>
<div>
<hr id="x_stopSpelling">
From: wangzhihaocom@hotmail.com<br>
To: turbo@bayour.com; openstack@lists.openstack.org<br>
Subject: RE: [Openstack] Quesion about Openstack Magnum<br>
Date: Sat, 9 Jul 2016 21:59:57 +0000<br>
<br>
<style>
<!--
.x_ExternalClass .x_ecxhmmessage 
        {padding:0px}
.x_ExternalClass body.x_ecxhmmessage
        {font-size:12pt;
        font-family:Calibri}
-->
</style>
<div dir="ltr">Hi, I got it working, just some mistake in the magnum.conf file
<div><br>
</div>
<div>But I got another  problem.</div>
<div><br>
</div>
<div>when I run the command,  it return error,</div>
<div><br>
</div>
<div>
<div>:~# magnum --debug service-list</div>
</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div>2016-07-09 14:51:46.440 12425 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}</div>
<div>2016-07-09 14:51:46.461 12425 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}</div>
<div>2016-07-09 14:51:46.462 12425 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data</div>
</div>
<div><br>
</div>
<div>Do you know what is wrong?</div>
<div>Any one knows how to fix this?</div>
<div><br>
</div>
<div>thanks</div>
<div>wally</div>
<div><br>
</div>
<div><br>
<div>> From: turbo@bayour.com<br>
> Date: Tue, 5 Jul 2016 20:12:37 +0100<br>
> To: openstack@lists.openstack.org<br>
> Subject: Re: [Openstack] Quesion about Openstack Magnum<br>
> <br>
> Please provide the output of the following command:<br>
> <br>
> egrep '^\[|^[a-z]' /etc/magnum/magnum.conf<br>
> --<br>
> Att inse sin egen betydelse är som att få ett kvalster att<br>
> fatta att han bara syns i mikroskop<br>
> - Arne Anka<br>
> <br>
> <br>
> _______________________________________________<br>
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack<br>
> Post to : openstack@lists.openstack.org<br>
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>