heat api- Access was denied to this resource
Hi, I have a packstack newton 1 node setup with heat enabled. I am using the admin user & project for stack creation & query.
I am able to create VM using 'openstack stack create' command though when trying to list the stack using heat API i am getting 403 error 'Access was denied to this resource' .
curl http://$openstackIP:8004
{
"versions": [
{
"status": "CURRENT",
"id": "v1.0",
"links": [
{
"href": "http://<openstackIP>:8004/v1/",
"rel": "self"
}
]
}
]
}
curl -H "Content-Type: application/json" -H "X-Auth-Token: 39915fd331764a0694f9e0c46a8621ab" http://$openstackIP:8004/v1/caea646b56d84f54b2e7dd5ddd1ddd94/build_info
{
"code": 403,
"error": {
"message": "Access was denied to this resource.",
"traceback": null,
"type": "HTTPForbidden"
},
"explanation": "Access was denied to this resource.",
"title": "Forbidden"
}
openstack stack create -t cirros_updated.yaml -e env.yaml stack_dev
+---------------------+-----------------------------------------------------+
| Field | Value |
+---------------------+-----------------------------------------------------+
| id | d1dc541d-12e5-47cb-a865-3e0cc12e35b5 |
| stack_name | stack_dev |
| description | Simple template to deploy a single compute instance |
| creation_time | 2017-06-14T11:23:13Z |
| updated_time | None |
| stack_status | CREATE_IN_PROGRESS |
| stack_status_reason | Stack CREATE started |
+---------------------+-----------------------------------------------------+
Do i need to setup some user permissions for accessing HEAT API or make changes to any changes to policy.json
Regards, Dev
Is your tenant ID really
caea6localhost:2e7dd5ddd1ddd94
?@zaneb it was a typo error. Corrected it