Skip to content
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

fix: check the ubuntu-22.04 synchronization time service #592

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

qinyer
Copy link
Contributor

@qinyer qinyer commented Jun 30, 2023

What type of PR is this?

/kind bug

What this PR does / why we need it:

Ubuntu-22.04 synchronization time service name is ntp.service, so detecting it during deployment

Which issue(s) this PR fixes:

Fixes #

Special notes for reviewers:

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:


@kubeclipper-bot
Copy link
Collaborator

@qinyer: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kubeclipper-bot kubeclipper-bot added kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes do-not-merge/release-note-label-needed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 30, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jun 30, 2023

Codecov Report

Merging #592 (98a5291) into release-1.3 (3544c0a) will not change coverage.
The diff coverage is 0.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Impacted file tree graph

@@             Coverage Diff              @@
##           release-1.3     #592   +/-   ##
============================================
  Coverage        12.05%   12.05%           
============================================
  Files              111      111           
  Lines            17146    17146           
============================================
  Hits              2067     2067           
  Misses           14831    14831           
  Partials           248      248           
Impacted Files Coverage Δ
pkg/cli/deploy/deploy.go 5.41% <0.00%> (ø)

Copy link
Contributor

@lixd lixd left a comment

Choose a reason for hiding this comment

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

/lgtm

@kubeclipper-bot kubeclipper-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 30, 2023
@kubeclipper-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 07446725bab86f588ac191be8427486562db4a28

@@ -295,7 +295,7 @@ var (
precheckKcServerFunc = generateCommonPreCheckFunc("kc-server")
precheckKcAgentFunc = generateCommonPreCheckFunc("kc-agent")
precheckNtpFunc precheckFunc = func(sshConfig *sshutils.SSH, host string) error {
ret, err := sshutils.SSHCmdWithSudo(sshConfig, host, "systemctl --all --type service --state running | grep -e chrony -e ntpd|wc -l")
ret, err := sshutils.SSHCmdWithSudo(sshConfig, host, "systemctl --all --type service --state running | grep -e chrony -e ntpd -e ntp|wc -l")
Copy link
Contributor

Choose a reason for hiding this comment

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

直接 -e ntp 可以涵盖 ntpd 和 ntp 吧

Signed-off-by: qinyer <qy913726062@gmail.com>
@kubeclipper-bot kubeclipper-bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 3, 2023
@kubeclipper-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lixd, qinyer, wu-wenxiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeclipper-bot kubeclipper-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 3, 2023
@wu-wenxiang
Copy link
Contributor

/lgtm

@kubeclipper-bot kubeclipper-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 3, 2023
@kubeclipper-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 04687d4ab4fd867a9b0012763dd95ac53f87cd74

@kubeclipper-bot kubeclipper-bot merged commit 7c3ae7f into kubeclipper:release-1.3 Jul 3, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes do-not-merge/release-note-label-needed kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants