Bug 1797648

Summary: 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: Martin Kopec <mkopec>
Component: openstack-tempestAssignee: Paras Babbar <pbabbar>
Status: CLOSED ERRATA QA Contact: Martin Kopec <mkopec>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: apevec, lhh, slinaber, udesale
Target Milestone: z11Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tempest-18.0.0-13.el7ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-10 11:53:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Kopec 2020-02-03 14:51:59 UTC
This bug was initially created as a copy of Bug #1777523

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 9 Martin Kopec 2020-02-17 08:29:46 UTC
The Fixed in version package contains the fix for this issue. Verified by an automated job which ran the tempest.api.compute.volumes.test_attach_volume.AttachVolumeTestJSON.test_attach_detach_volume test successfully. The package is available in the RHOS repos via the latest symlink.

Comment 12 errata-xmlrpc 2020-03-10 11:53:27 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-2020:0769