Fix #10828
Updated by Alfredo Deza about 9 years ago
Failures look like: <pre> 2015-02-10 10:29:02,597.597 ERROR:teuthology.run_tasks:Saw exception from tasks. Traceback (most recent call last): File "/home/adeza/teuthology/teuthology/run_tasks.py", "/home/andrewschoen/teuthology/teuthology/run_tasks.py", line 53, in run_tasks manager = run_one_task(taskname, ctx=ctx, config=config) File "/home/adeza/teuthology/teuthology/run_tasks.py", "/home/andrewschoen/teuthology/teuthology/run_tasks.py", line 41, in run_one_task return fn(**kwargs) File "./ceph-qa-suite/tasks/radosgw_admin.py", "/home/adeza/src/ceph-qa-suite_master/tasks/radosgw_admin.py", line 923, 925, in task assert acl == out.strip('\n'), 'acl: %s, not equal to response: %s' % (acl, out) out.strip('\n') AssertionError: acl: <?xml version="1.0" encoding="UTF-8"?><AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>foo</ID><DisplayName>Foo</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>foo</ID><DisplayName>Foo</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy> not equal to response: <AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>foo</ID><DisplayName>Foo</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>foo</ID><DisplayName>Foo</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy> AssertionError </pre> Because the gateway is now comparing the acl with something that looks like: <pre> 2015-02-10 14:05:58,535.535 INFO:tasks.util.rgw: raw result: <AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>foo</ID><DisplayName>Foo</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>foo</ID><DisplayName>Foo</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy> </pre> But that is not entirely equal because the gateway is now using 'xml version' tags.