Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/rgw: fix test_encrypted_object_sync for 3+ zones #17377

Merged
merged 1 commit into from Sep 11, 2017

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Aug 30, 2017

new test is failing in the multisite suite with three-zone.yaml because I can't write python:

======================================================================
ERROR: tasks.rgw_multi.tests.test_encrypted_object_sync
----------------------------------------------------------------------
2017-08-30T03:28:21.255 INFO:tasks.rgw_multisite_tests:Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/virtualenv/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/teuthworker/src/github.com_ceph_ceph-c_wip-yuri-testing4_2017_8_30/qa/tasks/rgw_multi/tests.py", line 938, in test_encrypted_object_sync
    (zone1, zone2,) = zonegroup_conns.rw_zones
ValueError: too many values to unpack

---------------------------------------------------------------------

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@@ -935,7 +935,7 @@ def test_encrypted_object_sync():
zonegroup = realm.master_zonegroup()
zonegroup_conns = ZonegroupConns(zonegroup)

(zone1, zone2,) = zonegroup_conns.rw_zones
(zone1, zone2) = zonegroup_conns.rw_zones[0:2]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can drop the tuple syntax too, zone1, zone2 = ... will work (but either ways are fine)

@theanalyst
Copy link
Member

seeing this in luminous branch as well, lets get this in & backport to L

@cbodley cbodley merged commit 34a3740 into ceph:master Sep 11, 2017
@cbodley cbodley deleted the wip-rgw-test-multi-encryption branch September 11, 2017 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants