Commit Graph

2130 Commits

Author SHA1 Message Date
Qi Luo
076e6609f0 [docker-fpm-frr]: Fix FRR config script to render frr.conf (#2770) 2019-08-13 23:00:30 +00:00
Ying Xie
f08d184c26
[201811][utilities] advance sub-module head (#3330)
Submodule src/sonic-utilities d12734e..f28b720:
  > Revert "Removed 'show interfaces alias'. (#412)" (#603)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-08-13 09:05:10 -07:00
Ying Xie
a41d9a5d3f [service dependent] describe non-warm-reboot dependency outside systemd (#3311)
* [service dependent] describe non-warm-reboot dependency outside systemctl

When dependency was described with systemctl, it will kick in all the time,
including under warm reboot/restart scenarios. This is not what we always
want. For components that are capable of warm reboot/start, they need to
describe dependency in service files.

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

* [service] teamd service should not require swss service

Adding require swss will cause teamd to be killed by systemctl when swss
stops. This is not what we want in warm reboot.

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

* refactoring code

* rename functions to match other functions in the file
2019-08-08 22:46:06 +00:00
Kebo Liu
c29e2e28da [Mellanox sfputil] update get_transceiver_change_event to support more event (#3261) 2019-08-08 00:42:08 +00:00
sridhar-ravindran
ba3d85e71f [DELLEMC][S6000] 201811 Porting of Platform 2.0 Reboot Reason (#3156) (#3286) 2019-08-07 11:08:03 -07:00
lguohan
36c9d99434 [build]: enable docker in ram option for small disk device (#3279)
when device disk is small, do not unzip dockerfs.tar.gz on disk.
keep the tar file on the disk, unzip to tmpfs in the initrd phase.

enabled this for 7050-qx32

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2019-08-07 06:07:46 +00:00
Karthik Gengan
170c397c00 [2018011] Remapping S6000 platform files under Vendor (DellEmc) specific directory (#3274) 2019-08-02 16:37:39 -07:00
Stephen Sun
ca38147744 [Mellanox] enhance the reboot cause handling on 201811 (#3253)
* [Mellanox/mlnx-platform-api] enable mellanox's platform-api to be loaded as a whole.

* [chassis] update reboot-cause handling code to adapt the hw-management currently running on 201811

* [chassis]handle the case that reboot cause file can be any dir matching pattern "hwmonX".
2019-08-02 09:58:53 -07:00
Andriy Moroz
c07c48218b [Mellanox] Update SAI to fix 50G FEC issue (#3266)
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
2019-08-01 21:27:36 -07:00
Ying Xie
a103f73452
[201811][linux-kernel] advance sub module head (#3254)
Submodule src/sonic-linux-kernel 73fc847..eea4da7:
  > [kernel source] download kernel source files from azure storage (#95)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-07-31 19:14:49 -07:00
Shuotian Cheng
3cdfb4341d [libteam]: Fix libteam race condition when interface is created and enslaved (#3250)
The race condition could happen like this:
When an interface is enslaved into the port channel immediately after
it is created, the order of creating the ifinfo and linking the ifinfo to
the port is not guaranteed.

Please check the patch commit message to get full details.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2019-07-31 23:53:52 +00:00
Joe LeVeque
da57e8db36 Revert back to 'import sonic_platform' (#3249) 2019-07-31 16:44:17 -07:00
Ying Xie
d45d00d1a0
[201811][sairedis] advance sub-module head (#3247)
Submodule src/sonic-sairedis 4c75b7f..54c8e78:
  > [saisdkdump]: Fix dump generation crash (#493)
  > Fix bug: Restore sai log levels from LOGLEVEL_DB after saiDiscover (#491)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2019-07-31 16:37:48 -07:00
Kebo Liu
7f526b8dd7 update 201811 brach submodule (#3246) 2019-07-31 15:01:58 -07:00
zzhiyuan
1ddfa130a6 Update sonic-platform-modules-arista for 201811 (#3232) 2019-07-30 18:00:09 -07:00
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