Skip to content

[SIMX] [MLNX] Removed Platform specific reboot files for simx#22

Closed
vivekrnv wants to merge 1 commit intomasterfrom
simx_plat_reboot
Closed

[SIMX] [MLNX] Removed Platform specific reboot files for simx#22
vivekrnv wants to merge 1 commit intomasterfrom
simx_plat_reboot

Conversation

@vivekrnv
Copy link
Owner

@vivekrnv vivekrnv commented May 4, 2022

Signed-off-by: Vivek Reddy Karri [email protected]

Why I did it

Platform_reboot files for simx doesn't do aything different apart from calling /sbin/reboot. which is anyway done in the /usr/local/bin/reboot script i.e. the parent script which calls the platform specific reboot scripts if present.

Moreover, /sbin/reboot invoked in the platform specific reboot script is a non-blocking call and thus it returns back to the original script (although /sbin/reboot does it job in the background) and we see messages like this.

Wed 04 May 2022 08:15:14 AM UTC Rebooting with platform x86_64-mlnx_msn2700_simx-r0 specific tool ...
Wed 04 May 2022 08:15:15 AM UTC Platform specific reboot failed!
Wed 04 May 2022 08:15:15 AM UTC Issuing OS-level reboot ...
admin@r-leopard-simx-69:~$ sudo reboot
.................................
................................
+ '[' -x /usr/share/sonic/device/x86_64-mlnx_msn4700_simx-r0/platform_reboot ']'
+ VERBOSE=yes
+ debug 'Rebooting with platform x86_64-mlnx_msn4700_simx-r0 specific tool ...'
+ [[ xyes == x\y\e\s ]]
++ date
+ echo Wed 04 May 2022 10:59:08 PM UTC Rebooting with platform x86_64-mlnx_msn4700_simx-r0 specific tool ...
Wed 04 May 2022 10:59:08 PM UTC Rebooting with platform x86_64-mlnx_msn4700_simx-r0 specific tool ...
+ logger 'Rebooting with platform x86_64-mlnx_msn4700_simx-r0 specific tool ...'
+ /usr/share/sonic/device/x86_64-mlnx_msn4700_simx-r0/platform_reboot
+ declare -r EXIT_SUCCESS=0
+ declare -r EXIT_ERROR=1
+ FORCE_REBOOT=no
+ ParseArguments
+ '[' 0 -ge 1 ']'
+ exec /sbin/reboot
+ sleep 1
+ VERBOSE=yes
+ debug 'Platform specific reboot failed!'
+ [[ xyes == x\y\e\s ]]
++ date
+ echo Wed 04 May 2022 10:59:09 PM UTC Platform specific reboot 'failed!'
Wed 04 May 2022 10:59:09 PM UTC Platform specific reboot failed!
+ logger 'Platform specific reboot failed!'
+ VERBOSE=yes
+ debug 'Issuing OS-level reboot ...'
+ [[ xyes == x\y\e\s ]]
++ date
+ echo Wed 04 May 2022 10:59:09 PM UTC Issuing OS-level reboot ...
Wed 04 May 2022 10:59:09 PM UTC Issuing OS-level reboot ...
+ logger 'Issuing OS-level reboot ...'
+ exec /sbin/reboot

How I did it

How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

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

@vivekrnv
Copy link
Owner Author

vivekrnv commented May 4, 2022

@dgsudharsan, @liat-grozovik Please review

@vivekrnv vivekrnv closed this May 10, 2022
vivekrnv pushed a commit that referenced this pull request Aug 10, 2022
Changes:

Update submodule branch to 202012
[sonic-linkmgrd][202012] submodule update

