cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "howie yu (JIRA)" <>
Subject [jira] [Created] (CLOUDSTACK-5526) LibvirtDomainXMLParser
Date Tue, 17 Dec 2013 10:16:07 GMT
howie yu created CLOUDSTACK-5526:

             Summary: LibvirtDomainXMLParser 
                 Key: CLOUDSTACK-5526
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: KVM
    Affects Versions: 4.4.0
         Environment: CentOS 6.4 with KVM 0.1002
Libvirt 0.5.1
            Reporter: howie yu
            Priority: Trivial

When using LibvirtDomainXMLParser  parser xml from Domain.
The attribute diskCacheMode not always have value , and will be empty string

 String diskCacheMode = getAttrValue("driver", "cache", disk);

when the code go to here valueOf

} else if (type.equalsIgnoreCase("block")) {
                        def.defBlockBasedDisk(diskDev, diskLabel,

There will be cause IllegalArgumentException at 
at java.lang.Enum.valueOf(

I suggest we may check if diskCacheMode is empty string , such as

if (diskCacheMode == null || diskCacheMode.isEmpty()) {
} else {					



This message was sent by Atlassian JIRA

View raw message