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

Bug 1455928

Summary: Backporting the commit-id ceb2b4684d18e6fa65b500b6a946d4c13cb606f3 to tempest 13.0.0 for Red Hat OpenStack 10
Product: Red Hat OpenStack Reporter: Ganesh Kadam <gkadam>
Component: openstack-tempestAssignee: Chandan Kumar <chkumar>
Status: CLOSED ERRATA QA Contact: Martin Kopec <mkopec>
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: apevec, chkumar, dcadzow, jinhli, jjoyce, lars, lhh, mbracho, mburns, mmagr, mschuppe, slinaber
Target Milestone: z4Keywords: FeatureBackport, Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tempest-13.0.0-14.bafe630git.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-06 17:06: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 Ganesh Kadam 2017-05-26 13:07:28 UTC
Description of problem:

while running cinder backup case testing, Cu found case tempest.api.volume.test_volumes_backup.VolumesBackupsV1Test.test_backup_create_attached_volume failed, below is the output:

[root@overcloud-controller-0 backup]# ./run_tempest.sh -N -C /etc/redhat-certification-openstack/tempest.conf --serial 
  
Failed 1 tests - output below:
==============================

tempest.api.volume.test_volumes_backup.VolumesBackupsV1Test.test_backup_create_attached_volume[compute,id-07af8f6d-80af-44c9-a5dc-c8427b1b62e6]
---------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "tempest/test.py", line 107, in wrapper
        return f(self, *func_args, **func_kwargs)
      File "tempest/api/volume/test_volumes_backup.py", line 107, in test_backup_create_attached_volume
        backup['id'], 'available')
      File "tempest/common/waiters.py", line 224, in wait_for_backup_status
        raise exceptions.VolumeBackupException(backup_id=backup_id)
    AttributeError: 'module' object has no attribute 'VolumeBackupException'

      Please refer to the attachment for detail info.

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


Steps to Reproduce:

[root@overcloud-controller-0 backup]# ./run_tempest.sh -N -C /etc/redhat-certification-openstack/tempest.conf --serial 


Actual results:

Test fails with below error:

~~~
Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "tempest/test.py", line 107, in wrapper
        return f(self, *func_args, **func_kwargs)
      File "tempest/api/volume/test_volumes_backup.py", line 107, in test_backup_create_attached_volume
        backup['id'], 'available')
      File "tempest/common/waiters.py", line 224, in wait_for_backup_status
        raise exceptions.VolumeBackupException(backup_id=backup_id)
    AttributeError: 'module' object has no attribute 'VolumeBackupException'

      Please refer to the attachment for detail info.

~~~


Expected results:

Test should pass


Additional info:

This is blocking the Cu's Red Hat OpenStack 10 certification.

The fix is released with the latest version of tempest:
~~~
[stack@instack tempest]$ git tag --contains ceb2b4684d18e6fa65b500b6a946d4c13cb606f3
14.0.0
15.0.0
16.0.0
~~~

Can this be backported to Red Hat OpenStack 10? Probably upgrading the tempest to latest version might cause issues with the rhcert tool and certification process.

Comment 1 Martin Schuppert 2017-05-31 08:27:42 UTC
*** Bug 1457105 has been marked as a duplicate of this bug. ***

Comment 2 jinhua li 2017-06-02 08:46:17 UTC
Hi all,

I am not sure whether this is a general issue  of backup in rhosp10, but in this (rhosp10)cert, i saw the backup test passed https://hardware.redhat.com/view_result.cgi?bug_id=1428672&rpm_id=73085&iteration=0&test_name=cinder&subtest_name=BACKUPS%20RESOURCE



Sincerely,
Jinhua Li

Comment 3 jinhua li 2017-06-02 08:46:18 UTC
Hi all,

I am not sure whether this is a general issue  of backup in rhosp10, but in this (rhosp10)cert, i saw the backup test passed https://hardware.redhat.com/view_result.cgi?bug_id=1428672&rpm_id=73085&iteration=0&test_name=cinder&subtest_name=BACKUPS%20RESOURCE



Sincerely,
Jinhua Li

Comment 5 jinhua li 2017-06-09 05:34:36 UTC
Hi Ganesh,

FYI.
In https://hardware.redhat.com/show.cgi?id=1409199, IBM team has passed the backup test by changing the parameter as below:

 tempest.conf:
[auth]
tempest_roles = ResellerAdmin( as normal this value is _member_ )

Because of the "operator_roles" of /etc/swift/proxy-server.conf  in IBM's log as below:

[filter:keystone]
use = egg:swift#keystoneauth
operator_roles = admin, swiftoperator, ResellerAdmin


Sincerely,
Jinhua Li

Comment 7 Martin Magr 2017-07-18 09:33:28 UTC
Hey Mike, do you have any idea why the patch did not get pull in from RDO? How should we proceed now?

Comment 10 Martin Kopec 2017-08-16 13:36:08 UTC
The commit ceb2b4684d18e6fa65b500b6a946d4c13cb606f3 was backported to tempest 13.0.0 for Red Hat OpenStack 10 and it's available in package openstack-tempest-13.0.0-14.bafe630git.el7ost -> marking as verified.

Comment 12 errata-xmlrpc 2017-09-06 17:06:29 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/RHBA-2017:2653