aleskxyz opened a new issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100
<!--
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
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
management
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.14.1
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
N/A
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
vCenter 6.5
##### SUMMARY
<!-- Explain the problem/feature briefly -->
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
<!--
For bugs, show exactly how to reproduce the problem, using a minimal
test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
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.
<!-- Paste example playbooks or commands between quotes below -->
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
Create a new VM from the template with pvscsi disk controller
##### ACTUAL RESULTS
<!-- What actually happened? -->
CloudStack cannot create the VM and raise this error in logs
<!-- Paste verbatim command output between quotes below -->
~~~
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)
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]