← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1475570] Re: Horizon fails getting container lists

 

** Changed in: horizon
       Status: New => Confirmed

** Also affects: swift
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1475570

Title:
  Horizon fails getting container lists

Status in OpenStack Dashboard (Horizon):
  Confirmed
Status in OpenStack Object Storage (swift):
  New

Bug description:
  Env: Centos7, Kilo install

  When a user logs in to horizon, he is able to see the object store.
  Can do standard operations, but after a while he got error message "Error getting container lists" when accessing the object store via horizon. Other access (such as glance) is not affected.
  The error in the log file refers somehow to the authentication:

  ============================================================================================

  [Thu Jul 16 13:51:25.567348 2015] [:error] [pid 8912] Deleted Object: "CentOS-7-x86_64-Minimal-1503-01.iso"
  [Thu Jul 16 13:53:26.124737 2015] [:error] [pid 8912] REQ: curl -i http://swift:8080/v1/AUTH_845391df95974ed7ac02755b493afb05?format=json&limit=1001 -X GET -H "X-Auth-Token: 00ef836291544eff88ecc32af3d96a28"
  [Thu Jul 16 13:53:26.124811 2015] [:error] [pid 8912] RESP STATUS: 401 Unauthorized
  [Thu Jul 16 13:53:26.124882 2015] [:error] [pid 8912] RESP HEADERS: [('date', 'Thu, 16 Jul 2015 14:51:25 GMT'), ('content-length', '131'), ('content-type', 'text/html; charset=UTF-8'), ('www-authenticate', 'Swift realm="AUTH_845391df95974ed7ac02755b493afb05", Keystone uri=\\'http://keystone:5000/v2.0\\''), ('x-trans-id', 'tx6cd52d254a0c43a8b6cda-0055a7c4ed')]
  [Thu Jul 16 13:53:26.124929 2015] [:error] [pid 8912] RESP BODY: <html><h1>Unauthorized</h1><p>This server could not verify that you are authorized to access the document you requested.</p></html>
  [Thu Jul 16 13:53:26.125459 2015] [:error] [pid 8912] Account GET failed: http://swift:8080/v1/AUTH_845391df95974ed7ac02755b493afb05?format=json&limit=1001 401 Unauthorized  [first 60 chars of response] <html><h1>Unauthorized</h1><p>This server could not verify t
  [Thu Jul 16 13:53:26.125472 2015] [:error] [pid 8912] Traceback (most recent call last):
  [Thu Jul 16 13:53:26.125475 2015] [:error] [pid 8912]   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1261, in _retry
  [Thu Jul 16 13:53:26.125478 2015] [:error] [pid 8912]     rv = func(self.url, self.token, *args, **kwargs)
  [Thu Jul 16 13:53:26.125481 2015] [:error] [pid 8912]   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 474, in get_account
  [Thu Jul 16 13:53:26.125483 2015] [:error] [pid 8912]     end_marker, http_conn)
  [Thu Jul 16 13:53:26.125485 2015] [:error] [pid 8912]   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 509, in get_account
  [Thu Jul 16 13:53:26.125501 2015] [:error] [pid 8912]     http_response_content=body)
  [Thu Jul 16 13:53:26.125504 2015] [:error] [pid 8912] ClientException: Account GET failed: http://swift:8080/v1/AUTH_845391df95974ed7ac02755b493afb05?format=json&limit=1001 401 Unauthorized  [first 60 chars of response] <html><h1>Unauthorized</h1><p>This server could not verify t
  [Thu Jul 16 13:53:26.125740 2015] [:error] [pid 8912] Recoverable error: Account GET failed: http://swift:8080/v1/AUTH_845391df95974ed7ac02755b493afb05?format=json&limit=1001 401 Unauthorized  [first 60 chars of response] <html><h1>Unauthorized</h1><p>This server could not verify t
  [Thu Jul 16 13:53:26.125971 2015] [:error] [pid 8912] No tenant specified
  [Thu Jul 16 13:53:26.125979 2015] [:error] [pid 8912] Traceback (most recent call last):
  [Thu Jul 16 13:53:26.125982 2015] [:error] [pid 8912]   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1253, in _retry
  [Thu Jul 16 13:53:26.125985 2015] [:error] [pid 8912]     self.url, self.token = self.get_auth()
  [Thu Jul 16 13:53:26.125987 2015] [:error] [pid 8912]   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1227, in get_auth
  [Thu Jul 16 13:53:26.125989 2015] [:error] [pid 8912]     insecure=self.insecure)
  [Thu Jul 16 13:53:26.125992 2015] [:error] [pid 8912]   File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 413, in get_auth
  [Thu Jul 16 13:53:26.125994 2015] [:error] [pid 8912]     raise ClientException('No tenant specified')
  [Thu Jul 16 13:53:26.125996 2015] [:error] [pid 8912] ClientException: No tenant specified
  [Thu Jul 16 13:53:26.126167 2015] [:error] [pid 8912] Recoverable error: No tenant specified

  ============================================================================================

  
  Glance, that turns to swift, is working fine.
  Also swift from command line is working fine, though I need to force V2 in the cmdline (swift -V 2 .....).

  Any hint?
  Thanks,
    Giuseppe

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


References