Comment 4 for bug 1539351

Revision history for this message
jichenjc (jichenjc) wrote :

confirmed this is not novaclient issue

jichen@devstack1:~$ export OS_USERNAME=alt_demo
jichen@devstack1:~$ keystone token-get
+-----------+----------------------------------+
| Property | Value |
+-----------+----------------------------------+
| expires | 2016-02-05T13:36:26Z |
| id | a1f32eff6ba0404186273510a848cf1b |
| tenant_id | d1c5aa58af6c426492c642eb649017be |
| user_id | fd45d7605c4a4e90b7ce236773c0ed75 |
+-----------+----------------------------------+

jichen@devstack1:~$ curl -g -i -X DELETE http://192.168.122.239:8774/v2/d1c5aa58af6c426492c642eb649017be/servers/ac3b44ec-d576-4edf-8203-50eadd2ca385 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.6" -H "X-Auth-Token: a1f32eff6ba0404186273510a848cf1b"
HTTP/1.1 403 Forbidden
Content-Length: 95
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-44541e26-f3fb-480f-9f32-02cafd43ccf5
Date: Fri, 05 Feb 2016 12:37:13 GMT

{"forbidden": {"message": "Policy doesn't allow compute:delete to be performed.", "code": 403}}jichen@devstack1:~$
jichen@devstack1:~$ curl -g -i -X DELETE http://192.168.122.239:8774/v2.1/d1c5aa58af6c426492c642eb649017be/servers/ac3b44ec-d576-4edf-8203-50eadd2ca385 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.6" -H "X-Auth-Token: a1f32eff6ba0404186273510a848cf1b"
HTTP/1.1 204 No Content
Content-Length: 0
Content-Type: application/json
X-Openstack-Nova-Api-Version: 2.6
Vary: X-OpenStack-Nova-API-Version
X-Compute-Request-Id: req-32583396-07f3-4492-95ef-842f55bc4d5d
Date: Fri, 05 Feb 2016 12:37:22 GMT