sbrueseke opened a new issue, #7115:
URL: https://github.com/apache/cloudstack/issues/7115
<!--
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.
-->
~~~
VM
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.17.2.0
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
hypervisor: xcp-ng, advanced networking
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
##### SUMMARY
<!-- Explain the problem/feature briefly -->
Unable to deploy VM using Template and custom disk offering, fails with
error "VM Creation failed. Volume size: -1GB is out of allowed range. Max: 1024
Min:1". This issue is similar to this issue which for ISO:
https://github.com/apache/cloudstack/issues/6440 but not the same.
##### 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) Add a new Disk Offering with customized = true
`/client/api/?isMirrored=false&name=Test+Custom+Disk+Offering&displaytext=Test+Custom+Disk+Offering&storageType=shared&cacheMode=none&provisioningType=thin&customized=true&disksizestrictness=false&command=createDiskOffering&response=json
`
2) Create a new Compute Offering with diskofferingstrictness=true (please be
aware that in 4.17.2.0 there is a bug and you cannot do this via UI. There is a
button for this, but it is broken. This has already being fixed
https://github.com/apache/cloudstack/pull/7072) You need to add the disk
offering uuid in this api call!
`/client/api/?issystem=false&name=Test+Compute+Offering&displaytext=Test+Compute+Offering&customized=false&offerha=false&limitcpuuse=false&dynamicscalingenabled=false&diskofferingid=<uuid>&cpunumber=1&cpuspeed=500&memory=512&command=createServiceOffering&diskofferingstrictness=true&response=json`
3) Go to the instance wizard in the UI and choose the just created Compute
offering. Do not click anything else and go straight to “Launch instance”.
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
UI needs to pass parameter rootdisksize with a default value in header of
api call deployVirtualMachine even if "Override root disk size" in Template/ISO
section is disabled. I do not know where do get this default value from.
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
UI is not passing parameter rootdisksize via header when using api call
deployVirtualMachine and "Override root disk size" in Template/ISO section is
disabled. When enabling "Override root disk size" in Template/ISO section a
default value of 10 is inserted into the wizard and it works.
--
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]