Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nokia update sonic platform 202205 #19210

Closed

Conversation

mlok-nokia
Copy link
Contributor

Why I did it

Update Nokia sonic-platform submodule which contains commits below
Update for the procedures for insertion/hot swap of Switch Fabric Module(SFM) by using "config chassis modules shutdown/startup" commands (#6)

This PR associates with PRs below to support "config chassis module shutdown/startup <module_name>" command Fabric module in Nokia-IXR7250E platform
PR sonic-net/sonic-utilities#3283
PR sonic-net/sonic-platform-daemons#475

Work item tracking
  • Microsoft ADO (number only):

How I did it

Modify the set_admin_status() in module.py to shutdown/startup a Fabric Module.

How to verify it

The below test was carried out on FABRIC-CARD3 module on the supervisor card.
1. Shutdown
sudo config chassis modules shutdown FABRIC-CARD3

2. Check the status to see if the FABRIC-CARD3 was down.
$ show chassis modules status
        Name             Description    Physical-Slot    Oper-Status    Admin-Status       Serial
------------  ----------------------  ---------------  -------------  --------------  -----------
...
FABRIC-CARD3             Unavailable                4          Empty            down          N/A

sudo tail -f /var/log/syslog | grep "pmon#chassisd:"
May  1 00:07:54.192037 ixre-cpm-chassis15 WARNING pmon#chassisd: Module FABRIC-CARD3 went off-line!
 ...

 
3. Start up the module
sudo config chassis modules startup FABRIC-CARD3


4. Check the status
$ show chassis modules status
        Name             Description    Physical-Slot    Oper-Status    Admin-Status       Serial
------------  ----------------------  ---------------  -------------  --------------  -----------
...
FABRIC-CARD3                    SFM4                4         Online              up  01214400362

sudo tail -f /var/log/syslog | grep "pmon#chassisd:"
May  1 00:26:29.501687 ixre-cpm-chassis15 NOTICE pmon#chassisd: Module FABRIC-CARD3 recovered on-line!


5. To test if the operation is still valid when the system reboot. For example, first shut down, 
then after saving config and reboot, the module should keep shutdown status. 
$ sudo config save
Existing files will be overwritten, continue? [y/N]: y

Then check the status to see if the FABRIC-CARD3 was down.
$ show chassis modules status
        Name             Description    Physical-Slot    Oper-Status    Admin-Status       Serial
------------  ----------------------  ---------------  -------------  --------------  -----------
...
FABRIC-CARD3             Unavailable                4          Empty            down          N/A


Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

mssonicbld and others added 30 commits September 24, 2023 11:02
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
(cherry picked from commit 350e528dc2afb1d3ce5192729931010f04755f97)
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
…ic-utilities

[submodule][202205] Update submodule sonic-utilities to the latest HEAD automatically
* 8cf9817 - (HEAD -> 202205, origin/202205) Merge pull request sonic-net#26 from jfeng-arista/202205-clear-fabric-counters (8 hours ago) [gechiang]
* 4c91f77 - Clear fabric counters queue/port (4 weeks ago) [Jie Feng]
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
…ic-utilities

[submodule][202205] Update submodule sonic-utilities to the latest HEAD automatically
*   ceced56 - (HEAD -> 202205, origin/202205) Merge pull request sonic-net#30 from alpeshspatel/alpeshspatel/util.msft.202205.mmuconfig (30 hours ago) [abdosi]
|\  
| * 44dbfde - mmuconfig to set threshold for profiles master#2775 (2 days ago) [Alpesh S Patel]
|/  
* 75030e0 - Merge pull request sonic-net#29 from mssonicbld/sonicbld/202205-merge (3 days ago) [mssonicbld]
* 7df1c6b - Merge branch '202205' of https://github.com/sonic-net/sonic-utilities into 202205 (3 days ago) [Sonic Automation]
* d9bc820 - Handle NotImplementedError exception while changing optoe write max (sonic-net#2985) (3 days ago) [mihirpat1]
* 4bf29fe - [sonic-package-manager] Increate timeout for sonic-package-manager migrate (sonic-net#2973) (3 days ago) [Yaqiang Zhu]
Update cisco-8000.ini to 202205.3.2.1 drop
…ic-utilities

[submodule][202205] Update submodule sonic-utilities to the latest HEAD automatically
* c4dcb32 - (HEAD -> 202205, origin/202205) Merge pull request sonic-net#31 from mssonicbld/sonicbld/202205-merge (3 days ago) [mssonicbld]
* bb5123d - Merge branch '202205' of https://github.com/sonic-net/sonic-utilities into 202205 (3 days ago) [Sonic Automation]
* ff8a064 - [202205][acl-loader] Identity ICMP v4/v6 based on IP_PROTOCOL for custom ACL table types (sonic-net#3003) (3 days ago) [Zhijian Li]
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
mssonicbld and others added 21 commits May 31, 2024 10:06
…ic-utilities

[submodule][202205] Update submodule sonic-utilities to the latest HEAD automatically
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
…ic-utilities

[submodule][202205] Update submodule sonic-utilities to the latest HEAD automatically
…ic-utilities

[submodule][202205] Update submodule sonic-utilities to the latest HEAD automatically
[Nokia][chassis] modify Nokia-IXR7250E-36x400G platform specified reb…
[yang]: adding Buffer pool enum type both for sonic chassis (sonic-net#18956)
…t.yang (sonic-net#18855)

Microsoft ADO 27934751:

Fixes sonic-net#18854

Update the sonic-system-port.yang to remove the check to have ifname as leafref in the port table
The system-port config table will have all the ports in the chassis not only to one linecard, so in case of the chassis with different linecards sku with different number of ports this leafref will not work.
[chassis][voq] Remove the leaf ref for the ifname in sonic-system-por…
…is (sonic-net#18875)

Why I did it

The configuration for QUEUE and BUFFER_QUEUE differs between a VOQ device and a Non-VOQ devices.
For the Voq device:
The queue and buffer queue is applied on the system port. The system port is a representation of every port in a chassis, the key for systemport consists of Linecard Name , Asic Name and portname
On a Non voq device:
the queue and buffer queue configuration is applied on the front panel port.

Due to this differences the yang models sonic-queue.yang and sonic-buffer-queue.yang does not work for Voq devices
This is address in this PR

Microsoft ADO (27252773 and 27252696):

How I did it
Update the yang model to have different CONFIG_LIST with different keys based on the following condition

when the switch_type is not present or switch_type is not voq, the yang LIST will have key of port and queue_index
when the switch_type is present and switch_type is voqhe yang LIST will have key of Linecard name, asi name, port and queue_index
How to verify it
UT and incremental config push on chassis
…ic-utilities

[submodule][202205] Update submodule sonic-utilities to the latest HEAD automatically
[Chassis][Voq]Update sonic-buffer-queue and sonic-queue for Voq Chass…
… for Nokia-IXR7250E platform (sonic-net#18862)

This PR add the platform specified linecard_reboot_timeout value to the platform_evn.conf. It works PR sonic-net/sonic-platform-daemons#480 and sonic-net/sonic-utilities#3292 to address issue sonic-net#18540

Signed-off-by: mlok <marty.lok@nokia.com>
[Nokia][supervisor] add linecard_reboot_timeout value to platform_env…
Copy link

CLA Not Signed

@mlok-nokia mlok-nokia changed the base branch from master to 202205 June 5, 2024 15:47
@mlok-nokia
Copy link
Contributor Author

Not valid

@mlok-nokia mlok-nokia closed this Jun 5, 2024
@mlok-nokia mlok-nokia deleted the nokia-update-sonic-platform-202205 branch September 27, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.