Issue in Heat API usage [closed]

asked 2017-06-15 04:10:30 -0500

Deven gravatar image

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/caea6localhost:2e7dd5ddd1ddd94/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

Please note the heat policy.json file i have updated as per below.

Initially

"events:show": "rule:deny_stack_user",

After update

"events:show": "rule:context_is_admin"

Regards, Dev

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by zaneb
close date 2017-06-15 10:51:10.355360

Comments

zaneb gravatar imagezaneb ( 2017-06-15 10:51:23 -0500 )edit