Skip to content

Allow deploy of VRs on dedicated resources#9531

Open
GaOrtiga wants to merge 8 commits into
apache:4.22from
scclouds:deploy_vr_dedicated_resources
Open

Allow deploy of VRs on dedicated resources#9531
GaOrtiga wants to merge 8 commits into
apache:4.22from
scclouds:deploy_vr_dedicated_resources

Conversation

@GaOrtiga

Copy link
Copy Markdown
Collaborator

Description

Currently, it is not possible to deploy VRs on dedicated resources, even if they are dedicated to the domain in which the VR will be created.

A new global configuration allowRoutersOnDedicatedResources has been created to allow VRs to be deployed on hosts, clusters, pods and zones that are dedicated to their respective domains.

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

How Has This Been Tested?

With the configuration marked as true:

  • I dedicated resources to the domain in which the VRs would be deployd and verified that the deploy worked normally.
  • I dedicated resources to an account in that domain and verified that I could not deploy VRs on these resources.
  • I dedicated resources to a different domain and verified that I could not deploy VRs on these resources.

I marked the configuration as false and verified that I could not deploy VRs on any of the dedicated resources.

Comment thread engine/schema/src/main/java/com/cloud/capacity/dao/CapacityDao.java Outdated
@nicoschmdt nicoschmdt force-pushed the deploy_vr_dedicated_resources branch from 5da9945 to 7b05daf Compare February 5, 2025 16:13
@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

codecov Bot commented Feb 6, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.66%. Comparing base (348ceaf) to head (e5354cd).

Files with missing lines Patch % Lines
...n/java/com/cloud/capacity/dao/CapacityDaoImpl.java 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               4.22    #9531   +/-   ##
=========================================
  Coverage     17.66%   17.66%           
+ Complexity    15791    15790    -1     
=========================================
  Files          5923     5923           
  Lines        533309   533314    +5     
  Branches      65238    65239    +1     
=========================================
+ Hits          94226    94228    +2     
- Misses       428437   428439    +2     
- Partials      10646    10647    +1     
Flag Coverage Δ
uitests 3.69% <ø> (ø)
unittests 18.74% <83.33%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@blueorangutan

Copy link
Copy Markdown

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

@nicoschmdt

Copy link
Copy Markdown
Contributor

Hey @DaanHoogland, could we run the CI on this PR?

@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-12421)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 58187 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9531-t12421-kvm-ol8.zip
Smoke tests completed. 139 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_11_isolated_network_with_dynamic_routed_mode Error 2.29 test_ipv4_routing.py
test_12_vpc_and_tier_with_dynamic_routed_mode Error 1.41 test_ipv4_routing.py
test_12_vpc_and_tier_with_dynamic_routed_mode Error 1.41 test_ipv4_routing.py
test_12_start_vm_multiple_volumes_allocated Error 20.01 test_vm_life_cycle.py

@github-actions

github-actions Bot commented May 2, 2025

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@nicoschmdt nicoschmdt force-pushed the deploy_vr_dedicated_resources branch from 7b05daf to e15e366 Compare May 6, 2025 20:21
@nicoschmdt

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nicoschmdt 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 13280

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@GaOrtiga

GaOrtiga commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

@GaOrtiga this looks more like a bug fix could you rebase with 4.22 or 4.20 ?

Done!

@GaOrtiga

GaOrtiga commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@GaOrtiga 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 18440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants