sonic-buildimage/device/nokia/x86_64-nokia_ixr7250e_sup-r0
abdosi 0285bfe42e
[chassis] Fix issues regarding database service failure handling and mid-plane connectivity for namespace. (#10500)
What/Why I did:

Issue1: By setting up of ipvlan interface in interface-config.sh we are not tolerant to failures. Reason being interface-config.service is one-shot and do not have restart capability. 

Scenario: For example if let's say database service goes in fail state  then interface-services also gets failed because of dependency check but later database service gets restart but interface service will remain in stuck state and the ipvlan interface nevers get created.

Solution: Moved all the logic in database service from interface-config service which looks more align logically also since the namespace is created here and all the network setting (sysctl) are happening here.With this if database starts we recreate the interface.

Issue 2: Use of IPVLAN vs MACVLAN

Currently we are using ipvlan mode.  However above failure scenario is not handle correctly by ipvlan mode. Once the ipvlan interface is created and ip address assign to it and if we restart interface-config or database (new PR) service Linux Kernel gives error "Error: Address already assigned to an ipvlan device."  based on this:https://github.com/torvalds/linux/blob/master/drivers/net/ipvlan/ipvlan_main.c#L978Reason being if we do not do cleanup of ip address assignment (need to be unique for IPVLAN)  it remains in Kernel Database and never goes to free pool even though namespace is deleted. 

Solution: Considering this hard dependency of unique ip macvlan mode is better for us and since everything is managed by Linux Kernel and no dependency for on user configured IP address.

Issue3: Namespace database Service do not check reachability to Supervisor Redis Chassis   Server.

Currently there is no explicit check as we never do Redis PING from namespace to Supervisor Redis Chassis  Server. With this check it's possible we will start database and all other docker even though there is no connectivity and will hit the error/failure late in cycle

Solution: Added explicit PING from namespace that will check this reachability.

Issue 4:flushdb give exception when trying to accces Chassis Server DB over Unix Sokcet.

Solution: Handle gracefully via try..except and log the message.
2022-05-24 16:54:12 -07:00
..
Nokia-IXR7250E-SUP-10 [Nokia][IXR7250E]Update Nokia IXR7250E platform device data file (#10091) 2022-03-21 17:58:03 +05:30
plugins Added Nokia IXR7250E support (#7809) 2021-08-17 12:26:04 -07:00
asic.conf Added Nokia IXR7250E support (#7809) 2021-08-17 12:26:04 -07:00
chassisdb.conf [chassis] Fix issues regarding database service failure handling and mid-plane connectivity for namespace. (#10500) 2022-05-24 16:54:12 -07:00
default_sku Added Nokia IXR7250E support (#7809) 2021-08-17 12:26:04 -07:00
installer.conf {nokia] Update Nokia IXR7250e supervisor card device data (#10595) 2022-05-19 11:38:34 -07:00
pcie.yaml [Nokia][port]Modify the Nokia-IXR7250E-36x400G device data (#8875) 2021-10-14 13:47:12 -07:00
platform_asic [Nokia][supervisor]Fixed the asic_type for Nokia IXR7250E supervisor card. (#9139) 2021-11-03 15:58:44 -07:00
platform_env.conf Added Nokia IXR7250E support (#7809) 2021-08-17 12:26:04 -07:00
platform_ndk.json [Nokia][platform] Modified Nokia device data to support midplane (#9914) 2022-02-08 14:03:12 -08:00
platform_reboot [Nokia][platform]Modify BCM config & platform_reboot for Nokia-IXR7250E-36x400G (#9990) 2022-02-25 19:57:38 -08:00
pmon_daemon_control.json Added Nokia IXR7250E support (#7809) 2021-08-17 12:26:04 -07:00
system_health_monitoring_config.json Added Nokia IXR7250E support (#7809) 2021-08-17 12:26:04 -07:00
thermal_policy.json Added Nokia IXR7250E support (#7809) 2021-08-17 12:26:04 -07:00