a8ddff5 Jing Zhang Fri Feb 25 11:38:28 2022 Incrementing tolerance on mux state inconsistency (#27)
a3f78a3 Jing Zhang Thu Feb 17 17:23:56 2022 Update log level for mux probing and mux state chance (#23)
05156fb Jing Zhang Thu Feb 17 17:21:01 2022 Handle xcvrd crashing scenarios (#22)
74529ef Longxiang Lyu Mon Feb 14 13:26:07 2022 [make] Enable make extra includes (#24)

sign-off: Jing Zhang [email protected]
vivekrnv pushed a commit that referenced this pull request Dec 19, 2022
Added below commits:
9b30690 jcaiMR Fri Dec 16 fix handleSwssNotification crash in dhcp6relay (#28)
047afb7 jcaiMR Wed Dec 14 14:08:58 2022 +0800 Fix multiple vlan issue (#27)
ff6bec3 Vivek Thu Dec 8 09:44:15 2022 -0800 Made the Error log informative (#22)
2fbe729 jcaiMR Wed Nov 30 14:41:53 2022 +0800 disable cfg dynamic change (#25)
13d0805 Liu Shilong Wed Nov 30 10:54:11 2022 +0800 Use github code scanning instead of LGTM (#26)
1e846f6 kellyyeh Wed Nov 23 14:36:02 2022 -0800 Fix packet range check for relay-reply packets (#21)
4d19e13 kellyyeh Thu Nov 17 10:04:53 2022 -0800 Add unittest infrastructure (#5)
7f4fdab jcaiMR Fri Nov 11 14:47:51 2022 +0800 fix packet range check issue (#20)
257ecdf kellyyeh Thu Nov 3 11:34:11 2022 -0700 Add client packet UDP header length check (#19)
vivekrnv pushed a commit that referenced this pull request Mar 13, 2023


advance dhcp relay for 202211

4bf1868 - (HEAD, origin/master, origin/HEAD, master) fix relay-reply dhcpv6 packet counter issue (add support for a7050 qx32 platform #29) (2 weeks ago) [jcaiMR]
9b30690 - fix handleSwssNotification crash in dhcp6relay (Add libnl-nf-3-200 to docker-team #28) (4 weeks ago) [jcaiMR]
047afb7 - Fix multiple vlan issue (Failure trying to run: chroot /sonic-buildimage/fsroot mount -t proc proc /proc #27) (4 weeks ago) [jcaiMR]
ff6bec3 - Made the Error log informative (add python-tenjin as build dependency for p4-switch #22) (5 weeks ago) [Vivek]
2fbe729 - disable cfg dynamic change (p4: fix build dependency for python-p4c-bm #25) (6 weeks ago) [jcaiMR]
13d0805 - Use github code scanning instead of LGTM (Removed sx-libnl from Mellanox containers dependencies. #26) (6 weeks ago) [Liu Shilong]
1e846f6 - Fix packet range check for relay-reply packets (update sonic-swss and p4-switch submodule to fix docker sonic p4 bug #21) (7 weeks ago) [kellyyeh]
4d19e13 - Add unittest infrastructure (Cavium customization for docker containers #5) (8 weeks ago) [kellyyeh]
7f4fdab - fix packet range check issue (Makefile: add build dependency for python-p4c-bm #20) (9 weeks ago) [jcaiMR]
257ecdf - Add client packet UDP header length check (change port_config.ini directory for s6000 #19) (2 months ago) [kellyyeh]
vivekrnv pushed a commit that referenced this pull request Nov 7, 2023
Update the sonic-pins submodule. This brings in the following commit:

56a7762 Use json.hpp from nlohmann-json-dev instead of from swss-common (#22)

Signed-off-by: Saikrishna Arcot <[email protected]>
vivekrnv pushed a commit that referenced this pull request Aug 21, 2024
…tically (sonic-net#19550)

#### Why I did it
src/sonic-dash-api
```
* 1fd0b7d - (HEAD -> 202405, origin/202405) [202405 build] Update pool sonicbld to sonic-ububtu-1c since it's deprecated (#22) (11 days ago) [Jianquan Ye]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv pushed a commit that referenced this pull request Sep 20, 2024
…sonic-net#19155)

#### Why I did it
src/dhcpmon
```
* 099e148 - (HEAD -> 202311, origin/202311) Merge pull request #22 from yaqiangz/202311_cherry_pick (2 hours ago) [Ying Xie]
* efff8a9 - Fix revert (#21) (2 hours ago) [kellyyeh]
* 617066f - Revert DHCP Counter (#20) (2 hours ago) [kellyyeh]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv pushed a commit that referenced this pull request Mar 24, 2025
…tically (sonic-net#703)

#### Why I did it
src/sonic-sairedis
```
* 74ebac0 - (HEAD -> 202412, origin/HEAD, origin/202412) Merge pull request #21 from Azure/revert-17-cherry/msft-202412/1508 (10 hours ago) [Riff]
|\ 
| failure_prs.log skip_prs.log 1558b98 - (origin/revert-17-cherry/msft-202412/1508) Revert "[hash] update ECMP/LAG hash VS lib with SAI_NATIVE_HASH_FIELD_IPV6_FL…" (30 hours ago) [Riff]
* 8ecb1e9 - [code sync] Merge code from sonic-net/sonic-sairedis:202411 to 202412 (#22) (21 hours ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv added a commit that referenced this pull request May 30, 2025
Why I did it
This updates the kernel to 6.1.123 to bring in bug and security fixes. This also includes a submodule update for sonic-linux-kernel and platform/broadcom/saibcm-modules-dnx.

sonic-linux-kernel:

aec83ae Update to Linux 6.1.123 (sonic-net#454)
platform/broadom/saibcm-modules-dnx:

13a2b7a Update to Linux 6.1.123 (#22)
This also includes a hw-mgmt update for Mellanox platforms.

Work item tracking
Microsoft ADO (number only): 32198326

How to verify it
Verified that KVM and a physical device boots up, and verified that warm reboot of physical device works.

Signed-off-by: Saikrishna Arcot <[email protected]>
Co-authored-by: Vivek <[email protected]>
vivekrnv pushed a commit that referenced this pull request Jul 23, 2025
…t back to back Paladin ports up with Arista-7060X6-16PE-384C-O128S2 (sonic-net#22719)

<!--
 Please make sure you've read and understood our contributing guidelines:
 https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

 failure_prs.log skip_prs.log Make sure all your commits include a signature generated with `git commit -s` **

 If this is a bug fix, make sure your description includes "fixes #xxxx", or
 "closes #xxxx" or "resolves #xxxx"

 Please provide the following information:
-->

#### Why I did it

Currently when we loaded HWSKU `Arista-7060X6-16PE-384C-O128S2` on two moby devices and connect their Paladin ports back to back, we can't get link up. It may help if we can get these links up and run the tests.

##### Work item tracking
- Microsoft ADO **(number only)**:

#### How I did it

Created a new `FANOUT` HWSKU containing special lanemap and polarity configs so that we can load `Arista-7060X6-16PE-384C-O128S2` on one Moby and `Arista-7060X6-16PE-384C-O128S2-FANOUT` and get Paladin ports up when connecting them back to back with the following setup:
```
Moby1 Moby2
HWSKU: Arista-7060X6-16PE-384C-O128S2 HWSKU: Arista-7060X6-16PE-384C-O128S2-FANOUT
#17 <-> #18
#19 <-> #20
#21 <-> #22
#23 <-> #24

#18 <-> #17
#20 <-> #19
#22 <-> #21
#24 <-> #23
```

#### How to verify it
Verified that all the Paladin ports can link up with the above setup.

<!--
If PR needs to be backported, then the PR must be tested against the base branch and the earliest backport release branch and provide tested image version on these two branches. For example, if the PR is requested for master, 202211 and 202012, then the requester needs to provide test results on master and 202012.
-->

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

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
- [ ] 202205
- [ ] 202211
- [ ] 202305
- [x] msft-202412

#### Tested branch (Please provide the tested image version)

<!--
- Please provide tested image version
- e.g.
- [x] 20201231.100
-->

- [ ] <!-- image version 1 -->
- [ ] <!-- image version 2 -->
- [x] msft-202412

#### Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->
Created `Arista-7060X6-16PE-384C-O128S2-FANOUT` based on `Arista-7060X6-16PE-384C-O128S2` and only update lanemap and polarity settings in bcm config.

<!--
 Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
-->

#### Link to config_db schema for YANG module changes
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md
-->

#### A picture of a cute animal (not mandatory but encouraged)
vivekrnv added a commit that referenced this pull request Jul 23, 2025
* Update the kernel to 6.1.123 (sonic-net#21711)

Why I did it
This updates the kernel to 6.1.123 to bring in bug and security fixes. This also includes a submodule update for sonic-linux-kernel and platform/broadcom/saibcm-modules-dnx.

sonic-linux-kernel:

aec83ae Update to Linux 6.1.123 (sonic-net#454)
platform/broadom/saibcm-modules-dnx:

13a2b7a Update to Linux 6.1.123 (#22)
This also includes a hw-mgmt update for Mellanox platforms.

Work item tracking
Microsoft ADO (number only): 32198326

How to verify it
Verified that KVM and a physical device boots up, and verified that warm reboot of physical device works.

Signed-off-by: Saikrishna Arcot <[email protected]>
Co-authored-by: Vivek <[email protected]>

* Fix submodule hash to point to 202505 branch

Signed-off-by: Saikrishna Arcot <[email protected]>

---------

Signed-off-by: Saikrishna Arcot <[email protected]>
Co-authored-by: Vivek <[email protected]>
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.

3 participants