Skip to content

CloudStack doesn't respect rootDiskController in template settings #5100

@aleskxyz

Description

@aleskxyz
ISSUE TYPE
  • Bug Report
COMPONENT NAME
management
CLOUDSTACK VERSION
4.14.1
CONFIGURATION

N/A

OS / ENVIRONMENT

vCenter 6.5

SUMMARY

CloudStack tries to deploy VM from template by using osdefault as the value for rootdiskcontroller and doesn't respect rootDiskController in the template settings.

STEPS TO REPRODUCE
  1. Create a template from root disk of a VM
  2. Set the OS of the template to 'Other SUSE Linux(64-bit)'
  3. Set rootDiskController of the template to pvscsi in settings tab
  4. Create a VM from the template.
EXPECTED RESULTS

Create a new VM from the template with pvscsi disk controller

ACTUAL RESULTS

CloudStack cannot create the VM and raise this error in logs

2021-06-10 02:39:06,210 ERROR [c.c.h.v.m.ClusterMO] (DirectAgent-249:ctx-b8c83045 host01, job-15403/job-15409, cmd: StartCommand) (logid:249f18c6) Unable to retrieve recommended disk controller for guest OS : suse64Guest in cluster Cluster01
2021-06-10 02:39:06,211 INFO  [c.c.h.v.u.VmwareHelper] (DirectAgent-249:ctx-b8c83045 host01, job-15403/job-15409, cmd: StartCommand) (logid:249f18c6) [ignored]failed to get message for exception: Unable to retrieve recommended disk controller for guest OS : suse64Guest in cluster Cluster01
2021-06-10 02:39:06,211 WARN  [c.c.h.v.r.VmwareResource] (DirectAgent-249:ctx-b8c83045 host01, job-15403/job-15409, cmd: StartCommand) (logid:249f18c6) StartCommand failed due to Exception: com.cloud.utils.exception.CloudRuntimeException
Message: Unable to retrieve recommended disk controller for guest OS : suse64Guest in cluster Cluster01

com.cloud.utils.exception.CloudRuntimeException: Unable to retrieve recommended disk controller for guest OS : suse64Guest in cluster Cluster01
        at com.cloud.hypervisor.vmware.mo.ClusterMO.getRecommendedDiskController(ClusterMO.java:744)
        at com.cloud.hypervisor.vmware.mo.HostMO.getRecommendedDiskController(HostMO.java:1113)
        at com.cloud.hypervisor.vmware.mo.HypervisorHostHelper.createBlankVm(HypervisorHostHelper.java:1472)
        at com.cloud.hypervisor.vmware.mo.HostMO.createBlankVm(HostMO.java:798)
        at com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:1884)
        at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:530)
        at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:315)
        at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
        at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
        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:834)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions