ERROR: Not Authorized

Bug #1619375 reported by Ahmed on 2016-09-01
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-magnumclient
Undecided
Unassigned

Bug Description

Openstack Mitaka

Package :

Available Packages
Name : python-magnumclient
Arch : noarch
Version : 2.0.0
Release : 7_cm7.3
Size : 105 k
Repo : cm-rhel7-7.3
Summary : Client library for Magnum API
URL : https://launchpad.net/python-magnumclient
License : ASL 2.0
Description : This is a client library for Magnum built on the Magnum API.
            : It provides a Python API (the magnumclient module) and a
            : command-line tool (magnum).

Output :

magnum --debug service-list
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCrede
ntials')
DEBUG (extension:157) found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos')
DEBUG (session:337) REQ: curl -g -i -X GET http://ahmed-cluster.brightcomputing.com:5000/v3 -H "Accept: application/json" -H "User-Agent: magnum keys
toneauth1/2.12.1 python-requests/2.11.1 CPython/2.7.5"
INFO (connectionpool:214) Starting new HTTP connection (1): ahmed-cluster.brightcomputing.com
DEBUG (connectionpool:401) "GET /v3 HTTP/1.1" 200 272
DEBUG (session:366) RESP: [200] Vary: X-Auth-Token Content-Type: application/json Content-Length: 272 X-Openstack-Request-Id: req-cf1b19d0-30b8-47ec-
b5cc-aec66fa1ca59 Date: Thu, 01 Sep 2016 16:10:39 GMT Connection: keep-alive
RESP BODY: {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.
openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://ahmed-cluster.brightcomputing.com:5000/v3/", "rel": "self"}]}}

DEBUG (base:165) Making authentication request to http://ahmed-cluster.brightcomputing.com:5000/v3/auth/tokens
DEBUG (connectionpool:401) "POST /v3/auth/tokens HTTP/1.1" 201 6434
DEBUG (base:170) {"token": {"methods": ["password"], "roles": [{"id": "be950dcaa7dd4f8682cc2209a78f5558", "name": "admin"}, {"id": "da2c01b27346417ca
6a0d39dd1f91fae", "name": "heat_stack_owner"}], "expires_at": "2016-09-01T20:10:39.628744Z", "project": {"domain": {"id": "c365e2b42fe044528ce2e3ae3b
b5518b", "name": "default"}, "id": "bb36b7543ddf4ede917f59ab4ca83d43", "name": "bright"}, "catalog": [{"endpoints": [{"url": "http://ahmed-cluster.br
ightcomputing.com:8004/v1/bb36b7543ddf4ede917f59ab4ca83d43", "interface": "public", "region": "defaultRegion", "region_id": "defaultRegion", "id": "1
6d2621a41684227bcec0fe703f15af0"}, {"url": "http://master:8004/v1/bb36b7543ddf4ede917f59ab4ca83d43", "interface": "internal", "region": "defaultRegio
n", "region_id": "defaultRegion", "id": "240b4724eaf94a8ab90a12aaf9e6503e"}, {"url": "http://master:8004/v1/bb36b7543ddf4ede917f59ab4ca83d43", "inter
face": "admin", "region": "defaultRegion", "region_id": "defaultRegion", "id": "d6866fb8bb7e484e9e740e3648c2709b"}], "type": "orchestration", "id": "
0519e8d5503e4cc1a13445ce2144b2a8", "name": "heat"}, {"endpoints": [], "type": "testType", "id": "0daf6c4cafd54916867290b228f689dd", "name": "testServ
ice"}, {"endpoints": [{"url": "http://ahmed-cluster.brightcomputing.com:9090/swift/v1", "interface": "public", "region": "defaultRegion", "region_id"
: "defaultRegion", "id": "2b31fca9f90c4139ae7361f7648e8d5b"}, {"url": "http://master:9090/swift/v1", "interface": "internal", "region": "defaultRegio
n", "region_id": "defaultRegion", "id": "52597dc349fa4287920e84a2819c6299"}, {"url": "http://master:9090/swift/v1", "interface": "admin", "region": "
defaultRegion", "region_id": "defaultRegion", "id": "dc6ccc0b478f4bb78305b661bde5d65e"}], "type": "object-store", "id": "3eacd9c0e81b4303b5a30a2fe8b6
5594", "name": "swift"}, {"endpoints": [{"url": "http://ahmed-cluster.brightcomputing.com:5000/v3", "interface": "public", "region": "defaultRegion",
 "region_id": "defaultRegion", "id": "8445ce927a4343c6ada6259302637f40"}, {"url": "http://master:35357/v3", "interface": "admin", "region": "defaultR
egion", "region_id": "defaultRegion", "id": "bae3bed53b1545ffa60f54895dc72a72"}, {"url": "http://master:5000/v3", "interface": "internal", "region":
"defaultRegion", "region_id": "defaultRegion", "id": "e7ef5ef4a2924789879e248b6cec98eb"}], "type": "identity", "id": "56a9170b373c4da4949986f47db9109
ice"}, {"endpoints": [{"url": "http://ahmed-cluster.brightcomputing.com:9090/swift/v1", "interface": "public", "region": "defaultRegion", "region_id"
: "defaultRegion", "id": "2b31fca9f90c4139ae7361f7648e8d5b"}, {"url": "http://master:9090/swift/v1", "interface": "internal", "region": "defaultRegio
n", "region_id": "defaultRegion", "id": "52597dc349fa4287920e84a2819c6299"}, {"url": "http://master:9090/swift/v1", "interface": "admin", "region": "
defaultRegion", "region_id": "defaultRegion", "id": "dc6ccc0b478f4bb78305b661bde5d65e"}], "type": "object-store", "id": "3eacd9c0e81b4303b5a30a2fe8b6
5594", "name": "swift"}, {"endpoints": [{"url": "http://ahmed-cluster.brightcomputing.com:5000/v3", "interface": "public", "region": "defaultRegion",
 "region_id": "defaultRegion", "id": "8445ce927a4343c6ada6259302637f40"}, {"url": "http://master:35357/v3", "interface": "admin", "region": "defaultR
egion", "region_id": "defaultRegion", "id": "bae3bed53b1545ffa60f54895dc72a72"}, {"url": "http://master:5000/v3", "interface": "internal", "region":
"defaultRegion", "region_id": "defaultRegion", "id": "e7ef5ef4a2924789879e248b6cec98eb"}], "type": "identity", "id": "56a9170b373c4da4949986f47db9109
b", "name": "keystone"}, {"endpoints": [{"url": "http://ahmed-cluster.brightcomputing.com:8776/v1/bb36b7543ddf4ede917f59ab4ca83d43", "interface": "pu
blic", "region": "defaultRegion", "region_id": "defaultRegion", "id": "21f828ad92734c3880e6c7f5c2cee90e"}, {"url": "http://master:8776/v1/bb36b7543dd
f4ede917f59ab4ca83d43", "interface": "internal", "region": "defaultRegion", "region_id": "defaultRegion", "id": "2e936be68107407dac1c72bca9cb0692"},
{"url": "http://master:8776/v1/bb36b7543ddf4ede917f59ab4ca83d43", "interface": "admin", "region": "defaultRegion", "region_id": "defaultRegion", "id"
: "d63e8a95855a43789d2a8fd345ab3fff"}], "type": "volume", "id": "777ef51e2d2740baaac8eb684a9e71be", "name": "cinder"}, {"endpoints": [{"url": "http:/
/master:8774/v2/bb36b7543ddf4ede917f59ab4ca83d43", "interface": "admin", "region": "defaultRegion", "region_id": "defaultRegion", "id": "232e2af61a87
4a11944c5826f8b8aac8"}, {"url": "http://master:8774/v2/bb36b7543ddf4ede917f59ab4ca83d43", "interface": "internal", "region": "defaultRegion", "region
ultRegion", "region_id": "defaultRegion", "id": "1648e023fd37450ca74fc2371eb819a0"}, {"url": "http://master:9511/v1", "interface": "admin", "region":
 "defaultRegion", "region_id": "defaultRegion", "id": "33c8848614d542adb1fbe2857f379d76"}], "type": "container-infra", "id": "86ab4c90180b48f5a6437a6
e18961243", "name": "magnum"}, {"endpoints": [{"url": "http://master:9292", "interface": "admin", "region": "defaultRegion", "region_id": "defaultReg
ion", "id": "40ab0c81652948d9b455ea8486d96dfe"}, {"url": "http://master:9292", "interface": "internal", "region": "defaultRegion", "region_id": "defa
ultRegion", "id": "cfab606dab7e479e84e00fc7caa25e18"}, {"url": "http://ahmed-cluster.brightcomputing.com:9292", "interface": "public", "region": "def
aultRegion", "region_id": "defaultRegion", "id": "ead910eea3324901bbeaa374a941bfe1"}], "type": "image", "id": "8f2e05a64997417a9151b2262e3ff039", "na
me": "glance"}, {"endpoints": [{"url": "http://ahmed-cluster.brightcomputing.com:8776/v2/bb36b7543ddf4ede917f59ab4ca83d43", "interface": "public", "r
egion": "defaultRegion", "region_id": "defaultRegion", "id": "18deead1fa214af1b1464d78ef21feda"}, {"url": "http://master:8776/v2/bb36b7543ddf4ede917f
59ab4ca83d43", "interface": "internal", "region": "defaultRegion", "region_id": "defaultRegion", "id": "8b4769f197484452ba3e5242400ac151"}, {"url": "
http://master:8776/v2/bb36b7543ddf4ede917f59ab4ca83d43", "interface": "admin", "region": "defaultRegion", "region_id": "defaultRegion", "id": "b1bcf9
d98b424bd898671357dc66668f"}], "type": "volumev2", "id": "b5a086fe1c514da9bc73e89aa3635a6f", "name": "cinderv2"}], "user": {"domain": {"id": "c365e2b
42fe044528ce2e3ae3bb5518b", "name": "default"}, "id": "ead7a6fc5d6040d68adccff12957e1ca", "name": "admin"}, "audit_ids": ["j8ruVaRgRB6L57BUsR4mJg"],
"issued_at": "2016-09-01T16:10:39.628774Z"}}
DEBUG (shell:629) Not Authorized
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/magnumclient/shell.py", line 626, in main
    OpenStackMagnumShell().main(map(encodeutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/magnumclient/shell.py", line 566, in main
    insecure=insecure)
  File "/usr/lib/python2.7/site-packages/magnumclient/v1/client.py", line 101, in __init__
    raise RuntimeError("Not Authorized")
RuntimeError: Not Authorized

Changed in python-magnumclient:
status: New → Confirmed
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers