Skip to content

Fix to propagate updated management servers list and lb algorithm in host and indirect.agent.lb.algorithm settings resp, to systemvm agents - #10524

Merged
Pearl1594 merged 3 commits into
apache:4.20from
shapeblue:propagate-ms-list-to-systemvms
Mar 18, 2025
Merged

Fix to propagate updated management servers list and lb algorithm in host and indirect.agent.lb.algorithm settings resp, to systemvm agents#10524
Pearl1594 merged 3 commits into
apache:4.20from
shapeblue:propagate-ms-list-to-systemvms

Conversation

@sureshanaparti

@sureshanapartisureshanaparti commented Mar 7, 2025

Copy link
Copy Markdown
Contributor

Description

This PR fixes to propagate updated management servers list and lb algorithm in host and indirect.agent.lb.algorithm settings respectively, to systemvm agents.

Noticed updated management servers list is not propagated to the system VMs during testing, it's regression from #9840.

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
  • test (unit or integration test code)

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?

Updated management servers list and lb algorithm in host andd indirect.agent.lb.algorithm settings, and checked in the system vm configuration file (/usr/local/cloud/systemvm/conf/agent.properties).

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

…d indirect.agent.lb.algorithm settings, to systemvm agents
@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@sureshanaparti
sureshanaparti marked this pull request as ready for review March 7, 2025 09:29
@codecov

codecovBot commented Mar 7, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 4.16667% with 23 lines in your changes missing coverage. Please review.

Project coverage is 16.00%. Comparing base (8b09295) to head (7cdfaa9).
Report is 13 commits behind head on 4.20.

Files with missing linesPatch %Lines
...loudstack/agent/lb/IndirectAgentLBServiceImpl.java4.16%23 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## 4.20 #10524 +/- ##
============================================
+ Coverage 4.00% 16.00% +12.00% - Complexity 0 13104 +13104 
============================================
Files 397 5651 +5254 Lines 32487 495858 +463371 Branches 5760 60046 +54286 ============================================
+ Hits 1301 79371 +78070 - Misses 31037 407627 +376590 - Partials 149 8860 +8711 
FlagCoverage Δ
uitests4.00% <ø> (ø)
unittests16.84% <4.16%> (?)

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.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sureshanapartisureshanaparti changed the title Fix to propagate updated management servers list and lb algorithm in host andd indirect.agent.lb.algorithm settings, to systemvm agentsFix to propagate updated management servers list and lb algorithm in host and indirect.agent.lb.algorithm settings resp, to systemvm agentsMar 7, 2025
@blueorangutan

Copy link
Copy Markdown

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

@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti 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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12704

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins matrix job (EL8 mgmt + EL8 KVM, Ubuntu22 mgmt + Ubuntu22 KVM, EL8 mgmt + VMware 7.0u3, EL9 mgmt + XCP-ng 8.2 ) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-12626)

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-12625)

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

@sureshanaparti thanks for the fix. Left a couple of comments

@sureshanaparti

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@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

@shwstppr

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@shwstppr 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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12722

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
test_01_events_resourceError343.95test_events_resource.py
test_01_events_resourceError343.96test_events_resource.py
test_04_deploy_vm_for_other_user_and_test_vm_operationsError117.37test_network_permissions.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setupError1524.84test_network.py
test_02_restore_vm_with_disk_offeringError58.30test_restore_vm.py
test_03_restore_vm_with_disk_offering_custom_sizeError58.31test_restore_vm.py
test_02_restore_vm_strict_tags_failureError61.62test_vm_strict_host_tags.py

@Pearl1594

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12728

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-12628)
Environment: xcpng82 (x2), Advanced Networking with Mgmt server ol9
Total time taken: 79447 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10524-t12628-xcpng82.zip
Smoke tests completed. 136 look OK, 5 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_01_condensed_drs_algorithmFailure170.22test_cluster_drs.py
test_02_balanced_drs_algorithmFailure177.34test_cluster_drs.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setupError30.06test_network.py
test_01_non_strict_host_anti_affinityError236.47test_nonstrict_affinity_group.py
test_02_non_strict_host_affinityError122.58test_nonstrict_affinity_group.py
test_02_create_volumeError2.21test_resource_names.py
test_05_scale_vm_dont_allow_disk_offering_changeFailure72.73test_scale_vm.py

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
ContextSuite context=TestSharedNetworkWithConfigDrive>:setupError1519.45test_network.py

@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

@sureshanaparti
sureshanapartiforce-pushed the propagate-ms-list-to-systemvms branch from c6c21ac to 7cdfaa9CompareMarch 11, 2025 16:04

@kiranchavalakiranchavala 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, tested manually

  1. Create a cloudstack environment
  2. Login to the ssvm, cpvm and check the agent.properties

root@s-1-VM:~# cat /usr/local/cloud/systemvm/conf/agent.properties |grep host
host=10.0.35.136@static

  1. Update the global setting configuration of value "host"= 10.0.35.136,10.0.35.137

  2. Check agent.properties, found that the host value is propagated to the systemvm's

root@s-1-VM:~# cat /usr/local/cloud/systemvm/conf/agent.properties |grep host
host=10.0.35.136,10.0.35.137@static

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud 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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12809

@Pearl1594Pearl1594 moved this to In Progress in ACS 4.20.1Mar 17, 2025
@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File

@Pearl1594
Pearl1594 merged commit 33cdddf into apache:4.20Mar 18, 2025
@github-project-automationgithub-project-automationBot moved this from In Progress to Done in ACS 4.20.1Mar 18, 2025
@Pearl1594
Pearl1594 deleted the propagate-ms-list-to-systemvms branch March 18, 2025 18:58
phsm pushed a commit to phsm/cloudstack that referenced this pull request Mar 20, 2025
…host and indirect.agent.lb.algorithm settings resp, to systemvm agents (apache#10524)
* propagate updated management servers list and lb algorithm in host and indirect.agent.lb.algorithm settings, to systemvm agents
* addressed comments
* addressed comments
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
…host and indirect.agent.lb.algorithm settings resp, to systemvm agents (apache#10524)
* propagate updated management servers list and lb algorithm in host and indirect.agent.lb.algorithm settings, to systemvm agents
* addressed comments
* addressed comments
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants

@sureshanaparti@blueorangutan@DaanHoogland@shwstppr@Pearl1594@yadvr@kiranchavala