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

fix race condition bug with kubectl returning nodes #1889

Merged
merged 1 commit into from
Dec 6, 2017

Conversation

trstringer
Copy link
Contributor

What this PR does / why we need it:

This pr fixes a race condition with the monitoring (prometheus-grafana-k8s) extension. Thanks to @sozercan who uncovered this, showing the following output from logs:

Tue Dec 5 05:40:20 UTC 2017  - Local node k8s-master-... is not the first master node

The output of this log message shows that kubectl get no returned no nodes at this point in the extension execution (the final part of this log message should be a single node name, whereas in the above log message it is a null/empty string). This is a problem because no master node continued execution of the extension therefore prometheus and grafana helm charts were not installed.

This pr fixes this bug to handle the case where kubectl get no doesn't return any nodes initially.

// cc @ritazh

Copy link
Member

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

lgtm, I'm running an E2E test against the extensions/prometheus-grafana-k8s.json api model, will merge after that is green

@jackfrancis jackfrancis merged commit ed6a196 into Azure:master Dec 6, 2017
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.

2 participants