Fix VMware VM ingestion template selection and default template failure#8429
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #8429 +/- ##
============================================
- Coverage 30.80% 30.78% -0.03%
+ Complexity 33981 33958 -23
============================================
Files 5341 5341
Lines 374864 374865 +1
Branches 54518 54519 +1
============================================
- Hits 115485 115384 -101
- Misses 244114 244221 +107
+ Partials 15265 15260 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@nvazquez a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
| </a-select> | ||
| </a-form-item> | ||
| <a-form-item name="templateid" ref="templateid" v-if="cluster.hypervisortype === 'KVM' && !selectedVmwareVcenter && !isDiskImport && !isExternalImport"> | ||
| <a-form-item name="templateid" ref="templateid" v-if="cluster.hypervisortype === 'VMware' || (cluster.hypervisortype === 'KVM' && !selectedVmwareVcenter && !isDiskImport && !isExternalImport)"> |
There was a problem hiding this comment.
this can be some kind of [].contains() structure, right?
| <a-form-item name="templateid" ref="templateid" v-if="cluster.hypervisortype === 'VMware' || (cluster.hypervisortype === 'KVM' && !selectedVmwareVcenter && !isDiskImport && !isExternalImport)"> | |
| <a-form-item name="templateid" ref="templateid" v-if="['VMware', 'KVM'].contains(cluster.hypervisortype) && !selectedVmwareVcenter && !isDiskImport && !isExternalImport)"> |
?
There was a problem hiding this comment.
Sorry this is not the same condition, we always want to display if for VMware but for KVM only if !selectedVmwareVcenter && !isDiskImport && !isExternalImport
There was a problem hiding this comment.
ha yes thanks @nvazquez. sorry about my crooked eyes. Maybe you can extract the condition to a method or otherwise make it a little more reader friendly?
There was a problem hiding this comment.
@nvazquez @DaanHoogland I'm merging this as it is as default template import is blocking testing for #8426 . Please open a new PR if the refactoring is needed here 🙏
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8188 |
|
@blueorangutan test rocky8 vmware-70u3 |
|
@shwstppr a [SL] Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-8719)
|
…re (apache#8429) This PR fixes the template selection regression for VMware Ingestion in the UI on 4.19.0 RC1 and adds back the default template selection for VMware Fixes: apache#8428 apache#8432

Description
This PR fixes the template selection regression for VMware Ingestion in the UI on 4.19.0 RC1 and adds back the default template selection for VMware
Fixes: #8428 #8432
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Unmanage VM -> Import VM
How did you try to break this feature and the system with this change?