-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set STATUS_UNINITIALIZED TAG launching head node #14293
Conversation
This reverts commit 818a63a.
@ericl FYI. We need this because non_terminated_nodes is getting KeyError for the head node is when we check the status. This might not happen when we start autoscaler after the head node already started (because the node updater sets some tags in the process and hence the STATUS tag will be in the tags). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should include this in at least one of the testGetOrCreateHeadNode
type tests. Other than that lgtm
are you ok with a patch to the node provider create_node that calls the node provider create node and asserts that the tag was set? Something like:
|
Yeah you'll have to add a special case check for unmanaged nodes, but that actually sounds better since we're directly asserting that all nodes started by the autoscaler have a status tag set. |
@wuisawesome , does it look good to you? |
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.