← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1306531] Re: Horizon throws an Exception while creating a new container in Swift

 

It seems that the exception has been raised deliberately. The exception
is for HEAD request which is done to check whether the container with
given name exists prior to its creation.

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

-- 
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/1306531

Title:
  Horizon throws an Exception while creating a new container in Swift

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  While creating a new container using Horizon dashboard, In Horizon error logs we get ClientException: Container HEAD failed.
  With Resp status: 404.

  Even if the container gets created without an issue.

  Steps to reproduce:
  #1: Log in to Horizon dashboard
  #2: Click on Project
  #3: Click on  Containers
  #4: Create a new container
  #4: Check horizon.error log (in /var/log/apache2) or Check horizon screen logs.

  
  Here is the exception obtained.
  --------------------------------------------
  [Fri Apr 11 10:38:12 2014] [error] REQ: curl -i http://10.0.2.15:8080/v1/AUTH_9b25e348911a4ccd8ef0d78a63dd86f9/new_cont -I -H "X-Auth-Token: ddff5c0ce81be753deefdcf681f80a3f"
  [Fri Apr 11 10:38:12 2014] [error] RESP STATUS: 404 Not Found
  [Fri Apr 11 10:38:12 2014] [error] RESP HEADERS: [('date', 'Fri, 11 Apr 2014 10:38:12 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx59f44c3a50924e4a906f8-005347c614')]
  [Fri Apr 11 10:38:12 2014] [error] Container HEAD failed: http://10.0.2.15:8080/v1/AUTH_9b25e348911a4ccd8ef0d78a63dd86f9/new_cont 404 Not Found
  [Fri Apr 11 10:38:12 2014] [error] Traceback (most recent call last):
  [Fri Apr 11 10:38:12 2014] [error]   File "/opt/stack/python-swiftclient/swiftclient/client.py", line 1200, in _retry
  [Fri Apr 11 10:38:12 2014] [error]     rv = func(self.url, self.token, *args, **kwargs)
  [Fri Apr 11 10:38:12 2014] [error]   File "/opt/stack/python-swiftclient/swiftclient/client.py", line 643, in head_container
  [Fri Apr 11 10:38:12 2014] [error]     http_response_content=body)
  [Fri Apr 11 10:38:12 2014] [error] ClientException: Container HEAD failed: http://10.0.2.15:8080/v1/AUTH_9b25e348911a4ccd8ef0d78a63dd86f9/new_cont 404 Not Found

  While creating  a container using swiftclient we dont get such exception.
  ------------------------------------------------------------------------------------------------------

  [Fri Apr 11 10:38:12 2014] [error] REQ: curl -i http://10.0.2.15:8080/v1/AUTH_9b25e348911a4ccd8ef0d78a63dd86f9/new_cont -I -H "X-Auth-Token: ddff5c0ce81be753deefdcf681f80a3f"
  [Fri Apr 11 10:38:12 2014] [error] RESP STATUS: 404 Not Found
  [Fri Apr 11 10:38:12 2014] [error] RESP HEADERS: [('date', 'Fri, 11 Apr 2014 10:38:12 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx59f44c3a50924e4a906f8-005347c614')]
  [Fri Apr 11 10:38:12 2014] [error] Container HEAD failed: http://10.0.2.15:8080/v1/AUTH_9b25e348911a4ccd8ef0d78a63dd86f9/new_cont 404 Not Found
  [Fri Apr 11 10:38:12 2014] [error] Traceback (most recent call last):
  [Fri Apr 11 10:38:12 2014] [error]   File "/opt/stack/python-swiftclient/swiftclient/client.py", line 1200, in _retry
  [Fri Apr 11 10:38:12 2014] [error]     rv = func(self.url, self.token, *args, **kwargs)
  [Fri Apr 11 10:38:12 2014] [error]   File "/opt/stack/python-swiftclient/swiftclient/client.py", line 643, in head_container
  [Fri Apr 11 10:38:12 2014] [error]     http_response_content=body)
  [Fri Apr 11 10:38:12 2014] [error] ClientException: Container HEAD failed: http://10.0.2.15:8080/v1/AUTH_9b25e348911a4ccd8ef0d78a63dd86f9/new_cont 404 Not Found

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


References