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

Bug 1777523

Summary: [RHOS-16.1] tempest.api.compute.volumes.test_attach_volume.AttachVolumeTestJSON.test_attach_detach_volume failed when the self.device(vdb)value was in use(config_drive vfat in my case)
Product: Red Hat OpenStack Reporter: Paras Babbar <pbabbar>
Component: openstack-tempestAssignee: Paras Babbar <pbabbar>
Status: CLOSED ERRATA QA Contact: Martin Kopec <mkopec>
Severity: high Docs Contact:
Priority: high    
Version: 16.0 (Train)CC: amodi, amoralej, apevec, jjoyce, lhh, mgarciac, mkopec, slinaber, udesale
Target Milestone: z2Keywords: AutomationBlocker, Rebase, Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tempest-24.0.0-0.20200615173423.c73e6b1.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1827347 (view as bug list) Environment:
Last Closed: 2020-12-15 18:35:44 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:
Bug Depends On:    
Bug Blocks: 1826904, 1827347    

Description Paras Babbar 2019-11-27 17:55:33 UTC
Description of problem:
This bug is clone of https://bugs.launchpad.net/tempest/+bug/1852807 upstream


How reproducible:

whenever you have the deployment with config_Drive= true with vfat as driver type or you use the testcase with instance deployed with ephemeral disk


Steps to reproduce
1. deploy an instance with one already added vdb volume attached(Like I have used config drive format vfat that already took vdb volume)
2. run this testcase tempest.api.compute.volumes.test_attach_volume.AttachVolumeTestJSON.test_attach_detach_volume
3. This will fail in assertNotIn mismatch error like below as it tries to validate that vdb is detached or not which is set by libvirt assumption

Actual results:
Testcase failed 

Expected results:
Testcase should have passed

Additional info:

Please look on this detailed upstream bug : https://bugs.launchpad.net/tempest/+bug/1852807

Comment 1 Paras Babbar 2019-11-27 17:59:39 UTC
I have added the partial fix: https://review.opendev.org/#/c/694636/ , 

there are couple more scenario test that needs some tuning  

[1] https://github.com/openstack/tempest/blob/887f99a288c1d2bef45356c916b317d37828e6ac/tempest/scenario/test_stamp_pattern.py#L101

[2] https://github.com/openstack/tempest/blob/67e07786189661151c73263a13a523865770bdde/tempest/scenario/test_minimum_basic.py#L71

as they both are also depend on volume_device_name params which is based on assumption.

Comment 2 Martin Kopec 2019-12-09 01:05:50 UTC
Hi Paras,

I see your patch got merged, thanks for the contribution. Are you going to also have a look on the other scenario tests you mentioned that need some tuning?

Comment 3 Paras Babbar 2019-12-10 15:41:31 UTC
Hi Martin, Yes I will plan on working on them later after this week!

Comment 4 Martin Kopec 2019-12-10 15:53:30 UTC
Hi Paras,

that's great! Thanks.
I'm gonna assign this BZ to you then, if you need any help (reviewing, getting the fixes to a release, etc), let me know.

Comment 6 Martin Kopec 2020-02-04 15:56:39 UTC
moving to POST as the changes are merged upstream

Comment 20 Martin Kopec 2020-04-24 15:22:44 UTC
*** Bug 1827347 has been marked as a duplicate of this bug. ***

Comment 32 Martin Kopec 2020-09-30 14:43:23 UTC
*** Bug 1812908 has been marked as a duplicate of this bug. ***

Comment 45 Martin Kopec 2020-11-25 21:11:54 UTC
The Fixed in version package contains both fixes of this issue. My testing concluded the same. The Fixed in version package is included in a latest puddle available in the RHOS 16.1 repository.

Comment 53 errata-xmlrpc 2020-12-15 18:35:44 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 (Red Hat OpenStack Platform 16.1.3 bug fix and enhancement 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-2020:5413