swift functional tests are broken

Bug #1360235 reported by Jordan Pittier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance_store
Invalid
Undecided
Unassigned

Bug Description

Hi,
The following tests are failing in master :

GLANCE_TEST_SWIFT_CONF=/etc/glance/glance-api.conf ./run_tests.sh glance.tests.functional.store.test_swift.TestSwiftStore;

I believe this commit https://github.com/openstack/glance/commit/63195aaa3b12e56ae787598e001ac44d62e52865 broke them.

The problem , i believe, is that in glance/store/swift.py the line SWIFT_STORE_REF_PARAMS = swift_store_utils.SwiftParams().params is evaluated when the file is imported which is too early for tests/functional/store/test_swift.py:TestSwiftStore (see method setUp).

Also glance.tests.functional.store.test_swift.TestSwiftStore.test_delayed_delete_with_auth is broken, because of this commit : https://github.com/openstack/glance/commit/66d24bb1a130902e824ca76cbee1deb6ef564873

Jordan

Revision history for this message
Brian Elliott (belliott) wrote :

FYI, I've seen this, but the test is gone from the glance repo now.

FWIW, I took a good chunk of that test and re-proposed it in the new glance_store repo: https://review.openstack.org/#/c/120891/

Changed in glance:
status: New → Confirmed
Revision history for this message
Mark Washenberger (markwash) wrote :

The whole store code just moved out of glance server to its own repo, but that doesn't invalidate this bug.

I believe the issues here are being addressed in
https://review.openstack.org/#/c/120891/

Changed in glance:
importance: Undecided → High
Revision history for this message
Erno Kuvaja (jokke) wrote :

Removing Glance as the issue is rather on store that has been marked already.

no longer affects: glance
Revision history for this message
Flavio Percoco (flaper87) wrote :

believe this bug is obsolete. If it shows up again, we can re-open it.

Changed in glance-store:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.