Skip to content
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

core: set proper nodes on downgrade #17652

Merged
merged 3 commits into from
Jun 22, 2023
Merged

Conversation

lgfa29
Copy link
Contributor

@lgfa29 lgfa29 commented Jun 22, 2023

When a non-canary allocation fails during a canary deployment it must be replaced according to the original job specification, which includes resources, constraints, datacenters etc.

Prior to this change, only the job was being reset in the stack, which could lead to the replacement being placed in nodes in the wrong datacenter.

Manual backport to release/1.5.x from the solution discussed in #17598 (comment) which will go to main.

FIxes #17651

@lgfa29 lgfa29 added the backport/1.5.x backport to 1.5.x release line label Jun 22, 2023
@lgfa29 lgfa29 added this to the 1.5.x milestone Jun 22, 2023
@lgfa29 lgfa29 requested review from schmichael and tgross June 22, 2023 00:14
lgfa29 added 2 commits June 21, 2023 20:26
When a non-canary allocation fails during a canary deployment it must be
replaced according to the original job specification, which includes
resources, constraints, datacenters etc.

Prior to this change, only the job was being reset in the stack, which
could lead to the replacement being placed in nodes in the wrong
datacenter.
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM!

scheduler/generic_sched_test.go Outdated Show resolved Hide resolved
scheduler/generic_sched_test.go Outdated Show resolved Hide resolved
scheduler/generic_sched_test.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.5.x backport to 1.5.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants