-
Notifications
You must be signed in to change notification settings - Fork 1.3k
UI: Infer template settings in the deploy VM wizard #7867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: Infer template settings in the deploy VM wizard #7867
Conversation
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good, will test
|
@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
Codecov Report
@@ Coverage Diff @@
## 4.18 #7867 +/- ##
============================================
+ Coverage 13.02% 13.05% +0.03%
- Complexity 9040 9083 +43
============================================
Files 2720 2720
Lines 257094 257370 +276
Branches 40092 40124 +32
============================================
+ Hits 33491 33612 +121
- Misses 219398 219537 +139
- Partials 4205 4221 +16 see 21 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6780 |
|
verified, but only the UI part as no API change is done |
|
I always thought, the backend would infer the template specific details/settings ? |
weizhouapache
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
|
@winterhazel , will you apply @Pearl1594 's suggestion? |
@rohityadavcloud The problem is that the deploy VM wizard always defaults the boot type and mode to BIOS and LEGACY, even if they are set to something else in the template. For that reason, these two settings are not being inherited when deploying a VM through the UI.
@Pearl1594 @DaanHoogland With the current changes, if "iothreads" is set to "example", the UI will set the parameter to false. With @Pearl1594 's suggestion, the UI will not infer it, but the backend will infer it as enabled since the parameter in the API call was null. |
* 4.18: UI: Infer template settings in the deploy VM wizard (#7867)
Description
In the deploy VM wizard, the settings inherited from a template (
iothreads,iothreads,io.policy,keyboard,UEFIand dynamically scalable) are not automatically inferred after selecting the template. This would not matter for most of these settings if the user did not change the fields, since they would still be inherited when the parameters were null; however, the boot type and mode would always default to BIOS and LEGACY, even when set to something else in the template.This PR aims to address this issue by making the deploy VM wizard automatically infer the settings inherited from a template.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
In the deploy VM wizard:
keyboard=jp,io.policy=io_uring,UEFI=LEGACYandiothreads=enabled. Then, I verified that the fields were automatically inferred and, after deploying, that the expected parameters were present in the API call.dynamicscalingenabled=false).