-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Re-Added time synchronization between host/VM #4991
Re-Added time synchronization between host/VM #4991
Conversation
Hi @reegnz. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Can one of the admins verify this patch? |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: reegnz The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I didn't manage to rebuild the ISO and test with it, maybe someone could help out with that though. |
Does the CI build the ISO? In that case it would make it much more easy for me to test it out. On my machine I built the ISO for more than an hour when I gave up on it. |
Looks reasonable, never understood why systemd spells virtualbox as "oracle" |
OOOKAY, I waited for the full iso build to finish now (pretty brutal time-wise). I found a mistake I made with the drop-in folder name that I fixed (systemd-timesync.d -> systemd-timesyncd.service.d). Running in virtualbox, displaying the drop-in and the condition failed text is what we want here. The timedatectl command output is a bit confusing though, but the key there is 'System clock synchronized': no:
Running in a different hypervisor, for me it was hyperkit. Displays drop-in file and unit activates properly, timedatectl shows expected output:
Seems like a success to me. @afbjorklund what do you think? |
This commit attempts to add back the missing time synchronization feature to Minikube that was removed earlier with #3476. As mentioned in #1378 we have an alternative solution for time synchronization for Oracle VirtualBox, so there we don't want to enable systemd-timesyncd. We are using systemd conditional activation on systemd-timesyncd and exclude systems that have an oracle hypervisor hosting the vm (currently that's virtualbox for our purposes).
@minikube-bot OK to test |
@reegnz Thank you so much for creating this issue ! this fixes one of the complains we had for minikube and I believe closes many issues ! thank you so much |
@medyagh Good to know this is such an important contribution. :) Always glad to help. |
This commit attempts to add back the missing time synchronization feature
to Minikube that was removed earlier with #3476.
As mentioned in #1378 we have an alternative solution for time
synchronization for Oracle VirtualBox, so there we don't want to enable
systemd-timesyncd.
We are using systemd conditional activation on systemd-timesyncd and
exclude systems that have an oracle hypervisor hosting the vm (currently
that's virtualbox for our purposes).
Fixes #1378