Skip to content

Allow custom NTP servers for CPVM #11210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 4.20
Choose a base branch
from
Open

Allow custom NTP servers for CPVM #11210

wants to merge 1 commit into from

Conversation

Pearl1594
Copy link
Contributor

Description

This PR fixes #11165

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

Screenshots (if appropriate):

How Has This Been Tested?

configured NTP servers through global setting: cpvm.ntp.server.list
Recreated CPVM
queried ntp servers using: ntpq -p and verified content of /etc/ntpsec/ntp.conf

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

Copy link

codecov bot commented Jul 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 5.15%. Comparing base (30deec8) to head (a23b06b).

❗ There is a different number of reports uploaded between BASE (30deec8) and HEAD (a23b06b). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (30deec8) HEAD (a23b06b)
unittests 1 0
Additional details and impacted files
@@              Coverage Diff              @@
##               4.20   #11210       +/-   ##
=============================================
- Coverage     16.15%    5.15%   -11.01%     
=============================================
  Files          5656      417     -5239     
  Lines        497792    38665   -459127     
  Branches      60368     7791    -52577     
=============================================
- Hits          80443     1992    -78451     
+ Misses       408396    36480   -371916     
+ Partials       8953      193     -8760     
Flag Coverage Δ
uitests 4.37% <ø> (+0.36%) ⬆️
unittests ?

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.

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

overall lgtm
left two minor comments

@blueorangutan
Copy link

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

Test Result Time (s) Test File
test_01_deployVMInSharedNetwork Failure 485.62 test_network.py

@Pearl1594 Pearl1594 changed the base branch from main to 4.20 July 17, 2025 15:32
@Pearl1594 Pearl1594 requested a review from weizhouapache July 17, 2025 15:39
@Pearl1594
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

@Pearl1594 Pearl1594 marked this pull request as ready for review July 17, 2025 15:40
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
18.2% Coverage on New Code (required ≥ 40%)

See analysis details on SonarQube Cloud

@blueorangutan
Copy link

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

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

@@ -1276,6 +1276,10 @@ public boolean finalizeVirtualMachineProfile(VirtualMachineProfile profile, Depl
buf.append(" vmpassword=").append(configurationDao.getValue("system.vm.password"));
}

if (org.apache.commons.lang3.StringUtils.isNotEmpty(NTPServerConfig.value())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (org.apache.commons.lang3.StringUtils.isNotEmpty(NTPServerConfig.value())) {
if (StringUtils.isNotEmpty(NTPServerConfig.value())) {

the internal proxy object should be used.

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.

Allow custom NTP servers for CPVM
5 participants