Bug 671451

Summary: condor supports only "raw" VM images for VM jobs with newer libvirt
Product: Red Hat Enterprise MRG Reporter: Luigi Toscano <ltoscano>
Component: condor-vm-gahpAssignee: Timothy St. Clair <tstclair>
Status: CLOSED ERRATA QA Contact: Luigi Toscano <ltoscano>
Severity: high Docs Contact:
Priority: high    
Version: 1.3CC: iboverma, matt, tstclair
Target Milestone: 2.0   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: condor-7.6.0-0.2 Doc Type: Bug Fix
Doc Text:
C: Submit a non-raw image which is supported by libvirt C: Can not startup image F: Add submission support for optional :image_format at the end of vm_disk R: Allows users to submit multiple formats which are supported by kvm
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-23 15:37:15 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:
Bug Depends On:    
Bug Blocks: 693778    

Description Luigi Toscano 2011-01-21 15:06:53 UTC
Description of problem:
Recent version of libvirt disabled detection of image type (see RHBZ444583). When no image format is specified, raw format is used. 
Condor used to rely on image autodetection, and it does not allow to specify the format; at this point, only raw images work.

It should be possible to specify the format of disk image(s).

Version-Release number of selected component (if applicable):
RHEL 5.6 (libvirt-0.8.2-15.el5_6.1)
condor-7.4.4-0.17.el5 (and later)

How reproducible:
Submit a job which uses a qcow (or !=raw) image.

Comment 1 Timothy St. Clair 2011-03-11 14:53:35 UTC
Resolution is to append a format to the end.  

VM_DISK=<file>:<drive>:<mode>:<format>

Comment 3 Timothy St. Clair 2011-05-04 16:18:18 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
C: Submit a non-raw image which is supported by libvirt
C: Can not startup image 
F: Add submission support for optional :image_format at the end of vm_disk 
R: Allows users to submit multiple formats which are supported by kvm

Comment 4 Luigi Toscano 2011-05-17 16:34:05 UTC
The 4th parameter for VM_DISK is now considered. At this time, the only supported format (apart from raw) is qcow2 for KVM systems.

Verified on RHEL5.6/6.1 KVM x86_64.
condor-7.6.1-0.4
condor-vm-gahp-7.6.1-0.4

Comment 5 errata-xmlrpc 2011-06-23 15:37:15 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0889.html