StarlingX PTP Notification App
Go to file
Cole Walker eb1e16685d Handle incomplete pmc results
Improve the logic for handling incomplete results when a pmc query
returns empty data.

There are intermittent instances where a pmc command returns an empty
result. The previous logic would result in ptp-notification considering
the ptp state to be in Freerun, but this could lead to undesirable
results where incorrect notifications are delivered.

This update allows ptp-notification to retry the pmc commands on the
next cycle and only updates the ptp status when the results are
complete. Additional logging has been added to indicate which pmc
results are missing.

Test plan:
Pass: Verify container image builds
Pass: Verify ptp-notification deployment
Pass: Verify basic operations (get, subscribe, list, delete)
Pass: Verify that ptp-notification does not deliver incorrect freerun
notifications when pmc results are incomplete
Pass: Verify that ptp-notification delivers a notification when ptp lock
is actually lost

Story: 2011056
Task: 51049

Signed-off-by: Cole Walker <cole.walker@windriver.com>
Change-Id: Ic473fcb44e16db629f12208e581a92abc3558480
2024-09-20 12:26:05 -04:00
api-ref/source Use all-caps state in O-RAN timing notification 2023-02-10 14:55:46 -03:00
doc Fix tox-docs failing sphinx 2022-05-31 14:33:17 +00:00
helm-charts/custom/ptp-notification-helm Handle missing sysfs path for in-tree ice driver 2024-08-30 13:43:13 -04:00
locationservice-base Add support for httpGet liveness probes 2024-04-16 11:07:15 -04:00
notificationclient-base Add support for httpGet liveness probes 2024-04-16 11:07:15 -04:00
notificationservice-base Handle incomplete pmc results 2024-09-20 12:26:05 -04:00
notificationservice-base-v2 Handle incomplete pmc results 2024-09-20 12:26:05 -04:00
python3-k8sapp-ptp-notification Rename app plugin to conform with app framework requirements 2024-05-27 14:27:08 -04:00
stx-ptp-notification-helm Update helm/fluxcd api version. 2024-06-26 17:43:53 -03:00
.gitignore Add support for httpGet liveness probes 2024-04-16 11:07:15 -04:00
.gitreview Added .gitreview 2021-01-19 18:53:24 +00:00
.zuul.yaml Add minimum Kubernetes version supported 2024-02-05 16:45:14 -03:00
bindep.txt Update app Zuul Check Jobs. 2023-12-20 06:36:14 -06:00
CONTRIBUTING.rst Added armada manifest and required build files 2021-02-03 17:41:00 -05:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:12:32 -04:00
debian_iso_image.inc ptp-notification-armada-app: update debian_iso_image.inc 2022-11-23 11:24:11 +08:00
debian_pkg_dirs Auto-increment chart versions 2024-03-05 13:46:22 -07:00
debian_stable_docker_images.inc Build Debian container image for notificationservice-base-v1-api 2023-01-30 15:05:15 +00:00
HACKING.rst Added armada manifest and required build files 2021-02-03 17:41:00 -05:00
requirements.txt [PTP] Reduce cpu usage and correct holdover time 2022-10-06 19:27:04 +00:00
test-requirements.txt Update app Zuul Check Jobs. 2023-12-20 06:36:14 -06:00
tox.ini Update app Zuul Check Jobs. 2023-12-20 06:36:14 -06:00