Skip to content

Fix allocation of VMs with multiple clusters - #8611

Merged
borisstoyanov merged 2 commits into
apache:4.19from
scclouds:fix-allocation-for-multiple-clusters
Jun 14, 2024
Merged

Fix allocation of VMs with multiple clusters#8611
borisstoyanov merged 2 commits into
apache:4.19from
scclouds:fix-allocation-for-multiple-clusters

Conversation

@BryanMLima

Copy link
Copy Markdown
Contributor

Description

This PR fixes a scenario where if the first cluster verified by ACS does not have any compatible hosts, an exception is thrown, ignoring the verification of possible compatible hosts in other clusters.

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

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

  • Cluster 1: Host A
  • Cluster 2: Host B

Using the environment above, I added the flexible host tag false to Host A, and tried to deploy a VM; which would always result on an incompatible host for Cluster 1. Prior to this patch, the CloudRuntimeException is thrown with the message No suitable host found for vm [...]. and Host B is not verified.

After applying this patch, the message No suitable host found for VM [%s] in %s. is still logged, however, Host B is verified for compatibility and the VM is deployed as expected.

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

@weizhouapache

Copy link
Copy Markdown
Member

@BryanMLima
target to main or 4.18/4.19 ?

@BryanMLima

Copy link
Copy Markdown
ContributorAuthor

@BryanMLima target to main or 4.18/4.19 ?

Thanks, I rebased to 4.19 as the problem arose from PR #7489.

@BryanMLimaBryanMLima added this to the 4.19.1.0 milestone Feb 5, 2024
@BryanMLima

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@codecov

codecovBot commented Feb 5, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c795547) 20.99% compared to head (710c848) 4.38%.
Report is 16 commits behind head on 4.19.

❗ Current head 710c848 differs from pull request most recent head 6676a4b. Consider uploading reports for the commit 6676a4b to get more accurate results

Additional details and impacted files
@@ Coverage Diff @@## 4.19 #8611 +/- ##
============================================
- Coverage 20.99% 4.38% -16.62% 
============================================
Files 4849 361 -4488 Lines 324441 28700 -295741 Branches 45573 5004 -40569 ============================================
- Hits 68121 1258 -66863 + Misses 246563 27303 -219260 + Partials 9757 139 -9618 
FlagCoverage Δ
simulator-marvin-tests?
uitests4.38% <ø> (?)

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.

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@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

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

LGTM - but this need some (manual) testing

@BryanMLima

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-9375)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 47115 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8611-t9375-kvm-centos7.zip
Smoke tests completed. 128 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_02_trigger_shutdownFailure336.69test_safe_shutdown.py

@JoaoJandreJoaoJandre 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, didn't test it

@BryanMLima

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

@borisstoyanovborisstoyanov self-assigned this Jun 14, 2024

@borisstoyanovborisstoyanov 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, manually checked the changes.

@borisstoyanov
borisstoyanov merged commit 00fe25a into apache:4.19Jun 14, 2024
@borisstoyanovborisstoyanov removed their assignment Jun 14, 2024
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 20, 2024
* Fix allocation of VMs with multiple clusters
* Readd debug guard
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants

@BryanMLima@weizhouapache@blueorangutan@DaanHoogland@yadvr@borisstoyanov@JoaoJandre