Commit Graph

2524 Commits

Author SHA1 Message Date
simonJi2018
67b8e14222 [nephos]: upgrade sai and sdk to solve docker syncd abnormal exit (#3679) 2019-10-31 09:14:10 -07:00
Ying Xie
f5e54298ec
[201811][swss] advance swss submodule head (#3682)
Submodule src/sonic-swss 15652b2..98cfe56:
  > Check RIF/Port exists only for add entries (#1110)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-30 09:54:14 -07:00
Ying Xie
f764a167ac [hostname-config] improve hostname-config process (#3676)
We noticed in tests/production that there is a low probability failure
where /etc/hosts could have some garbage characters before the entry for
local host name. The consequence is that all sudo command would be very
slow. In extreme cases it would prevent some services from starting
properly.

I suspect that the /etc/hosts file might be opened by some process causing
the issue. Editing contents with new file level and replace the whole file
should be safer.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-29 15:42:23 +00:00
Prabhu Sreenivasan
ff137a8e56 [baseimage]: Avoid removing localhost entry from /etc/hosts file (#2452)
- What I did
This fix removes the possibility of 'localhost' entry getting removed from /etc/hosts file by hostname-config service.

Without this change, whenever we change the hostname from 'localhost' to any other name on the config_db.json and reload the config, /etc/hosts file will only have the new hostname on it. But there are multiple sonic utilities (eg: swssconfig) which relies on the hard coded 'localhost' name and they tend to stop working.

- How I did it
Added a new check on hostname-config.sh script to avid blindly deleting the line containing the old hostname from /etc/hosts file. Now it will delete the old hostname only if its not localhost or when the hostname is not changing.

- How to verify it

Bring up SONiC on a device with hostname as localhost
Edit /etc/sonic/config_db.json to update the 'hostname' filed under DEVICE_METADATA from "hostname" : "localhost" --> "hostname" : "sonic"
run config reload -y to reflect the hostname change done on config_db.json file.
cat /etc/hosts and check whether both 127.0.0.1 localhost and 127.0.0.1 sonic entry are present on the file.
ping localhost should work fine.
- Description for the changelog
Make hostname-config service more robust in handling SONiC hostname change from localhost to anything else.
2019-10-29 15:42:04 +00:00
Wirut Getbamrung
6eb18ee4fa [device/celestica]: libsensors configuration file for Seastone-DX010 (#3664)
* [device/celestica]: libsensors configuration file for Seastone-DX010

* [device/celestica]: Add hysteresis config for lm75b sensors on Seastone-DX010
2019-10-28 07:33:56 -07:00
Ying Xie
da96c1a599
[201811][swss][utilities] advance submodule heads (#3670)
Submodule src/sonic-swss 2529d79..15652b2:
  > [mirrororch]: Add retry logic when deleting referenced mirror session (#1104)

Submodule src/sonic-utilities 0cfa942..c049e54:
  > [neighbor_advertiser]: Add sleep in setting mirror session and ACL rules (#714)
  > [warm/fast reboot] continue executing when killing docker failed (#713)
  > [ecnconfig] Validate input WRED parameters (#579)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-25 17:41:18 -07:00
Danny Allen
818ab7fdaa [core_cleanup] Fix issue where core_cleanup job runs too frequently (#3659)
Signed-off-by: Danny Allen <daall@microsoft.com>
2019-10-24 17:04:16 +00:00
Ying Xie
9ce24b59e5 [file permission] explicitly set file permission on passwd, group, shadow (#3652)
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-23 02:02:35 +00:00
Stephen Sun
3f42353bf1 [Mellanox] Fix SN2010 issue: "show platform psustatus" returns "NOT PRESENT" for power off PSU on 201811 (#3598)
* [plugins/psuutil]Align psuutil of 2010 with that of 2100.

* [plugins/psuutil.py]Address comments via using more human-readable code
2019-10-21 16:14:35 +03:00
zzhiyuan
5965c3f4f9 Fix reboot-cause for 201811 arista (#3620) 2019-10-18 20:13:14 -07:00
Ying Xie
2d4c1f0b7b [201811][utilities] advance sub module head (#3631)
Submodule src/sonic-utilities d315dd7..0cfa942:
  > [neighbor_advertiser]: Adapt to different mirror ACL table names (#703)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-18 16:43:45 -07:00
Ying Xie
e98be7448c [201811][utilities] advance sub module head (#3612)
Submodule src/sonic-utilities fb5902f..d315dd7:
  > show pfcwd status to be 'N/A' when pfcwd is stopped (#682)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-16 07:54:44 -07:00
pavel-shirshov
c259f40477 BGPm for 201811 (#3601)
* Feature is downported

* Add monitors to the test minigraphs

* Test

* No pfx filer

* Fix bgp sample

* Quagga requires to activate peer-group before configuration
2019-10-15 18:43:52 -07:00
Wenda Ni
241b6facd8 [devices]: PG headroom change for Arista 7260 (#3600)
Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-10-15 15:26:15 +00:00
Ying Xie
c7a096b6b9
[201811][ntp] removed undefined filter (#3594)
pfx_filter is not defined in 201811 branch.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-11 19:46:14 -07:00
lguohan
afbb91657c [baseimage]: incrase docker ramfs from 800MB to 900MB (#3582) 2019-10-10 00:46:54 +00:00
Nazarii Hnydyn
41ce07e75c [mellanox]: Add CPLD update for SN2700 (#3570)
* [mellanox]: Add CPLD update for SN2700.

Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
2019-10-09 17:36:45 -07:00
pavel-shirshov
53ec9124bc [ntp]: Use loopback address when we don't have MGMT interface (#3566)
Added configuration to use Loopback ip if a switch doesn't have MGMT_PORT.
2019-10-07 16:56:00 +00:00
Wirut Getbamrung
4ab5c2f6e5 [device/celestica]: update psuutil follow new platform api (#3537)
Fixes #3518

Update psuutil API to detect PSU GPIO base from label
2019-10-07 16:56:00 +00:00
Ying Xie
619c4a4851
[201811][sairedis] advance sub module head (#3562)
Submodule src/sonic-sairedis 55ec4d2..627e6bc:
  > Add TimerWatchdog for monitoring long execution apis (#469)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-04 08:00:27 -07:00
Ying Xie
56085be06b [bcm config] enable sram scan (#3558)
Per Broadcom's recommendations.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-04 00:04:39 +00:00
Ying Xie
2119205046
[201811][utilities] advance sub module head (#3557)
Submodule src/sonic-utilities 2d721de..fb5902f:
  > Revert "[fast reboot] kill teamd docker directly (#683)" (#690)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-03 12:10:52 -07:00
Volodymyr Samotiy
eecc3b15c8 [Mellanox]: Update FW to 4.3.1636 version (#3551) 2019-10-03 11:38:11 -07:00
Ying Xie
40ad3fd603
[201811][swss][utilities] advance sub module head (#3552)
* [201811][swss][utilities] advance sub module head

Submodule src/sonic-swss fcd091c..9585be4:
  > [teamsyncd]: Check if LAG exists before removing (#1069)
  > [mirrororch]: Toggle the mirror session when moving between VLAN/non-VLAN (#1078)

Submodule src/sonic-utilities 7bb6ffb..2d721de:
  > [show] Properly replace port name with alias in command output (#664)
  > [neighbor_advertiser] hand pick partial change from #525 (#689)
  > Revert "Revert "Fixed config Asym PFC CLI. (#632)" (#652)"

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

* address compile issue

Submodule src/sonic-swss 9585be4..2529d79:
  > [mirrororch]: Address compiler switch issue (#1079)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-03 08:05:33 -07:00
pavel-shirshov
975fb1c488 [libteam]: Keep member ports parts of a team when teamd quits in FR and WR (#3544) 2019-10-02 22:35:46 +00:00
Ying Xie
37b78826ee [updategraph] enhance update graph handling (#3549)
- after reloading minigraph, write latest version string in the DB.
- if old config_db.json file exists, use it and migrate to latest version.
- only reload minigraph when config_db.json doesn't exist and minigraph
  exists.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-02 21:04:39 +00:00
Ying Xie
e4f8a3946c [first boot] sync file system after moving/copying files (#3550)
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-02 21:04:39 +00:00
Nazarii Hnydyn
520dca3f8d [Mellanox ] Updated MFT package (#3540) 2019-10-01 16:54:24 -07:00
Ying Xie
91a5bd2c7b
[201811][utilities] advance sub module head (#3535)
Submodule src/sonic-utilities 5b1fa3c..7bb6ffb:
  > [fast reboot] kill teamd docker directly (#683)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-09-28 17:31:27 -07:00
Ying Xie
7dccd0fc3d
[201811][utilities] advance sub module head (#3532)
Submodule src/sonic-utilities 54946e9..5b1fa3c:
  > [neighbor_advertiser] Verify that DIPs returned from ferret are not in device VLAN (#670)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-09-27 16:42:46 -07:00
pavel-shirshov
467851e24e Regular quit needs to clean the ports two (#3531) 2019-09-27 22:18:06 +00:00
Ying Xie
21c9185e44
[201811][utilities][swss] advance sub module head (#3524)
Submodule src/sonic-swss 0e5c1ff..fcd091c:
  > [mirrororch]: Remove mirror session state after it is remvoed (#1066)

Submodule src/sonic-utilities a89b9d4..54946e9:
  > [acl_loader]: Add monitor port column in show mirror_session output (#662)
  > [warm/fast reboot] some service docker might have been stopped already (#668)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-09-27 08:43:39 -07:00
Joe LeVeque
5199755be7
[sonic-slave] Update linux-compiler-gcc package version to fix build (#3515) 2019-09-26 18:14:30 -07:00
Mykola F
e572080b2b [Mellanox] platform_reboot - sync & umount fs before power cycle (#3430) (#3476)
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
2019-09-26 15:47:27 -07:00
pavel-shirshov
301c69b098 Flush port in both worm-reboot and fast-reboot mode on exit. Otherwise teamd will stuck (#3512) 2019-09-25 23:09:16 +00:00
Wenda Ni
e7f1d4f3e2 Remove the divide by 4 operation to the under the hood SAI (#1532)
* Remove the divide by 4 operation to the under the hood SAI

This is to avoid the need and thus the confusion for application program to know
the mmu internal architecture

This change must have support from SAI change to reach the correct
config

Signed-off-by: Wenda <wenni@microsoft.com>

* Relegate the divide by 4 operation to the under the hood SAI for egress
lossless pool

Extend to 7060 and 6100

Signed-off-by: Wenda <wenni@microsoft.com>

* Add more TH/TH2 hwskus

Signed-off-by: Wenda Ni <wenni@microsoft.com>

* Update config test

Signed-off-by: Wenda Ni <wenni@microsoft.com>

* Add TH2 ingress lossy profile

Signed-off-by: Wenda Ni <wenni@microsoft.com>

* Move the divide by 4 operation to SAI internal

Signed-off-by: Wenda Ni <wenni@microsoft.com>

* [bcm SAI] Upgrade Broadcom SAI to version 3.5.3.1-15

- Broadcom SAI 3.5 GA release 20190924.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-09-25 23:01:54 +00:00
Ying Xie
9f59207d91
[201811][swss][swss-common] advance sub module head (#3502)
Submodule src/sonic-swss 57e531d..0e5c1ff:
  > Adopt to signature change of Selectable::readData, which switched (#1061)
  > [orchagent]: Remove try/catch for correct coredump file (#790)

Submodule src/sonic-swss-common d7b1f53..ece5ce4:
  > timerfd fix: Pass false alarm to caller. (#307)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-09-25 12:34:11 -07:00
bbinxie
c74822a1a4 Add new device data for dx010 (Celestica-DX010-C32,Celestica-DX010-D48C8) (#3492)
* add config.bcm for hlx

* modify config.bcm path for hlx

* Delete hx4-cel-hbtn-48x1G+4x10G.config.bcm

* add config.bcm and path

* update led for cxp

* Add new device data for dx010
2019-09-23 17:37:37 +00:00
pavel-shirshov
2fc617fcd9 [libteam]: Add Fast-Reboot mode for teamd (#3490)
* [libteam]: add special Fast-Reboot teamd stop mode

* Fix last packet sending

* Update sonic-utilities module
2019-09-23 17:36:47 +00:00
Ying Xie
e597415838
[201811][swss] advance sub module head (#3491)
Submodule src/sonic-swss 3cee6b8..57e531d:
  > Ignore link local neighbors (#1065)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-09-19 17:28:50 -07:00
Renuka Manavalan
0493b6274e
Map /src & /debug for debug docker containers (#3470)
* Add debug docker for SNMP.

* Removed a redundant install of debug packages.
Propagate the debug flag to template file to mount /dbg & /src to debug containers.

* Revert the last change to retain the original
2019-09-19 09:09:25 -07:00
Ying Xie
e9037a72ff
[201811][utilities][swss] advance sub module head (#3481)
Submodule src/sonic-swss 24fcbb6..3cee6b8:
  > [aclorch]: Fix table name in counter table for mirror rules (#1060)
  > Cannot ping to link-local ipv6 interface address of the switch. (#774)
  > [MirrorOrch]: Mirror Session Retention across Warm Reboot (#1062)

Submodule src/sonic-utilities afaedb7..a06bee7:
  > [201811][config] Add '-h' and '-?' as help options to unify with show/sonic-clear cmds (#654)
  > Revert "Fixed config Asym PFC CLI. (#632)" (#652)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-09-18 20:02:41 -07:00
Prince Sunny
4ef5ce74e4 Install Iptables rules to set TCPMSS for 'lo' interface (#3452)
* Install Iptables rules to set TCPMSS for lo interface
* Moved implementation to hostcfgd to maintain at one place
2019-09-19 01:08:44 +00:00
Ying Xie
9f03af0a2e
[201811][utilities] advance sub module head (#3469)
Submodule src/sonic-utilities fe2c656..afaedb7:
  > Revert "[FastReboot]: Send SIGINT to all teamd before stop (#633)" (#650)
  > Fixed config Asym PFC CLI. (#632)
  > [config] Do no stop or restart dependent services (#582)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-09-17 17:22:29 -07:00
Renuka Manavalan
65494418a8
Add debug docker for SNMP. (#3467) 2019-09-17 13:28:08 -07:00
Kebo Liu
67ce0d1a2d [submodule]: update sonic-platform-daemons sub module to pick up fix (#3462)
[201811 xcvrd] state machine enhancement Azure/sonic-platform-daemons#45
2019-09-17 09:34:11 -07:00
Ying Xie
5a604d07df
[201811][sairedis][swss] advance sub module head (#3459)
Submodule src/sonic-sairedis 1cf2eea..55ec4d2:
  > [syncd]: support query port with 8 lanes (400G)

Submodule src/sonic-swss 2974844..24fcbb6:
  > support 8 lanes for a physical port (#778)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-09-15 08:55:06 -07:00
Renuka Manavalan
67b1dad6e7 [redis]: Upgrade redis-server from 3.2.4 to 3.2.13 (#3432) 2019-09-13 23:31:05 -07:00
Renuka Manavalan
cb81e3ab1e [snmpd]: Fix snmpd crash possible when snmp agent takes too long to respond. (#3454)
Patch from source-forge: net-snmp.
Crash due to stale memory access.
2019-09-13 22:08:28 -07:00
Ying Xie
9cde0fc808 [201811][utilities] advance sub module head (#3456)
Submodule src/sonic-utilities f76fc2c..fe2c656:
  > [warm-reboot]: Do not clean up mirror session state database (#639)
  > [config] Reset failed status of all SONiC services, whether or not they are currently failed (#619)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-09-13 22:07:42 -07:00