Commit Graph

1494 Commits

Author SHA1 Message Date
xumia
9278653d24
[201803] Change submodule path from Azure to sonic-net (#12318)
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:06:35 +08:00
Joe LeVeque
b6ae12bcc8 [201803] Install specific version of ctypesgen to fix build (#3576)
Port of #3434 to the 201803 branch.
2019-10-08 12:41:37 -07:00
Joe LeVeque
7cd776334e [sonic-linux-kernel] Update submodule (#3573)
Debain maintainers took down the 3.16.68-2 kernel source, which broke the 201803 build. This patch downloads the files from Azure storage instead.

src/sonic-linux-kernel 9ccb78e...5ec0c26 (2):
[201803] Revert kernel upgrade; Download 3.16.68-2 kernel from Azure Storage
[201803] Upgrade kernel from 3.16.68-2 to 3.16.74-1

Note: Check builds failing due to saithrift issue, which is fixed here: #3576.
2019-10-08 07:59:50 -07:00
Joe LeVeque
16521fcc50 [sonic-slave] Update linux-compiler-gcc package version to fix build (#3515) 2019-09-30 21:57:34 +00:00
pavel-shirshov
7146e3a703 [submodule]: Update sonic-quagga (#3136) 2019-07-11 14:28:30 -07:00
Guohan Lu
75e98dd273 [submodules]: update sonic-swss and sonic-swss-common
sonic-swss:

* 67f7191 2019-06-20 | Set timer only when interval changes. Not in each firing of the timer. (#945) (HEAD -> 201803, origin/201803) [Renuka Manavalan]
* 2cae61b 2019-07-07 | Fix: crash while destructing crmorch (#731) (#949) [Renuka Manavalan]

sonic-swss-common:

* 58b1930 2019-07-07 | Add an assert to logger, which will log a message and abort. (#286) (#287) (HEAD -> 201803, origin/201803) [Renuka Manavalan]
2019-07-07 07:18:47 +00:00
Wenda Ni
8b45d2328e In the case of upgrade, have pfcwd enabled on the upgraded sonic (#2192)
Signed-off-by: Wenda <wenni@microsoft.com>
2019-07-03 18:59:06 +00:00
Qi Luo
4507d548e0 [submodule] Update snmpagent (#3105)
Fix snmp mac polling performance issue
2019-07-02 10:56:27 -07:00
pavel-shirshov
ad770b74ca [snmp]: Restart snmpd to mitigate its crash (#3084) 2019-06-26 08:02:44 -07:00
Ying Xie
53575f0427 [201803][utilities] advance sub module head (#3077)
Submodule src/sonic-utilities 518ff41..3aecd6d:
  > [Mellanox] Update FW if needed before fast-reboot (#513)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-06-25 11:23:09 -07:00
simonJi2018
77089ec4e1 [nephos]: upgrade sdk to support linux kernel 3.16.0-9 (#3071) 2019-06-24 08:12:08 -07:00
Qi Luo
f93bd6ff37 [security] Upgrade kernel from 3.16.57-2 to 3.16.68-2 on 201803 branch (#3052)
* [security] Upgrade kernel from 3.16.57-2 to 3.16.68-2 on 201803 branch
2019-06-23 11:53:40 -07:00
Nazarii Hnydyn
3459c54c89 [mellanox] Introduced start EEPROM action. (#2996)
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
2019-06-17 09:58:02 -07:00
SuvarnaMeenakshi
d9ff70b33b [baseimage] kernel oom-killer to panic when the system is truly out of memory (#2988)
- What I did
Currently when the system is under memory pressure, the OOM killer kicks in and kills a rogue process. Killing a rogue process can cause the device to be un-healthy leading to blackholing of the traffic.

To avoid this, configure the OOM to do a kernel panic which will cause the device to reboot and come back up healthy.

- How I did it
Added the sysctl variable panic_on_oom and set the value to 2.
Setting it to 2 will ensure OOM killer to always do a kernel panic.
2019-06-12 08:34:41 +00:00
pavel-shirshov
11755aaf55 [submodule]: Update sonic-quagga submodule (#2984) 2019-06-09 04:47:37 +00:00
pavel-shirshov
a0303f929a [sonic-quagga]: Fix missing fpm messages (#2884) 2019-06-09 04:47:30 +00:00
Shuotian Cheng
4b78e50219 [Broadcom]: Update SAI to 3.1.3.4-24 (#2975)
Update hash seed algorithm to add entrophy

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2019-06-06 14:27:03 -07:00
Joe LeVeque
647b257863 [201803][monit] Restart rsyslog service if rsyslogd consumes > 800 MB memory (#2963) 2019-06-04 13:20:31 -07:00
pavel-shirshov
c28283f699 [libteam] Send LACP PDU as soon as we need them. 201803 version (#2965) 2019-06-03 16:04:22 -07:00
Guohan Lu
f7ee08dfcb [submodule]: update sonic-swss
ba29927 Fix compilation issue to ignore neighbor entries with Broadcast Mac (#920)
2019-06-03 19:43:59 +00:00
Guohan Lu
e70e4b58ec [submodule]: update sonic-swss
d543dd9 2019-05-28 | Ignore neighbor entry with BCAST MAC, check SAI status exists

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2019-05-29 19:26:52 +00:00
Qi Luo
b9e9f29955 [monit] Set memory usage alert at 50% (#2939)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2019-05-29 08:25:47 +00:00
Joe LeVeque
769d3b303c [201803] [logrotate] Enhance robustness (#2941)
* [logrotate] Decrease frequency to every 10 minutes; kill any lingering logrotate processes

* [logrotate] Decrease usable space to 90%; Delete all *.1.gz files as firstaction
2019-05-25 18:00:33 -07:00
Andriy Moroz
a78812b6bc [Mellanox] Update platform driver service options (#2908)
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
2019-05-20 11:27:33 -07:00
Joe LeVeque
bce72c9228 [201803][dhcp_relay] Add support for DHCP client(s) on one VLAN and DHCP server(s) on another (#2857)
* Change URL for isc-dhcp source repository

* Port upstream patches to isc-dhcp-relay to support upstream/downstream interfaces

* Modify supervisor conf to generate dhcrelay commands with '-id' and '-iu' options

* Comments; Also clean up jinja2 syntax

* Patch relay to open one socket per interface and send to all servers on all upstream interfaces

* Patch relay agent to properly forward BOOTREQUEST only on appropriate interfaace if it is a directed broadcast

* Update patch to properly support interfaces with multiple IP addresses assigned

* Pass --enable-use-sockets to configure instead of uncommenting USE_SOCKETS directly
2019-05-17 14:22:09 -07:00
Renuka Manavalan
ca4f587597 [tacacs]: skip accessing tacacs servers for local non-tacacs users (#2843)
* Switch the nss look up order as "compat" followed by "tacplus".
This helps use the legacy passwd file for user info and go to tacacs only if not found.
This means, we never contact tacacs for local users like "admin".
This isolates local users from any issues with tacacs servers.
W/o this fix, the sudo commands by local users could take <count of servers> * <tacacs timeout> seconds, if the tacacs servers are unreachable.

* Skip tacacs server access for local non-tacacs users.
Revert the order of 'compat tacplus' to original 'tacplus compat' as tacplus
access is required for all tacacs users, who also get created locally.
2019-05-17 21:01:03 +00:00
Shuotian Cheng
a7edb86989 [Broadcom]: Update Broadcom SAI to 3.1.3.4-23 (#2890) 2019-05-13 13:17:23 -07:00
Guohan Lu
4b7eac8e28 [quagga]: update sonic-quagga
* 81ad4d2 2019-04-18 | lib: fix heap corruption in stream_fifo_free (#33) [pavel-shirshov]

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2019-05-12 02:40:12 +00:00
Andriy Moroz
5a5c9b0558 [Mellanox] Update SAI (#2862)
Fixed ACL on LAG members

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
2019-05-03 11:08:35 -07:00
Prince Sunny
c2fb404f51 [Broadcom]: Update SAI to 3.1.3.4-22 [L3 MTU Fix] (#2853) 2019-05-01 23:01:47 -07:00
Qi Luo
c6a415fd0f [submodule]: Update submodule sonic-snmpagent: Remove verbose feature missing logs (#2851) 2019-05-01 18:13:36 -07:00
Qi Luo
ac35206447 [docker-base]: Remove unused packages in docker images and host (#2807) (#2837)
* Remove unneeded packages in docker images and host
* Remove libpython3.6 from snmp docker image
2019-05-01 08:05:08 -07:00
Qi Luo
98d0b76c11 [mgmt] Fix pycparser installation (#1820) 2019-04-30 01:33:33 +00:00
Guohan Lu
2cc9fb92d4 Revert "[devices]: Watchdog support for DellEMC S6100 (#2741)"
This reverts commit 3a24c61108.
2019-04-23 16:33:42 +00:00
lguohan
35e8329afb refactor bcm attribute checker (#1974)
* refactor bcm attribute checker

* exclude phy_84752 and phy_84328

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2019-04-19 23:14:31 +00:00
Shuotian Cheng
04debfa4ec [Broadcom]: Update SAI to 3.1.3.4-21 (#2797)
Update hashing coverage for HashIP4TcpUdpPortsEqualField

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2019-04-18 02:14:09 -07:00
pavel-shirshov
3637f6d338 teamd: lacp: update port state according to partner's sync bit (#2794)
Downport of
54f137c105

According to 6.4.15 of IEEE 802.1AX-2014, Figure 6-22, the state that the
port is selected moves MUX state from DETACHED to ATTACHED.

But ATTACHED state does not mean that the port can send and receive user
frames. COLLECTING_DISTRIBUTION state is the state that the port can send
and receive user frames. To move MUX state from ATTACHED to
COLLECTING_DISTRIBUTION, the partner state should be sync as well as the
port selected.

In function lacp_port_actor_update(), only INFO_STATE_SYNCHRONIZATION
should be set to the actor.state when the port is selected.
INFO_STATE_COLLECTING and INFO_STATE_DISTRIBUTING should be set to false
with ATTACHED mode and set to true when INFO_STATE_SYNCHRONIZATION of
partner.state is set.

In function lacp_port_should_be_{enabled, disabled}(), we also need to
check the INFO_STATE_SYNCHRONIZATION bit of partner.state.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
2019-04-17 00:02:03 -07:00
Andriy Moroz
18e815171d [mellanox]: Improve eeprom access reliability (#2756)
* Improve eeprom access reliability

Co-Authored-By: andriymoroz-mlnx <c_andriym@mellanox.com>
2019-04-16 18:54:01 -07:00
Andriy Moroz
a79f242e6c [Mellanox] Add FW upgrade before reboot feature (#2788)
* [mellanox] Enhance mlnx-fw-upgrade.sh (#1994)

Install a new FW by specifying FW path (mlnx-fw-upgrade.sh /path/to/FW)
or use default at '/etc/mlnx/fw-SPC.mfa'

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

* Fixed FW upgrade sequence. (#2111)

* Fixed FW upgrade sequence.
* Removed code duplication.
2019-04-15 10:30:06 -07:00
pavel-shirshov
c64e5e51db [vstest]: Test for quagga livelock fix (#2751)
* Test for quagga livelock fix

* Create /usr/local/etc for the test

* Add more debug info

* Install specific version of exabgp

* Update sonic-quagga
2019-04-10 01:21:34 +00:00
Guohan Lu
9299a249d3 Revert "[201803] [services] Restart SwSS service upon unexpected critical process exit (#2546)"
This reverts commit 2a8af2705e.
2019-04-06 22:21:30 +00:00
Guohan Lu
968a0dfbd0 Revert "[201803] Restart SwSS, syncd and dependent services if a critical process in syncd container exits (#2615)"
This reverts commit 9e8518c855.
2019-04-06 22:21:16 +00:00
paavaanan
3a24c61108 [devices]: Watchdog support for DellEMC S6100 (#2741) 2019-04-06 12:34:27 -07:00
Nazarii Hnydyn
9e76a47aa9 [devices]: Upgrade Mellanox HW-MGMT: fix high CPU utilization issue. (#2726)
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
2019-04-01 15:47:00 -07:00
Andriy Moroz
cbca6847d1 [devices]: Add support of HwSKU Mellanox-SN2700-C28D8 (#2690)
* Add support of HwSKU Mellanox-SN2700-C28D8

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
2019-03-27 18:34:12 -07:00
Joe LeVeque
99ed954203 [201803] Modify Debian apt repos to reflect changes made by maintainers (#2709)
* [201803][apt] Point to archive.debian.org for jessie-backports; remove jessie-updates

* Add no-check-valid-until for apt in base image

* Add no-check-valid-until for apt in docker-base

* [sonic-slave] Remove jessie-backports, as it is unused in the slave container
2019-03-27 11:23:38 -07:00
Shuotian Cheng
09f413246e [Broadcom]: Update SAI to 3.1.3.4-20 (#2708)
Address parity error in XOR bank for TH device

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2019-03-26 23:48:22 -07:00
Ying Xie
b38bab0e4b [bde driver] black list linux_kernel_bde driver (#2284)
This driver should be loaded by sonic service. If kernel tries to load
it, the driver would be loaded with default parameters, which is not
right for sonic.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-03-18 21:28:35 +00:00
Wenda Ni
d904b3e596 Add hook to allow customizing link cable lengths
Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-03-09 13:43:32 +00:00
Joe LeVeque
9e8518c855 [201803] Restart SwSS, syncd and dependent services if a critical process in syncd container exits (#2615)
* Add process exit listeners to syncd containers so that containers stop upon unexpected critical process exit

* swss.service unit file now starts both swss and syncd containers as ExecStartPre steps, and for ExecStart, it indefinitely checks that the containers are running

* Add 'docker-wait-any' script, use it to wait for containers to exit
2019-03-06 23:49:58 -08:00