Bug 1643046

Summary: missing microversion in transfer and backup related test http responses
Product: Red Hat OpenStack Reporter: Attila Fazekas <afazekas>
Component: openstack-tempestAssignee: Chandan Kumar <chkumar>
Status: CLOSED ERRATA QA Contact: Martin Kopec <mkopec>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: apevec, chkumar, cschwede, eharney, geguileo, jschluet, lhh, pgrist, slinaber, udesale
Target Milestone: z3Keywords: AutomationBlocker, Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tempest-18.0.0-4.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-14 01:15:50 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:
Description Flags
Output_of_verification_on_packstack none

Description Attila Fazekas 2018-10-25 12:26:00 UTC
Description of problem:
python2-tempestconf-2.0.0-1.el7ost.noarch started to define 
[volume]
min_microversion = 3.0
max_microversion = 3.50

in the etc/tempest.conf which leads to tempest sends and validates microversion api responses.
Many api responses does not have the correct headers.
Failing test cases:
 tempest.api.volume.admin.test_volumes_backup.VolumesBackupsAdminTest.test_volume_backup_export_import[id-a99c54a1-dd80-4724-8a13-13bf58d4068d]
 tempest.api.volume.admin.test_volumes_backup.VolumesBackupsAdminTest.test_volume_backup_reset_status[id-47a35425-a891-4e13-961c-c45deea21e94]
 tempest.api.volume.test_volume_transfers.VolumesTransfersTest.test_create_get_list_accept_volume_transfer[id-4d75b645-a478-48b1-97c8-503f64242f1a]
 tempest.api.volume.test_volume_transfers.VolumesTransfersTest.test_create_list_delete_volume_transfer[id-ab526943-b725-4c07-b875-8e8ef87a2c30]




Version-Release number of selected component (if applicable):
python2-tempest-18.0.0-2.el7ost.noarch
python-cinder-12.0.4-1.el7ost.noarch
python2-tempestconf-2.0.0-1.el7ost.noarch

How reproducible:
always

Steps to Reproduce:
1. sudo packstack --allinone --os-debug-mode y --provision-tempest-floatrange 172.24.4.0/24 --provision-demo-floatrange 172.24.4.0/24 --nova-libvirt-virt-type kvm --service-workers=3

2.
sudo bash
tempest init tempest-dir
cd tempest-dir
(source /root/keystonerc_admin;  discover-tempest-config --debug --create identity.uri $OS_AUTH_URL identity.admin_password $OS_PASSWORD)

3.
ostestr -r '(test_volumes_backup|test_volume_transfers)'


Expected results:
Requests with 'Openstack-Api-Version' header sent to the .*/v3.* always gets an
openstack-api-version header with valid content in the response.

Additional info:
The test works without microversion aware tempest configuration,
Changing the min_microversion to 3.50 did not helped.
The issue happens with older cinder also when it deployed in an another way.

Comment 14 Martin Kopec 2018-10-27 23:30:00 UTC
Attila you're right, it's the change. I've applied the change https://review.openstack.org/#/c/527889/ to tempest-18.0.0-2 source and it seems, it fixes the issue.

Comment 24 Martin Kopec 2018-11-07 10:37:21 UTC
Created attachment 1502924 [details]
Output_of_verification_on_packstack

Comment 25 Martin Kopec 2018-11-07 10:37:40 UTC
The issue is resolved in openstack-tempest-18.0.0-4.el7ost which is available in the latest puddle (2018-11-05.3).

Output of verification on packstack environment is available in the attachments.

Comment 29 errata-xmlrpc 2018-11-14 01:15:50 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-2018:3611