Though it shows the expired object in the list, I am unable to delete it
and hence I am unable to delete the container immediately as the
container is not empty.
Container objects list after the object has expired
objlist = cls.container_client.list_all_container_objects(cls.container_name)
print objlist
[{u'bytes': 16, u'last_modified': u'2012-12-07T15:57:02.385250', u'hash':
u'3dd0cd797a7399b56c470612887108eb', u'name': u'TestObject529587',
u'content_type': u'application/json'}]
Below erro is thrown when I try to delete the object immediately after
the object is expired, Below is the error
ERROR
======================================================================
ERROR: test suite for <class
'tempest.tests.object_storage.test_object_expiry.ObjectExpiryTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 227, in run
self.tearDown()
File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown
self.teardownContext(ancestor)
File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 366, in
teardownContext
try_run(context, names)
File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
return func()
File
"/home/harika/tempest_harika/tempest/tempest/tests/object_storage/test_object_expiry.py",
line 45, in tearDownClass
obj['name'])
File
"/home/harika/tempest_harika/tempest/tempest/services/object_storage/object_client.py",
line 44, in delete_object
resp, body = self.delete(url)
File "/home/harika/tempest_harika/tempest/tempest/common/rest_client.py",
line 169, in delete
return self.request('DELETE', url, headers)
File "/home/harika/tempest_harika/tempest/tempest/common/rest_client.py",
line 211, in request
raise exceptions.NotFound(resp_body)
NotFound: Object not found
Details: Object not found
Details: <html><h1>Not Found</h1><p>The resource could not be found.</p></html>
And While I try to delete the container directly, below is the error
ERROR
======================================================================
ERROR: test suite for <class
'tempest.tests.object_storage.test_object_expiry.ObjectExpiryTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 227, in run
self.tearDown()
File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown
self.teardownContext(ancestor)
File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 366, in
teardownContext
try_run(context, names)
File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
return func()
File
"/home/harika/tempest_harika/tempest/tempest/tests/object_storage/test_object_expiry.py",
line 48, in tearDownClass
resp, _ = cls.container_client.delete_container(cls.container_name)
File
"/home/harika/tempest_harika/tempest/tempest/services/object_storage/container_client.py",
line 52, in delete_container
resp, body = self.delete(url)
File "/home/harika/tempest_harika/tempest/tempest/common/rest_client.py",
line 169, in delete
return self.request('DELETE', url, headers)
File "/home/harika/tempest_harika/tempest/tempest/common/rest_client.py",
line 219, in request
resp_body = self._parse_resp(resp_body)
File "/home/harika/tempest_harika/tempest/tempest/common/rest_client.py",
line 187, in _parse_resp
return json.loads(body)
File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Hence the teardown class in my script is failing.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1069849
Title:
Containers show expired objects
To manage notifications about this bug go to:
https://bugs.launchpad.net/swift/+bug/1069849/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs