Commit 895eeac
authored
Mount /var/lock/pddf-locks in pmon (#23128)
Why I did it
In PR#22684 we added locking to the pddf led API. However, the lock is not being shared between the pmon container and the host. As a result, we have not completely eliminated these errors
[ 3919.694550] PDDF_LED ERROR find_led_ops_data invalid index: 2 for type:PSU_LED;1
[ 3919.702819] ERROR get_status_led: Cannot find LED Ptr
[ 7422.178164] PDDF_LED ERROR find_led_ops_data invalid index: 1 for type:SYS_LED;0
[ 7422.186449] PDDF_LED ERROR get_status_led: Cannot find LED Ptr
Work item tracking
Microsoft ADO (number only):
How I did it
Mount the file lock directory (/var/lock/pddf-locks) in the pmon container. Add an intermediate directory pddf-locks so that pmon doesn't need to mount all of /var/lock.
How to verify it
Confirmed the path is mounted in pmon now. No regressions in LED control.1 parent 0cb6251 commit 895eeac
File tree
2 files changed
+2
-1
lines changed- platform/pddf/platform-api-pddf-base/sonic_platform_pddf_base
- rules
2 files changed
+2
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments