← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1469118] Re: Create new container always raise ERROR Container HEAD failed

 

This is not an error, in fact rest.status is returned with the
exception. Look at the code in 695: https://github.com/openstack/python-
swiftclient/blob/master/swiftclient/client.py#L695 The HTTP status (in
this case a 404) is returned.

To me the error message looks correct - doing a GET or HEAD on a non-
existing container should raise an exception, because you assumed the
container exists.

What I could imagine is a method like "container_exists()" that will
directly return a true or false and not raise an Exception; though this
can be done in the client as well. Maybe the logging in horizon needs to
be changed a bit?


** Also affects: horizon
   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/1469118

Title:
  Create new container always raise ERROR Container HEAD failed

Status in OpenStack Dashboard (Horizon):
  New
Status in Python client library for Swift:
  New

Bug description:
  Following error messages raised in Horizon log file:
  dashboard-swiftclient: ERROR Container HEAD failed

  Steps:
  1. Login to Horizon as admin.
  2. Go to Object Store.
  3. Create three containers: Container1, Container2, Container3
  4. Containers created and became operable, but dashboard log contains batch of identical errors for them.

  It's happening because we check  of exists container name https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/swift.py#L126  and swift always generate error in https://github.com/openstack/python-swiftclient/blob/master/swiftclient/client.py#L692
  We need a better mechanism in swift (maybe return resp.status  or something like this)

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