Bug 1622968
| Summary: | consistency group test are failing in OSP 13 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | atiwary | ||||||
| Component: | python-cinder-tests-tempest | Assignee: | Alan Bishop <abishop> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Tzach Shefi <tshefi> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 13.0 (Queens) | CC: | apevec, atiwary, bkopilov, eharney, jamsmith, lhh, ltoscano, mkopec, pgrist, scohen, slinaber, tshefi, udesale | ||||||
| Target Milestone: | Upstream M3 | Keywords: | Triaged | ||||||
| Target Release: | 15.0 (Stein) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | python-cinder-tests-tempest-0.2.1-0.20190410010400.6a37884.el8ost | Doc Type: | Bug Fix | ||||||
| Doc Text: |
Before this update, Cinder consistency group tests failed because the tests used non-admin credentials.
This update configures the tests to use admin credentials, allowing the consistency group tests to succeed.
|
Story Points: | --- | ||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2019-09-21 11:18:39 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: | |||||||||
| Attachments: |
|
||||||||
Could you, please, provide more information, like: - what puddle you have used - version of tempest - how have you installed the cinder plugin (packaged version or from git)? - the content of tempest.conf - the content of tempest.log The Partner has used RHOSP 13 GA version for red hat certification.They have not used any puddle. version of tempest -18.0.0 : rpm :openstack-tempest-18.0.0-2.el7ost.noarch Cinder plugin must be installed as packaged version I have attached the tempest.conf and tempest.log. Let me know if you need more info Created attachment 1479213 [details]
tempest.conf
Created attachment 1479214 [details]
2nd Cg test log
Please ignore the first CG tempest log
Thanks, I was able to reproduce the issue. From what I can see, it's not a Tempest issue, it's plugin's one, because the tests try to access a class property which is undefined. Therefore I'm changing component to python-cinder-tests-tempest. Someone posted a fix upstream which will be available in Stein (OSP-15). I do not know if the author plans on submitting any upstream backports. Given the fact that consistency groups have been deprecated in favor of generic volume groups, I'm not sure it's worth the effort to backport this downstream. Resetting flags for correct target release, which is OSP-15. Tested on rhos15 , passed
cinder_tempest_plugin.api.volume.admin.test_consistencygroups.ConsistencyGroupsV2Test.test_create_consistencygroup_from_consistencygroup[id-556121ae-de9c-4342-9897-e54260447a19]
(overcloud) [stack@undercloud-0 tempest]$ ls -l /etc/yum.repos.d/
total 28
-rw-r--r--. 1 root root 49 Jul 4 06:05 latest-installed
-rw-r--r--. 1 root root 80 Jul 4 06:05 mirror-readme
-rw-r--r--. 1 root root 2561 Aug 5 11:33 rhos-release-15-trunk.repo
-rw-r--r--. 1 root root 830 Aug 5 11:33 rhos-release-ceph-4.repo
-rw-r--r--. 1 root root 419 Aug 5 11:33 rhos-release-ceph-osd-4.repo
-rw-r--r--. 1 root root 376 Jul 4 06:05 rhos-release.repo
-rw-r--r--. 1 root root 2754 Aug 5 11:33 rhos-release-rhel-8.0.repo
(overcloud) [stack@undercloud-0 tempest]$ stestr run cinder_tempest_plugin.api.volume.admin.test_consistencygroups.ConsistencyGroupsV2Test.test_consistencygroup_cgsnapshot_create_delete
{0} cinder_tempest_plugin.api.volume.admin.test_consistencygroups.ConsistencyGroupsV2Test.test_consistencygroup_cgsnapshot_create_delete [19.331385s] ... ok
======
Totals
======
Ran: 1 tests in 19.3314 sec.
- Passed: 1
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 0
Sum of execute time for each test: 19.3314 sec.
==============
Worker Balance
==============
- Worker 0 (1 tests) => 0:00:19.331385
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2019:2811 |
Description of problem: Consistency group test are failing in OPS 13 setUpClass (cinder_tempest_plugin.api.volume.test_consistencygroups.ConsistencyGroupsV2Test) Reason: _StringException: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/tempest/test.py", line 172, in setUpClass six.reraise(etype, value, trace) File "/usr/lib/python2.7/site-packages/tempest/test.py", line 162, in setUpClass cls.setup_clients() File "/usr/lib/python2.7/site-packages/cinder_tempest_plugin/api/volume/test_consistencygroups.py", line 33, in setup_clients cls.admin_volume_client = cls.os_admin.volumes_v2_client AttributeError: type object 'ConsistencyGroupsV2Test' has no attribute 'os_admin' Version-Release number of selected component (if applicable): RHOSP 13.0