Commit Graph

2260 Commits

Author SHA1 Message Date
Renuka Manavalan
92df547d83
Build debug docker for fpm-quagga. (#3855) 2019-12-06 20:51:46 -08:00
Renuka Manavalan
d087306411
Added debug symbol to dhcp-relay. (#3850)
* Added debug symbol to dhcp-relay.
Note: Master is different; Hence explicitly for 201811 only.

* Include debug symbols of isc-dhcp in its debug docker.
Include isc-dhcp src in source archive.
2019-12-06 20:51:31 -08:00
paavaanan
8ad48a5243 DellEMC S6100 CPLD upgrade support (#3834)
* DelllEMC S6100 CPLD upgrade support

* Typo: CPLD
2019-12-06 10:54:45 -08:00
Ying Xie
ba88f9c0ae Revert "[swss.sh] When starting, call 'systemctl restart' on dependents, not (#3807)" (#3835)
This reverts commit 351410ea8c.
2019-12-02 23:56:04 +00:00
Ying Xie
5fa79fedd0
[201811][swss][utilities] advance submodule heads (#3836)
Submodule src/sonic-swss 1bc989a..8ef513c:
  > [teamsyncd]: Add retry logic in teamsyncd to avoid team handler init failure (#854)

Submodule src/sonic-utilities e548793..ae274e5:
  > [neighbor advertiser] catch all exceptions while trying https endpoint (#757)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-12-02 15:55:22 -08:00
pavel-shirshov
6d1530f753
[docker-fpm-quagga]: Enable sending ipv6 prefixes over ipv4 BGPMON session. (#3828)
* Enable ipv6 prefixes over ipv4 BGPMON session

* Fix testcases

* Update bgpd_quagga.conf
2019-11-30 22:28:46 -08:00
Ying Xie
ddba4fe322 [201811][utilities] advance sonic-utilities submodule head (#3827)
Submodule src/sonic-utilities 4f87e4d..e548793:
  > Fix a bug in idempotent check. (#755)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-30 09:57:15 -08:00
Joe LeVeque
8c4f7e5933 [dhcp_relay] Add extra sleep before starting relay agent processes (#3824) 2019-11-27 02:21:42 +00:00
Joe LeVeque
3920ac2368 [services] Remove explicit dependencies from dhcp_relay service file, control in swss.sh (#3823) 2019-11-27 02:21:00 +00:00
Ying Xie
d0237ece11
[201811][utilities] advance submodule utilities (#3813)
Submodule src/sonic-utilities 3ed25a4..4f87e4d:
  > [neighbor_advertiser] Adds initial support for HTTPS to neighbor advertiser (#750)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-24 09:59:48 -08:00
Joe LeVeque
8e86a157ff [swss.sh] When starting, call 'systemctl restart' on dependents, not (#3807)
'systemctl start'
2019-11-24 03:26:03 +00:00
Ying Xie
3136fd6018
[bcm SAI] upgrade Broadcom SAI to 3.5.3.3-1 (#3781)
- Broadcom SAI GA release 20191115.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-19 21:33:55 -08:00
Qi Luo
0848a31893
Update submodule: sonic-snmpagent (#3783) 2019-11-19 13:09:58 -08:00
Ying Xie
29339773d2
[201811][sairedis] advance sairedis submodule head (#3780)
Submodule src/sonic-sairedis 627e6bc..4b11836:
  > Disable Fast-Reboot start if uptime is greater than 3 minutes (#534)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-18 21:11:33 -08:00
Ying Xie
9b3c178fc8 [201811][kernel] advance kernel submodule head (#3773)
Submodule src/sonic-linux-kernel f6a4391..4fed1cb:
  > [kernel] add patch for mlx-platform: Fix parent device in i2c-mux-reg device registration (#112)
2019-11-18 11:29:59 -08:00
zzhiyuan
6a6ce50813 Update arista submodule for smbus reliability (#3772) 2019-11-16 20:08:47 -08:00
Nazarii Hnydyn
e546c64c76 [mellanox] Extend Mellanox FW utils with CPLD update (#3723)
* [mellanox] Extend Mellanox FW utils with CPLD update
* [mellanox] Fix FW utils review comments
2019-11-15 10:43:17 -08:00
Ying Xie
45f5270399
Revert "[build] clear dpkg cache and update sources (#3737)" (#3749)
This reverts commit 9871e043ec.
2019-11-14 07:46:36 -08:00
Ying Xie
9871e043ec
[build] clear dpkg cache and update sources (#3737)
This change is intended to fix the issue with dpkg-query during build
process.

The symptom is dpkg-query failed to open package info file, usually
/var/lib/dpkg/updates/000?

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-12 07:23:13 -08:00
Wenda Ni
8788f4f783 cherry-picking diff between #3628 and #3561
Revert "Configure buffer profile to all ports (#3561)" (#3628)
Configure buffer profile to all ports (#3561)

This reverts commit 8861cbe98e.

Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-11-08 03:12:59 +00:00
Ying Xie
d6d389d7a1
[201811][utilities] advance utilities submodule head (#3724)
Submodule src/sonic-utilities 2ca1ae1..3ed25a4:
  > Do not start pfcwd for M0 devices (#726)
  > Make configlet application script idempotent for updates. (#728)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-07 13:53:24 -08:00
Neetha John
6d23e4c8d7 [pfcwd]: Do not start pfc watchdog on Management Tor (#3719)
Signed-off-by: Neetha John <nejo@microsoft.com>
2019-11-07 21:41:32 +00:00
lguohan
9167f9da46 [aboot]: preserve snmp.yml and acl.json for eos to sonic fast reboot (#3716) 2019-11-07 21:40:20 +00:00
pavel-shirshov
b9b56c91ff [minigraph.py]: Use default namespace for <Address> (#3695)
* [minigraph.py]: Use default namespace for <Address>
2019-11-07 21:36:43 +00:00
pavel-shirshov
90fb363958 Add NEIGHBOR_METADATA info into render (#3688) 2019-11-07 20:09:47 +00:00
pavel-shirshov
a96ed09ff3 Downport BGPM and addrack patches to configlet_201811 branch (#3669)
* 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

* Add bgpcfgd and bgpd.peer template

* Catch exception if rendering external template

* Fix tests
2019-11-07 20:08:02 +00:00
Danny Allen
aa6adc1384 [minigraph.py] Update minigraph parsing logic to include only active ports for mirror tables (#3592) (#3634)
* Update minigraph.py to filter out front-panel ports that are not active
* Update cfggen tests to reflect new behavior

Signed-off-by: Danny Allen <daall@microsoft.com>

* Incorporate PR comments
- Update t0 tests to include additional device neighbors
- Refactor xml parsing logic
2019-11-07 00:24:07 +00:00
Wenda Ni
c1e17b3579 Adopt per-port buffer & qos profile apply on mellanox (#3543)
Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-11-07 00:23:10 +00:00
Wenda Ni
0ea82d8735 Fix syntax error for qos_config template (#3619)
Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-11-07 00:22:50 +00:00
Wenda Ni
f616cec7f4 Adopt per-port buffer and qos profile (#3542)
Signed-off-by: Wenda Ni <wenni@microsoft.com>
2019-11-07 00:21:52 +00:00
Ying Xie
09308e0162
[201811][swss] advance swss submodule head (#3717)
Submodule src/sonic-swss 49c9c16..1bc989a:
  > Fix pfc watchdog compile error (#1119)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-06 13:06:25 -08:00
Ying Xie
8ada2a51c2
[201811][swss][utilities] advance submodule heads (#3712)
Submodule src/sonic-swss f09ddb4..49c9c16:
  > Allow buffer profile apply after init (#1099)
  > [aclorch]: Check for existing mirror table only when creating a new table (#1089)
  > [201811] [portsorch] fix PortsOrch::allPortsReady() returns true when it should not (#1116)
  > Address review comment: remove data member m_entriesCreated, which is introduced for dependancy resolution purpose. (#839)
  > Fix PFC watchdog not getting lossless TC (#876)

Submodule src/sonic-utilities c049e54..2ca1ae1:
  > Add a generic configlet application script (#716)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-11-05 17:55:28 -08:00
Ramesh Santhanakrishnan
12a46d4b0a [build]: apply proxy setting to curl. (#2544) 2019-11-06 01:36:09 +00:00
Joe LeVeque
31be830ff2 [build] When generating image version, handle case where current commit has no reachable tags (#2506)
Signed-off-by: Joe LeVeque <jolevequ@microsoft.com>
2019-11-06 01:36:03 +00:00
lguohan
d16dbbb1d3
[bgp]: start bgp service after interfaces-config service (#3702)
interfaces-config service configures lo address. If bgp service
starts before lo address is configured, then following config
in zebra will not be applied.

route-map RM_SET_SRC permit 10
 set src 10.1.0.32

The adds a few seconds delay in bgp service start
2019-11-04 22:09:00 -08:00
Ying Xie
175a97cc7d
[201811][swss] advance swss submoudle head (#3696)
Submodule src/sonic-swss 98cfe56..f09ddb4:
  > [fix] Use the same storm detection condition for queue occupancy non-zero case as the zero case (#1111)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-10-31 18:32:40 -07:00
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