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

[fast reboot] set a fast-reboot DB flag #887

Merged
merged 1 commit into from
Apr 27, 2020
Merged

Conversation

yxieca
Copy link
Contributor

@yxieca yxieca commented Apr 23, 2020

- What I did

  • This flag is currently no functional impact with just this change.
  • This flag is intended to coordinate fast-reboot shutdown path.
  • This flag enables moving fast-reboot per service knowledge to service scripts.
    which unblocks moving warm-reboot per service knowledge to service scripts.
  • This flag is consistent with the boot up flag we setting on the boot up path.

Signed-off-by: Ying Xie [email protected]

- How to verify it
Did a quick fast-reboot test with the change.

- This flag is currently no functional impact with just this change.
- This flag is intended to coordinate fast-reboot shutdown path.
- This flag enables moving fast-reboot per service knowledge to service scripts.
  which unblocks moving warm-reboot per service knowledge to service scripts.
- This flag is consistent with the bootup flag we setting on the boot up path.

Signed-off-by: Ying Xie <[email protected]>
@yxieca
Copy link
Contributor Author

yxieca commented Apr 24, 2020

retest this please

@yxieca yxieca merged commit c40f17a into sonic-net:master Apr 27, 2020
@yxieca yxieca deleted the fast-reboot branch April 27, 2020 15:35
abdosi pushed a commit that referenced this pull request Apr 27, 2020
- This flag is currently no functional impact with just this change.
- This flag is intended to coordinate fast-reboot shutdown path.
- This flag enables moving fast-reboot per service knowledge to service scripts.
  which unblocks moving warm-reboot per service knowledge to service scripts.
- This flag is consistent with the bootup flag we setting on the boot up path.

Signed-off-by: Ying Xie <[email protected]>
{
common_clear

redis-cli -n 6 DEL "FAST_REBOOT|system" &>/dev/null || /bin/true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use sonic-db-cli

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yxieca can we change this to sonic-db-cli ?

@@ -308,6 +315,7 @@ case "$REBOOT_TYPE" in
"fast-reboot")
BOOT_TYPE_ARG=$REBOOT_TYPE
trap clear_fast_boot EXIT HUP INT QUIT TERM KILL ABRT ALRM
redis-cli -n 6 SET "FAST_REBOOT|system" "1" "EX" "180" &>/dev/null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same , can we change this to sonic-db-cli ? @yxieca

abdosi pushed a commit to abdosi/sonic-utilities that referenced this pull request Aug 4, 2020
- This flag is currently no functional impact with just this change.
- This flag is intended to coordinate fast-reboot shutdown path.
- This flag enables moving fast-reboot per service knowledge to service scripts.
  which unblocks moving warm-reboot per service knowledge to service scripts.
- This flag is consistent with the bootup flag we setting on the boot up path.

Signed-off-by: Ying Xie <[email protected]>
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
[Vxlan] : adding show vnet/vxlan cmds (sonic-net#880)
[show][bgp] Use only 'show ip bgp' as the base and use bgp_frr_v4 file
for FRR routing stack (sonic-net#884)
[fast reboot] set a fast-reboot DB flag (sonic-net#887)
[show] Add 'ip/ipv6 bgp network' commands (sonic-net#888)
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.

4 participants