Hello zhihao , I am barely new about openstack :)) however I saw almost same
problem im my test env. I remember that i entered wrong http address in ,
Keystone endpoint-create .
Would you check keystone endpoint-list And http addresses Hakan .<div>
</div><div>
</div><!-- originalMessage --><div>-------- Original message
--------</div><div>From: zhihao wang <[email protected]>
</div><div>Date: 10/07/2016 01:33 (GMT+02:00) </div><div>To: Turbo
Fredriksson <[email protected]>, OpenStack Mailing List
<[email protected]> </div><div>Subject: Re: [Openstack] Quesion
about Openstack Magnum </div><div>
</div>
Hi openstack member
May I ask some question about Magnum:
I installed Magnum on my Mitaka openstack,(1 controller, 2 compute nodes), all
ubuntu 14.04
root@controller:~# magnum --version2.1.1root@controller:~#
when I run this command, it return error,
:~# magnum --debug service-list
Return error below:
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"}}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"INFO
(connectionpool:213) Starting new HTTP connection (1): controllerDEBUG
(connectionpool:395) "GET /v1/mservices HTTP/1.1" 503 170DEBUG (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 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"}
DEBUG (shell:609) 'errors'Traceback (most recent call last): File
"/usr/local/lib/python2.7/dist-packages/magnumclient/shell.py", line 606, in
main OpenStackMagnumShell().main(map(encodeutils.safe_decode, sys.argv[1:]))
File "/usr/local/lib/python2.7/dist-packages/magnumclient/shell.py", line 548,
in main args.func(self.cs, args) File
"/usr/local/lib/python2.7/dist-packages/magnumclient/v1/mservices_shell.py",
line 22, in do_service_list mservices = cs.mservices.list() File
"/usr/local/lib/python2.7/dist-packages/magnumclient/v1/mservices.py", line 68,
in list return self._list(self._path(path), "mservices") File
"/usr/local/lib/python2.7/dist-packages/magnumclient/common/base.py", line 121,
in _list resp, body = self.api.json_request('GET', url) File
"/usr/local/lib/python2.7/dist-packages/magnumclient/common/httpclient.py",
line 343, in json_request resp = self._http_request(url, method, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/magnumclient/common/httpclient.py",
line 323, in _http_request error_json = _extract_error_json(resp.content)
File
"/usr/local/lib/python2.7/dist-packages/magnumclient/common/httpclient.py",
line 48, in _extract_error_json error_body = body_json['errors'][0]KeyError:
'errors'ERROR: 'errors'root@controller:~#
>From the magnum-api.log
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"}}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"}}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
Any one knows what is wrong and how to fix this?
Thanks a lotwally
From: [email protected]
To: [email protected]; [email protected]
Subject: RE: [Openstack] Quesion about Openstack Magnum
Date: Sat, 9 Jul 2016 21:59:57 +0000
Hi, I got it working, just some mistake in the magnum.conf file
But I got another problem.
when I run the command, it return error,
:~# magnum --debug service-list
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"}}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"}}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
Do you know what is wrong?Any one knows how to fix this?
thankswally
> From: [email protected]
> Date: Tue, 5 Jul 2016 20:12:37 +0100
> To: [email protected]
> Subject: Re: [Openstack] Quesion about Openstack Magnum
>
> Please provide the output of the following command:
>
> egrep '^\[|^[a-z]' /etc/magnum/magnum.conf
> --
> Att inse sin egen betydelse är som att få ett kvalster att
> fatta att han bara syns i mikroskop
> - Arne Anka
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : [email protected]
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack