Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Conversation

shashankram
Copy link
Member

Description:

  • Adds HTTP and HTTPS liveness probe checks to control
    plane health verification command

  • Moves unnecessary constants pkg in the generic
    httpserver directory and consolidates those
    into the constants pkg

  • Fixes a bug in the existing proxy_get port-forwarding
    code used by the verifier, where a connection leak
    exists due to not closing the response

  • Hides the probe implementation behind an interface
    so that the verifier can be unit tested without
    needing to hack the port-forwarding dependency

  • Consolidates /healthz constants for webhooks

Part of #4634

Testing done:
Success

$ osm verify control-plane-health
---------------------------------------------
[+] Context: Verify the health of OSM control plane
Status: Success

---------------------------------------------

Failure

---------------------------------------------
[+] Context: Verify the health of OSM control plane
Status: Failure
Reason: A verification step failed
Suggestion: Please follow the suggestions listed in the failed steps below to resolve the issue

[++] Context: Verify readiness status of pod for app osm-system/osm-controller
Status: Success

[++] Context: Verify readiness status of pod for app osm-system/osm-injector
Status: Failure
Reason: Pod not ready: osm-system/osm-injector-74b78cdcbc-zpz9x not ready, osm-system/osm-injector-74b78cdcbc-zpz9x containers not ready

[++] Context: Verify readiness status of pod for app osm-system/osm-bootstrap
Status: Success

[++] Context: Verify health probes of pod for app osm-system/osm-controller
Status: Success

[++] Context: Verify health probes of pod for app osm-system/osm-injector
Status: Failure
Reason: Probe failure: HTTP probe failed for pod osm-system/osm-injector-74b78cdcbc-zpz9x: Get "https://localhost:9090//healthz": EOF

[++] Context: Verify health probes of pod for app osm-system/osm-bootstrap
Status: Success

---------------------------------------------

Affected area:

Functional Area
New Functionality [X]
CLI Tool [X]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change? no

  3. Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)? n/a

- Adds HTTP and HTTPS liveness probe checks to control
  plane health verification command

- Moves unnecessary constants pkg in the generic
  httpserver directory and consolidates those
  into the constants pkg

- Fixes a bug in the existing proxy_get port-forwarding
  code used by the verifier, where a connection leak
  exists due to not closing the response

- Hides the probe implementation behind an interface
  so that the verifier can be unit tested without
  needing to hack the port-forwarding dependency

- Consolidates /healthz constants for webhooks

Part of openservicemesh#4634

Signed-off-by: Shashank Ram <shashr2204@gmail.com>
@shashankram shashankram marked this pull request as ready for review May 19, 2022 17:16
@trstringer trstringer merged commit dd42d04 into openservicemesh:main May 20, 2022
@shashankram shashankram deleted the tool-ctrl branch May 23, 2022 16:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants