Commit Graph

8640 Commits

Author SHA1 Message Date
dab4e68722 Update .github/workflows/build-broadcom.yml
Some checks failed
CodeQL / Analyze (python) (push) Has been skipped
Semgrep / Semgrep (push) Has been skipped
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Failing after 1m1s
AutoMergeScan / automerge_scan (push) Has been skipped
2024-03-31 14:00:05 -05:00
a96b889ea1 Update .github/workflows/build-broadcom.yml
Some checks failed
Semgrep / Semgrep (push) Has been skipped
CodeQL / Analyze (python) (push) Has been skipped
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Failing after 1m39s
2024-03-31 13:47:54 -05:00
05b47cc998 Update .github/workflows/build-broadcom.yml
Some checks failed
CodeQL / Analyze (python) (push) Has been skipped
Semgrep / Semgrep (push) Has been skipped
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Failing after 8s
2024-03-31 13:44:04 -05:00
6e1be6bb62 Update .github/workflows/build-broadcom.yml
Some checks failed
CodeQL / Analyze (python) (push) Has been skipped
Semgrep / Semgrep (push) Has been skipped
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Failing after 8s
2024-03-31 13:43:27 -05:00
bd8e2a8db9 Update .github/workflows/build-broadcom.yml
Some checks failed
CodeQL / Analyze (python) (push) Has been skipped
Semgrep / Semgrep (push) Has been skipped
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Failing after 9s
2024-03-31 13:39:34 -05:00
025a3efc9c Update .github/workflows/build-broadcom.yml
Some checks failed
CodeQL / Analyze (python) (push) Has been skipped
Semgrep / Semgrep (push) Has been skipped
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Failing after 10s
2024-03-31 13:31:39 -05:00
2f0f6be363 Update .github/workflows/build-broadcom.yml
Some checks failed
CodeQL / Analyze (python) (push) Has been skipped
Semgrep / Semgrep (push) Has been skipped
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Has been cancelled
2024-03-31 12:38:37 -05:00
155f97cc5e Update .github/workflows/build-broadcom.yml
Some checks failed
CodeQL / Analyze (python) (push) Waiting to run
Semgrep / Semgrep (push) Waiting to run
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Has been cancelled
2024-03-31 12:37:06 -05:00
2db960057a Update .github/workflows/build-broadcom.yml
Some checks failed
CodeQL / Analyze (python) (push) Waiting to run
Semgrep / Semgrep (push) Waiting to run
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Failing after 8s
2024-03-31 12:35:58 -05:00
71184fe85e Update .github/workflows/build-broadcom.yml
Some checks failed
CodeQL / Analyze (python) (push) Waiting to run
Semgrep / Semgrep (push) Waiting to run
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Failing after 7s
2024-03-31 12:35:01 -05:00
3b8d451c7a Update .github/workflows/build-broadcom.yml
Some checks failed
CodeQL / Analyze (python) (push) Waiting to run
Semgrep / Semgrep (push) Waiting to run
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Failing after 8s
2024-03-31 12:34:13 -05:00
4a0b7757b3 Update .github/workflows/build-broadcom.yml
Some checks failed
Build broadcom ONEIMAGE / Configure-Build-Package-Action (push) Failing after 32s
CodeQL / Analyze (python) (push) Has been cancelled
Semgrep / Semgrep (push) Has been cancelled
AutoMergeScan / automerge_scan (push) Has been skipped
2024-03-27 16:01:29 -05:00
d21f9988b0 Update README.md
Some checks are pending
CodeQL / Analyze (python) (push) Waiting to run
Semgrep / Semgrep (push) Waiting to run
2024-03-27 16:00:52 -05:00
a071c9d112 Update .github/workflows/build-broadcom.yml
Some checks are pending
CodeQL / Analyze (python) (push) Waiting to run
Semgrep / Semgrep (push) Waiting to run
2024-03-27 15:54:25 -05:00
363b9fd642 Add .github/workflows/build-broadcom
Some checks are pending
CodeQL / Analyze (python) (push) Waiting to run
Semgrep / Semgrep (push) Waiting to run
2024-03-27 15:53:34 -05:00
Justin Thomas
fb29a4047c
[devices]: fix show environment for n3248te (#17508)
Why I did it
The command show environment has been broken on this platform for quite a while. These adjustments allow it to function again.

How I did it
I adjusted the platform_sensors.py file for the n3248te to appease the errors that it was generating from the Python interpreter.

How to verify it
Run sudo show environment on an unchanged n3248te to see that it generates an error right away about print statements being malformed. Then place this file at /usr/bin/platform_sensors.py in the pmon container and run the command again to see the correct output.
2024-03-25 12:53:36 -07:00
Stephen Sun
610685d27b
Do not pass the option "device" in rsyslog.conf by default when syslog server's source address is configured (#17616)
### Why I did it

An in-band syslog server will not receive any syslog if it is configured without a VRF specified, which is because `eth0` is always specified as the `device` of a syslog server and the syslog packets will be sent to `eth0` regardless of its destination IP address.

### How I did it

Pass the option "device" in rsyslog.conf only if when syslog server's source address is configured with a non-default VRF

#### How to verify it

Manually test:
1. Configuring a syslog server without VRF specified or with `default` as the VRF: no `device` passed in `rsyslog.conf`
2. Configuring a syslog server with non-default VRF: the configured VRF passed as `device` in `rsyslog.conf`
2024-03-23 17:04:00 -07:00
Vivek
6324fe15b6
Add log files into the cache tar for improved debugging (#18026)
### Why I did it

Cache currently does not save the log of the deb. But it's useful to have the log to understand any cache related problems.

### How I did it

#### How to verify it

```
vkarri@s-build-sonic-01:/sonic-buildimage$ tar -tvf /sonic/sonic_caches/libnl-3-200_3.5.0-1_amd64.deb-adc83b19e793491b1c6ea0f-0ea77d65c49ae3a11dffbca.tgz
-rw-r--r-- vkarri/dip   496230 2024-01-12 19:49 target/debs/bookworm/libnl-3-200_3.5.0-1_amd64.deb.log
```
2024-03-23 16:53:05 -07:00
Vadym Hlushko
1d57472eb0
[graceful reboot] Rename the platform_reboot to the pre_reboot_hook, remove the sysfs power cycle (#18324)
**DEPENDS ON: [[graceful reboot] Add the pre_reboot_hook script execution, add the watchdog arm before the reboot](https://github.com/sonic-net/sonic-utilities/pull/3203)**

#### Why I did it
Add support for the `graceful reboot` instead of  the `sysfs power cycle` to avoid filesystem corruption 

### How I did it
Rename the `platform_reboot` script to the `pre_reboot_hook`.
Remove the sysfs power cycle function, from now on the Debian reboot (`/sbin/reboot`) will be executed instead of the sysfs power cycle.

#### How to verify it
1. Start watching logs by using `show log -f` and `journalctl -p debug -f`
2. Execute the `reboot` command from the switch CLI
3. Check in logs that all systemd services terminated
2024-03-23 16:45:36 -07:00
mssonicbld
e877ca404e
[submodule] Update submodule wpasupplicant/sonic-wpa-supplicant to the latest HEAD automatically (#18450)
#### Why I did it
src/wpasupplicant/sonic-wpa-supplicant
```
* 3c7fd8e10 - (HEAD -> master, origin/master, origin/HEAD) Make Openssl CMAC API (omac1_aes_vector) Availalable in Non FIPs Mode (#85) (2 hours ago) [wumiao_nokia]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-23 19:01:11 +08:00
Marty Y. Lok
568149081c
[Nokia][sonic-platform][bookworm] Update Nokia sonic-platform submodule (#18445)
Update Nokia-IXR7250E sonic-platform submodule

Signed-off-by: mlok <marty.lok@nokia.com>
2024-03-22 18:01:32 -07:00
jfeng-arista
84ec2a43e0
Fix arista_7800r3a_36d2_lc fabric link down issue (#18198) 2024-03-22 16:25:39 -07:00
Nazarii Hnydyn
009b029f99
[Mellanox][MFT]: Update MFT to 4.27.0-83: bash login fix (#18443)
* Revert "[Mellanox] Disable MFT bash autocompletion (#17442)"

This reverts commit 278a958517.

* [mellanox][mft]: Update MFT to 4.27.0-83: bash login fix.

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>

---------

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
2024-03-22 15:13:32 -07:00
Marty Y. Lok
2e81eff2e8
[Supervisor][datbase-chassis] Fixthe failure of starting redis_chassis in database-chassis on Supervisor (#18242)
Why I did it
redis_chassis process fails to start in the database-chassis on the supervisor card.

How I did it
The redis and redis_chassis processes in supervisor.conf has been modified to start with 'redis' as user. The modification only added redis and redis group for database containers except database-chassis container. This commit adds code to the docker-database-init.sh to add redis and redis group for the database-chassis to address this issue.

How to verify it
Booting the image on Supervisor. And verify the database-chassis container should be in UP state, and the database-chassis.service is in active(running) state

admin@ixre-cpm-chassis15:~$ docker ps -a
CONTAINER ID   IMAGE                             COMMAND                  CREATED        STATUS        PORTS     NAMES
9691c6111e0f   docker-fpm-frr:latest             "/usr/bin/docker_ini?"   16 hours ago   Up 16 hours             bgp5
...
c7c7159d4e0c   docker-database:latest            "/usr/local/bin/dock?"   31 hours ago   Up 16 hours             database-chassis


admin@ixre-cpm-chassis15:~$ sudo systemctl status database-chassis
? database-chassis.service - database-chassis container
     Loaded: loaded (/lib/systemd/system/database-chassis.service; enabled-runtime; preset: enabled)
     Active: active (running) since Sun 2024-03-03 04:43:12 UTC; 16h ago
    Process: 1640 ExecStartPre=/usr/bin/database.sh start chassisdb (code=exited, status=0/SUCCESS)
   Main PID: 1938 (database.sh)
      Tasks: 10 (limit: 38307)
     Memory: 49.7M
     CGroup: /system.slice/database-chassis.service
             ??1938 /bin/bash /usr/bin/database.sh wait chassisdb
             ??1940 docker wait database-chassis

Notice: journal has been rotated since unit was started, output may be incomplete.
admin@ixre-cpm-chassis15:~$ 

Signed-off-by: mlok <marty.lok@nokia.com>
2024-03-22 14:20:12 -07:00
Marty Y. Lok
d4300fc34f
[build_debian] libgrpc++1 installation for bookworm debian image build (#18034)
Why I did it
Fix libgrpc++ bookworm debian installation issue. Fix #18033

How I did it
Modified the build_debian.sh to change the libgrpc++1 to libgrcp++1.51 for debian bookworm image build

How to verify it
After the image is built in the workspace, verify the libgrpc++.so.1.51 is installed in fsroot-broadcom-dnx/lib/x86_64-linux-gnu diretcory

~/data/master/sonic-buildimage/fsroot-broadcom-dnx/lib/x86_64-linux-gnu (master)$ ls libgrpc++.so.1.51
libgrpc++.so.1.51
~/data/master/sonic-buildimage/fsroot-broadcom-dnx/lib/x86_64-linux-gnu (master)$ 

Signed-off-by: mlok <marty.lok@nokia.com>
2024-03-22 14:18:47 -07:00
mssonicbld
c91d45ae6c
[submodule] Update submodule sonic-swss-common to the latest HEAD automatically (#18434)
#### Why I did it
src/sonic-swss-common
```
* 8e24ced - (HEAD -> master, origin/master, origin/HEAD) Add SWIG GO wrapper for ConfigDBConnector. (#865) (13 hours ago) [Hua Liu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-22 19:01:23 +08:00
Ze Gan
4ee6b6e8b5
[Fixbug 18418] [Yang] MACSEC_PROFILE table does not match yang definition (#18419)
### Why I did it
Fix the issue [18418](https://github.com/sonic-net/sonic-buildimage/issues/18418), The YANG model to MACsec fallback cak/ckn is wrong. We should allow the fallback option is empty.

### How I did it
Add a condition to check whether the fallback is providered

#### How to verify it
Check Azp
2024-03-21 16:39:02 -07:00
Vladimir Kuk
0688aa38ae
Missing container in list support in YANG Model #16704 (#18091)
Fixes "Missing container in list support in YANG Model https://github.com/sonic-net/sonic-buildimage/issues/16704"

Why I did it
Adds support for container in list

How I did it
Identify container in list's leaf and add its data.

Fixes "Update dhcpv6 option yang model" #16290

Why I did it
Adds support for single "choice" statement in container/list

How I did it
Check if choice data is dictionary (instead of list).

How to verify it
Reconstruction details in bug's description.

Tested branch (Please provide the tested image version)
 202311
Description for the changelog
Adds support for container in list to yang parsing

Link to config_db schema for YANG module changes
https://github.com/sonic-net/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md#dhcp_relay

Signed-off-by: vkuk [vkuk@marvell.com]
2024-03-21 10:51:04 -07:00
Yaqiang Zhu
b3845b620d
[dhcp_relay] Upgrade dhcp_relay container to bookworm (#17783)
* [dhcp_relay] Update dhcp_relay to bookworm
2024-03-21 09:27:51 -07:00
mssonicbld
6ada967685
[submodule] Update submodule sonic-mgmt-common to the latest HEAD automatically (#18408)
#### Why I did it
src/sonic-mgmt-common
```
* 4f32923 - (HEAD -> master, origin/master, origin/HEAD) Fix subscriptions for lists with multiple keys. (9 hours ago) [Steve Licking]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-21 19:01:09 +08:00
mssonicbld
2ee5c05e75
[submodule] Update submodule sonic-platform-common to the latest HEAD automatically (#18409)
#### Why I did it
src/sonic-platform-common
```
* 2606cd5 - (HEAD -> master, origin/master, origin/HEAD) Add flag to read partial VDM (#397) (22 hours ago) [ChiouRung Haung]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-21 19:01:03 +08:00
mssonicbld
2468dfad71
[submodule] Update submodule sonic-platform-daemons to the latest HEAD automatically (#18410)
#### Why I did it
src/sonic-platform-daemons
```
* 2770fd2 - (HEAD -> master, origin/master, origin/HEAD) Disable periodic polling of port in DomInfoUpdateTask thread during CMIS init (#449) (5 hours ago) [mihirpat1]
* d513eca - Added support for file system based sensors implementation. (#438) (22 hours ago) [Mridul Bajpai]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-21 19:00:57 +08:00
Hua Liu
4cbb559fd1
Fix tacacs local accounting break. (#18357)
Fix TACACS local accounting disabled when debug flag disabled.

#### Why I did it
TACACS local accounting use trace() method to output local accounting log, following PR disable trace log when debug flag disabled, 
https://github.com/sonic-net/sonic-buildimage/pull/16482

Because test case issue, this regression not found. the issue only exists on master branch.

### How I did it
Fix TACACS local accounting disabled when debug flag disabled.

#### How to verify it
Pass all UT.
Fix TACACS accounting UT to prevent regression.

### Tested branch (Please provide the tested image version)

- [] SONiC.master-16482.360728-2c8b4066f

#### Description for the changelog
Fix TACACS local accounting disabled when debug flag disabled.
2024-03-20 21:28:39 -07:00
dbarashinvd
371f6a6835
add unit tests for CMIS host management feature (#18211)
* add unit tests for CMIS host management feature
2024-03-20 13:15:50 -07:00
Saikrishna Arcot
53d8b1a382
Fix debug package variables for syncd (#18319)
* Fix debug package variables for syncd

PR #16072 renamed the debug package variables from `*_DBG` to
`*_DBGSYM`, since the package names had changed. However, the references
weren't updated. Since all the other debug packages (including ones that
are named `*-dbgsym`) use `*_DBG`, just use that here as well.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Update sairedis.mk as well

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

---------

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
2024-03-19 10:24:57 -07:00
mssonicbld
8399450c9a
[submodule] Update submodule sonic-linux-kernel to the latest HEAD automatically (#18373)
#### Why I did it
src/sonic-linux-kernel
```
* fdb3145 - (HEAD -> master, origin/master, origin/HEAD) [nvidia-bluefield] Add config inclusions for Nvidia Bluefield-3 DPU (#380) (4 days ago) [Oleksandr Ivantsiv]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-19 19:01:00 +08:00
mssonicbld
5c893be291
[submodule] Update submodule wpasupplicant/sonic-wpa-supplicant to the latest HEAD automatically (#18374)
#### Why I did it
src/wpasupplicant/sonic-wpa-supplicant
```
* 13e6f1100 - (HEAD -> master, origin/master, origin/HEAD) Fix a memory leak introduced by last commit for high level EVP API #82 (64 minutes ago) [xumia]
|\ 
| failure_prs.log 225157a01 - Merge branch 'master' into master (3 days ago) [wumiao_nokia]
| |\ 
| |/ 
|/| 
* | 413704a6c - Provide CMAC high level API replacement #81 (4 days ago) [xumia]
| failure_prs.log c7eafc778 - Fix a memory leak introduced by last commit for high level EVP API for CMAC (3 days ago) [wumiao_nokia]
|/ 
* 8521d4abb - Fix a port issue (6 days ago) [wumiao_nokia]
* 01a39044a - Provide CMAC high level API replacement (6 days ago) [wumiao_nokia]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-19 19:00:54 +08:00
mssonicbld
b1b79c5c94
[submodule] Update submodule sonic-gnmi to the latest HEAD automatically (#18387)
#### Why I did it
src/sonic-gnmi
```
* 3fa77c6 - (HEAD -> master, origin/master, origin/HEAD) Support multiple database for DPU (#188) (20 hours ago) [ganglv]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-19 19:00:48 +08:00
mssonicbld
f1439ee6c5
[submodule] Update submodule sonic-swss-common to the latest HEAD automatically (#18388)
#### Why I did it
src/sonic-swss-common
```
* e7917ac - (HEAD -> master, origin/master, origin/HEAD) Add new status code. (#828) (2 hours ago) [mint570]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-19 19:00:43 +08:00
Zhijian Li
ab966ceeea
[E1031] Bugfix for Python syntax error in sonic_platform/common.py (#18386)
Why I did it
Bugfix for Python syntax error in sonic_platform/common.py.
A method of class need to have self as parameter.

Fixing below issue:

e1031:~$ show int st
Traceback (most recent call last):
  File "/usr/local/bin/intfutil", line 836, in <module>
    main()
  File "/usr/local/bin/intfutil", line 819, in main
    interface_stat.display_intf_status()
  File "/usr/local/bin/intfutil", line 448, in display_intf_status
    self.get_intf_status()
  File "/usr/local/lib/python3.9/dist-packages/utilities_common/multi_asic.py", line 157, in wrapped_run_on_all_asics
    func(self,  *args, **kwargs)
  File "/usr/local/bin/intfutil", line 529, in get_intf_status
    self.portchannel_speed_dict = po_speed_dict(self.po_int_dict, self.db)
  File "/usr/local/bin/intfutil", line 334, in po_speed_dict
    optics_type = port_optics_get(appl_db, value[0], PORT_OPTICS_TYPE)
  File "/usr/local/bin/intfutil", line 224, in port_optics_get
    if is_rj45_port(intf_name):
  File "/usr/local/lib/python3.9/dist-packages/utilities_common/platform_sfputil_helper.py", line 120, in is_rj45_port
    platform_chassis = sonic_platform.platform.Platform().get_chassis()
  File "/usr/local/lib/python3.9/dist-packages/sonic_platform/platform.py", line 21, in __init__
    self._chassis = Chassis()
  File "/usr/local/lib/python3.9/dist-packages/sonic_platform/chassis.py", line 37, in __init__
    self._is_host = self._api_common.is_host()
TypeError: is_host() takes 0 positional arguments but 1 was given
Work item tracking
Microsoft ADO (number only): 27208152
How I did it
Add self parameter to function Common::is_host().

How to verify it
Verified on E1031 DUT with this patch.
2024-03-19 14:04:38 +08:00
Andriy Yurkiv
2e1410c7b7
[Mellanox] Support DSCP remapping in Dual-ToR topo for SN4700-O8V48, update buffers for t0 (#18293)
* [Mellanox] Support DSCP remapping in Dual-ToR topo for SN4700-O8V48, update buffers for t0

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>

* [Mellanox] Support DSCP remapping in Dual-ToR topo for SN4700-O8V48, update buffers for t0 (fixes after recalculation)

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>

---------

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
2024-03-18 14:32:24 -07:00
Vivek
2ccd9e5e0f
Upgrade SwSS to bookworm (#18342)
### Why I did it

Upgrade SwSS to bookworm

### How I did it

#### How to verify it

Manual Verification and sonic-mgmt tests
2024-03-18 09:53:25 -07:00
Oleksandr Ivantsiv
5f2a2b9051
[YANG] Add an infrastructure to write pytest tests for the YANG model. (#17767)
### Why I did it
The existing test cases and test data for YANG model tests are defined in JSON files. The tests are limited and require a huge amount of copy-paste to provide good coverage.
For the features that have a lot of similar attributes that need to be covered with the tests, the JSON files can be quite big and hard to maintain (for example CRM).
The debuggability of the JSON tests is almost zero. Which makes implementation of the new test cases much harder than it should be.  When the single test case fails it generates thousands of lines of output that make it hard to understand the issue. It is hard to find what failed, and what is the error message. It is impossible to re-run single test cases. Etc.

The Pytest provides an alternative way to implement the tests.
Both JSON tests and Pytests can co-exist. But it is suggested to use Pytest for the new tests.
The tests written in Pytest are compact, readable, and human-friendly. 
They give more flexibility in the testing of corner cases allow to leverage Python and Pytest capabilities to generate configuration and data for better coverage.

### How I did it
Add an infrastructure that allows to write model tests in Python.
Conver CRM, DASH CRM, and SmartSwitch tests to Pytest.

#### How to verify it
Build the YANG model package.
2024-03-18 09:52:25 -07:00
mssonicbld
ec57a44b47
[submodule] Update submodule sonic-gnmi to the latest HEAD automatically (#18076)
#### Why I did it
src/sonic-gnmi
```
* d56712a - (HEAD -> master, origin/master, origin/HEAD) Update GNMI path schema (#197) (4 days ago) [ganglv]
* 758ec18 - Call flag.Parse() to parse global flags like -logtostderr (#198) (5 days ago) [Zain Budhwani]
* 736e3b4 - Add signal handler to stop gnmi server for when sigterm or sigquit is called (#189) (3 weeks ago) [Zain Budhwani]
* 5b59c57 - Fix sonic string in osversion/build (#190) (4 weeks ago) [Zain Budhwani]
* d8d15c7 - Enable unit tests and code coverage for telemetry.go (#186) (5 weeks ago) [Zain Budhwani]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-18 15:18:20 +08:00
snider-nokia
9fdbdeee85
[Nokia][sonic-platform] Update Nokia sonic-platform submodule - ungraceful reboot hooks to induce NIF port shutdown (#18014)
These changes provide for the automatic shutdown of NIF ports on LC when an ungraceful reboot scenario occurs. Reboot and panic notifier hooks are now registered so that callback occurs from the kernel and NIF ports are subsequently shut down.

Why I did it
To facilitate the timely movement of traffic away from a crashed LC when its peers recognize that the associated links have gone down.

How I did it
Linux kernel reboot and panic notifier hooks are used to register a callback routine that, when invoked, stuffs all present transceiver modules into reset.

How to verify it
Cause an ungraceful reboot (whether via /usr/sbin/reboot or by causing a kernel panic) and verify that all LC native NIF links are brought down at reboot/panic time (on the way down). It may be necessary to monitor the LC link peer(s) in order to verify in real-time.
2024-03-15 12:18:45 -07:00
Jing Zhang
2622aa112a
bookworm (#18310) 2024-03-15 08:35:31 -07:00
mssonicbld
a0ba655b34
[submodule] Update submodule linkmgrd to the latest HEAD automatically (#18372)
#### Why I did it
src/linkmgrd
```
* dd61844 - (HEAD -> master, origin/master, origin/HEAD) [active-standby] reset mux probing backoff factor in link flaps (#245) (5 hours ago) [Jing Zhang]
```
#### How I did it
#### How to verify it
#### Description for the changelog
2024-03-15 19:01:16 +08:00
Stephen Sun
a33330941c
Support dot in the additional information of the PFC watchdog event in the yang model (#18235)
### Why I did it

Support dot (`.`) in the `additional_info` field in the PFC watchdog event in the yang model.

The `additional_info` field was introduced to represent diagnosis information when a PFC storm is detected, which can include fragments.

Signed-off-by: Stephen Sun <stephens@nvidia.com>

### How I did it

#### How to verify it

Unit test.
2024-03-14 19:02:21 -07:00
Zain Budhwani
a53cbdc782
[eventd] Add incremental polling when waiting for capture service to start (#18138)
### Why I did it

Addresses https://github.com/sonic-net/sonic-buildimage/issues/17350

### How I did it

Instead of a 1 second delay, we poll to check that the thread is available and after each poll increment the delay. There were situations where if there was less memory available, fixed polling would not be effective for starting zmq capture service. Add an incremental delay such that eventd can wait longer to start up capture service if system is too busy or overloaded, but still keep a max duration/retry limit so that we do not wait forever.

#### How to verify it
UT
2024-03-14 19:00:11 -07:00
ganglv
9a6d6137a3
Remove UpdateGraphService feature (#18330)
### Why I did it
Remove UpdateGraphService feature from sonic image. The goal is to simplify the bootup process.

### How I did it
Remove updategraph service and updategraph script.
Update all related services, replace updategraph.service with config-setup.service.

#### How to verify it
Build and install new image, load minigraph and check all the services.
2024-03-14 13:12:26 -07:00