Bug 1643046 - missing microversion in transfer and backup related test http responses
Summary: missing microversion in transfer and backup related test http responses
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tempest
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z3
: 13.0 (Queens)
Assignee: Chandan Kumar
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-25 12:26 UTC by Attila Fazekas
Modified: 2018-11-14 01:16 UTC (History)
10 users (show)

Fixed In Version: openstack-tempest-18.0.0-4.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-14 01:15:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Output_of_verification_on_packstack (165.25 KB, text/plain)
2018-11-07 10:37 UTC, Martin Kopec
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 527889 0 None None None 2018-10-27 23:30:33 UTC
Red Hat Product Errata RHBA-2018:3611 0 None None None 2018-11-14 01:16:08 UTC

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


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