Project

General

Profile

Actions

Fix #10828

closed

acl assertions fail in radosgw_admin task (in teuthology)

Added by Alfredo Deza about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Failures look like:

Traceback (most recent call last):
  File "/home/adeza/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", line 41, in run_one_task
    return fn(**kwargs)
  File "./ceph-qa-suite/tasks/radosgw_admin.py", line 923, in task
    assert acl == out.strip('\n'), 'acl: %s, not equal to response: %s' % (acl, out)
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>

Because the gateway is now comparing the acl with something that looks like:

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>

But that is not entirely equal because the gateway is now using 'xml version' tags.

Actions #1

Updated by Alfredo Deza about 9 years ago

  • Description updated (diff)
Actions #2

Updated by Alfredo Deza about 9 years ago

  • Status changed from New to Closed

pull request opened https://github.com/ceph/ceph-qa-suite/pull/329

and merged with commit ea7a028

Actions

Also available in: Atom PDF