Bug 1198814

Summary: Qcow probe fails to detect qcow virtual disk
Product: Red Hat CloudForms Management Engine Reporter: Rich Oliveri <roliveri>
Component: SmartState AnalysisAssignee: Rich Oliveri <roliveri>
Status: CLOSED ERRATA QA Contact: Milan Falešník <mfalesni>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: jhardy, mfalesni, obarenbo
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.4.0.0.11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1199224 (view as bug list) Environment:
Last Closed: 2015-06-16 12:51:55 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: 1199224    

Description Rich Oliveri 2015-03-04 21:05:57 UTC
Description of problem:
Fleecing fails for qcow based virtual machines and images because the probe routine fails to recognize the qcow virtual disk.


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

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 CFME Bot 2015-03-05 18:16:07 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/c130d908e540a11fdf5da5d12cbcfa8a1a1cac2b

commit c130d908e540a11fdf5da5d12cbcfa8a1a1cac2b
Author:     Richard Oliveri <roliveri>
AuthorDate: Thu Mar 5 11:49:14 2015 -0500
Commit:     Richard Oliveri <roliveri>
CommitDate: Thu Mar 5 11:49:14 2015 -0500

    Force encoding of Qcow magic.
    
    Account for new default string encoding in Ruby 2, by
    forcing the encoding of the qcow magic string.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1198814
    https://bugzilla.redhat.com/show_bug.cgi?id=1199224

 lib/disk/modules/QcowDiskProbe.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 3 CFME Bot 2015-03-05 18:41:01 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=1aa4d7fa93d6ce9e89235077654697f8d5e48b97

commit 1aa4d7fa93d6ce9e89235077654697f8d5e48b97
Author:     Richard Oliveri <roliveri>
AuthorDate: Thu Mar 5 11:49:14 2015 -0500
Commit:     Richard Oliveri <roliveri>
CommitDate: Thu Mar 5 13:39:00 2015 -0500

    Force encoding of Qcow magic.
    
    Account for new default string encoding in Ruby 2, by
    forcing the encoding of the qcow magic string.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1198814
    https://bugzilla.redhat.com/show_bug.cgi?id=1199224

 lib/disk/modules/QcowDiskProbe.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 5 Milan Falešník 2015-04-23 11:12:37 UTC
Checked in 5.4.0.0.22 against upstream appliance from Mar 2nd which does not contain this patch yet. The upstream appliance showed an error "No root filesystem found." when fleecing an image, fleecing of instance was not possible at that time yet. 

5.4.0.0.22 fleeced both image and an instance without problems.

Comment 7 errata-xmlrpc 2015-06-16 12:51:55 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://rhn.redhat.com/errata/RHBA-2015-1100.html