Bug 1271332

Summary: [RHEL-OSP] During SmartState Analysis of an Image: "Unknown QCOW version: 3"
Product: Red Hat CloudForms Management Engine Reporter: Thom Carlin <tcarlin>
Component: SmartState AnalysisAssignee: Mo Morsi <mmorsi>
Status: CLOSED ERRATA QA Contact: Milan Falešník <mfalesni>
Severity: medium Docs Contact:
Priority: high    
Version: 5.4.0CC: cpelland, jhardy, mfalesni, mfeifer, obarenbo, tcarlin
Target Milestone: GAFlags: cfme-bot: needinfo?
Target Release: 5.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.5.0.8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-08 13:38:01 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 Thom Carlin 2015-10-13 16:25:54 UTC
Description of problem:

Unexpected error during SmartState Analysis of a RHEL-OSP Image

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

5.4.3.0.20151001120745_d11cf59

How reproducible:

100% for specific VMs

Steps to Reproduce:
1. Define OpenStack Cloud Provider
2. Run SmartState Analysis on Images
3.

Actual results:

Unknown QCOW Version 3 for /tmp/vm_name-string

Expected results:

No error

Additional info:

In QcowDisk.rb, error occurs at line 621.  The logic for https://bugzilla.redhat.com/show_bug.cgi?id=1192223 didn't appear to cover the csize_shift

Comment 4 Rich Oliveri 2015-10-13 19:22:43 UTC
It looks like the case statement in `csize_shift` needs to accept version 3 as valid.

Comment 5 Mo Morsi 2015-10-21 15:18:26 UTC
PR 5024 submitted

https://github.com/ManageIQ/manageiq/pull/5024

Comment 6 CFME Bot 2015-10-21 20:46:05 UTC
Detected commit referencing this ticket while ticket status is POST.

Comment 7 CFME Bot 2015-10-21 21:13:53 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=61ae74acfbb80e0b1ea55213904eb0e9b88d08c6

commit 61ae74acfbb80e0b1ea55213904eb0e9b88d08c6
Author:     Mo Morsi <mmorsi>
AuthorDate: Wed Oct 21 16:43:39 2015 -0400
Commit:     Mo Morsi <mmorsi>
CommitDate: Wed Oct 21 16:43:39 2015 -0400

    Add missing check needed for qcow3 compressed images
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1271332

 gems/pending/disk/modules/QcowDisk.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 8 CFME Bot 2015-10-22 20:45:27 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/61ae74acfbb80e0b1ea55213904eb0e9b88d08c6

commit 61ae74acfbb80e0b1ea55213904eb0e9b88d08c6
Author:     Mo Morsi <mmorsi>
AuthorDate: Wed Oct 21 16:43:39 2015 -0400
Commit:     Mo Morsi <mmorsi>
CommitDate: Wed Oct 21 16:43:39 2015 -0400

    Add missing check needed for qcow3 compressed images
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1271332

 gems/pending/disk/modules/QcowDisk.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 10 CFME Bot 2015-10-22 20:58:56 UTC
Detected commit referencing this ticket while ticket status is POST.

Comment 11 Milan Falešník 2015-11-19 15:40:04 UTC
Verified on 5.5.0.11 against 5.4.3.0.

The image that triggers this problem is the f22-qcow on our rhos5 provider.

Comment 13 errata-xmlrpc 2015-12-08 13:38:01 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/RHSA-2015:2551