Skip to content

[determine-reboot-cause] delay execution#8935

Merged
Xichen96 merged 1 commit intosonic-net:masterfrom
Xichen96:determine-reboot-cause-fix
Oct 14, 2021
Merged

[determine-reboot-cause] delay execution#8935
Xichen96 merged 1 commit intosonic-net:masterfrom
Xichen96:determine-reboot-cause-fix

Conversation

@Xichen96
Copy link
Copy Markdown
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 xichenlin@microsoft.com

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 <xichenlin@microsoft.com>
@Xichen96 Xichen96 requested review from Blueve and sujinmkang October 9, 2021 06:22
@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
Copy Markdown
Contributor Author

Xichen96 commented Oct 9, 2021

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@Blueve
Copy link
Copy Markdown
Contributor

Blueve commented Oct 11, 2021

/azp run

@azure-pipelines
Copy link
Copy Markdown

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 <xichenlin@microsoft.com>

Co-authored-by: Xichen Lin <xichenlin@microsoft.com>
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 <xichenlin@microsoft.com>

Co-authored-by: Xichen Lin <xichenlin@microsoft.com>
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