Senario test: test_swift_acl_anonymous_download is always failed

Bug #1722164 reported by Jeremy Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
High
Jeremy Zhang

Bug Description

Senario test: test_swift_acl_anonymous_download in tempest.scenario.test_object_storage_basic_ops.TestObjectStorageBasicOps is always failed, which lead Jenkins and Zuul gate job (non-voting) [1][2] fail.

[1] gate-tempest-dsvm-neutron-scenario-multinode-lvm-multibackend-ubuntu-xenial-nv
[2] legacy-tempest-dsvm-neutron-scenario-multinode-lvm-multibackend

Debug info:

2017-10-09 03:11:58.646232 | tempest.scenario.test_object_storage_basic_ops.TestObjectStorageBasicOps.test_swift_acl_anonymous_download[id-916c7111-cb1f-44b2-816d-8f760e4ea910,object_storage,slow]
2017-10-09 03:11:58.646292 | -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
2017-10-09 03:11:58.646305 |
2017-10-09 03:11:58.646323 | Captured traceback:
2017-10-09 03:11:58.646342 | ~~~~~~~~~~~~~~~~~~~
2017-10-09 03:11:58.646365 | Traceback (most recent call last):
2017-10-09 03:11:58.646396 | File "tempest/common/utils/__init__.py", line 89, in wrapper
2017-10-09 03:11:58.646422 | return f(self, *func_args, **func_kwargs)
2017-10-09 03:11:58.646464 | File "tempest/scenario/test_object_storage_basic_ops.py", line 67, in test_swift_acl_anonymous_download
2017-10-09 03:11:58.646512 | self.change_container_acl(container_name, '.r:*')
2017-10-09 03:11:58.646546 | File "tempest/scenario/manager.py", line 1333, in change_container_acl
2017-10-09 03:11:58.646573 | self.assertEqual(resp['x-container-read'], acl)
2017-10-09 03:11:58.646594 | KeyError: 'x-container-read'

From the debug info, we can know that the function 'change_container_acl' in tempest.senario.manager.ObjectStorageScenarioTest is implemented incorrectly, it should be fixed.

Changed in tempest:
assignee: nobody → Jeremy Zhang (jeremy.zhang)
status: New → In Progress
Matt Riedemann (mriedem)
Changed in tempest:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/511332

Changed in tempest:
assignee: Jeremy Zhang (jeremy.zhang) → Matt Riedemann (mriedem)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by Matt Riedemann (<email address hidden>) on branch: master
Review: https://review.openstack.org/511332
Reason: I see that there is already a fix posted for this, I'm not sure why that wasn't updated in launchpad:

https://review.openstack.org/#/c/508402/

Revision history for this message
Matt Riedemann (mriedem) wrote :
Changed in tempest:
assignee: Matt Riedemann (mriedem) → Jeremy Zhang (jeremy.zhang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/508402
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=50688db21bcbfd2c78431bfcf97ca916d28e1b8f
Submitter: Jenkins
Branch: master

commit 50688db21bcbfd2c78431bfcf97ca916d28e1b8f
Author: jeremy.zhang <zhangjun_inspur@163.com>
Date: Mon Oct 9 14:54:58 2017 +0800

    Fix senario test: test_swift_acl_anonymous_download

    In Zuul and Jenkins gate jobs like [1][2], the senario test:
    test_swift_acl_anonymous_download is always failed, which is in
    file test_object_storage_basic_ops.py. The reason is that the function
    'change_container_acl' in tempest.senario.manager.ObjectStorageSenarioTest
    is implemented incorrectly. This patch fixes the problem.

    [1] legacy-tempest-dsvm-neutron-scenario-multinode-lvm-multibackend
    [2] gate-tempest-dsvm-neutron-scenario-multinode-lvm-multibackend-ubuntu-xenial-nv

    Closes-bug: #1722164
    Change-Id: I4b3b6f4d7c5fd5e1e968b0144ecc2a7b3eae206b

Changed in tempest:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tempest 17.1.0

This issue was fixed in the openstack/tempest 17.1.0 release.

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.