Commit Graph

2561 Commits

Author SHA1 Message Date
mssonicbld
7a9c05c1e7
[yang] Add Bmc to Device Neighbor Metadata element type list (#16188) (#16470)
Bmc is a valid neighbor type in minigraph, however it was missing from the YANG model definition. Usually, the Bmc type device can be neighbor of BmcMgmtToRRouter. This PR is to introduce this type.

Co-authored-by: Yaqiang Zhu <zyq1512099831@gmail.com>
2023-09-06 16:31:18 -07:00
mssonicbld
7f35f4c200
[submodule] Update submodule sonic-utilities to the latest HEAD automatically (#16476)
src/sonic-utilities

* 03292ffe - (HEAD -> 202205, origin/202205) Fix show acl table for masic (#2937) (6 minutes ago) [Arvindsrinivasan Lakshmi Narasimhan]
* 627a2f59 - [Techsupport] Update the message seen during the lock acquisition failure (#2897) (55 minutes ago) [Vivek]
2023-09-06 16:10:36 -07:00
mssonicbld
f2f8f5f7a9
[submodule] Update submodule linkmgrd to the latest HEAD automatically (#16474)
src/linkmgrd

* 4bf3ebb - (HEAD -> 202205, origin/202205) [active-standby] Fix extra toggle observed in `config reload` (#216) (53 minutes ago) [Longxiang Lyu]
2023-09-06 16:10:06 -07:00
mssonicbld
95f9f44958
[YANG][vlan-sub-interface] Add vlan field (#15838) (#16469)
* [YANG][vlan-sub-interface] Add `vlan` field



* Fix typo



* Fix UT



---------

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
Co-authored-by: Longxiang Lyu <35479537+lolyu@users.noreply.github.com>
2023-09-06 16:09:40 -07:00
mssonicbld
86b4d38bd3
[YANG SONIC-ACL] Fix Yang definition of ACL_TABLE_TYPE (#16247) (#16472)
How I did it
Update Yang definition of ACL_TABLE_TYPE.
Update existing testcase.
Add new testcase to cover lowercase key scenario.

How to verify it
Verified by building sonic_yang_models-1.0-py3-none-any.whl. While building the target package, unit tests were run and passed.

Co-authored-by: Zhijian Li <zhijianli@microsoft.com>
2023-09-06 16:09:17 -07:00
mssonicbld
4adaa2854e
[minigraph-parser] Update the definition of acl table type BMCDATA and BMCDATAV6 (#16249) (#16473)
Why I did it
According to ACL-Table-Type-HLD, the value type of MATCHES, ACTIONS and BIND_POINTS should be list instead of string. Opening this PR to update the definition of BMCDATA and BMCDATAV6.

How I did it
Update the definition of BMCDATA and BMCDATAV6 in minigraph-parser.

How to verify it
Verified by UT and build SONiC image.

Co-authored-by: Zhijian Li <zhijianli@microsoft.com>
2023-09-06 16:08:47 -07:00
mssonicbld
8cac746a03
Fix openconfig_acl.py (#16303) (#16345)
How I did it
Fix the regex for L4 port range in openconfig_acl.py.

How to verify it
Build image and install on Arista-720DT DUT, then try the repro steps in #16189 and confirmed the ACL rule be setup correctly:

Co-authored-by: Zhijian Li <zhijianli@microsoft.com>
2023-09-05 21:47:55 -07:00
jcaiMR
8787b71e03
fix counter log issue on 32bits platform (#16357)
Cherry pick sonic-net/sonic-dhcpmon#11 into 202205.
2023-09-05 09:42:56 -07:00
Arvindsrinivasan Lakshmi Narasimhan
c4c2c00c11
submodule update sonic-platform-daamons (#16386)
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
2023-09-01 20:12:38 -07:00
Arvindsrinivasan Lakshmi Narasimhan
18fb27b84d
patch fix to ignore dup nh in netlink msg (#16385)
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
2023-09-01 20:11:43 -07:00
mssonicbld
896b8e7209
[submodule] Update submodule sonic-swss to the latest HEAD automatically (#16333)
src/sonic-swss

* d787d50d - (HEAD -> 202205, origin/202205) Remove fabric queue counters. (#2862) (2 days ago) [jfeng-arista]
* 4579d43f - update portStatIds for cisco (#2876) (3 days ago) [Zhixin Zhu]
2023-09-01 09:10:46 -07:00
mssonicbld
95d7d440c2
[submodule] Update submodule sonic-linux-kernel to the latest HEAD automatically (#16331)
src/sonic-linux-kernel

* db00eb9 - (HEAD -> 202205, origin/202205) PATCH] net: allow user to set metric on default route learned via Router Advertisement (#326) (2 days ago) [abdosi]
2023-09-01 09:10:11 -07:00
vmittal-msft
134a22221c
Update CPU transmitted packets to queue 7 for chassis (#16349) 2023-08-31 08:57:02 -07:00
mssonicbld
d17ed9d9d6
[submodule] Update submodule sonic-sairedis to the latest HEAD automatically (#16293)
src/sonic-sairedis

* 70242e7 - (HEAD -> 202205, origin/202205) [CI]: Fix collect log error in azp template. (#1281) (2 days ago) [Nazarii Hnydyn]
2023-08-28 09:32:05 -07:00
mssonicbld
b0660ebb2d
[submodule] Update submodule sonic-utilities to the latest HEAD automatically (#16265)
src/sonic-utilities

* 1ed5b5a9 - (HEAD -> 202205, origin/202205) Add transceiver status CLI to show output from TRANSCEIVER_STATUS table (cherry-pick to 202205) (#2950) (4 days ago) [longhuan-cisco]
* ba327726 - Fix in config override when all asic namespaces not present in golden_config_db (#2946) (4 days ago) [judyjoseph]
2023-08-28 09:29:18 -07:00
mssonicbld
f04206922a
[submodule] Update submodule sonic-platform-common to the latest HEAD automatically (#16264)
src/sonic-platform-common

* b41db16 - (HEAD -> 202205, origin/202205) Move tx_disable/tx_disabled_channel/rx_los/tx_fault  to get_transceiver_status API (#359) (#395) (32 hours ago) [longhuan-cisco]
2023-08-25 17:04:44 -07:00
mssonicbld
8757e6b8d9
[YANG SONIC-ACL] Fix Yang definition of IN_PORTS and OUT_PORTS (#16220) (#16235)
How I did it
Update Yang definition of IN_PORTS and OUT_PORTS to string.
Since we cannot split the string with comma (,) and validate each substring is a valid SONiC port name. The only restriction for them is must be a string.

How to verify it
Verified by building sonic_yang_models-1.0-py3-none-any.whl. While building the target package, unit tests were run and passed.
Build a SONiC image based on 202205 branch and installed on physical DUT. Re try the steps in [Yang] Incorrect definition of IN_PORTS and OUT_PORTS in sonic-acl.yang #16190 and can see below success response:

Co-authored-by: Zhijian Li <zhijianli@microsoft.com>
2023-08-25 17:03:46 -07:00
judyjoseph
d91565ba5e
sudo not required explicitly as /bin/ip netns identify is part of READ_ONLY_CMDS in sudoers file (#16258)
Cherry-pick PR :#16115
2023-08-25 17:02:26 -07:00
mssonicbld
be818f146f
[submodule] Update submodule sonic-platform-daemons to the latest HEAD automatically (#16196)
src/sonic-platform-daemons

* b01c88d - (HEAD -> 202205, origin/202205) [ycable] Curb log messages in active-active by changing verbosity level; fix missing namespaces in delete event handle (#391) (4 days ago) [vdahiya12]
2023-08-22 08:58:06 -07:00
mssonicbld
5be045beed
[submodule] Update submodule sonic-utilities to the latest HEAD automatically (#16198)
src/sonic-utilities

* 56a1ae24 - (HEAD -> 202205, origin/202205) clear: Fix clear queuecounters to also clear VOQ counters (#2879) (10 hours ago) [Patrick MacArthur]
2023-08-18 11:21:13 -07:00
mssonicbld
a61bb76026
[submodule] Update submodule sonic-platform-common to the latest HEAD automatically (#16153)
src/sonic-platform-common

* a6dd67e - (HEAD -> 202205, origin/202205) Comment out tx power validation check and program the passed value  (#389) (29 hours ago) [abdosi]
2023-08-16 13:29:34 -07:00
mssonicbld
a7193556aa
[submodule] Update submodule sonic-platform-daemons to the latest HEAD automatically (#16108)
src/sonic-platform-daemons

* f5a0ffc - (HEAD -> 202205, origin/202205) Update active application selected code in transceiver_info table aft… (#381) (4 hours ago) [Michael Wang - TW]
2023-08-11 13:24:51 -07:00
mssonicbld
6cc1846562
[submodule] Update submodule sonic-utilities to the latest HEAD automatically (#16110)
src/sonic-utilities

* 0f001c56 - (HEAD -> 202205, origin/202205) UT change: for db_migrator test do not check for RESTAPI cert values (#2919) (4 hours ago) [Vaibhav Hemant Dixit]
* 69d348d1 - [CLI][Show][BGP] Show BGP Change for no neighbor scenario (#2885) (6 hours ago) [Dev Ojha]
* 4c6af3c3 - [multi-asic] Refine [override config table] for corner cases (#2918) (6 hours ago) [wenyiz2021]
* bef3ffeb - [db_migrator] Set docker_routing_config_mode to the value obtained from minigraph parser (#2890) (#2922) (7 hours ago) [Vaibhav Hemant Dixit]
2023-08-11 08:44:17 -07:00
mssonicbld
776201cf30
[submodule] Update submodule sonic-swss to the latest HEAD automatically (#16109)
src/sonic-swss

* 3e2974df - (HEAD -> 202205, origin/202205) [muxorch] set mux state to init upon warm reboot (#2834) (4 hours ago) [Nikola Dancejic]
2023-08-11 08:43:53 -07:00
mssonicbld
ba8a88a15d
[submodule] Update submodule sonic-platform-common to the latest HEAD automatically (#16107)
src/sonic-platform-common

* 3b993c5 - (HEAD -> 202205, origin/202205) [Credo][Ycable] enhancement and error exception for some APIs (#303) (7 hours ago) [Xinyu Lin]
* ab91fde - [ycable] add definitions of some new API's for Y-Cable infrastructure (#301) (7 hours ago) [vdahiya12]
* 2b551f2 - [Credo][Ycable] fix incorrect uart statistics (#296) (7 hours ago) [Xinyu Lin]
2023-08-11 08:42:29 -07:00
mssonicbld
7109ee0525
[submodule] Update submodule linkmgrd to the latest HEAD automatically (#16105)
src/linkmgrd

* 6ce71ba - (HEAD -> 202205, origin/202205) Add ADO to the PR template (#215) (4 hours ago) [Longxiang Lyu]
* 1010d93 - [active-standby] Write `unhealthy` is default route `N/A` (#214) (4 hours ago) [Longxiang Lyu]
* 15e9ca2 - [link prober] Increase pause/restart probe log verbosity (#213) (4 hours ago) [Longxiang Lyu]
2023-08-11 08:41:53 -07:00
mssonicbld
c2a7dd1e19
add service_mgmt (#15927) (#16070)
Adding yang model for CONFIG_DB table MUX_LINKMGR|SERVICE_MGMT.

sign-off: Jing Zhang zhangjing@microsoft.com

Co-authored-by: Jing Zhang <zhangjing@microsoft.com>
2023-08-10 13:35:30 -07:00
mssonicbld
cc204641cf
[YANG] add yang model for MUX_LINKMGR|MUXLOGGER (#15884) (#16021)
Add yang model for MUX_LINKMGR|MUXLOGGER.

Co-authored-by: Jing Zhang <zhangjing@microsoft.com>
2023-08-07 09:51:35 -07:00
mssonicbld
1f809c8476
[submodule] Update submodule sonic-utilities to the latest HEAD automatically (#15930)
src/sonic-utilities

* 99864640 - (HEAD -> 202205, origin/202205) [dualtor] Add script to verify consistency between kernel and ASIC  (#2840) (87 minutes ago) [Longxiang Lyu]
* a32ddc1b - [show][muxcable] update `show mux config` to print out `soc_ipv6` as well  (#2909) (88 minutes ago) [Jing Zhang]
* 0c6d0c51 - [202205] Flush RESTAPI db in fast-reboot shutdown path (#2921) (4 hours ago) [bingwang-ms]
2023-07-21 09:03:28 -07:00
mssonicbld
54b21c1917
[submodule] Update submodule sonic-swss to the latest HEAD automatically (#15928)
src/sonic-swss

* 17c4d731 - (HEAD -> 202205, origin/202205) Remove system neighbor DEL operation in m_toSync if SET operation for (#2853) (3 hours ago) [Song Yuan]
2023-07-21 09:02:02 -07:00
mssonicbld
ab0768eb15
Update WRED profile on system ports (#15612) (#15914)
* Update WRED profile on system ports

Co-authored-by: vmittal-msft <46945843+vmittal-msft@users.noreply.github.com>
2023-07-20 08:39:54 -07:00
mssonicbld
c369e1fc17
[submodule] Update submodule sonic-platform-daemons to the latest HEAD automatically (#15913)
src/sonic-platform-daemons

* 8147e25 - (HEAD -> 202205, origin/202205) Revert "Added PCIe transaction check for all peripherals on the bus (#331)" (12 hours ago) [Ying Xie]
2023-07-19 20:51:42 -07:00
mssonicbld
8b2d1b2883
[submodule] Update submodule sonic-restapi to the latest HEAD automatically (#15886)
src/sonic-restapi

* a69ba06 - (HEAD -> 202205, origin/master, origin/HEAD, origin/202205, master) [actions] Support Semgrep by Github Actions (#144) (3 weeks ago) [Mai Bui]
* 6b242a3 - [Ci] Upgrade python 2 to python 3 (#145) (3 weeks ago) [xumia]
* 1c50caa - prevent downcasting of 64-bit integer (#142) (2 months ago) [Mai Bui]
* de26989 - Use -race detector when building and testing (#141) (3 months ago) [Lawrence Lee]
* 9fe2eff - [go] Update Go to version 1.15 (#140) (3 months ago) [Lawrence Lee]
2023-07-19 14:10:08 -07:00
mssonicbld
f55d574ec3
[submodule] Update submodule sonic-swss to the latest HEAD automatically (#15887)
src/sonic-swss

* ed0ca898 - (HEAD -> 202205, origin/202205) Add missing parameter to on_switch_shutdown_request method. (#2567) (34 hours ago) [Hua Liu]
2023-07-19 14:09:20 -07:00
jcaiMR
07388fd1fa
advance dhcprelay to 6a6ce24, add default dhcpv6 dualtor source interface (#15881)
sonic-build image side change to fix source interface selection in dual tor scenario.
dhcprelay related PR:
[master]fix dhcpv6 relay dual tor source interface selection issue sonic-dhcp-relay#42

Announce dhcprelay submodule to 6a6ce24 to include PR #42
2023-07-19 14:08:48 -07:00
StormLiangMS
1243a6e2f9
cherry-pick frr log enhancement for graceful restart (#15863)
Graceful restart is a key event for bgpd, related log print is debug level. To change it to info level to get more visibilities when this kind of event is triggered.
2023-07-19 07:32:43 -07:00
lixiaoyuner
d72355d297 [ctgmgr]: do not remove label when do systemd service stop when service is in kube mode (#15642)
Why I did it
When sonic is managed by k8s, the sonic container is managed by k8s daemonset, daemonset identifies its members by labels. Currently when restarting a sonic service by systemctl, if the service's container is already managed by k8s, systemd script stops the container by removing the feature label to make it disjoin from k8s daemonset, and then starts it by adding the label to make it join k8s daemonset again.

This behavior would cause problem during k8s container upgrade. Containers in daemonset are upgraded in a rolling fashion, that means the daemonset version is updated first, then rollout the new version to containers with precheck/postcheck one by one. However, if a sonic device joins a daemonset, k8s will directly deploy a pod with the current version of daemonset, it is expected when a device joins k8s cluster at first time.

But for a device which has already joined k8s cluster, the re-joining daemonset will cause the container upgraded to new version without precheck, so if a systemd service is restarted during daemonset upgrade, the container may be upgraded without precheck and break rolling update policy. To fix it, we need to remove the logic about dropping k8s label in systemd service stop script for kube mode.

Work item tracking
Microsoft ADO (number only): 24304563

How I did it
Don't drop label in systemd service stop script when feature's set_owner is kube. Only drop label when feature's set_owner is local.

How to verify it
The label feature_enabled should be always true if the feature's set owner is kube.
2023-07-15 06:34:32 +08:00
lixiaoyuner
65638f18da
[ctrmgr]: Container image clean up bug fix (#15772) (#15840)
Why I did it
When do clean up container images, current code has two bugs need to be fixed. And some variables' name maybe cause confused, change the variables' name.

Work item tracking
Microsoft ADO (number only): 24502294

How I did it
We do clean up after tag latest successfully. But currently tag latest function only return 0 and 1, 0 means succeed and 1 means failed, when we get 1, we will retry, when we get 0, we will do clean up. Actually the code 0 includes another case we don't need to do clean up. The case is that when we are doing tag latest, the container image we want to tag maybe not running, so we can not tag latest and don't need to cleanup, we need to separate this case from 0, return -1 now.

When local mode(v1) -> kube mode(v2) happens, one problem is how to handle the local image, there are two cases. one case is that there was one kube v1 container dry-run(cause we don't relace the local if kube version = local version), we will remove the kube v1 image and tag the local version with ACR prefix and remove local v1 local tag. Another case is that there was no kube v1 container dry-run, we remove the local v1 image directly, cause the local v1 image should not be the last desire version.

About the docker_id variable, it may cause confused, it's actually docker image id, so rename the variable. About the two dicts and the list, rename them to be more readable.

How to verify it
Check tag latest and image clean up result.
2023-07-14 08:46:11 -07:00
lixiaoyuner
665256fb42
[k8s]: Bypass the systemd service restart limit and do immediately restart when change to local mode (#15432) (#15839)
Why I did it
During the upgrade process via k8s, the feature's systemd service will restart as well, all of the feature systemd service has restart number limit, and the limit number is too small, only three times. if fallback happens when upgrade, the start count will be 2, just once again, the systemd service will be down. So, need to bypass this. This restart function will be called when do local -> kube, kube -> kube, kube ->local, each time call this function, we indeed need to restart successfully, so do reset-failed every time we do restart.
When need to go back to local mode, we do systemd restart immediately without waiting the default restart interval time so that we can reduce the container down time.

Work item tracking
Microsoft ADO (number only):
24172368

How I did it
Before every restart for upgrade, do reset feature's restart number. The restart number will be reset to 0 to bypass the restart limit.
When need to go back to local mode, we do systemd restart immediately.

How to verify it
Feature's systemd service can be always restarted successfully during upgrade process via k8s.
2023-07-14 08:43:23 -07:00
mssonicbld
786fdd087c
[submodule] Update submodule sonic-utilities to the latest HEAD automatically (#15835)
src/sonic-utilities

* bc7c7929 - (HEAD -> 202205, origin/202205) Add FEC correctable and uncorrectable port stats (#2027) (10 hours ago) [Prince George]
* 58db48ad - [show][muxcable] update `show mux tunnel-route` to check soc_ipv6 as well (10 hours ago) [Jing Zhang]
* 24fc1db8 - [dualtor][route_check] filter out `soc_ipv6`  (#2899) (10 hours ago) [Jing Zhang]
* d89d4832 - [route_check][dualtor] Ignore vlan neighbor route miss (#2888) (10 hours ago) [Longxiang Lyu]
2023-07-14 08:42:51 -07:00
mssonicbld
a3b0e7f4e4
[submodule] Update submodule sonic-sairedis to the latest HEAD automatically (#15833)
src/sonic-sairedis

* 56aee6c - (HEAD -> 202205, origin/202205) [202205] Advance SAI submodule to fix issue https://github.com/sonic-net/sonic-buildimage/issues/14706 (#1265) (10 hours ago) [abdosi]
2023-07-14 08:42:17 -07:00
mssonicbld
4a248c58f5
[submodule] Update submodule sonic-swss to the latest HEAD automatically (#15834)
src/sonic-swss

* 493f66f5 - (HEAD -> 202205, origin/202205) Remove redundant updateFabricPortState (#2850) (6 hours ago) [kenneth-arista]
2023-07-14 08:41:34 -07:00
mssonicbld
01342856f7
[submodule] Update submodule sonic-platform-daemons to the latest HEAD automatically (#15832)
src/sonic-platform-daemons

* bef58aa - (HEAD -> 202205, origin/202205) Added PCIe transaction check for all peripherals on the bus (#331) (10 hours ago) [Ashwin Srinivasan]
2023-07-14 08:41:04 -07:00
lixiaoyuner
fb14b987b4 Add health check probe for k8s upgrade containers. (#15223)
#### Why I did it
After k8s upgrade a container, k8s can only know the container is running, don't know the service's status inside container. So we need a probe inside container, k8s will call the probe to check whether the container is really ready.
##### Work item tracking
- Microsoft ADO **(number only)**: 22453004
#### How I did it
Add a health check probe inside config engine container, the probe will check whether the start service exit normally or not if the start service exists and call the python script to do container self-related specific checks if the script is there. The python script should be implemented by feature owner if it's needed.

more details: [design doc](https://github.com/sonic-net/SONiC/blob/master/doc/kubernetes/health-check.md)
#### How to verify it
Check path /usr/bin/readiness_probe.sh inside container.

#### Which release branch to backport (provide reason below if selected)

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
- [x] 202205
- [x] 202211

#### Tested branch (Please provide the tested image version)
- [x] 20220531.28
2023-07-14 04:32:45 +08:00
mssonicbld
2d39daf95f
[submodule] Update submodule sonic-utilities to the latest HEAD automatically (#15809)
src/sonic-utilities

* 20853a6f - (HEAD -> 202205, origin/202205) Revert "[GCU Feature Update] Cherry-pick Platform Validator PR to 202205  (#2883)" (#2908) (6 hours ago) [isabelmsft]
2023-07-13 08:27:51 -07:00
mssonicbld
6f19e12bb2
[submodule] Update submodule sonic-utilities to the latest HEAD automatically (#15754) 2023-07-08 11:57:20 -07:00
Zhaohui Sun
186aad7aa0
[202205]Fix caclmgrd crash issue when applying scale cacl rules (#15763)
Signed-off-by: Zhaohui Sun <zhaohuisun@microsoft.com>
2023-07-08 09:44:48 -07:00
mssonicbld
2a6c18008b
[submodule] Update submodule sonic-swss to the latest HEAD automatically (#15753)
src/sonic-swss

* 4a3af63d - (HEAD -> 202205, origin/202205) Allow NOT_IMPLEMENTED sai return status for availability monitoring API (#2848) (6 hours ago) [Tejaswini Chadaga]
2023-07-08 09:43:15 -07:00
mssonicbld
693273b0d2
[submodule] Update submodule sonic-platform-daemons to the latest HEAD automatically (#15749)
src/sonic-platform-daemons

* 112656c - (HEAD -> 202205, origin/202205) [ycabled][active-active] no initialize Async Client, when no active-active cable type; fix names for all ycabled threads (#373) (4 minutes ago) [vdahiya12]
* e325d5a - Revert "Revert "[ycabled] correct the wrong function call for 'config hwmode state' (#372)"" (4 minutes ago) [Ying Xie]
* ddabca1 - Revert "Revert "[dualtor] Fix command `show mux status` (#371)"" (4 minutes ago) [Ying Xie]
* 28918da - Revert "Revert "[ycabled] fix bug for `show mux status` delayed response (#364)"" (4 minutes ago) [Ying Xie]
* a849de9 - Revert "Revert "add async notification support in active-active topo; refactor code for ycable tasks for change events  (#327)"" (4 minutes ago) [Ying Xie]
* cf1e73a - Revert "Revert "[ycabled] refactor code for onboarding async client changes;refactor (#355)"" (4 minutes ago) [Ying Xie]
2023-07-07 18:41:27 -07:00
mssonicbld
d66b4a64d2
[submodule] Update submodule sonic-platform-common to the latest HEAD automatically (#15748)
src/sonic-platform-common

* 56f227a - (HEAD -> 202205, origin/202205) More prevention of fatal exception caused by VDM dictionary missing fields when a transceiver has just been pulled (#376) (3 hours ago) [snider-nokia]
2023-07-07 18:40:36 -07:00