You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/08/11 02:33:22 UTC

[GitHub] [cloudstack] aleskxyz opened a new issue #5100: CloudStack doesn't respect rootDiskController in template settings

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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] nvazquez commented on issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100#issuecomment-894599021


   @aleskxyz the PR #5258 fixes the issue, however we've noticed the guest OS you have mentioned on the 'Steps to reproduce' is unsupported with VMware version 6.5. Even VM deployments fail with the error:
   
   ````
   Message: The guest operating system 'suse64Guest' is not supported.
   ````
   
   Were you able to create VMs from templates with that guest OS?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] aleskxyz commented on issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
aleskxyz commented on issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100#issuecomment-859530449






-- 
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:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100#issuecomment-889678229


   @nvazquez 
   I have created a pr for this issue, see #5258 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] andrijapanicsb commented on issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
andrijapanicsb commented on issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100#issuecomment-859486587






-- 
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:
users@infra.apache.org



[GitHub] [cloudstack] aleskxyz edited a comment on issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
aleskxyz edited a comment on issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100#issuecomment-894608702


   > @aleskxyz the PR #5258 fixes the issue, however we've noticed the guest OS you have mentioned on the 'Steps to reproduce' is unsupported with VMware version 6.5. Even VM deployments fail with the error:
   > 
   > ```
   > Message: The guest operating system 'suse64Guest' is not supported.
   > ```
   > 
   > Were you able to create VMs from templates with that guest OS?
   
   @nvazquez 
   It seems that 'suse64Guest' is a deprecated guest os type for vmware but is still exist in documents:
   [vim.vm.GuestOsDescriptor.GuestOsIdentifier](https://code.vmware.com/apis/196/vsphere/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html)
   I could create a VM with that os type in vCenter 6.5 directly but I get a warning (not error) that this os type is not supported.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] nvazquez commented on issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100#issuecomment-861768007


   This is still not fixed for non-deploy-as-is templates, if the template OS is not found the deployment fails and if the OS descriptor is found then the template setting for root disk controller is ignored in favour of the recommended controller by Vmware - moving it for 4.16


-- 
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:
users@infra.apache.org



[GitHub] [cloudstack] nvazquez commented on issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100#issuecomment-895727885


   @aleskxyz thanks, I have tried through CloudStack and couldn't deploy any VM selecting that guest OS. I think the original problem raised in this issue is handled by the PR, if needed please raise a new issue for the specific guest OS problem


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100#issuecomment-860905032


   @nvazquez @harikrishna-patnala cc @Pearl1594 @shwstppr is this something known or already fixed? 


-- 
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:
users@infra.apache.org



[GitHub] [cloudstack] nvazquez closed issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
nvazquez closed issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] nvazquez closed issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
nvazquez closed issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] nvazquez commented on issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100#issuecomment-899174362


   PR #5258 merged, closing this issue


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] aleskxyz commented on issue #5100: CloudStack doesn't respect rootDiskController in template settings

Posted by GitBox <gi...@apache.org>.
aleskxyz commented on issue #5100:
URL: https://github.com/apache/cloudstack/issues/5100#issuecomment-894608702


   > @aleskxyz the PR #5258 fixes the issue, however we've noticed the guest OS you have mentioned on the 'Steps to reproduce' is unsupported with VMware version 6.5. Even VM deployments fail with the error:
   > 
   > ```
   > Message: The guest operating system 'suse64Guest' is not supported.
   > ```
   > 
   > Were you able to create VMs from templates with that guest OS?
   
   @nvazquez 
   The '' is not
   It seems that 'suse64Guest' is a deprecated guest os type for vmware but is still exist in documents:
   [vim.vm.GuestOsDescriptor.GuestOsIdentifier](https://code.vmware.com/apis/196/vsphere/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html)
   I could create a VM with that os type in vCenter 6.5 directly but I get a warning (not error) that this os type is not supported.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org