Bug 1316012

Summary: tempest.api.object_storage.test_object_version.ContainerTest.test_versioned_container fails due miss-configuration in swift-container
Product: Red Hat OpenStack Reporter: Arx Cruz <acruz>
Component: rhosp-directorAssignee: Christian Schwede (cschwede) <cschwede>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Kopec <mkopec>
Severity: low Docs Contact:
Priority: low    
Version: 8.0 (Liberty)CC: afazekas, dbecker, fdinitto, jcoufal, mburns, mmagr, morazi, pgrist, rhel-osp-director-maint, tkammer
Target Milestone: ---Keywords: Automation, AutomationBlocker, Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-29 14:00:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Arx Cruz 2016-03-09 09:07:39 UTC
Description of problem:
tempest.api.object_storage.test_object_version.ContainerTest.test_versioned_container fails because /etc/swift/container-server.conf is miss configured

Version-Release number of selected component (if applicable):

openstack-swift-plugin-swift3-1.9-1.el7ost.noarch
openstack-swift-container-2.5.0-2.el7ost.noarch
openstack-swift-account-2.5.0-2.el7ost.noarch
openstack-swift-object-2.5.0-2.el7ost.noarch
openstack-swift-2.5.0-2.el7ost.noarch
openstack-swift-proxy-2.5.0-2.el7ost.noarch
python-swiftclient-2.6.0-1.el7ost.noarch


How reproducible:
All the time

Steps to Reproduce:
1. Install OSP-D
2. Run tempest

Actual results:
tempest.api.object_storage.test_object_version.ContainerTest.test_versioned_container fails

Expected results:
tempest.api.object_storage.test_object_version.ContainerTest.test_versioned_container pass

Additional info:
It's possible to fix it editing /etc/swift/container-server.conf setting allow_versions option to true and restarting the service:

crudini --set /etc/swift/container-server.conf DEFAULT allow_versions true
systemctl restart openstack-swift-container*

Comment 2 Mike Burns 2016-04-07 21:14:44 UTC
This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.

Comment 4 Attila Fazekas 2017-04-03 15:42:18 UTC
Since 10 it does not fails, also the recommended configuration is different since 10.

Comment 5 Fabio Massimo Di Nitto 2017-05-18 15:22:57 UTC
Paul,

this bug appears to be Storage related. Could you please have your guys check that the relative tempest test is now working as expected?

Comment 6 Paul Grist 2017-05-18 15:49:25 UTC
Will take a look, but also sounds like it's not an issue anymore based on #c4? Not sure there is a a reason to keep it open, but let's see if we want to make a default change or to expose an option.  But this seems to be passing and it also had a work around.

Comment 7 Christian Schwede (cschwede) 2017-05-29 14:00:49 UTC
This one does not affect OSP10 and later; the versioning architecture has been changed in Newton and no longer requires the setting in the container server.

Closing this bug therefore; please re-open if this is still an issue.