Commit Graph

2581 Commits

Author SHA1 Message Date
Santhosh Kumar T
e481918e98 [DellEMC] Master: S6100: SSD upgrade status: Moving from smartctl to iSMART (#12784)
Why I did it
smartctl tool is available only in PMON docker. Hence, the tool may be not accessible incase PMON docker goes down.
Using iSMART_64 tool to fetch the SSD firmware version and device model information.

How I did it
Replacing smartctl with iSMART_64.
2023-01-25 21:06:57 +00:00
Ying Xie
97fb2e0b53
[201811][swss] advance submodule head (#13518)
swss:
* c9efae8 2023-01-25 | [201811][portinit] Do not call GET on SAI_PORT_ATTR_SPEED when AUTONEG is enabled (#2484) (#2640) (github/201811) [Ying Xie]
* ab785d8 2020-10-02 | remove FDB entires of BridgePort before removing the BridgePort (#1451) [madhanmellanox]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2023-01-25 13:07:35 -08:00
Ying Xie
4355578e4a
[201811][DX010] enable LPM (#12598)
Signed-off-by: Ying Xie <ying.xie@microsoft.com>

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-11-03 15:03:03 -07:00
Joe LeVeque
8612ba64d1 [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
2022-11-03 21:57:45 +00:00
Ying Xie
2c215f8885
[201811][utilities][platform-daemon][platform-common][kernel] advance submodule head (#12494)
utilities:
* 02eb899e 2022-07-12 | [config/load_mgmt_config] Support load IPv6 mgmt IP (#2206) (#2246) (#2256) (HEAD -> 201811, github/201811) [Jing Kan]

platform-daemon:
* fc288cc 2022-05-05 | Mem leak caused by Xcvrd in Send-Q of REDIS-DB socket connection (#260) (HEAD -> 201811, github/201811) [Prince George]

platform-common:
* edb062b 2022-02-09 | [sonic_sfp] Interpret sff 'int' element =0 as valid value (#261) (HEAD -> 201811, github/201811) [Prince George]

kernel:
* 9d2d1a1 2022-02-11 | [201811] Increase log_buf_len size to 1M (HEAD -> 201811, github/201811) [Sujin Kang]
* b34a213 2022-02-10 | [201811] Increase log_buf_len size to 1M [Samuel Angebault]
* c4684cb 2022-02-11 | [201811] Apply kernel patches to fix emmc unreliability [Sujin Kang]
* df68771 2022-02-03 | [201811] Apply kernel patches to fix emmc unreliability [Samuel Angebault]
* f21cb06 2021-03-26 | [ci]: remove 201811 suffix (#204) [lguohan]
* 5439b2a 2021-02-08 | [dni_dps460] Add attributes to retrieve PMBus status command codes (#194) [Arun Saravanan Balachandran]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-10-26 14:07:41 -07:00
Ying Xie
5aace7f939
[201811] address dhcp relay build issue (#12501)
Signed-off-by: Ying Xie <ying.xie@microsoft.com>

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-10-26 08:13:10 -07:00
Devesh Pathak
fa609b80f1 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
2022-10-25 21:51:28 +00:00
Prince George
e9737814f8 Close console session due to user inactivity (#9890)
Signed-off-by: Prince George <prgeor@microsoft.com>
2022-10-25 21:28:25 +00:00
Shilong Liu
ba72136999 [CI] Fix Azure pipeline set -e not work. (#9282)
In azure pipeline template 'set -e' not works as expected.
2022-10-25 21:21:30 +00:00
kellyyeh
7fb8dae264 [dhcp_relay] fix data type in dhcp6relay, add protection in packet data parsing (#9036) 2022-10-25 21:21:04 +00:00
Joe LeVeque
5868b9e17d [core_cleanup.py] Convert to Python 3; Fix bug; Improve code reuse (#5781)
- Convert to Python 3
- Fix bug: `CORE_FILE_DIR` previously was set to `os.path.basename(__file__)`, which would resolve to the script name. Fix this by hardcoding to `/var/core/` instead
- Remove locally-define logging functions; use Logger class from sonic-py-common instead
2022-10-25 21:14:56 +00:00
xumia
ee87a107cf
[201811] Change submodule path from Azure to sonic-net (#12314)
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:04 +08:00
Sujin Kang
0bd40857d1
[201811] Add the hw reboot cause if it happened during software reboot (#11752)
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-24 08:36:09 -07:00
Liu Shilong
9b8f505566
[ci] Transfer organization from Azure to sonic-net for sonic-mgmt (#11559) (#11565)
Why I did it
Transfer organization from Azure to sonic-net for sonic-mgmt
2022-08-02 11:04:12 +08:00
Jing Kan
da636794af
[cherry-pick][201811][minigraph] Support parse IPv6 in device_desc.xml (#11332)
Signed-off-by: Jing Kan jika@microsoft.com
2022-07-06 12:35:26 +08:00
Arun Saravanan Balachandran
beb9eac1c7
[201811] DellEMC S6100 - Port SSD upgrade status checker (#10955)
Why I did it
To port DellEMC S6100 SSD upgrade status checker changes from master (based on #7289) to 201811 branch

Handle newer SSD firmware version (S210506G - 3IE devices)
Recover SSD upgrade state if in case ssd_fw_upgrade folder got deleted
2022-06-14 17:14:31 -07:00
kellyyeh
81ce8b1010 [dhcp6relay] Fix option parsing and add dhcpv6 client messages (#10819)
(cherry picked from commit 2ead3aaefc)
2022-06-04 14:44:55 +08:00
kellyyeh
13ba0639dd [dhcp6relay] Add dhcpv6 option check (#10486) 2022-06-04 14:44:55 +08:00
Vaibhav Hemant Dixit
be394fb584
[201811] Advance sonic-snmpagent submodule to latest (#10830)
Advance sonic-snmpagent submodule to include:
Fix snmp subagent errors in shutdown path: Azure/sonic-snmpagent@3d5b85d
2022-05-15 21:39:15 -07:00
Neetha John
76a3c86e83
[201811] Update 7260 MMU and ECN settings (#10757)
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
With the new dir structure on 7260, updated the new alpha values and ecn settings in the appropriate files, loaded minigraph and verified that the new settings are applied
Added unit tests for rendering the qos template for 7260. Built sonic config engine wheel successfully

neethajohn added 6 commits 10 days ago

Signed-off-by: Neetha John <nejo@microsoft.com>
2022-05-15 21:22:14 -07:00
kellyyeh
f5c17629cb
[dhcp6relay] Add retry mechanism for binding socket to interface ipv6 addresses (#10712) (#10831)
(cherry picked from commit 243d0c73f9)
2022-05-13 19:28:33 -07:00
Neetha John
12c3ed58b5
[201811] Minigraph parser changes to select mmu profiles based on SonicQosProfile attribute (#10698)
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

How to verify it
Manually verified by creating subfolders under DX010 folder and updated minigraph on the device with SonicQosProfile pointing to one of the subfolders. Verified by loading minigraph and confirming the mmu and ecn settings are as expected.

Unit tests have been updated to include the SonicQosProfile attribute in the minigraphs used for buffer and qos rendering. Since the dir structure does not exist now, code flow will take no action. Once the dir structure exists, the profile selection path will get executed but since all 3 subfolders have identical values, existing test cases should hold good.

Build sonic-config-engine python wheel with the changes and build was successful.
2022-05-13 13:31:42 -07:00
Qi Luo
8a2543d8e9
Update submodule: sonic-snmpagent (#10759)
Includes below commits

c46de43 2022-05-05 | [201811] Fix: not to use blocking get_all() after keys(), if routestr does not exist, skip (#258) [Qi Luo]
2022-05-05 19:55:29 -07:00
Ying Xie
0bde374c52 [7060] fix default port map
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-05-05 13:48:42 -07:00
Ying Xie
45f66d264e [qos profile] create QoS profiles for Arista-7260CX3-D96C16
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-05-05 13:48:42 -07:00
Kevin Wang
4e45de2a7b [Buffer] Separate buffer profile for Arista-7260CX3-Q44
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
c796053efc [Buffer] Separate buffer profile for Arista-7260CX3-D108C8
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
020b29e919 [Buffer] Separate buffer profile for Arista-7260CX3-C64
50G data is not accurate, needs further update.

Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
a6de81b8ad [Buffer] Separate buffer profile for Arista-7060CX-32S-C32
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
57fc9d88fd [Buffer] Separate buffer profile for Arista-7060CX-32S-D48C8
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
f67db31067 [Buffer] Separate buffer profile for Arista-7060CX-32S-Q32
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
7dd31822eb [Buffer] Separate buffer profile for Celestica-DX010-D48C8
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Kevin Wang
2d5c243b84 [Buffer] Separate buffer profile for Force10-S6100
Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
2022-05-04 15:42:19 -07:00
Ying Xie
f7455b7b2c [buffer] create infrastructure to enable buffer/QoS profiles
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-05-04 15:42:19 -07:00
kellyyeh
a99fb25ada Revert "Added DHCPv6 Monitor"
This reverts commit 5737c22bea.
2022-04-08 22:25:22 -07:00
kellyyeh
28d4a88b3b Revert "Fix dhcpmon"
This reverts commit e30d559c5c.
2022-04-08 22:25:22 -07:00
Hua Liu
d5cd359eeb
Update submodule sonic-snmpagent for fix memory leak in sonic_ax_impl (#10473)
This submodule update brings in the following changes:

847c0a6 Update submodule sonic-snmpagent for fix memory leak in sonic_ax_impl (#250)
2022-04-07 15:18:22 -07:00
liuh-80
bb65791060
Add j2 template for enable pam_limit and limit SSH session (#10298)
#### Why I did it
    When too many user login concurrently and run commands, SONiC may kernel panic on some device which has very limited memory.

#### How I did it
    Add j2 template for setup pam_limit plugin for limit SSH session per-user.

#### How to verify it
    Manually validate the j2 template can generate correct config file.

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

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

#### Description for the changelog
    Add j2 template for setup pam_limit plugin for limit SSH session per-user.

#### A picture of a cute animal (not mandatory but encouraged)
2022-03-23 16:52:09 +08:00
kellyyeh
beea9895e2
[dhcp_relay] Check payload size to prevent buffer overflow in dhcpv6 option (#9740) (#10252) 2022-03-17 09:14:04 -07:00
Ying Xie
af6ad545a3
Revert "[201811] Check platform reboot cause to see if any reset happened during fast/warm-reboot (#8912)" (#10076)
This reverts commit a80319e2d0.
2022-02-24 07:27:30 -08:00
Ying Xie
550aa0c8e9
[7260] update buffer configurations (#10077)
Why I did it
Update 7260 buffer configuration according to 201911 branch tested values.

Signed-off-by: Ying Xie ying.xie@microsoft.com
2022-02-24 07:25:28 -08:00
zzhiyuan
b39f6b3618
[Arista] [201811] Add Arista-7260CX3-D96C16 HWSKU (#10034)
Why I did it
This was an ask by Microsoft to provide:
7260 config.bcm file for hardware sku Arista-7260CX3-D92C16 (Named Arista-7260CX3-D96C16).

There are 16 100G uplinks:
Ethernet13-20/1
Ethernet45-52/1

All other ports are breakout to 2 50G ports.

How I did it
Copied existing Arista-7260CX3-D108C8 HWSKU and altered the bcm.config and port_config.ini files.

How to verify it
The new 100G ports do come up with a 201811 image using this HWSKU.

Co-authored-by: Zhi Yuan (Carl) Zhao <zyzhao@arista.com>
2022-02-22 09:11:05 -08:00
Renuka Manavalan
ca7d73049d
libpam: Block sshd's INCORRECT password to AAA server (#10029)
Why I did it
sshd overrides user password with a bad one, when pre-auth fails.
Refer PR #9123 for more details

How I did it
Manual cherry pick of PR #9123

How to verify it
Pick a user alias that has not logged into the switch yet
Add this alias to /etc/tacplus_user
Attempt to login as that user
Look for the error message in /var/log/syslog
e.g. "Feb 18 19:16:41.592191 sonic ERR sshd[5233]: auth fail: Password incorrect. user: user_xyz"
2022-02-19 13:03:43 -08:00
Renuka Manavalan
7910108fd8
porting PR #8223, which uses one shot timer to reaload tacacs config (#9987)
Why I did it
There is a small window between load & listen to config-DB. If TACACS config got updated during that gap, the listen will not show it, hence hostcfgd would miss it, until another update.

How I did it
porting PR #8223, which uses one shot timer to reload tacacs config.
2022-02-17 08:16:03 -08:00
Samuel Angebault
2ed7f537d4
[201811][Arista] Add emmc quirks for Upperlake (#9970)
Why I did it
Fix some unreliability seen on emmc device with some AMD CPUs

How I did it
Added a kernel parameter to add quirks to
It depends on a sonic-linux-kernel change to work properly but will be a no-op without it.

Description for the changelog
Add emmc quirks for Upperlake
2022-02-11 13:26:19 -08:00
Ying Xie
76af3dc148
[201811][dhcp] enable building dhcpmon and dhcp6relay debug symbols (#9959)
* dhcp6relay: Save the dbgsym package into the target folder (#9013)

This makes it possible to install the debug symbols if needed. Also install
the package into the debug version of sonic-dhcp-relay container.

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

* Package debugging and hardening for dhcpmon and dhcp6relay (#9862)

Enable dbgsym package for dhcpmon.

Allow CFLAGS and LDFLAGS from environment variables to be used
in the dhcp6relay build. This makes sure that the -O2 flag from
dpkg-buildflags gets used.

Finally, enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

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

* [201811][dhcp] update debian build rules

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

Co-authored-by: Saikrishna Arcot <sarcot@microsoft.com>
2022-02-10 20:57:10 -08:00
Ying Xie
8e6d08a6b5
[bcmsai] upgrade Broadcom SAI to 3.5.3.8 (#9955)
Including following fixes:
CS00012225760, CS00012212820, CS00012215529, CS00012218100

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-02-10 17:05:26 -08:00
kellyyeh
29e86b5da8 [dhcp6relay] Support relaying Relay-Forward message (#9887) 2022-02-10 23:14:13 +00:00
kellyyeh
94e57496df
[201811][dhcp6relay] a couple memory access protections (#9861) 2022-01-27 23:18:56 -08:00
abdosi
3d4b3d5daf
Fix DHCP Relay Monitor Jinaja2 Template file. (#9655)
Why I did:

DHCP Relay docker does not start if we don't have v6 DHCP Relay address as this caused jinja2 template generation failure.
2022-01-03 12:59:57 -08:00