Commit Graph

2415 Commits

Author SHA1 Message Date
Samuel Angebault
f314e3f885 [device/arista] Update arista drivers submodules (#3170)
* [device/arista] Update arista drivers submodules

* Change driver name in fancontrol
2019-07-29 21:56:59 -07:00
Joe LeVeque
29bbd86862
[services] Restart SwSS service upon unexpected critical process exit (#2845) (#2852) 2019-07-29 18:10:26 -07:00
Ying Xie
7cf90ec441 [warm reboot] save configuration after warm reboot (#3200)
* [warm reboot] save configuration after warm reboot

After warm reboot, save a copy of in memory database to config_db.json,
upgrade procedure might have removed config_db.json to force new image
to reload minigraph. However, reload minigraph is skipped during warm
reboot. Missing config_db.json would cause device to fault in next
non-upgrading cold/fast reboot.

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

* Update finalize-warmboot.sh
2019-07-24 17:45:07 +00:00
Shuotian Cheng
bce8fee86a [config-engine]: Add admin_status up to l2switch.json template (#3210)
Bring up all ports by default by adding the admin_status:up
to each of the ports.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2019-07-24 17:45:00 +00:00
Neetha John
9476eaf518 [docker-engine]: Update docker engine to 18.09.8 (#3211)
Signed-off-by: Neetha John <nejo@microsoft.com>
2019-07-24 17:44:42 +00:00
sridhar-ravindran
148df177ba [devices]: DELL Platform 2.0 API Infra and Reboot Reason support in Z9100 & S6100 (#3147) 2019-07-23 15:22:16 -07:00
Stephen Sun
7a9d04ee73 [Mellanox] Backporting reboot cause to 201811 (#3198)
* backport new platform api to 201811, reboot cause part

* install new platform api on host

* 1. remove chassis's dependency on sonic_platform_daemon.
2. add some mellanox-specific hardware reboot causes.
3. fix typo in files/image_config/process-reboot-cause/process-reboot-cause.

* 1. add dependency of sonic_platform for base image
2. handle the case of reboot cause file not found

* adjust log message.
2019-07-23 07:05:35 -07:00
Ying Xie
f1478818a1 Revert "[database] save configuration after DB migration (#3143)" (#3199)
This reverts commit b5a4527cb0.
2019-07-23 01:59:46 +00:00
Renuka Manavalan
bba61eb838
201811: Debug Image only fix: Let individual make files dictate the source path (#3202) 2019-07-22 16:06:43 -07:00
Ying Xie
d2e6daa3e4 [201811][sairedis][swss] advance sub modules head (#3189)
* [201811][sairedis][swss] advance sub modules head

Submodule src/sonic-sairedis 18ad5f9..4c75b7f:
  > Fixed conditional operator. (#487)

Submodule src/sonic-swss 1e99c93..cd12d48:
  > [teamsyncd]: Add information for LAG membership changes (#982)
  > Fix vlan incremental config and add vs test cases (#799)

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

* [swss] include more swss changes

Submodule src/sonic-swss cd12d48..f44029d:
  > [MirrorOrch]: Init the next hop ip with 0 instead of default constructor (#953)
  > [AclOrch]: Fix the acl mirror counter doubled by inactive mirror and active again (#952)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-07-19 23:11:09 -07:00
Sumukha Tumkur Vani
3375fb2262 Reverting permission changes on lldpmgrd (#3184)
The permissions got changed inadverently in this PR: https://github.com/Azure/sonic-buildimage/pull/3152
2019-07-19 16:42:02 +00:00
Sumukha Tumkur Vani
c79774767e Fix for LLDP portname exposed as MAC address bug (#3152)
* Subscribe to both ConfigDB and AppDB
to get notifications to apply LLDP port config

* the operstate file is not consistent
Removing this since it is not serving any purpose

* Remove check for PortInitDone and PortConfigDone
This is not prteset in Config DB

* Remove checking State DB for port creation

* Check for key to be present before fetching it

* Addressing review comments
2019-07-19 16:41:38 +00:00
sridhar-ravindran
b1181291ce [devices]: DellEMC S6100 Enabling Polling Mode for Miim Operation (#3133) 2019-07-19 16:40:35 +00:00
Joe LeVeque
ea81f4056b
[201811] Install mcelog package to host OS; log machine check exceptions (MCE) to syslog (#3160) 2019-07-17 16:19:01 -07:00
Mykola F
ae3ae7d1cf [Mellanox] update SDK/FW (#3169)
Integrating official Mellanox SDK/FW release as a pre condition for getting new Mellanox SAI release with hash changes (inner field) and 3k VXLAN scale. As well as bug fix for Spectrum LP mode.

Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
2019-07-17 08:46:08 -07:00
Renuka Manavalan
0603accdae [build]: Fix docker-syncd-<platform>-rpc.mk (#3174)
Adopt to new define used for docker-syncd
Simplify/streamline through template.
2019-07-17 08:41:22 -07:00
zzhiyuan
0869fd3925 [baseimage]: Fix process-reboot-cause possibly throwing OSError (#3159)
In case of going from previous iteration of SONiC, and the last reboot
was hardware, REBOOT_CAUSE_FILE may not be present and the service may
throw an error.
2019-07-16 21:38:46 +00:00
pavel-shirshov
e1129c9dff [submodule]: Update sonic-quagga (#3136) 2019-07-16 21:37:25 +00:00
Kebo Liu
0ef7e3be18 [sonic-cfggen] fix name conflict between sonic_platform package and sonic_platform.py (#2875)
* fix name conflict between sonic_platfrom package and sonic_platform.py

* update sonic-utility submodule to pickup lastest fix

* Revert "update sonic-utility submodule to pickup lastest fix"

This reverts commit f66aa99738.

* update sonic-utility sub module
2019-07-16 21:27:26 +00:00
lguohan
094f7ed9e0
Merge pull request #3015 : add kvm image support for all skus
[kvm]: add kvm image support for all skus
2019-07-16 08:26:29 -07:00
Ying Xie
d5aa1d58b4
[201811][utilities] advance utililies sub module head (#3162)
Submodule src/sonic-utilities 24958f1..b86abe0:
  > [show] Don't abort in InterfaceAliasConverter ctor if PORT table doesn't exist (#571)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-07-15 21:01:00 -07:00
Ying Xie
a79dd716c4 [database] save configuration after DB migration (#3143)
- Make sure that migrated DB contents persisted for next boot
- Make sure that db saved after warm reboot.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-07-16 03:54:14 +00:00
sridhar-ravindran
cd32a9fd92 [devices]: Reset I2C MUX in S6000 while invoking platform reboot (#2567) 2019-07-16 03:31:00 +00:00
Harish Venkatraman
c620cabd41 [dell/Z9100] Fix for optics not detected in fanout mode (#2496)
* [dell/Z9100] Fix for optics not detected in fanout mode

This commit fixes the issue of optics not detected
error while running sfputil show eeprom command. The root
casuse was the value of port index from port_config.ini for
fan out scenario. The port index should be starting from 0
and not 1. Platform cpld registers are assuming the port
numbers to start from 0 (lowermost bit), sfputils.py uses this
port number in get_presence function. Since the indexing passed
is wrong the optics was not detected and gave SFP EEPROM not
detected message.

Signed-off-by: Harish Venkatraman <Harish_Venkatraman@Dell.com>

* [dell/z9100] Fix for optics not detected in fanout mode

This commit fixes the issue of optics not detected error
while running sfputil show eeprom command. The root cause
was wrong port_index in fan out scenarios. Earlier fix of
changing the port_config.ini is reverted and changes made
in z9100 platform specific sfputil.py file. The port number
is decrement and tested for both 100G and 50G fanout cases.
Tested for the following show commands and test was succesful
show interfaces status, show interfaces transceiver eeprom,
show interfaces transceiver lpmode, show interface tranceiver
presence.

Signed-off-by: Harish Venkatraman <Harish_Venkatraman@Dell.com>
2019-07-16 03:27:21 +00:00
Ying Xie
050787e20e
[201811] advance sub module heads (#3135)
Submodule src/sonic-platform-common 42119e1..5d7954e:
  > [ChassisBase] Make reboot cause constant strings human-readable (#35)
  > Add .gitignore file (#28)
  > [sonic_platform_base] Add sonic_sfp and sonic_eeprom to sonic_platform_base (#27)
  > Enhance new platform API (#19)
  > fix typo in platform API base class (#25)

Submodule src/sonic-swss 9cf7b01..1e99c93:
  > Set timer only when interval changes. Not in each firing of the timer. (#945)

Submodule src/sonic-utilities ec1e93f..24958f1:
  > [fast reboot] stop removing opennsl module before reboot (#560)

Submodule src/sonic-swss-common b472f6e..d6140fa:
  > timerfd:read failure - Record in logs as error. (#295)
  > do not abort when read timerfd return 0 and errno = 0 (#291)
  > Add an assert to logger, which will log a message and abort. (#286)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-07-15 20:20:15 -07:00
Guohan Lu
87617233eb [docker-syncd-vs]: fix syncd target for docker-syncd-vs.
The bug is introduced in commit

0bca6b8468

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2019-07-15 19:53:04 +00:00
Guohan Lu
0952b42f6d [submodule]: update sonic-sairedis
install SAI extension header files into /usr/include/sai
2019-07-14 00:50:00 +00:00
lguohan
6b42f753c6 [vs]: Force10-S6000 buffer settings for virtual switch (#2515)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2019-07-13 19:49:50 +00:00
lguohan
264e828eb7 [kvm]: support for all hwsku in kvm switch (#2495)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2019-07-13 19:49:50 +00:00
Nazarii Hnydyn
c78cbe72ad [Mellanox]: Fixed Mellanox ISSU dependency. (#3141)
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
2019-07-11 09:13:30 -07:00
simonJi2018
58b3c62094 [nephos]: update sai and sdk support 4.9.0-9 (#3137) 2019-07-11 07:35:31 -07:00
sridhar-ravindran
11667821a6 [devices]: DELLEMC: Z9100,S6100 Exporting Device Last PowerOn Reason (#3059) 2019-07-10 23:19:15 +00:00
Stephen Sun
0c77acf2ea [Mellanox] Fix the memory leak in mlnx-sfpd (#3128)
* fix the memory leak in on_pmpe. objects created via sx_api having convention new_<type_name> should be release explicitly via delete_<type_name>.

* avoid duplicate code.
2019-07-10 23:07:12 +00:00
Joe LeVeque
c3932e501b [process-reboot-cause] Handle case if platform does not yet have sonic_platform implementation (#3126) 2019-07-10 23:06:43 +00:00
Stepan Blyshchak
4b5abd048b [swss.sh]: Cleanup LAG entries in STATE DB (#3114)
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
2019-07-10 23:04:33 +00:00
Joe LeVeque
1115c8431d [reboot-cause]: Move reboot cause processing to its own service, 'process-reboot-cause' (#3102) 2019-07-10 23:02:57 +00:00
Stepan Blyshchak
c932302892 fix fast reboot compatibility (#3083)
* fix fast reboot compatibility

We should handle both cases for backward-compatible with 201803:
 - fast-reboot
 - SONIC_BOOT_TYPE=fast-reboot

* handle review comments
* add a comment that getBootType code snippet is shared between two files
2019-07-10 22:53:47 +00:00
paavaanan
cf4ab3e646 [devices]: DellEMC Z9264f remove 115200 baud-ratesupport (#3046) 2019-07-10 22:47:23 +00:00
Joe LeVeque
30a8d1d8f0 [sshd] Close all SSH connetions after 15 minutes of inactivity (#3031)
- What I did

Configure sshd to close all SSH connetions after 15 minutes of inactivity.

- How I did it

Set ClientAliveInterval to 900 (900 seconds = 15 minutes) and ClientAliveCountMax to 0
in /etc/ssh/sshd_config using augtool in build_debian.sh. In the process, I refactored the existing augtool command for sshd_config so as to add comments and empty lines to file for readability.

- How to verify it

Log into device via management port. Wait 15 minutes without sending a keystroke -- you should be automatically logged out.
2019-07-10 17:51:59 +00:00
Renuka Manavalan
0bca6b8468
1) Build debug docker image for each docker (#3104)
2) Install debug tools in every debug docker image
3) Install available debug symbols in debug docker image
4) Provide additional host/docker mapping for host dirs /src & /debug
    4.1) The one-image will have source code under /src
    4.2) /debug is mapped as rw. User can put his core file there and use this dir to
         collect debug session logs too.
5) Build debug image using debug dockers
6) Source code is archived into /src of debug image
7) The welcome banner is extended to display these additional facilities in debug image.
2019-07-09 08:55:03 -07:00
Joe LeVeque
9e02684b2d [201811][dockers] Upgrade rsyslog to latest version available from jessie-backports repo (#3127)
Upgrade the version of rsyslog installed in Docker containers to the latest version available from jessie-backports repo (currently 8.23.0-2~bpo). Based off my change to the 201803 branch (#2709). This should eliminate some memory leaks and will prevent any regressions if moving from the 201803 branch to the 201811 branch.
2019-07-06 13:32:06 -07:00
Shuotian Cheng
b8bdeffd47
[submodules]: Backport ACL/MIRROR features to 201811 branch (#3112)
0ed90ba - [policerorch]: Fix return code comparison error (#968) (1 minutes ago) <Shuotian Cheng)
80fcada -  remove crm acl_counters when acl_table removed (#918) (3 hours ago) <JaredLius>
bd3651f - [aclorch]: Fix matching MIRROR_DSCP throws unnecessary errors (#966) (2 minutes ago) <Shuotian Cheng>
0af226a - [aclorch]: Add MIRROR_DSCP table type (#906) (4 weeks ago) <Shuotian Cheng>
9005962 - [vstest]: Update the mirror session state table name (#917) (5 weeks ago) <Shuotian Cheng>
c4e3e54 - [policerorch]: Add PolicerOrch to bundle with mirror session (#889) (6 weeks ago) <Shuotian Cheng>
ee49926 - [Makefile]: Remove header files from source files (#883) (8 weeks ago) <Shuotian Cheng>
f889f80 - [aclorch]: Add ICMP type/code match for v4/v6 (#868) (8 weeks ago) <Shuotian Cheng>
9931450 - [aclorch]: Add MIRRORv6 and MIRRORv4v6 support for ACL table (#825) (9 weeks ago) <Shuotian Cheng>
a1ab18c - [mirrororch]: Fix comments typo (#863) (9 weeks ago) <Shuotian Cheng>

sonic-swss-common
485db07 - [schema]: Add SWITCH_CAPABILITY_TABLE (#276) (6 weeks ago) <Shuotian Cheng>        
3f49b20 - [schema]: Add POLICER configuration table (#277) (6 weeks ago) <Shuotian Cheng>    
539b87d - [schema]: Add STATE_MIRROR_SESSION_TABLE_NAME (#278) (6 weeks ago) <Shuotian Cheng>

sonic-utilities
dc52015 - [Sonic-utilities]: Added commands to view acl and port running configs (#557) (6 days ago) <Prem Prakash>
635dc88 - [config]: Add config acl add/remove table command (#541) (4 weeks ago) <Shuotian Cheng>
dcdc922 - [show]: Add show policer command (#540) (4 weeks ago) <Shuotian Cheng>                                        
128462a - [config]: Add --policer option for mirror session (#537) (6 weeks ago) <Shuotian Cheng>                       
38da7f3 - [acl_loader]: Add policer attribute in show mirror_session command (#538) (6 weeks ago) <Shuotian Cheng>      
f95ff00 - [acl_loader]: Do not apply default DENY rule for MIRRORV6 table (#522) (6 weeks ago) <Shuotian Cheng>

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2019-07-05 08:47:42 -07:00
Sumukha Tumkur Vani
24e5a62ccc [sonic-cfggen]: Fix for management port speed issue (#2945) 2019-07-03 23:19:26 +00:00
Andriy Moroz
ff7fe3f8df [submodule]: Update sonic-swss pointer (#3110)
Included fix for PFCWD due to counter units change in SAI

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
2019-07-02 15:16:56 -07:00
lguohan
7a6aca7a6d
Merge pull request #3088: upgrade SAI to v1.4 for 201811
upgrade SAI to v1.4 for 201811
2019-07-02 09:01:59 -07:00
Andriy Moroz
dc0f695b6b Update SAI to v1.4, SDK to v4.3.1420 (#46)
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
2019-07-02 07:17:15 +00:00
Guohan Lu
8f077b8097 [submodule]: update sonic-swss and sonic-sairedis submodule
sonic-swss

* 32d3297 2019-01-24 | use sai_stat_id_t for new SAI header file (#769)

sonic-sairedis

* fdfcefd 2019-04-24 | [SAI] Advance submodule to v1.4.1 (#450) (HEAD -> 201811, origin/201811) [Marian Pritsak]
* 006df41 2019-02-27 | [vslib]: Add support of bitmap VNET (bmtor) SAI API (#424) [Volodymyr Samotiy]
* ec5e187 2019-04-23 | [SAI]: Move SAI pointer to v1.4 (#447) [Shuotian Cheng]
* 6b9c32e 2019-03-04 | [SAI] Update SAI pointer (#431) [Stepan Blyshchak]
* f078998 2019-02-22 | Fix compilation issues in stretch docker with gcc-6.3 (#426) [Stepan Blyshchak]
* 0540e59 2019-01-31 | Update SAI pointer (#414) [Marian Pritsak]
* 9084920 2019-01-18 | Update SAI pointer to latest master (#408) [Marian Pritsak]
* fbfe48b 2019-06-24 | Revert "[SAI header] upgrade SAI header to version v1.3.7 (#445)" [Guohan Lu]

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2019-07-02 07:16:55 +00:00
Guohan Lu
58171a857c [Broadcom SAI] upgrade Broadcom SAI to 3.5.2.3 2019-07-02 07:12:26 +00:00
Ying Xie
43853bfb69 change libsaithrift version to 0.9.4 2019-07-02 07:12:26 +00:00
Shu0T1an ChenG
aa8fcd9924 [broadcom]: update saibcm-modules to sdk 6.5.14 2019-07-02 07:12:26 +00:00