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 #17653

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.4.x from the solution discussed in #17598 (comment) which will go to main.

FIxes #17651

@lgfa29 lgfa29 added the backport/1.4.x backport to 1.4.x release line label Jun 22, 2023
@lgfa29 lgfa29 requested review from schmichael and tgross June 22, 2023 00:20
lgfa29 added a commit that referenced this pull request 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.
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
@lgfa29 lgfa29 merged commit 2a24daf into release/1.4.x Jun 22, 2023
23 of 24 checks passed
@lgfa29 lgfa29 deleted the b-fix-dc-canary-1.4.x branch June 22, 2023 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.4.x backport to 1.4.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants