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

[determine-reboot-cause] delay execution #8935

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

Xichen96
Copy link
Contributor

@Xichen96 Xichen96 commented Oct 9, 2021

Since database.service has been moved to execute after rc-local.service,
and determine-reboot-cause.service rely on database.service, we have to
specify that in "After=".

Signed-off-by: Xichen Lin [email protected]

Why I did it

Fixes #8934, "show reboot-cause" always show "Unknown".

How I did it

Delay execution of determine-reboot-cause, which produces result for "show reboot-cause"
.

How to verify it

Test it on dut.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

Include database.service in After and Required for determine-reboot-cause.service.

A picture of a cute animal (not mandatory but encouraged)

Since database.service has been moved to execute after rc-local.service,
and determine-reboot-cause.service rely on database.service, we have to
specify that in "After=".

Signed-off-by: Xichen Lin <[email protected]>
@Xichen96 Xichen96 requested a review from lguohan as a code owner October 9, 2021 06:22
@Xichen96 Xichen96 self-assigned this Oct 9, 2021
@Xichen96
Copy link
Contributor Author

Xichen96 commented Oct 9, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Blueve
Copy link
Contributor

Blueve commented Oct 11, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Xichen96 Xichen96 merged commit 4654f72 into sonic-net:master Oct 14, 2021
judyjoseph pushed a commit that referenced this pull request Oct 14, 2021
Since database.service has been moved to execute after rc-local.service,
and determine-reboot-cause.service rely on database.service, we have to
specify that in "After=".

Signed-off-by: Xichen Lin <[email protected]>

Co-authored-by: Xichen Lin <[email protected]>
qiluo-msft pushed a commit that referenced this pull request Oct 15, 2021
Since database.service has been moved to execute after rc-local.service,
and determine-reboot-cause.service rely on database.service, we have to
specify that in "After=".

Signed-off-by: Xichen Lin <[email protected]>

Co-authored-by: Xichen Lin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[reboot-cause] failed to get reboot cause
5 participants