GitHub user sghazra21 closed a discussion: UEFI VMs on KVM throwing error "No 
enum constant 
com.cloud.hypervisor.kvm.resource.LibvirtVMDef.WatchDogDef.WatchDogModel.ITCO"

<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the 
comments.
-->

##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
 * Bug Report
UEFI VMs on KVM throwing error "No enum constant 
com.cloud.hypervisor.kvm.resource.LibvirtVMDef.WatchDogDef.WatchDogModel.ITCO"

Due to this the VMs are running but unable to open console or manage instance 
i.e start/stop instances

##### COMPONENT NAME
<!---->

~~~
UI 
~~~

##### CLOUDSTACK VERSION
<!---->

~~~
4.19.0.1
~~~

##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced 
networking, etc.  N/A otherwise
-->


##### OS / ENVIRONMENT
<!---->
Used to ISO to boot VM , happens with all instance

##### SUMMARY
<!-- -->
Cloudstack is managing and running VMs with BIOS boot perfectly , but when 
selected UEFI with Legacy or Secure below error is throw :

WARN  [cloud.agent.Agent] (agentRequest-Handler-1:null) (logid:fb71c7dd) Caught:
java.lang.IllegalArgumentException: No enum constant 
com.cloud.hypervisor.kvm.resource.LibvirtVMDef.WatchDogDef.WatchDogModel.ITCO
        at java.base/java.lang.Enum.valueOf(Enum.java:240)
        at 
com.cloud.hypervisor.kvm.resource.LibvirtVMDef$WatchDogDef$WatchDogModel.valueOf(LibvirtVMDef.java:2202)
        at 
com.cloud.hypervisor.kvm.resource.LibvirtDomainXMLParser.parseDomainXML(LibvirtDomainXMLParser.java:384)
        at 
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.getInterfaces(LibvirtComputingResource.java:4258)
        at 
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.getVmStat(LibvirtComputingResource.java:4452)
        at 
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetVmStatsCommandWrapper.execute(LibvirtGetVmStatsCommandWrapper.java:53)
        at 
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetVmStatsCommandWrapper.execute(LibvirtGetVmStatsCommandWrapper.java:37)
        at 
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
        at 
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1903)
        at com.cloud.agent.Agent.processRequest(Agent.java:683)
        at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1106)
        at com.cloud.utils.nio.Task.call(Task.java:83)
        at com.cloud.utils.nio.Task.call(Task.java:29)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)


I have checked out https://github.com/apache/cloudstack/pull/8282 but that does 
not help much here as even with ITCO watchdog issue is coming up, i can see two 
watchdogs are being added on VM - 'i6300esb' and 'itco'

##### STEPS TO REPRODUCE
<!---->

1. Create VM in KVM zone with UEFI option.
2. Try to take console
3. 
<!-- Paste example playbooks or commands between quotes below -->
~~~
UEFI properties as below : 

cat /etc/cloudstack/agent/uefi.properties

guest.nvram.template.secure=/usr/share/edk2/ovmf/OVMF_VARS.secboot.fd
guest.nvram.template.legacy=/usr/share/edk2/ovmf/OVMF_VARS.fd
guest.loader.secure=/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd
guest.nvram.path=/var/lib/libvirt/qemu/nvram/
guest.loader.legacy=/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd

~~~

<!-- You can also paste gist.github.com links for larger files -->

##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->

~~~

~~~

##### ACTUAL RESULTS
<!-- What actually happened? -->

<!-- Paste verbatim command output between quotes below -->
~~~

~~~


GitHub link: https://github.com/apache/cloudstack/discussions/9052

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to