Commit Graph

3917 Commits

Author SHA1 Message Date
abdosi
9d8c082415
Updated Bradcom SAI3.7 Debian package. (#14689)
Upgrade BRCM SAI to Debian package SAI 3.7.6.1-3.
2023-04-17 14:39:25 -07:00
Stepan Blyshchak
16cce80e20
[201911][Mellanox] Place FW binaries under platform directory instead of squashfs (#14270)
202211 and above uses different squashfs compression type that 201911 kernel can not handle. Therefore, we avoid mounting squashfs altogather with this change.
2023-04-10 19:00:12 -07:00
Hua Liu
e5c6c2f9b9
Improve sudo cat command for RO user. (#14428) (#14437)
Improve sudo cat command for RO user.
Manually cherry-pick for #14428
2023-04-05 15:29:58 -07:00
Samuel Angebault
a13d460bbb
[201911][Arista] Disable ATA NCQ for a few products (#14468)
Why I did it
Some products might experience an occasional IO failure in the communication between CPU and SSD.
Based on some research it could be attributable to some device not handling ATA NCQ (Native Command Queue).

This issue currently affect 4 products:

DCS-7170-32C*
DCS-7170-64C
DCS-7060DX4-32
DCS-7260CX3-64
DCS-7050CX3-32S

How I did it
This change disable NCQ on the affected drive for a small set of products.

How to verify it
When the fix is applied, these 2 patterns can be found in the dmesg.
ata[0-9]+.00: FORCE: horkage modified (noncq)
NCQ (not used)

Test results using: fio --direct=1 --rw=randrw --bs=64k --ioengine=libaio --iodepth=64 --runtime=120 --numjobs=4

with NCQ (ata1.00: 61865984 sectors, multi 1: LBA48 NCQ (depth 32), AA)

   READ: bw=33.9MiB/s (35.6MB/s), 33.9MiB/s-33.9MiB/s (35.6MB/s-35.6MB/s), io=4073MiB (4270MB), run=120078-120078msec
  WRITE: bw=34.1MiB/s (35.8MB/s), 34.1MiB/s-34.1MiB/s (35.8MB/s-35.8MB/s), io=4100MiB (4300MB), run=120078-120078msec
without NCQ (ata1.00: 61865984 sectors, multi 1: LBA48 NCQ (not used))

   READ: bw=31.7MiB/s (33.3MB/s), 31.7MiB/s-31.7MiB/s (33.3MB/s-33.3MB/s), io=3808MiB (3993MB), run=120083-120083msec
  WRITE: bw=31.9MiB/s (33.4MB/s), 31.9MiB/s-31.9MiB/s (33.4MB/s-33.4MB/s), io=3830MiB (4016MB), run=120083-120083msec
Which release branch to backport (provide reason below if selected)
2023-04-02 14:03:21 -07:00
xumia
5db2dc558c
[Build][201911] Fix the jessie mirror removed issue (#14476)
Change to use the snapshot mirror http://packages.trafficmanager.net/snapshot.

Warning: The Jessie distribution is EOL, please avoid to use it if you can. And the snapshot mirror will be removed in near future as well.
2023-03-31 10:16:40 -07:00
jingwenxie
9b3d8b7f81
[201911][sonic-utilities] submodule update (#13844) 2023-03-06 10:47:11 -08:00
Liu Shilong
ef0c6f34ba
[build] Fix issues caused by docker.com gpg key update. (#14063)
Why I did it
docker.com's gpg key start to work from 2023-02-23. While debian.org's gpg key expired in 2022-11.
We used a walkaround for security checking for debian gpg keys. Now we need to exclude docker.com's gpg key.

How I did it
Update docker.com's gpg key without faketime.
Update others' gpg key with faketime '2022-11'

How to verify it
2023-03-06 10:18:29 +08:00
Prince Sunny
fb0751bc84
[201911] Fix a typo (#14050)
*Fix a typo introduced as part of #13403
2023-03-03 10:23:08 -08:00
Joe LeVeque
56e00d666f [build_debian.sh] Configure sshd to listen for IPv6 connections (#7719)
#### Why I did it

To allow SSH connections from IPv6 addresses

Resolves https://github.com/Azure/sonic-buildimage/issues/7668

#### How I did it

In build_debian.sh, modify sshd_config file so as to enable listening for IPv6 connections
2023-02-15 21:33:25 +00:00
Nazarii Hnydyn
29ef4ee83e
[201911] [Mellanox] Add BIOS upgrade infra (#13623)
- Why I did it
Added BIOS upgrade infra

- How I did it
Added new make target

- How to verify it
Copy msn3800_bios.tar.gz to platform/mellanox/bios
make configure PLATFORM=mellanox
make target/files/stretch/msn3800_bios.tar.gz

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
2023-02-13 19:49:23 +02:00
Prince Sunny
5bd7761481
[201911] Create Vxlan and Vnet default configs (#13403)
* Create Vxlan and Vnet default configs
2023-02-01 18:36:29 -08:00
Qi Luo
9ce9ba4fb7
[201911] Fix tagged VlanInterface if attached to multiple vlan as untagged member (#13534)
Backport https://github.com/sonic-net/sonic-buildimage/pull/8927
2023-01-30 15:49:02 -08:00
Saikrishna Arcot
bc615c0689
Fix build break for jessie apt key expiration. (#13328)
#### Why I did it

The GPG key used for Jessie's official repos has since expired, which means building 201911 images no longer works.

#### How I did it

Fake the time to be before the expiry date.
2023-01-30 12:04:05 -08:00
Devesh Pathak
4dba276094 Fix to improve hostname handling (#12064)
* Fix to improve hostname handling
If config_db.json is missing hostname entry, hostname-config.sh ends
up deleting existing entry too and hostname changes to default 'localhost'

* default hostname to 'sonic` if missing in config file
2023-01-30 18:39:09 +00:00
Prince George
cd2bb08545 Close console session due to user inactivity (#9890)
Signed-off-by: Prince George <prgeor@microsoft.com>
2023-01-30 18:36:11 +00:00
Sudharsan Dhamal Gopalarathnam
2a8153a0b2
[201911][mellanox]Fix CPLD upgrade script (#13240)
Modified the skip check to be greater than or equal to compared to equal to previously
2023-01-06 11:54:06 -08:00
kellyyeh
757130c027
[201911] Add dhcp6relay as dhcprelay submodule (#12052) 2022-11-07 15:27:52 -08:00
nicwu-cel
7769540f42
[Celestica] Add Celestica Silverstone-X platform deb dependency files (#12158)
* Add Celestica Silverstone-X platform deb dependency files
* Optimized Celestica Silverstone-X platform deb dependency files indentation
2022-11-07 09:14:41 +08:00
Hua Liu
90c9811ab2
[201911] [Systemd] Upgrade systemd to fix timer elapsed issue (#12485)
Upgrade systemd to fix timer elapsed issue.

#### Why I did it
On 201911 release, snmp.timer become elapsed status and snmp.service will not be trigger by snmp.timer:

● snmp.service - SNMP container
Loaded: loaded (/usr/lib/systemd/system/snmp.service; static; vendor preset: enabled)
Active: inactive (dead)
● snmp.timer - Delays snmp container until SONiC has started
Loaded: loaded (/usr/lib/systemd/system/snmp.timer; enabled; vendor preset: enabled)
Active: active (elapsed) since Wed 2022-08-03 18:12:59 UTC; 2 months 17 days ago

This issue caused by systemd bug: https://github.com/systemd/systemd/pull/10778/files

This issue can be reproduce with following steps:
1. reboot system.
2. continusly run following commands till  timer elapsed:
systemctl status snmp.timer
sudo systemctl daemon-reload

#### How I did it
Install latest version systemd from offical backport source.

#### How to verify it
Pass all test case.
Manually check reproduce steps, verify the issue fixed.

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

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

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

#### Description for the changelog
Upgrade systemd to fix timer elapsed issue.

#### Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

#### Link to config_db schema for YANG module changes
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md
-->

#### A picture of a cute animal (not mandatory but encouraged)
2022-10-31 10:25:54 +08:00
ganglv
f9dddfb106
[cherry-pick][201911] Fix dhcp option buffer issue (#12520)
Why I did it
#12033

How I did it
How to verify it
2022-10-28 14:27:47 +08:00
arheneus@marvell.com
fc1295bdcc [ntp][apparmor] Allow apparmor read permission for ntpd under rw mount path of rootfs (#6040)
Certain platform specific packages sonic-platform-xyz, installs files onto rootfs, which would be placed on read-write mount path on /host/image-name/rw/...
when ntpd starts it tries to do read access on /usr/bin /usr/sbin/ /usr/local/bin , which inturn links further to the read-write mount path also.
Where ntpd would get below Apparmor Warning message

LOG:-
audit: type=1400 audit(1606226503.240:21): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/image-HEAD-dirty-20201111.173951/rw/usr/local/bin/" pid=3733 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
audit: type=1400 audit(1606226503.240:22): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/image-HEAD-dirty-20201111.173951/rw/usr/sbin/" pid=3733 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
audit: type=1400 audit(1606226503.240:23): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/image-HEAD-dirty-20201111.173951/rw/usr/bin/" pid=3733 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

Fix:
Add rw/.. mount path similar to root path access provided for ntpd in /etc/apparmor.d/usr.sbin.ntpd

Signed-off-by: Antony Rheneus <arheneus@marvell.com>
2022-10-16 05:42:35 +00:00
Sudharsan Dhamal Gopalarathnam
434ce42b2c
[201911][Mellanox] Adding SKU Mellanox-SN2700-D44C10 (#12395)
To add new SKU Mellanox-SN2700-D44C10 with following requirements:
2022-10-15 11:15:54 -07:00
xumia
37fa1014ad
[201911] Change submodule path from Azure to sonic-net (#12313)
Why I did it
Change the path of sonic submodules that point to "Azure" to point to "sonic-net"

How I did it
Replace "Azure" with "sonic-net" on all relevant paths of sonic submodules
2022-10-12 21:07:22 +08:00
Sudharsan Dhamal Gopalarathnam
43096c58b6
[201911][mellanox] Extend Mellanox FW utils with CPLD update (#12172)
Porting https://github.com/sonic-net/sonic-buildimage/pull/3723 to 201911

#### Why I did it
Extend Mellanox FW utils with CPLD update feature
Added support for CPLD upgrade to Mellanox FW utility


#### How I did it
Updated Mellanox FW utility

#### How to verify it
mlnx-fw-upgrade.sh --upgrade --cpld # Regular CPLD update flow
UPDATE_MLNX_CPLD_FW=1 mlnx-fw-upgrade.sh --upgrade # Force CPLD refresh only

#### Ensure to add label/tag for the feature raised. example - [PR#2174](https://github.com/sonic-net/sonic-utilities/pull/2174) where, Generic Config and Update feature has been labelled as GCU.
2022-09-26 09:10:08 -07:00
Sudharsan Dhamal Gopalarathnam
e716b453b3
[201911][mellanox] Add CPLD update for SN2700 (#12173)
* [mellanox]: Add CPLD update for SN2700 (#3570)

* [mellanox]: Add CPLD update for SN2700.

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

* Updating cpld file

* Updating file path for cpld

* Updating archive

Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
Co-authored-by: Nazarii Hnydyn <nazariig@mellanox.com>
2022-09-26 07:58:28 -07:00
abdosi
69f18cfdbb
Cheery-pick the commit from master where in multi-asic platforms bgp (#12081)
Cherry-pick the commit from master where in multi-asic platforms bgp template rendering fails which needs Loopback4096 IP Address. Issue happens because of timing/race condition where if peer gets added first and then Loopback4096 notification comes to bgpcfgd
2022-09-15 10:12:57 -07:00
Moshe Moshe
8c302e6217
[201911][Mellanox] Update FW to version 2008.3388 (#11978)
* [201911][Mellanox] Update FW to version 2008_3388
2022-09-12 10:26:13 -07:00
Vivek
7781399bb6
[201911][Mellanox] Collect MST dump before syncd restart on shutdown notification (#11742)
- Why I did it
Collecting MST dump before syncd restart on shutdown notification during a SAI failure

Dump can be found under:
root@sonic:/home/admin# ls -l /var/dump/mstdump/
total 10684
-rw-r--r-- 1 root root 5460332 Aug 15 18:41 mstdump_20220815_184143.tar.gz
-rw-r--r-- 1 root root 5473253 Aug 15 21:46 mstdump_20220815_214642.tar.gz

root@sonic:/home/admin# tar -xvzf /var/dump/mstdump/mstdump_20220815_214642.tar.gz
├── ir-gdb
│   └── core
└── mstdump
    ├── mstdump1
    ├── mstdump2
    ├── mstdump3
    └── mststatus

- How I did it
Checked for shutdown notification log in sairedis and used it to determine whether the shutdown is normal or due to SAI failure

- How to verify it
Simulated a SAI failure event and verified it. Verified it also on different reboots and config reload scenarios the dump is not generated

Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
2022-08-29 16:09:26 +03:00
Sujin Kang
61a34fcf22
[201911] Add hardware reboot cause when software reboot failed (#11753)
Why I did it
Add the hardware reboot cause when the previous software reboot failed

How I did it
Check both hardware reboot cause and software reboot cause.
Add the hardware reboot as actual reboot cause
if any hardware reboot cause is available for any software reboot.

How to verify it
Perform reboots and verify the reboot-cause
2022-08-25 12:30:53 -07:00
nicwu-cel
0a7570000c
Add Celesitca Silverstone-x platform (#11533)
Why I did it
Add Celestica Silverstone-x platform

How I did it
Add Celestica Silverstone-x platform

How to verify it
verified by SONiC tested platform APIs
verified by SONiC APIs including " psuutil
psushow(show platform psustatus)
sfputil
sfpshow
tempershow(show platform temperature)
fanshow(show platform fan)
watchdogutil
fwutil(show platform firmware status)
decode-syseeprom -d(show platform syseeprom)
show platform ssdhealth
show platform summary
show interfaces status
"
2022-08-11 08:47:54 -07:00
Vivek
0b06e280aa
[201911] [libteam] Backport Missing update to libteam WR patch (#11583)
Why I did it
LAG Flaps are seen on Sad Warm reboot tests because of this.

How I did it
backport 8a2ba14677

Signed-off-by: vkarri <vkarri@contoso.com>
2022-08-08 15:02:56 +03:00
Liu Shilong
ee966125d4
[ci] Update azp reference to support transfering organization from Azure to sonic-net (#11606) 2022-08-02 16:14:38 +08:00
anish-n
7c83bb69e0 Minigraph resource type changes (#5198)
* Parse sub_role from minigraph into DEVICE_METADATA
* Change minigraph sub_role to resource_type
2022-08-01 17:18:08 +00:00
Abhishek Dosi
b6e8d38fc4 Revert "Minigraph resource type changes (#5198)"
This reverts commit f42f325f09.
2022-08-01 17:13:53 +00:00
Abhishek Dosi
5ff90316be [Submodule update] sonic-swss
[neighsyncd] increase neighsyncd timeout (#2209)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2022-07-29 21:56:16 +00:00
Abhishek Dosi
f3370dd414 [Submodule update] sonic-restapi
Change error message when conflicting Vlan ID is used (#119)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2022-07-29 21:53:42 +00:00
anish-n
f42f325f09 Minigraph resource type changes (#5198)
* Parse sub_role from minigraph into DEVICE_METADATA
* Change minigraph sub_role to resource_type
2022-07-29 17:02:34 +00:00
Abhishek Dosi
36ca9c52aa [Submodule update] sonic-restapi
commit 5f7cb77230fceb1b7fd30c57a70d0cd05cd6dd95 (HEAD -> 201911, origin/201911)
Author: Sumukha Tumkur Vani <sumukhatv@outlook.com>
Date:   Wed Jul 27 16:51:38 2022 -0700

    Use 201911/stretch dependencies for build (#118)

commit e3809523050df75ec18bf31a5dc3a2e595d58a14
Author: Sumukha Tumkur Vani <sumukhatv@outlook.com>
Date:   Wed Jul 27 15:17:12 2022 -0700

    Change response message for conflicting VNI (#117)

    Ref: https://github.com/Azure/sonic-restapi/pull/99

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2022-07-29 16:57:27 +00:00
Abhishek Dosi
11473cf736 [Submodule update] sonic-swss
Handle delete case for object not found (#2391)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2022-07-29 16:55:27 +00:00
abdosi
9fdef345d3
Updated Broadcom SAI Debian Package to 3.7.6.1-2 (#11552)
What/Why I did:

Update Broadcom SAI debian package. New Package has following changes:

CaseCS00012248135: Fix shows error message "linux-bcm-knet: Fatal error: Incomplete chain" followed by malformed LACP/LLDP packets
2022-07-28 10:35:30 -07:00
Liu Shilong
5b032a9327
[ci] Transfer organization from Azure to sonic-net for sonic-mgmt (#11559) (#11564)
Why I did it
Transfer organization from Azure to sonic-net for sonic-mgmt
2022-07-28 15:32:48 +08:00
Zain Budhwani
47fe8ae52a
Update sonic-utilities submodule (#11459)
Why I did it

62b7b56 2022-07-13 | Remove disabled and not loaded services before calling reset-failed and restart services (#2266) [Zain Budhwani]  
09b4678 2022-07-05 | [config/load_mgmt_config] Support load IPv6 mgmt IP (#2206) (#2246) [Jing Kan] 

How I did it

Pulled latest commit from 201911 sonic-utilities branch and created PR

How to verify it

Look at build-image
2022-07-18 14:24:56 -07:00
Stepan Blyshchak
3c3b77d2f1
[201911][sonic-linux-kernel] submodule update (#11353)
```
23fc702 [201911][patch] mlxsw: i2c: Prevent transaction execution for special chip st (#278)
e4f44e4 [201911] Increase log buf len size to 1M (#265)
ef6abe3 [201911] Apply kernel patches to fix emmc unreliability (#264)
7458347 [201911] Increase log buf len size to 1M
4edf1b4 [201911] Apply kernel patches to fix emmc unreliability
```

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>

Why I did it
I updated sonic-linux-kernel to pick a fix for a bug happening during ISSU that caused CPU stall.

How I did it
Updated submodule

How to verify it
Build and run warm reboot
2022-07-07 13:02:53 -07:00
Neetha John
a9b80368c9
[201811] Update 7260 MMU and ECN settings (#10757) (#11276)
Why I did it
Improve throughput and latency for 7260 deployments

How I did it
Update the dynamic threshold to 0 and ECN settings as 2mb/10mb/5%

How to verify it
Added unit tests for rendering the qos template for 7260. Built sonic config engine wheel successfully

Signed-off-by: Neetha John <nejo@microsoft.com>
2022-07-06 10:08:50 -07:00
Andriy Yurkiv
af22215c1d
[201911] [submodule] Advance sonic-utilities pointer (#11245)
afceda4 [201911] [Flex Counters] add CLI for PG drop packets counters (counterpoll, show/clear counters) (#2155)

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
2022-07-03 16:04:32 +03:00
Jing Kan
820393c628
[cherry-pick][201911][minigraph] Support parse IPv6 in device_desc.xml (#11095) (#11273)
* [minigraph] Support parse IPv6 in device_desc.xml (#11095)

Signed-off-by: Jing Kan jika@microsoft.com
2022-07-01 16:23:48 +08:00
AntheaJiang
78c6ae112b
201911 mx pull request (#10539)
Why I did it
Added Support for Celestica Midstone-100x platform

How I did it
Implemented the support for Celestica Midstone-100x platform

Platform: x86_64-cel_midstone-100x-r0
HwSKU: Midstone-100x
ASIC: innovium
ASIC Count: 1

How to verify it
Run platform test on testbed
2022-06-30 10:03:49 -07:00
Andriy Yurkiv
6ea65056b9
[submodule] Update sonic-swss submodule in order to add PG drop implementation (#11246)
*805f4bb [201911] Add SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS counter, create new FlexCounter group (#2263)

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
2022-06-28 11:29:07 -07:00
Neetha John
b29cb05b03
[201911] Minigraph parser changes to select mmu profiles based on SonicQosProfile attribute (#10927)
Why I did it
There is a need to select different mmu profiles based on deployment type

How I did it
There will be separate subfolders (RDMA-CENTRIC, TCP-CENTRIC, BALANCED) in each hwsku folder which contains deployment specific mmu and qos settings. SonicQosProfile attribute in the minigraph will be used to determine which settings to use. If that attribute is not present, the default settings that exist in the hwsku folder will be used

Signed-off-by: Neetha John <nejo@microsoft.com>
2022-06-24 11:52:31 -07:00
Ying Xie
70a92c82ad [7060] fix default port map
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-06-23 15:22:02 -07:00