Skip to content

Instantly share code, notes, and snippets.

@kunthar
Last active May 24, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunthar/cdd05c9c61711ea94217e135724cce21 to your computer and use it in GitHub Desktop.
Save kunthar/cdd05c9c61711ea94217e135724cce21 to your computer and use it in GitHub Desktop.
openstack project list
+----------------------------------+---------+
| ID | Name |
+----------------------------------+---------+
| 077d2b52bc9e44a0b6d4396149309649 | demo |
| 7db9f9efe47e48e1936510d907dd198f | admin |
| 91fd6f62d8f64338b5e923803f2bd1b5 | ulakbus |
| ebc3e73ea4524a0e95ce776eaaeac79c | service |
+----------------------------------+---------+
root@cl3:/home/ulakbus# nova cloudpipe-create 91fd6f62d8f64338b5e923803f2bd1b5
/usr/lib/python2.7/dist-packages/novaclient/client.py:278: UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in errors in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored.
warnings.warn(msg)
ERROR (Forbidden): Policy doesn't allow os_compute_api:os-cloudpipe to be performed. (HTTP 403) (Request-ID: req-7b9c8315-9326-4367-87a3-f6d9b67504fa)
------ with debug -------
root@cl3:/home/ulakbus# nova --debug cloudpipe-create 91fd6f62d8f64338b5e923803f2bd1b5
DEBUG (extension:180) found extension EntryPoint.parse('v1password = swiftclient.authv1:PasswordLoader')
DEBUG (extension:180) found extension EntryPoint.parse('token_endpoint = openstackclient.api.auth_plugin:TokenEndpoint')
DEBUG (extension:180) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:180) found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1')
DEBUG (extension:180) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:180) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:180) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:180) found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password')
DEBUG (extension:180) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:180) found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken')
DEBUG (extension:180) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:180) found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos')
DEBUG (extension:180) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:180) found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials')
DEBUG (extension:180) found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth')
DEBUG (extension:180) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:180) found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP')
DEBUG (extension:180) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (extension:180) found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos')
DEBUG (session:347) REQ: curl -g -i -X GET http://10.10.0.11:5000/v3 -H "Accept: application/json" -H "User-Agent: nova keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
DEBUG (connectionpool:212) Starting new HTTP connection (1): 10.10.0.11
DEBUG (connectionpool:400) http://10.10.0.11:5000 "GET /v3 HTTP/1.1" 200 249
DEBUG (session:395) RESP: [200] Date: Wed, 24 May 2017 14:39:49 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-88eac91f-c426-4985-8ef4-8487172781a3 Content-Length: 249 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
RESP BODY: {"version": {"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.8", "links": [{"href": "http://10.10.0.11:5000/v3/", "rel": "self"}]}}
DEBUG (session:640) GET call to None for http://10.10.0.11:5000/v3 used request id req-88eac91f-c426-4985-8ef4-8487172781a3
DEBUG (base:165) Making authentication request to http://10.10.0.11:5000/v3/auth/tokens
DEBUG (connectionpool:400) http://10.10.0.11:5000 "POST /v3/auth/tokens HTTP/1.1" 201 4748
DEBUG (base:170) {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "5d6417825b8d4739a2e0d28164d49b18", "name": "user"}], "expires_at": "2017-05-24T15:39:49.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "91fd6f62d8f64338b5e923803f2bd1b5", "name": "ulakbus"}, "catalog": [{"endpoints": [{"url": "http://10.10.0.11:8776/v1/91fd6f62d8f64338b5e923803f2bd1b5", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "d1055aed709647eaaa963f0bb302adc4"}, {"url": "http://10.10.0.11:8776/v1/91fd6f62d8f64338b5e923803f2bd1b5", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "f14adedc92d745b5bc632cf260093ee7"}, {"url": "http://10.10.0.11:8776/v1/91fd6f62d8f64338b5e923803f2bd1b5", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "fa9bbf0da63149d9bbfb5d64268d8bb1"}], "type": "volume", "id": "15ac4e3575a544be95273557c314ed52", "name": "cinder"}, {"endpoints": [{"url": "http://10.10.0.11:8774/v2.1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "2af2baaa41114dedaa9eb711b8c75926"}, {"url": "http://10.10.0.11:8774/v2.1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "42c919b633c442709a30d47032e88930"}, {"url": "http://10.10.0.11:8774/v2.1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "a10e863ec76d4368a7975440da028222"}], "type": "compute", "id": "1994f524557a4da2ad3099038f86aa6e", "name": "nova"}, {"endpoints": [{"url": "http://10.10.0.11:5000/v3/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3f4a545089ca4046beb00d8d05016d36"}, {"url": "http://10.10.0.11:35357/v3/", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "82f59198cd044a59b58ca654b4eb3b04"}, {"url": "http://10.10.0.11:5000/v3/", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "cbadd7fca3eb491c98af097f636935a5"}], "type": "identity", "id": "6af3014a13e643eba64c9fe6a55a1e05", "name": "keystone"}, {"endpoints": [{"url": "http://10.10.0.11:8776/v2/91fd6f62d8f64338b5e923803f2bd1b5", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "0e609a4d7b44496e92a0a42e62e1a809"}, {"url": "http://10.10.0.11:8776/v2/91fd6f62d8f64338b5e923803f2bd1b5", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "17e3ac71cbbc4fc8bf64bd8aaf416193"}, {"url": "http://10.10.0.11:8776/v2/91fd6f62d8f64338b5e923803f2bd1b5", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "9a9334df394b4d268681abe3d02026af"}], "type": "volumev2", "id": "b3f1655b394b435a8b94733a1ba70ba2", "name": "cinderv2"}, {"endpoints": [{"url": "http://10.10.0.11:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "139d306e5d7b4ed898014b311310c995"}, {"url": "http://10.10.0.11:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "a46d0e7b1fe94e4d81d00f7fe40a8a09"}, {"url": "http://10.10.0.11:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "e886737468834c50b9b436f59a88933f"}], "type": "network", "id": "c1381b7f2217439d9a596e7c5bff670f", "name": "neutron"}, {"endpoints": [{"url": "http://10.10.0.11:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "1806da4bd49d45d4870172e91a206762"}, {"url": "http://10.10.0.11:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "48e4dcb694cb48c4961f5036c55d7769"}, {"url": "http://10.10.0.11:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "6cdcb450dbb048fba4a710b5ec006ecd"}, {"url": "http://controller:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "ac50ec667c9e4240af2905e3cb0ea01f"}], "type": "image", "id": "d06f402e570f4366b870347a266326c8", "name": "glance"}, {"endpoints": [{"url": "http://10.10.0.11:8778", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "88065dcaa9634e1299cce584e42363e6"}, {"url": "http://10.10.0.11:8778", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a26cd78d20fb47c1a90d3b973b296167"}, {"url": "http://10.10.0.11:8778", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "c034cb304dde4d2a847bfa80d08baf34"}], "type": "placement", "id": "f291405e6d4447199d4c1c99c116cc4e", "name": "placement"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "ulakbus", "id": "028fac36ed63406bb2cff9abf31b2b51"}, "audit_ids": ["B8ooWTvFQEeeFa4QVq2ylw"], "issued_at": "2017-05-24T14:39:49.000000Z"}}
REQ: curl -g -i -X GET http://10.10.0.11:8774/v2.1 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}7aac0a30f03eb98144782185d0cc8250c59615dd"
DEBUG (session:347) REQ: curl -g -i -X GET http://10.10.0.11:8774/v2.1 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}7aac0a30f03eb98144782185d0cc8250c59615dd"
DEBUG (connectionpool:212) Starting new HTTP connection (1): 10.10.0.11
DEBUG (connectionpool:400) http://10.10.0.11:8774 "GET /v2.1 HTTP/1.1" 302 0
RESP: [302] Content-Type: text/plain; charset=utf8 Location: http://10.10.0.11:8774/v2.1/ X-Compute-Request-Id: req-d232556a-576d-417d-9257-fbefef65c66d Content-Length: 0 Date: Wed, 24 May 2017 14:39:49 GMT Connection: keep-alive
RESP BODY: Omitted, Content-Type is set to text/plain; charset=utf8. Only application/json responses have their bodies logged.
DEBUG (session:395) RESP: [302] Content-Type: text/plain; charset=utf8 Location: http://10.10.0.11:8774/v2.1/ X-Compute-Request-Id: req-d232556a-576d-417d-9257-fbefef65c66d Content-Length: 0 Date: Wed, 24 May 2017 14:39:49 GMT Connection: keep-alive
RESP BODY: Omitted, Content-Type is set to text/plain; charset=utf8. Only application/json responses have their bodies logged.
DEBUG (connectionpool:400) http://10.10.0.11:8774 "GET /v2.1/ HTTP/1.1" 200 384
RESP: [200] Content-Length: 384 Content-Type: application/json Openstack-Api-Version: compute 2.1 X-Openstack-Nova-Api-Version: 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-868d8a51-bf4c-4367-997d-5a4c912ba82c Date: Wed, 24 May 2017 14:39:49 GMT Connection: keep-alive
RESP BODY: {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://10.10.0.11:8774/v2.1/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "2.1", "version": "2.42", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}}
DEBUG (session:395) RESP: [200] Content-Length: 384 Content-Type: application/json Openstack-Api-Version: compute 2.1 X-Openstack-Nova-Api-Version: 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-868d8a51-bf4c-4367-997d-5a4c912ba82c Date: Wed, 24 May 2017 14:39:49 GMT Connection: keep-alive
RESP BODY: {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://10.10.0.11:8774/v2.1/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "2.1", "version": "2.42", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}}
GET call to compute for http://10.10.0.11:8774/v2.1/ used request id req-868d8a51-bf4c-4367-997d-5a4c912ba82c
DEBUG (session:640) GET call to compute for http://10.10.0.11:8774/v2.1/ used request id req-868d8a51-bf4c-4367-997d-5a4c912ba82c
DEBUG (extension:180) found extension EntryPoint.parse('v1password = swiftclient.authv1:PasswordLoader')
DEBUG (extension:180) found extension EntryPoint.parse('token_endpoint = openstackclient.api.auth_plugin:TokenEndpoint')
DEBUG (extension:180) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:180) found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1')
DEBUG (extension:180) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:180) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:180) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:180) found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password')
DEBUG (extension:180) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:180) found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken')
DEBUG (extension:180) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:180) found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos')
DEBUG (extension:180) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:180) found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials')
DEBUG (extension:180) found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth')
DEBUG (extension:180) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:180) found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP')
DEBUG (extension:180) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (extension:180) found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos')
/usr/lib/python2.7/dist-packages/novaclient/client.py:278: UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in errors in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored.
warnings.warn(msg)
DEBUG (session:347) REQ: curl -g -i -X POST http://10.10.0.11:8774/v2.1/os-cloudpipe -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "OpenStack-API-Version: compute 2.41" -H "X-OpenStack-Nova-API-Version: 2.41" -H "X-Auth-Token: {SHA1}7aac0a30f03eb98144782185d0cc8250c59615dd" -H "Content-Type: application/json" -d '{"cloudpipe": {"project_id": "91fd6f62d8f64338b5e923803f2bd1b5"}}'
DEBUG (connectionpool:400) http://10.10.0.11:8774 "POST /v2.1/os-cloudpipe HTTP/1.1" 403 108
DEBUG (session:395) RESP: [403] Openstack-Api-Version: compute 2.41 X-Openstack-Nova-Api-Version: 2.41 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version Content-Type: application/json; charset=UTF-8 Content-Length: 108 X-Compute-Request-Id: req-3ef3d1fe-609c-4846-bfc0-69d2df822d6e Date: Wed, 24 May 2017 14:39:50 GMT Connection: keep-alive
RESP BODY: {"forbidden": {"message": "Policy doesn't allow os_compute_api:os-cloudpipe to be performed.", "code": 403}}
DEBUG (session:640) POST call to compute for http://10.10.0.11:8774/v2.1/os-cloudpipe used request id req-3ef3d1fe-609c-4846-bfc0-69d2df822d6e
DEBUG (shell:959) Policy doesn't allow os_compute_api:os-cloudpipe to be performed. (HTTP 403) (Request-ID: req-3ef3d1fe-609c-4846-bfc0-69d2df822d6e)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 957, in main
OpenStackComputeShell().main(argv)
File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 879, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 741, in do_cloudpipe_create
cs.cloudpipe.create(args.project)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/cloudpipe.py", line 46, in create
return_raw=True)
File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 361, in _create
resp, body = self.api.client.post(url, body=body)
File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 223, in post
return self.request(url, 'POST', **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 80, in request
raise exceptions.from_response(resp, body, url, method)
Forbidden: Policy doesn't allow os_compute_api:os-cloudpipe to be performed. (HTTP 403) (Request-ID: req-3ef3d1fe-609c-4846-bfc0-69d2df822d6e)
ERROR (Forbidden): Policy doesn't allow os_compute_api:os-cloudpipe to be performed. (HTTP 403) (Request-ID: req-3ef3d1fe-609c-4846-bfc0-69d2df822d6e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment