Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1467924

Summary: tempest discover-tempest-config fail if rados gateway is configured for object-store
Product: Red Hat OpenStack Reporter: Cyril Lopez <cylopez>
Component: openstack-tempestAssignee: Prateek Arora <parora>
Status: CLOSED DUPLICATE QA Contact: Martin Kopec <mkopec>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 11.0 (Ocata)CC: apevec, lhh, parora, slinaber
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-06 10:13:29 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:
Embargoed:

Description Cyril Lopez 2017-07-05 14:20:31 UTC
Description of problem:

Following documentation [1], when I run discover-tempest-config I got a fail due I use rados gateway as object-store

[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/11/html-single/openstack_integration_test_suite_guide/#creating_a_workspace

Version-Release number of selected component (if applicable):
python-tempest-15.0.0-2.el7ost.noarch
openstack-tempest-15.0.0-2.el7ost.noarch
python-tempestconf-1.1.1-1.el7ost.noarch
puppet-tempest-10.3.0-3.el7ost.noarch
python-horizon-tests-tempest-0.0.1-1.0.a3312bcgit.el7ost.noarch
openstack-tripleo-heat-templates-6.0.0-12.el7ost.noarch


How reproducible:


Steps to Reproduce:
1. deploy with -e /usr/share/openstack-tripleo-heat-templates/environments/ceph-radosgw.yaml
2. configure tempest-deployer-input.conf (provide after)
3. discover-tempest-config --deployer-input ~/tempest-deployer-input.conf --debug --create identity.uri $OS_AUTH_URL identity.admin_password $OS_PASSWORD --network-id 85e11a55-4060-493b-9d00-5564bd119c8e

Actual results:
2017-07-05 16:05:24.275 136385 CRITICAL tempest [-] ServiceError: Request on service 'object-store' with
 url 'https://gotosp.osp.XXXXXXXX.com:13808/info' failed with code 404
2017-07-05 16:05:24.275 136385 ERROR tempest Traceback (most recent call last):
2017-07-05 16:05:24.275 136385 ERROR tempest   File "/bin/discover-tempest-config", line 10, in <module>
2017-07-05 16:05:24.275 136385 ERROR tempest     sys.exit(main())
2017-07-05 16:05:24.275 136385 ERROR tempest   File "/usr/lib/python2.7/site-packages/config_tempest/config_tempest.py", line 168, in main
2017-07-05 16:05:24.275 136385 ERROR tempest     'disable_ssl_certificate_validation'
2017-07-05 16:05:24.275 136385 ERROR tempest   File "/usr/lib/python2.7/site-packages/config_tempest/api
_discovery.py", line 206, in discover
2017-07-05 16:05:24.275 136385 ERROR tempest     services[name]['extensions'] = service.get_extensions()
2017-07-05 16:05:24.275 136385 ERROR tempest   File "/usr/lib/python2.7/site-packages/config_tempest/api
_discovery.py", line 122, in get_extensions
2017-07-05 16:05:24.275 136385 ERROR tempest     top_level_path="info")
2017-07-05 16:05:24.275 136385 ERROR tempest   File "/usr/lib/python2.7/site-packages/config_tempest/api
_discovery.py", line 61, in do_get
2017-07-05 16:05:24.275 136385 ERROR tempest     " with code %d" % (self.name, url, r.status))
2017-07-05 16:05:24.275 136385 ERROR tempest ServiceError: Request on service 'object-store' with url 'h
ttps://gotosp.osp.XXXXXXXXX.com:13808/info' failed with code 404
2017-07-05 16:05:24.275 136385 ERROR tempest 

Additional info:
#tempest-deployer-input.conf 
[auth]
tempest_roles = _member-
[compute]
region = regionOne
[compute-feature-enabled]
console_output = false
[identity]
region = regionOne
[image]
region = regionOne
[network]
region = regionOne
[object-storage]
operator_role = swiftoperator
region = regionOne
[orchestration]
stack_owner_role = heat_stack_owner
region = regionOne
[volume]
backend1_name = tripleo_ceph
region = regionOne
[volume-feature-enabled]
bootable = true


Test of object-store :
$ swift post test
$ swift upload test quick.sh
$ cd /tmp
$ swift download test quick.sh
quick.sh [auth 0.976s, headers 1.216s, total 1.218s, 0.009 MB/s]
$ md5sum quick.sh ~/quick.sh 
2e61cced44da0cfae2d91c31742ce80b  quick.sh
2e61cced44da0cfae2d91c31742ce80b  /home/stack/quick.sh

Comment 1 Prateek Arora 2017-07-05 15:34:03 UTC
Its a known problem https://bugzilla.redhat.com/show_bug.cgi?id=1251237

Comment 2 Prateek Arora 2017-07-06 10:13:29 UTC
We have a KCS article on how to handle this case

https://access.redhat.com/solutions/2858981

The error comes because the /info swift API is not implemented in ceph.

*** This bug has been marked as a duplicate of bug 1251237 ***