Skip to content

Add readiness and liveliness probes such that the simapp can start sending data only when webui is ready#112

Merged
gab-arrobo merged 3 commits intoomec-project:mainfrom
gab-arrobo:add-readinessProbe
Feb 5, 2026
Merged

Add readiness and liveliness probes such that the simapp can start sending data only when webui is ready#112
gab-arrobo merged 3 commits intoomec-project:mainfrom
gab-arrobo:add-readinessProbe

Conversation

@gab-arrobo
Copy link
Contributor

This feature will be useful when the simapp (or ROC) sends its request in bulk/parallel. Note that currently, the simapp sends its request in sequence

…nding data only when webui is ready

Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
@gab-arrobo gab-arrobo requested review from a team and Copilot February 5, 2026 00:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds readiness and liveness probes to the webui deployment and updates the simapp init container to wait for the webui HTTP endpoint before starting, ensuring that simapp only sends data when webui is ready to receive it.

Changes:

  • Added HTTP-based readiness and liveness probes to the webui container
  • Modified simapp init container to perform both DNS resolution and HTTP endpoint checks before proceeding
  • Bumped chart versions for affected components

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sdcore-helm-charts/Chart.yaml Updated parent chart version and dependency versions to reflect changes
omec-sub-provision/templates/deployment-simapp.yaml Replaced simple DNS lookup with comprehensive webui readiness check including HTTP endpoint verification
omec-sub-provision/Chart.yaml Bumped chart version to reflect the init container changes
5g-control-plane/templates/deployment-webui.yaml Added readiness and liveness probes for the webui container using HTTP health checks
5g-control-plane/Chart.yaml Bumped chart version to reflect the probe additions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

thakurajayL
thakurajayL previously approved these changes Feb 5, 2026
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
@gab-arrobo gab-arrobo requested a review from Copilot February 5, 2026 00:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

sleep 2
done
echo "${WEBUI_ADDR} DNS resolved, checking HTTP endpoint readiness..."
until RESPONSE=$(wget --spider --timeout=2 -S http://${WEBUI_ADDR}:${WEBUI_PORT}/config/v1/ 2>&1) && echo "$RESPONSE" | grep -q "HTTP/"; do
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The grep pattern 'HTTP/' is fragile and will match any HTTP response including error responses (e.g., 404, 500). Consider checking for successful HTTP status codes (2xx or 3xx) by using grep -q 'HTTP/[0-9.]* [23][0-9][0-9]' to ensure the endpoint is truly ready.

Suggested change
until RESPONSE=$(wget --spider --timeout=2 -S http://${WEBUI_ADDR}:${WEBUI_PORT}/config/v1/ 2>&1) && echo "$RESPONSE" | grep -q "HTTP/"; do
until RESPONSE=$(wget --spider --timeout=2 -S http://${WEBUI_ADDR}:${WEBUI_PORT}/config/v1/ 2>&1) && echo "$RESPONSE" | grep -q 'HTTP/[0-9.]* [23][0-9][0-9]'; do

Copilot uses AI. Check for mistakes.
@gab-arrobo gab-arrobo merged commit 9365ca1 into omec-project:main Feb 5, 2026
6 checks passed
@gab-arrobo gab-arrobo deleted the add-readinessProbe branch February 5, 2026 02:44
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