Bug 1622968 - consistency group test are failing in OSP 13
Summary: consistency group test are failing in OSP 13
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-cinder-tests-tempest
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: Upstream M3
: 15.0 (Stein)
Assignee: Alan Bishop
QA Contact: Tzach Shefi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-28 09:35 UTC by atiwary
Modified: 2019-09-26 10:45 UTC (History)
13 users (show)

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.
Clone Of:
Environment:
Last Closed: 2019-09-21 11:18:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tempest.conf (5.75 KB, text/plain)
2018-08-28 11:12 UTC, atiwary
no flags Details
2nd Cg test log (155.60 KB, text/plain)
2018-08-28 11:14 UTC, atiwary
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1789944 0 None None None 2018-08-30 16:24:42 UTC
OpenStack gerrit 599720 0 'None' MERGED Fix consistency groups test credentials 2021-01-31 23:56:05 UTC
Red Hat Product Errata RHEA-2019:2811 0 None None None 2019-09-21 11:19:00 UTC

Description atiwary 2018-08-28 09:35:24 UTC
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

Comment 1 Martin Kopec 2018-08-28 09:54:39 UTC
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

Comment 2 atiwary 2018-08-28 10:34:44 UTC
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

Comment 4 atiwary 2018-08-28 11:12:08 UTC
Created attachment 1479213 [details]
tempest.conf

Comment 5 atiwary 2018-08-28 11:14:35 UTC
Created attachment 1479214 [details]
2nd Cg test log

Please ignore the first CG tempest log

Comment 6 Martin Kopec 2018-08-28 17:05:29 UTC
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.

Comment 13 Alan Bishop 2018-10-04 15:09:36 UTC
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.

Comment 14 Alan Bishop 2019-01-29 15:19:47 UTC
Resetting flags for correct target release, which is OSP-15.

Comment 18 bkopilov 2019-08-11 11:50:03 UTC
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

Comment 20 errata-xmlrpc 2019-09-21 11:18:39 UTC
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


Note You need to log in before you can comment on or make changes to this bug.