cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Fail to deploy a new KVM Instance when ACS has VMware and KVM hypervisor clusters

Open msinhore opened this issue 3 years ago • 0 comments

ISSUE TYPE
 * Bug Report
COMPONENT NAME
UI
CLOUDSTACK VERSION
4.17.0.1
CONFIGURATION

ACS running with VMware and KVM hypervisors in different clusters and same pod

OS / ENVIRONMENT

mgmt server: Rocky Linux 8 database server: Rocky Linux 8 (running together mgmt server) VMware: 7.0.3.0 KVM: Rocky Linux 8

SUMMARY

When deploying a new KVM Instance using UI, it fails with this error message:

image

Using cmk works fine.

mgmt logs:

2022-09-21 14:59:28,643 DEBUG [c.c.a.ApiServlet] (qtp396883763-22:ctx-a3f55da5) (logid:44a9ba61) ===START===  10.0.3.251 -- POST  command=deployVirtualMachine&response=json
2022-09-21 14:59:28,648 DEBUG [c.c.a.ApiServer] (qtp396883763-22:ctx-a3f55da5 ctx-9b374d70) (logid:44a9ba61) CIDRs from which account 'Acct[6024ea5f-38ff-11ed-939d-1e0070000145-admin] -- Account {"id": 2, "name": "admin", "uuid": "6024ea
5f-38ff-11ed-939d-1e0070000145"}' is allowed to perform API calls: 0.0.0.0/0,::/0
2022-09-21 14:59:28,663 DEBUG [c.c.u.AccountManagerImpl] (qtp396883763-22:ctx-a3f55da5 ctx-9b374d70) (logid:44a9ba61) Access granted to Acct[6024ea5f-38ff-11ed-939d-1e0070000145-admin] -- Account {"id": 2, "name": "admin", "uuid": "6024e
a5f-38ff-11ed-939d-1e0070000145"} to org.apache.cloudstack.quota.vo.ServiceOfferingVO$$EnhancerByCGLIB$$c6a34ac8@4fd3e10a by AffinityGroupAccessChecker
2022-09-21 14:59:28,663 DEBUG [c.c.u.AccountManagerImpl] (qtp396883763-22:ctx-a3f55da5 ctx-9b374d70) (logid:44a9ba61) Access granted to Acct[6024ea5f-38ff-11ed-939d-1e0070000145-admin] -- Account {"id": 2, "name": "admin", "uuid": "6024e
a5f-38ff-11ed-939d-1e0070000145"} to null by AffinityGroupAccessChecker
2022-09-21 14:59:28,667 INFO  [c.c.a.ApiServer] (qtp396883763-22:ctx-a3f55da5 ctx-9b374d70) (logid:44a9ba61) Hypervisor passed to the deployVm call, is different from the hypervisor type of the template
2022-09-21 14:59:28,668 DEBUG [c.c.a.ApiServlet] (qtp396883763-22:ctx-a3f55da5 ctx-9b374d70) (logid:44a9ba61) ===END===  10.0.3.251 -- POST  command=deployVirtualMachine&response=json
STEPS TO REPRODUCE
- Register a KVM Template
- Deploy a new Instance based on this template
EXPECTED RESULTS
Instance deployed and running
ACTUAL RESULTS
Fail to deploy the instance

msinhore avatar Sep 21 '22 15:09 msinhore