I cannot create stack: ERROR: Remote error: AuthorizationFailure Authorization failed: The resource could not be found. (HTTP 404)

asked 2016-03-06 08:24:18 -0600

nuruddin gravatar image

Hi,

I cannot create stack, it gives me "ERROR: Remote error: AuthorizationFailure Authorization failed: The resource could not be found. (HTTP 404) (Request-ID: req-3db01d01-45ed-476e-b701-729fc7122dd3) (HTTP 404) [u'"

Please find detail below and help:

######################Debug info

[root@testopenstack ~(keystone_admin)]# heat --debug stack-create my_first_stack -f testheat.yaml DEBUG (session) REQ: curl -g -i -X GET http://192.168.174.81:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" INFO (connectionpool) Starting new HTTP connection (1): 192.168.174.81 DEBUG (connectionpool) "GET /v2.0 HTTP/1.1" 200 340 DEBUG (session) RESP: [200] content-length: 340 vary: X-Auth-Token server: Apache/2.4.6 (Red Hat Enterprise Linux) connection: close date: Sat, 05 Mar 2016 16:00:39 GMT content-type: application/json x-openstack-request-id: req-041a0060-9e6a-47d2-9310-e82a9fdbd41e RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.174.81:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG (v2) Making authentication request to http://192.168.174.81:5000/v2.0/tokens INFO (connectionpool) Resetting dropped connection: 192.168.174.81 DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 4699 DEBUG (session) REQ: curl -g -i -X POST http://192.168.174.81:8004/v1/ac9ac8bf7c21483bb8d29bbbf85edd1d/stacks (http://192.168.174.81:8004/v1/ac9ac8b...) -H "Accept: application/json" -H "X-Auth-Token: {SHA1}afde196d1d2d99f64a383f04669284d9347e7718" -H "X-Region-Name: RegionOne" -H "X-Auth-Key: 2683e3998eee472e" -H "X-Auth-User: admin" -H "User-Agent: python-heatclient" -H "Content-Type: application/json" -H "X-Auth-Url: http://192.168.174.81:5000/v2.0%22 (http://192.168.174.81:5000/v2.0") -d '{"files": {}, "disable_rollback": true, "parameters": {}, "stack_name": "my_first_stack", "environment": {}, "template": {"heat_template_version": "2013-05-23", "description": "Simple template to deploy a single compute instance", "resources": {"ol65": {"type": "OS::Nova::Server", "properties": {"image": "ol65", "flavor": "m1.micro", "networks": [{"network": "N1"}]}}}}}' INFO (connectionpool) Starting new HTTP connection (1): 192.168.174.81 DEBUG (connectionpool) "POST /v1/ac9ac8bf7c21483bb8d29bbbf85edd1d/stacks HTTP/1.1" 500 387 DEBUG (session) RESP: Traceback (most recent call last): File "/usr/bin/heat", line 10, in sys.exit(main()) File "/usr/lib/python2.7/site-packages/heatclient/shell.py", line 705, in main HeatShell().main(args) File "/usr/lib/python2.7/site-packages/heatclient/shell.py", line 655, in main args.func(client, args) File "/usr/lib/python2.7/site-packages/heatclient/v1/shell.py", line 126, in do_stack_create hc.stacks.create(*fields) File "/usr/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 134, in create data=kwargs, headers=headers) File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 265, in json_request resp = self._http_request(url, method, *kwargs) File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 363, in _http_request raise exc.from_response(resp) heatclient.exc.HTTPInternalServerError: ERROR: Remote error: AuthorizationFailure Authorization failed: The resource could not be found. (HTTP 404) (Request-ID: req-3db01d01-45ed-476e-b701-729fc7122dd3) (HTTP 404) [u'

################Heat Configuration

[root@testopenstack ~(keystone_admin)]# cat /etc/heat/heat.conf [DEFAULT] sql_connection = mysql://heat:heat@localhost/heat

stack_domain_admin_password = heat

stack_domain_admin = heat_domain_admin

stack_user_domain = 1651cdd5b9d148cd9317c414d53e6f50

heat_metadata_server_url = http://192 ... (more)

edit retag flag offensive close merge delete