If you checkout stable/liberty and run
$ tox -epy27
You get the following failures
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV1.test_add_auth_url_variations
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV1.test_add_large_object
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV1.test_add_large_object_zero_size
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV1.test_get
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV1.test_get_with_http_auth
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV1.test_get_with_retry
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV2.test_add_auth_url_variations
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV2.test_add_large_object
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV2.test_add_large_object_zero_size
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV2.test_add_no_container_and_create
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV2.test_get_with_http_auth
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV2.test_get_with_retry
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV3.test_add_auth_url_variations
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV3.test_add_large_object
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV3.test_add_large_object_zero_size
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV3.test_get_with_retry
FAIL: glance_store.tests.unit.test_swift_store.TestMultiTenantStoreContext.test_download_context
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV1.test_add
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV1.test_add_no_container_and_create
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV1.test_add_no_container_and_multiple_containers_create
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV2.test_add
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV2.test_add_no_container_and_multiple_containers_create
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV2.test_get
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV3.test_add
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV3.test_add_no_container_and_create
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV3.test_add_no_container_and_multiple_containers_create
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV3.test_get
FAIL: glance_store.tests.unit.test_swift_store.TestStoreAuthV3.test_get_with_http_auth
Typically with this signature
Traceback (most recent call last):
File "glance_store/tests/unit/test_swift_store.py", line 268, in test_get
(image_swift, image_size) = self.store.get(loc)
File "glance_store/capabilities.py", line 226, in op_checker
return store_op_fun(store, *args, **kwargs)
File "glance_store/_drivers/swift/store.py", line 446, in get
context=context)
File "glance_store/_drivers/swift/store.py", line 430, in _get_object
resp_chunk_size=self.CHUNKSIZE, headers=headers)
File "/mnt/sam/git/glance_store/.tox/py27/local/lib/python2.7/site-packages/swiftclient/client.py", line 1674, in get_object
body = _RetryBody(body.resp, self, container, obj,
AttributeError: StringIO instance has no attribute 'resp'
As a test I downgraded the swiftclient and the tests passed
Runtime (s) ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --- ----------- store.tests. unit.test_ s3_store. TestStore. test_add_ size_variations 0.368 store.tests. unit.test_ backend. TestStoreAddToB ackend. test_bad_ metadata_ not_dict 0.142 store.tests. unit.test_ backend. TestStoreAddToB ackend. test_bad_ nonunicode_ dict_list 0.095 store.tests. unit.test_ http_store. TestHttpStore. test_http_ get_raises_ remote_ service_ unavailable 0.094 store.tests. unit.test_ opts.OptsTestCa se.test_ list_api_ opts 0.057 store.tests. unit.test_ vmware_ store.TestStore .test_unexpecte d_status 0.049 store.tests. unit.test_ swift_store. TestStoreAuthV3 .test_delete_ with_some_ segments_ failing 0.026 store.tests. unit.test_ swift_store. TestStoreAuthV1 .test_add_ auth_url_ variations 0.020 store.tests. unit.test_ swift_store. TestStoreAuthV3 .test_no_ auth_address 0.019 store.tests. unit.test_ swift_store. TestStoreAuthV3 .test_multi_ container_ doesnt_ impact_ multi_tenant_ add 0.017 _______ _______ _______ _______ _______ ___ summary _______ _______ _______ _______ _______ _______ ___
-------
glance_
glance_
glance_
glance_
glance_
glance_
glance_
glance_
glance_
glance_
_______
py27: commands succeeded
congratulations :)
We used to limit the package versions, eg on kilo, in test-requirements we have:
python- swiftclient< 2.5.0,> =2.2.0
but on liberty we are not limiting the packages (including swiftclient) in anyway.
This is a problem since swiftclient 3.0 has been released.