← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1469974] Re: kilo version swift doesn't work showing swiftclient:Authorrization Failure the resource could not be found

 

** No longer affects: swift

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1469974

Title:
  kilo version swift doesn't work showing swiftclient:Authorrization
  Failure the resource could not be found

Status in OpenStack Identity (Keystone):
  New
Status in Python client library for Swift:
  Incomplete

Bug description:
  # swift --debug list
  DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://swift-test-keystone:35357/v3/tokens
  INFO:urllib3.connectionpool:Starting new HTTP connection (1): swift-test-keystone
  DEBUG:urllib3.connectionpool:"POST /v3/tokens HTTP/1.1" 404 93
  DEBUG:keystoneclient.session:Request returned failure status: 404
  ERROR:swiftclient:Authorization Failure. Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-93f815b5-7c3b-462e-b3c9-8c0ecf9f4da3)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1235, in _retry
      self.url, self.token = self.get_auth()
    File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1209, in get_auth
      insecure=self.insecure)
    File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 406, in get_auth
      auth_version=auth_version)
    File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 341, in get_auth_keystone
      raise ClientException('Authorization Failure. %s' % err)
  ClientException: Authorization Failure. Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-93f815b5-7c3b-462e-b3c9-8c0ecf9f4da3)
  Authorization Failure. Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-93f815b5-7c3b-462e-b3c9-8c0ecf9f4da3)

  Setup of this environment is based on installation guide of kilo
  version. The openstack service on keystone node works just fine but
  swift doesn't.

  After then I modified the openstack client enviroment scripts from
  export OS_AUTH_URL=http://controller:35357/v3
  to
  export OS_AUTH_URL=http://controller:35357/v2.0

  the debug info is as below

  DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://swift-test-keystone:35357/v2.0/tokens
  INFO:urllib3.connectionpool:Starting new HTTP connection (1): swift-test-keystone
  DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1213
  DEBUG:iso8601.iso8601:Parsed 2015-06-30T08:21:48Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'08', 'daydash': u'30', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'48', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'06', 'day': None, 'minute': u'21'} with default timezone <iso8601.iso8601.Utc object at 0x7f070f511590>
  DEBUG:iso8601.iso8601:Got u'2015' for 'year' with default None
  DEBUG:iso8601.iso8601:Got u'06' for 'monthdash' with default 1
  DEBUG:iso8601.iso8601:Got 6 for 'month' with default 6
  DEBUG:iso8601.iso8601:Got u'30' for 'daydash' with default 1
  DEBUG:iso8601.iso8601:Got 30 for 'day' with default 30
  DEBUG:iso8601.iso8601:Got u'08' for 'hour' with default None
  DEBUG:iso8601.iso8601:Got u'21' for 'minute' with default None
  DEBUG:iso8601.iso8601:Got u'48' for 'second' with default None
  INFO:urllib3.connectionpool:Starting new HTTP connection (1): swift-test-proxynode1
  DEBUG:urllib3.connectionpool:"GET /v1/AUTH_c29f928f72f146fc9411e35c515c00a7?format=json HTTP/1.1" 401 131
  INFO:swiftclient:REQ: curl -i http://swift-test-proxynode1:8080/v1/AUTH_c29f928f72f146fc9411e35c515c00a7?format=json -X GET -H "X-Auth-Token: a09f170245314c3583c477ac36b5508b"
  INFO:swiftclient:RESP STATUS: 401 Unauthorized
  INFO:swiftclient:RESP HEADERS: [('content-length', '131'), ('connection', 'keep-alive'), ('x-trans-id', 'tx2c1fe6ed35674405a65c3-005592438c'), ('date', 'Tue, 30 Jun 2015 07:21:48 GMT'), ('content-type', 'text/html; charset=UTF-8'), ('www-authenticate', 'Swift realm="AUTH_c29f928f72f146fc9411e35c515c00a7"')]
  INFO:swiftclient:RESP BODY: <html><h1>Unauthorized</h1><p>This server could not verify that you are authorized to access the document you requested.</p></html>
  DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://swift-test-keystone:35357/v2.0/tokens
  INFO:urllib3.connectionpool:Starting new HTTP connection (1): swift-test-keystone
  DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1213
  DEBUG:iso8601.iso8601:Parsed 2015-06-30T08:21:49Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'08', 'daydash': u'30', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'49', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'06', 'day': None, 'minute': u'21'} with default timezone <iso8601.iso8601.Utc object at 0x7f070f511590>
  DEBUG:iso8601.iso8601:Got u'2015' for 'year' with default None
  DEBUG:iso8601.iso8601:Got u'06' for 'monthdash' with default 1
  DEBUG:iso8601.iso8601:Got 6 for 'month' with default 6
  DEBUG:iso8601.iso8601:Got u'30' for 'daydash' with default 1
  DEBUG:iso8601.iso8601:Got 30 for 'day' with default 30
  DEBUG:iso8601.iso8601:Got u'08' for 'hour' with default None
  DEBUG:iso8601.iso8601:Got u'21' for 'minute' with default None
  DEBUG:iso8601.iso8601:Got u'49' for 'second' with default None
  INFO:urllib3.connectionpool:Starting new HTTP connection (1): swift-test-proxynode1
  DEBUG:urllib3.connectionpool:"GET /v1/AUTH_c29f928f72f146fc9411e35c515c00a7?format=json HTTP/1.1" 401 131
  INFO:swiftclient:REQ: curl -i http://swift-test-proxynode1:8080/v1/AUTH_c29f928f72f146fc9411e35c515c00a7?format=json -X GET -H "X-Auth-Token: da37d9a994574b04be2cd5f5c2ef5af4"
  INFO:swiftclient:RESP STATUS: 401 Unauthorized
  INFO:swiftclient:RESP HEADERS: [('content-length', '131'), ('connection', 'keep-alive'), ('x-trans-id', 'tx74abf5b51bea41f0976bd-005592438d'), ('date', 'Tue, 30 Jun 2015 07:21:49 GMT'), ('content-type', 'text/html; charset=UTF-8'), ('www-authenticate', 'Swift realm="AUTH_c29f928f72f146fc9411e35c515c00a7"')]
  INFO:swiftclient:RESP BODY: <html><h1>Unauthorized</h1><p>This server could not verify that you are authorized to access the document you requested.</p></html>
  ERROR:swiftclient:Account GET failed: http://swift-test-proxynode1:8080/v1/AUTH_c29f928f72f146fc9411e35c515c00a7?format=json 401 Unauthorized  [first 60 chars of response] <html><h1>Unauthorized</h1><p>This server could not verify t
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1243, in _retry
      rv = func(self.url, self.token, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 496, in get_account
      http_response_content=body)
  ClientException: Account GET failed: http://swift-test-proxynode1:8080/v1/AUTH_c29f928f72f146fc9411e35c515c00a7?format=json 401 Unauthorized  [first 60 chars of response] <html><h1>Unauthorized</h1><p>This server could not verify t
  Account GET failed: http://swift-test-proxynode1:8080/v1/AUTH_c29f928f72f146fc9411e35c515c00a7?format=json 401 Unauthorized  [first 60 chars of response] <html><h1>Unauthorized</h1><p>This server could not verify t

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1469974/+subscriptions