-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
gNOI Warm Reboot - Added tests #20801
base: master
Are you sure you want to change the base?
Conversation
b5f6845
to
9dd208a
Compare
165ac73
to
2bfdab7
Compare
4194e72
to
c3b6888
Compare
c11590c
to
ad96646
Compare
@github76543 Joh, can you PTAL and signoff. |
26e2ea9
to
4b6bfbb
Compare
4b6bfbb
to
2c1d1b3
Compare
/azp run Azure.sonic-buildimage |
Pull request contains merge conflicts. |
2c1d1b3
to
b304ab0
Compare
/azp run Azure.sonic-buildimage |
Pull request contains merge conflicts. |
b304ab0
to
ff82c8b
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
0918d69
to
b7f84ed
Compare
/azp run Azure.sonic-buildimage |
Pull request contains merge conflicts. |
b7f84ed
to
b5294f6
Compare
/azp run Azure.sonic-buildimage |
Pull request contains merge conflicts. |
|
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
#!/usr/bin/env bash | ||
|
||
|
||
mkdir -p /var/sonic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libperl5.32==5.32.1-4+deb11u3 | ||
libpgm-5.3-0==5.3.128~dfsg-2 | ||
libprocps8==2:3.3.17-5 | ||
libprotobuf-dev==3.21.12-3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -63,6 +63,7 @@ | |||
}, | |||
{%- set features = [("bgp", "{% if not DEVICE_RUNTIME_METADATA['ETHERNET_PORTS_PRESENT'] or ('CHASSIS_METADATA' in DEVICE_RUNTIME_METADATA and DEVICE_RUNTIME_METADATA['CHASSIS_METADATA']['module_type'] in ['supervisor']) %}disabled{% else %}enabled{% endif %}", false, "enabled"), | |||
("database", "always_enabled", false, "always_enabled"), | |||
("framework", "enabled", false, "enabled"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now rely on /etc/sonic/config_db.json to provide golden config, and minimize hard-coded config inside /etc/sonic/init_cfg.json. Is it possible not to change this file?
@wen587 to review.
@@ -180,6 +180,8 @@ supervisorctl start tunnelmgrd | |||
|
|||
supervisorctl start fabricmgrd | |||
|
|||
supervisorctl start rebootbackend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[submodule "src/sonic-framework/gnoi"] | ||
path = src/sonic-framework/gnoi | ||
url = https://github.com/openconfig/gnoi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hdwhdw to review this new dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have an issue with this for now. But this creates a potential issue of the gnoi used by sonic-framework go out of sync with the gnoi used by sonic-gnmi. There isn't a good short-term solution, but we should have some issue tracking it and eventually use the same gnoi across sonic, especially given it is not so easy to update this dependency in sonic-gnmi.
[submodule "src/sonic-framework/gnoi"] | ||
path = src/sonic-framework/gnoi | ||
url = https://github.com/openconfig/gnoi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have an issue with this for now. But this creates a potential issue of the gnoi used by sonic-framework go out of sync with the gnoi used by sonic-gnmi. There isn't a good short-term solution, but we should have some issue tracking it and eventually use the same gnoi across sonic, especially given it is not so easy to update this dependency in sonic-gnmi.
/* Reboot is a request to the reboot sonic host service to request a reboot | ||
from the platform. This takes as an argument a string based json formatted | ||
Reboot request from | ||
system.proto.’https://github.com/openconfig/gnoi/blob/73a1e7675c5f963e7810bd3828203f2758eb47e8/system/system.proto#L107 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link can easily go stale, suggest simply using https://github.com/openconfig/gnoi/blob/main/system/system.proto
@@ -0,0 +1,19 @@ | |||
# framework package | |||
|
|||
FRAMEWORK = framework_1.0.0_$(CONFIGURED_ARCH).deb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_main.cpp | ||
|
||
tests_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(CFLAGS_COVERAGE) $(CFLAGS_SAI) | ||
tests_CPPFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(CFLAGS_COVERAGE) $(CFLAGS_SAI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why I did it
Work item tracking
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Added test cases for warm reboot.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)