Skip to content

DRS: Ensure the destination host is part of the same cluster - #9245

Merged
sureshanaparti merged 2 commits into
4.19from
drs-ensure-migration-within-cluster
Jun 25, 2024
Merged

DRS: Ensure the destination host is part of the same cluster#9245
sureshanaparti merged 2 commits into
4.19from
drs-ensure-migration-within-cluster

Conversation

@vishesh92

@vishesh92vishesh92 commented Jun 13, 2024

Copy link
Copy Markdown
Member

Description

Fixes#8629

This PR ensures that during a DRS run, the destination host is part of the same cluster for which migration is being run.

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):

How Has This Been Tested?

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

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

@vishesh92vishesh92 added this to the 4.19.1.0 milestone Jun 13, 2024
@codecov

codecovBot commented Jun 13, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 14.95%. Comparing base (034a5c8) to head (6a2936a).
Report is 24 commits behind head on 4.19.

FilesPatch %Lines
...ache/cloudstack/cluster/ClusterDrsServiceImpl.java0.00%0 Missing and 1 partial ⚠️
Additional details and impacted files
@@ Coverage Diff @@## 4.19 #9245 +/- ##
============================================
+ Coverage 4.29% 14.95% +10.66% - Complexity 0 11015 +11015 
============================================
Files 363 5378 +5015 Lines 29374 470095 +440721 Branches 5138 58572 +53434 ============================================
+ Hits 1261 70295 +69034 - Misses 27970 392014 +364044 - Partials 143 7786 +7643 
FlagCoverage Δ
uitests4.29% <ø> (ø)
unittests15.66% <0.00%> (?)

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.

@vishesh92

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@vishesh92vishesh92 linked an issue Jun 13, 2024 that may be closed by this pull request

@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

@blueorangutan

Copy link
Copy Markdown

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

@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

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud 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-10443)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 48859 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9245-t10443-kvm-centos7.zip
Smoke tests completed. 128 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_02_trigger_shutdownFailure341.70test_safe_shutdown.py
test_01_secure_vm_migrationError33.66test_vm_life_cycle.py
test_01_secure_vm_migrationError33.66test_vm_life_cycle.py
test_04_deploy_vnf_applianceError102.57test_vnf_templates.py
test_04_deploy_vnf_applianceError102.57test_vnf_templates.py
test_05_delete_vnf_templateError0.06test_vnf_templates.py
ContextSuite context=TestVnfTemplates>:teardownError1.16test_vnf_templates.py

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test alma9 kvm-alma9

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-10465)
Environment: kvm-alma9 (x2), Advanced Networking with Mgmt server a9
Total time taken: 48927 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9245-t10465-kvm-alma9.zip
Smoke tests completed. 126 look OK, 5 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestRouterServices>:setupError0.00test_routers.py
test_01_isolate_network_FW_PF_default_routes_egress_trueError0.23test_routers_network_ops.py
test_02_isolate_network_FW_PF_default_routes_egress_falseError0.21test_routers_network_ops.py
ContextSuite context=TestRedundantIsolateNetworks>:setupError1.44test_routers_network_ops.py
ContextSuite context=TestCpuCapServiceOfferings>:setupError0.00test_service_offerings.py
ContextSuite context=TestServiceOfferings>:setupError0.36test_service_offerings.py
ContextSuite context=TestSetSourceNatIp>:setupError0.00test_set_sourcenat.py
test_01_redundant_vpc_site2site_vpnFailure445.48test_vpc_vpn.py

@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 Build Failed (tid-10476)

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud 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-10481)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 49012 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9245-t10481-kvm-centos7.zip
Smoke tests completed. 130 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_02_trigger_shutdownFailure341.92test_safe_shutdown.py

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

@sureshanaparti
sureshanaparti merged commit 2bf36ef into 4.19Jun 25, 2024
@DaanHoogland
DaanHoogland deleted the drs-ensure-migration-within-cluster branch June 26, 2024 05:53
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jul 2, 2024
…9245)
* DRS: Ensure the destination host is part of the same cluster
* Add and fix unit tests
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

DRS failed for cluster if have another cluster in zone

7 participants

@vishesh92@blueorangutan@yadvr@DaanHoogland@shwstppr@sureshanaparti@weizhouapache