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

NAS-110511 / 21.06 / Bug fixes for setting system birthday #6837

Merged
merged 2 commits into from May 6, 2021
Merged

Conversation

sonicaj
Copy link
Member

@sonicaj sonicaj commented May 5, 2021

This PR fixes following issues:

  1. We were trusting that system time would be the correct one, but that may not be the case if ntpd has not synced. Changes have been introduced to make sure that we trust the time returned by ntp request if only the clock has synchronized.

  2. If we were unable to determine system time, we were waiting for 24 hours before checking again for system birthday which means that we would be storing the incorrect system birthday even when we could potentially save the correct time if we just checked sooner.

  3. Do not unnecessarily have a hook for interface.post_sync when setting system birthday is a one time thing. It will already be ensured that we do set it. So if the first pass failed and interfaces were synced, we will be having another pass after 5 minutes and we will catch up with the correct synced time.

@sonicaj sonicaj requested a review from a team May 5, 2021 05:01
@sonicaj sonicaj self-assigned this May 5, 2021
@bugclerk bugclerk changed the title Bug fixes for setting system birthday NAS-110511 / 21.06 / Bug fixes for setting system birthday May 5, 2021
@bugclerk
Copy link
Contributor

bugclerk commented May 5, 2021

1 similar comment
@bugclerk
Copy link
Contributor

bugclerk commented May 5, 2021

@sonicaj sonicaj changed the base branch from master to fix-middleware-start May 5, 2021 05:02
Base automatically changed from fix-middleware-start to master May 5, 2021 13:26
@sonicaj sonicaj removed the pending QA label May 6, 2021
@sonicaj sonicaj merged commit ef1fce3 into master May 6, 2021
@sonicaj sonicaj deleted the ntp-fixes branch May 6, 2021 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants