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

Merged
merged 2 commits into from
Jul 25, 2025
Merged

Allow custom NTP servers for CPVM #11210

merged 2 commits into from
Jul 25, 2025

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

Attention: Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 16.20%. Comparing base (30deec8) to head (be2c0dd).
Report is 11 commits behind head on 4.20.

Files with missing lines Patch % Lines
...om/cloud/consoleproxy/ConsoleProxyManagerImpl.java 0.00% 3 Missing ⚠️
.../secondarystorage/SecondaryStorageManagerImpl.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #11210      +/-   ##
============================================
+ Coverage     16.15%   16.20%   +0.04%     
- Complexity    13274    13371      +97     
============================================
  Files          5656     5656              
  Lines        497792   499317    +1525     
  Branches      60368    61022     +654     
============================================
+ Hits          80443    80923     +480     
- Misses       408396   409418    +1022     
- Partials       8953     8976      +23     
Flag Coverage Δ
uitests 4.00% <ø> (ø)
unittests 17.05% <20.00%> (+0.04%) ⬆️

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

@sureshanaparti
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@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

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

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

Copy link

@blueorangutan
Copy link

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

@sureshanaparti
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File

@DaanHoogland DaanHoogland self-assigned this Jul 25, 2025
Copy link
Contributor

@kiranchavala kiranchavala left a comment

Choose a reason for hiding this comment

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

LGTM

Set the value of the global setting "ntp.server.list" to time.google.com

Verified the entry in the file (/etc/ntpsec/ntp.conf) in ssvm and cpvm after reboot or destroying the systemvm

@DaanHoogland DaanHoogland removed their assignment Jul 25, 2025
@DaanHoogland DaanHoogland merged commit 890386e into 4.20 Jul 25, 2025
48 of 50 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Apache CloudStack 4.21.0 Jul 25, 2025
@DaanHoogland DaanHoogland deleted the setup-cpvm-ntp branch July 25, 2025 13:21
Sign up for free to 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.

Allow custom NTP servers for CPVM
7 participants