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

Sync guest system clock if desynchronized from host #4283

Merged
merged 10 commits into from
May 29, 2019

Conversation

tstromberg
Copy link
Contributor

@tstromberg tstromberg commented May 17, 2019

Fixes #1378 and #4264

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 17, 2019
@tstromberg tstromberg changed the title Forcibly sync the guest system clock if is more than 4 seconds behind WIP: Forcibly sync the guest system clock if is more than 4 seconds behind May 17, 2019
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 17, 2019
@tstromberg
Copy link
Contributor Author

WIP because I would like to write a decent test for this.

@tstromberg tstromberg changed the title WIP: Forcibly sync the guest system clock if is more than 4 seconds behind Forcibly sync the guest system clock if more than 2 seconds off May 29, 2019
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 29, 2019
@tstromberg tstromberg changed the title Forcibly sync the guest system clock if more than 2 seconds off Forcibly sync guest system clock if it is desynchronized from the host by >2 seconds May 29, 2019
@tstromberg tstromberg changed the title Forcibly sync guest system clock if it is desynchronized from the host by >2 seconds Force sync guest system clock if desynchronized from host May 29, 2019
@tstromberg tstromberg changed the title Force sync guest system clock if desynchronized from host Sync guest system clock if desynchronized from host May 29, 2019
@RA489
Copy link

RA489 commented May 29, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 29, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RA489, tstromberg

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

@sharifelgamal
Copy link
Collaborator

Test failure is unrelated to this change.

@tstromberg tstromberg merged commit 56ec0ae into kubernetes:master May 29, 2019
return nil
}

// systemClockDelta returns the approximate difference between the host and guest system clock
Copy link
Member

Choose a reason for hiding this comment

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

wrong func name in the comment "systemClockDelta" should be "guestClockDelta"

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hyperkit clock falls behind: failed to write or validate certificate: the certificate is not valid yet
5 participants