Skip to content

[config reload]: fix the condition for checking if system is starting#1766

Merged
lguohan merged 1 commit intosonic-net:masterfrom
lguohan:sr
Aug 17, 2021
Merged

[config reload]: fix the condition for checking if system is starting#1766
lguohan merged 1 commit intosonic-net:masterfrom
lguohan:sr

Conversation

@lguohan
Copy link
Contributor

@lguohan lguohan commented Aug 17, 2021

When systemd services finished, the systemd status could running
or degraded. Therefore, compare system status with starting directly.

Signed-off-by: Guohan Lu [email protected]

What I did

When systemd services finished, the systemd status could running
or degraded. Therefore, compare system status with starting directly.

Here is what is happening on kvm switch. Some services cannot be started.
Then, the system state is in degraded state.

admin@ARISTA01T1:~$ systemctl is-system-running
starting
admin@ARISTA01T1:~$ systemctl is-system-running
degraded

How I did it

How to verify it

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

When systemd services finished, the systemd status could running
or degraded. Therefore, compare system status with starting directly.

Signed-off-by: Guohan Lu <[email protected]>
@Pterosaur Pterosaur self-requested a review August 17, 2021 01:18
@lguohan lguohan merged commit dbcc6fd into sonic-net:master Aug 17, 2021
@lguohan lguohan deleted the sr branch August 17, 2021 05:17
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 18, 2022
includes:

320591a [DualToR] Handle race condition between tunnel_decap and mux orchestrator (sonic-net#2114)
5027a8f Handling Invalid CRM configuration gracefully (sonic-net#2109)
0b120fa [ci]: use native arm64 and armhf pool (sonic-net#2013)
394e88a Don't handle buffer pool watermark during warm reboot reconciling (sonic-net#1987)
9008a01 patch for issue sonic-net#1971 - enable Rx Drop handling for cisco-8000 (sonic-net#2041)
2723ee3 create debug_shell_enable config to enable debug shell (sonic-net#2060)
d7be0b9 [request parser] Add unit tests for request parser for multiple values (sonic-net#1766)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants