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
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