Problem: The ice-gnss thread is not spawned until ptp services are
configured, so on first time setup, the affine-process.sh script is not
able to set the priority of the thread because it runs before puppet.
This change adds a task to the puppet manifest to also set the niceness
of the ice-gnss threads in order to handle the case of first time setup.
Subsequent lock/unlocks will handled earlier in the startup process by
affine-process.sh.
Pass: Thread niceness set correctly on first time setup on AIO-SX.
Niceness is also correctly set on subsequent lock/unlocks. Switching
node from ptp to ntp and back also results in correct priority.
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/840239 /opendev. org/starlingx/ stx-puppet/ commit/ 01a012bf688acad f2d3b2434afe543 5d0d7ed7b7
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 01a012bf688acad f2d3b2434afe543 5d0d7ed7b7
Author: Cole Walker <email address hidden>
Date: Mon May 2 16:01:04 2022 -0400
[PTP SyncE] Set ice-gnss thread prio in puppet
Problem: The ice-gnss thread is not spawned until ptp services are
configured, so on first time setup, the affine-process.sh script is not
able to set the priority of the thread because it runs before puppet.
This change adds a task to the puppet manifest to also set the niceness process. sh.
of the ice-gnss threads in order to handle the case of first time setup.
Subsequent lock/unlocks will handled earlier in the startup process by
affine-
See https:/ /review. opendev. org/c/starlingx /utilities/ +/839795 for the
earlier change to affine-process.sh.
Testing:
Pass: Thread niceness set correctly on first time setup on AIO-SX.
Niceness is also correctly set on subsequent lock/unlocks. Switching
node from ptp to ntp and back also results in correct priority.
Closes-Bug: 1970776
Signed-off-by: Cole Walker <email address hidden> d7b77232522832b 1645256dcfd
Change-Id: I1c9c0ffb6cd0da