Skip to content

Fix VMware VM ingestion template selection and default template failure - #8429

Merged
shwstppr merged 2 commits into
apache:mainfrom
shapeblue:fix-419rc1-vmingestion-regressions
Jan 5, 2024
Merged

Fix VMware VM ingestion template selection and default template failure#8429
shwstppr merged 2 commits into
apache:mainfrom
shapeblue:fix-419rc1-vmingestion-regressions

Conversation

@nvazquez

@nvazqueznvazquez commented Jan 2, 2024

Copy link
Copy Markdown
Contributor

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

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

Screenshot 2024-01-03 at 09 10 27

How Has This Been Tested?

Unmanage VM -> Import VM

How did you try to break this feature and the system with this change?

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan ui

@codecov

codecovBot commented Jan 2, 2024

Copy link
Copy Markdown

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (9d4f071) 30.80% compared to head (09bcf41) 30.78%.

FilesPatch %Lines
ui/src/views/tools/ImportUnmanagedInstance.vue0.00%2 Missing ⚠️
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 
FlagCoverage Δ
simulator-marvin-tests24.68% <0.00%> (-0.04%)⬇️
uitests4.39% <0.00%> (ø)
unit-tests16.46% <100.00%> (+<0.01%)⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Pearl1594Pearl1594 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@nvazquez a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/8429 (QA-JID-249)

@shwstpprshwstppr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

@harikrishna-patnalaharikrishna-patnala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM

</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)">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be some kind of [].contains() structure, right?

Suggested change
<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)">

?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry this is not the same condition, we always want to display if for VMware but for KVM only if !selectedVmwareVcenter && !isDiskImport && !isExternalImport

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had the same question, thanks @nvazquez

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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 🙏

@DaanHooglandDaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

@shwstppr I've also added a fix for #8432 on this PR

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@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.

@nvazqueznvazquez changed the title UI: Fix VMware VM ingestion template selectionFix VMware VM ingestion template selection and default template failureJan 3, 2024

@Pearl1594Pearl1594 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8188

@shwstppr

Copy link
Copy Markdown
Contributor

@blueorangutan test rocky8 vmware-70u3

@blueorangutan

Copy link
Copy Markdown

@shwstppr a [SL] Trillian-Jenkins test job (rocky8 mgmt + vmware-70u3) has been kicked to run smoke tests

@shwstpprshwstppr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM

@harikrishna-patnalaharikrishna-patnala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-8719)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 47062 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8429-t8719-vmware-70u3.zip
Smoke tests completed. 120 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_02_balanced_drs_algorithmError424.72test_cluster_drs.py

@shwstpprshwstppr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Tested VMware import

Template option visible in the UI now,
Screenshot from 2024-01-05 12-51-40

Import with default temporary template works fine,

import-vmware-default-template.mp4

@shwstppr
shwstppr merged commit 3f9dd4d into apache:mainJan 5, 2024
@shwstppr
shwstppr deleted the fix-419rc1-vmingestion-regressions branch January 5, 2024 07:27
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jan 9, 2024
…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#8428apache#8432
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4.19.0 RC1 Regression on Vmware ingestion

6 participants

@nvazquez@blueorangutan@shwstppr@DaanHoogland@harikrishna-patnala@Pearl1594