-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[reboot-cause] failed to get reboot cause #8934
Comments
Output of show version SONiC Software Version: SONiC.20201231.23 Platform: x86_64-cel_e1031-r0 Docker images: |
@sujinmkang This is the issue I opened |
@Xichen96 Is this specific platform issue? If so, what is the platform? |
@Xichen96 Please specify what the commend of the reboot you performed on which platform., |
It turns out that if I let determine-reboot-cause to sleep for 30s before running, it produces the expected result. Otherwise, determine-reboot-cause fail mid execution. |
determine-reboot-cause script hangs on command "docker", which is used to determine if the script is running inside of a container. "docker" hangs because it is called too early, before dockerd is fully initialized. "docker" can be replaced by a read on /proc/1/comm and checking if it is "systemd", but it will fail on other problems. Making the script run later in booting up solved all problems. |
Description
Reboot tests failed on getting reboot cause, if they are not stopped by other checks first
Steps to reproduce the issue
Describe the results you received
Unknown
Describe the results you expected
User issued 'reboot' command [User: admin, Time: xxx]
Additional information you deem important (e.g. issue happens only occasionally)
Output of
show version
The text was updated successfully, but these errors were encountered: