Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

check(osm): Check for bad logs in osm controller pods #50

Merged

Conversation

johnsonshi
Copy link
Contributor

Signed-off-by: Johnson Shi [email protected]

tests/pod-to-pod.sh Outdated Show resolved Hide resolved
@johnsonshi johnsonshi force-pushed the osm-controller-log-no-error branch 2 times, most recently from e24b6f5 to 592627a Compare August 5, 2021 18:43
if err != nil {
log.Err(err).Msg("Error creating Kubernetes client")
}

// TODO add checks like osm controller log checks
outcomes := common.Run()
outcomes := common.Run(HasNoBadOsmControllerLogsCheck(client, osmControlPlaneNamespace))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think HasNoBadOsmControllerLogsCheck could be used in pod-to-pod check... and issue a warning if something is fishy...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

}

return nil
return podhelper.HasNoBadLogs(check.client, check.pod, "envoy")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@draychev Regarding your comment https://github.com/openservicemesh/osm-health/pull/50/files#r683754375

Both osm-health connectivity pod-to-pod srcPod destPod and the osm-health control-plane status now use podhelper.HasNoBadLogs.

See the following code:

(This one, checking envoy container logs, is invoked as part of pod to pod)
https://github.com/openservicemesh/osm-health/pull/50/files#diff-533a363c43aa9facdfece27a0c8e9d31a8c22ec541dd4d172d6c782d10eb9c68R37

(This one is used in the control-plane status check for osm-controller log issues)
https://github.com/openservicemesh/osm-health/pull/50/files#diff-d4f2e551640a295a560017296694c7c15fb6f0c302dfd34c013894ddb0c893ddR51-R57

@johnsonshi johnsonshi requested a review from draychev August 5, 2021 20:25
@johnsonshi johnsonshi force-pushed the osm-controller-log-no-error branch from be6bea9 to bf9a31a Compare August 9, 2021 16:26
@johnsonshi johnsonshi merged commit f21d864 into openservicemesh:main Aug 9, 2021
@johnsonshi johnsonshi deleted the osm-controller-log-no-error branch August 9, 2021 16:32
shalier pushed a commit that referenced this pull request Sep 1, 2021
* check(osm): Check for bad logs in osm controller pods

Signed-off-by: Johnson Shi <[email protected]>

* Refactor osm-controller pod error handling and logging

Signed-off-by: Johnson Shi <[email protected]>

* Remove unused logger

Signed-off-by: Johnson Shi <[email protected]>
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