borisstoyanov opened a new issue, #6926:
URL: https://github.com/apache/cloudstack/issues/6926
<!--
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.
-->
~~~
UI
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.18
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
Zone with multiple hypervisors
##### SUMMARY
<!-- Explain the problem/feature briefly -->
When trying to deploy a VM with hypervisor != default zone hypervisor, UI
still passes the default one and fails the API call.
##### 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.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
In a KVM defualt zone, create a VM with xen template
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
API should not be passing the default hypervisor
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
It is, and therefore failing the call
~~~
[Screenshot 2021-11-15 at
11.04.33[51].pdf](https://github.com/apache/cloudstack/files/10111250/Screenshot.2021-11-15.at.11.04.33.51.pdf)
```
Request Data
MIME Type: application/x-www-form-urlencoded;charset=utf-8
zoneid: 42bf38a6-f8a8-4e87-ad58-504b0f8dee47
clusterid: 8a9cc7c8-1a27-4a5e-9f98-39c142d9feb9
hostid: c4bdc0ad-9299-43a4-94ff-015ca4d8c756
boottype: BIOS
bootmode: LEGACY
templateid: d581c79e-6cc1-11ed-b2d6-1e0028000214
hypervisor: KVM
startvm: true
serviceofferingid: 952f1ffe-5bd2-4daa-b568-596369a640fa
affinitygroupids
iptonetworklist[0].networkid: f78ae6e1-dd47-42db-a350-4a7b5a1c1b85
keypairs
name: xen
displayname: xen
```
```
{
"deployvirtualmachineresponse": {
"uuidList": [],
"errorcode": 431,
"cserrorcode": 4350,
"errortext": "Hypervisor passed to the deployVm call, is different
from the hypervisor type of the template"
}
}
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]