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
confirmed this is not novaclient issue
jichen@devstack1:~$ export OS_USERNAME= alt_demo -----+- ------- ------- ------- ------- -----+ -----+- ------- ------- ------- ------- -----+ 05T13:36: 26Z | 186273510a848cf 1b | 492c642eb649017 be | 0b7ce236773c0ed 75 | -----+- ------- ------- ------- ------- -----+
jichen@devstack1:~$ keystone token-get
+------
| Property | Value |
+------
| expires | 2016-02-
| id | a1f32eff6ba0404
| tenant_id | d1c5aa58af6c426
| user_id | fd45d7605c4a4e9
+------
jichen@devstack1:~$ curl -g -i -X DELETE http:// 192.168. 122.239: 8774/v2/ d1c5aa58af6c426 492c642eb649017 be/servers/ ac3b44ec- d576-4edf- 8203-50eadd2ca3 85 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack- Nova-API- Version: 2.6" -H "X-Auth-Token: a1f32eff6ba0404 186273510a848cf 1b" Request- Id: req-44541e26- f3fb-480f- 9f32-02cafd43cc f5
HTTP/1.1 403 Forbidden
Content-Length: 95
Content-Type: application/json; charset=UTF-8
X-Compute-
Date: Fri, 05 Feb 2016 12:37:13 GMT
{"forbidden": {"message": "Policy doesn't allow compute:delete to be performed.", "code": 403}}jichen@ devstack1: ~$ 192.168. 122.239: 8774/v2. 1/d1c5aa58af6c4 26492c642eb6490 17be/servers/ ac3b44ec- d576-4edf- 8203-50eadd2ca3 85 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack- Nova-API- Version: 2.6" -H "X-Auth-Token: a1f32eff6ba0404 186273510a848cf 1b" Nova-Api- Version: 2.6 Nova-API- Version Request- Id: req-32583396- 07f3-4492- 95ef-842f55bc4d 5d
jichen@devstack1:~$ curl -g -i -X DELETE http://
HTTP/1.1 204 No Content
Content-Length: 0
Content-Type: application/json
X-Openstack-
Vary: X-OpenStack-
X-Compute-
Date: Fri, 05 Feb 2016 12:37:22 GMT