[Celestica] Fix issues where the part of udev rule are not working as expect#6039
[Celestica] Fix issues where the part of udev rule are not working as expect#6039Blueve merged 13 commits intosonic-net:masterfrom
Conversation
This is for consol server on celestica haliburton
…onsolserver Update platform-modules-haliburton.install
Add files via upload
Remove some debug codes
remove the debug info
remove debug info
To enable the execute permission of udev scripts
|
Seems like you are working on a old commit. You can run following commands to fix it: |
Blueve
left a comment
There was a problem hiding this comment.
Please update your PR with previous comments
Grant permission to udevrule scripts for udevprefix.rule generation
Fix port 13 - 48 plug out but not pop out message issue.
udev rules update for port lost
Could I commit these two files in one time? |
|
Sure, looks good to me : )
|
|
Mainly changes two files. |
|
Could please help to review :
#6039.
If any comments please let me know. Thanks.
…On Fri, Nov 27, 2020 at 10:24 AM Blueve ***@***.***> wrote:
Sure, looks good to me : )
Could you also update the PR description? Then we can know what the extra
fix is.
And you can also change the PR title to "[Celestica] Fix issues where the
part of udev rule are not working as expect"
I will approve this after you updated the title and description, thanks!
Please update your PR with previous comments
Hi ,
I forked a new branch for my repository and would submit PR again.
And I found that the 50-ttyUSB-C0.rules also need to be updated(This must
be a mistake I made before. ). There is an issue for port 13 to port 48
when these ports lost it would not popout messages. Could I update it?
Could I commit these two files in one time?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6039 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALLLGDRLJ4GW7Y7YJQ47U5DSR4EU7ANCNFSM4UCSFY7A>
.
--
Thanks and Regards.
Sandy Li
Software Design Engineering Specialist,GDS SSL
Mobile: +86 <+86%20136%201189%204667>18073112486
Email: *sandyli@celestica.com <gshao@celestica.com>*
www.celestica.com
Think Bigger, Reach Further
|
|
retest vsimage please |
|
retest vsimage please |
… expect (sonic-net#6039) * Update 50-ttyUSB-C0.rules Remove some debug codes * Update popmsg.sh remove the debug info * Update udev_prefix.sh remove debug info * Update platform-modules-haliburton.postinst To enable the execute permission of udev scripts * Update 50-ttyUSB-C0.rules Fix port 13 - 48 plug out but not pop out message issue. Signed-off-by: Jing Kan jika@microsoft.com
- Why I did it
Some udev scripts has no execute permission under admin which cause the cosutil could not get the prefix.
- How I did it
chmod the permission of popmsg.sh and udev_prefix.sh
- How to verify it
consutil show can show the port list as you rename them
- Which release branch to backport (provide reason below if selected)
master
- Description for the changelog
Change the platform-modules-haliburton.postinst.Add below:
sudo chmod +x /usr/local/bin/udev_prefix.sh
sudo chmod +x /usr/local/bin/popmsg.sh
- Test log as below
admin@sonic:
$ ls$ cd /usr/local/bin/mytty.json
platform-modules-haliburton_0.9_amd64.deb
platform-modules-haliburton_1.0_amd64.deb
admin@sonic:
admin@sonic:/usr/local/bin$ ls -l *.sh
-rwxr-xr-x 1 root staff 2054 Jul 31 2020 finalize-warmboot.sh
-rwxr-xr-x 1 root staff 162 Jul 31 2020 host-ssh-keygen.sh
-rwxr-xr-x 1 root root 963 Jan 28 03:45 platform_api_mgnt.sh
-rw-r--r-- 1 root root 227 Aug 17 2018 popmsg.sh
-rwxr-xr-x 1 root staff 6240 Jul 31 2020 swss.sh
-rwxr-xr-x 1 root staff 5981 Jul 31 2020 syncd.sh
-rw-r--r-- 1 root root 485 Aug 17 2018 udev_prefix.sh
admin@sonic:/usr/local/bin$ cd ~
admin@sonic:
$$ sudo dpkg -i platform-modules-haliburton_1.0_amd64.debadmin@sonic:
(Reading database ... 27246 files and directories currently installed.)
Preparing to unpack platform-modules-haliburton_1.0_amd64.deb ...
Unpacking platform-modules-haliburton (1.0) over (0.9) ...
Setting up platform-modules-haliburton (1.0) ...
Synchronizing state of platform-modules-haliburton.service with SysV service script with /lib/systemd/systemd-sysv-install.
........
admin@sonic:
$$ cd /usr/local/bin/admin@sonic:
admin@sonic:/usr/local/bin$ ls -l *.sh
-rwxr-xr-x 1 root staff 2054 Jul 31 2020 finalize-warmboot.sh
-rwxr-xr-x 1 root staff 162 Jul 31 2020 host-ssh-keygen.sh
-rwxr-xr-x 1 root root 963 Jan 28 03:45 platform_api_mgnt.sh
-rwxr-xr-x 1 root root 227 Jan 28 03:45 popmsg.sh
-rwxr-xr-x 1 root staff 6240 Jul 31 2020 swss.sh
-rwxr-xr-x 1 root staff 5981 Jul 31 2020 syncd.sh
-rwxr-xr-x 1 root root 485 Jan 28 03:45 udev_prefix.sh