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

Backport of scheduler: set job on system stack for CSI feasibility check into release/1.2.x #15376

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #15372 to be assessed for backporting due to the inclusion of the label backport/1.2.x.

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

The below text is copied from the body of the original PR.


Fixes #15094

When the scheduler checks feasibility of each node, it creates a "stack" which carries attributes of the job and task group it needs to check feasibility for. The system and sysbatch scheduler use a different stack than service and batch jobs. This stack was missing the call to set the job ID and namespace for the CSI check. This prevents CSI volumes from being scheduled for system jobs whenever the volume is in a non-default namespace.

Set the job ID and namespace to match the generic scheduler.

@hashicorp-cla
Copy link

hashicorp-cla commented Nov 23, 2022

CLA assistant check
All committers have signed the CLA.

@tgross tgross force-pushed the backport/b-csi-set-namespace-and-job-id-system-stack/conversely-helpful-walrus branch from a604459 to b47f687 Compare November 23, 2022 23:19
…#15376)

When the scheduler checks feasibility of each node, it creates a "stack" which
carries attributes of the job and task group it needs to check feasibility
for. The `system` and `sysbatch` scheduler use a different stack than `service`
and `batch` jobs. This stack was missing the call to set the job ID and
namespace for the CSI check. This prevents CSI volumes from being scheduled for
system jobs whenever the volume is in a non-default namespace.

Set the job ID and namespace to match the generic scheduler.
@tgross tgross force-pushed the backport/b-csi-set-namespace-and-job-id-system-stack/conversely-helpful-walrus branch from b47f687 to dfe97b8 Compare November 23, 2022 23:22
@tgross tgross merged commit a861c83 into release/1.2.x Nov 23, 2022
@tgross tgross deleted the backport/b-csi-set-namespace-and-job-id-system-stack/conversely-helpful-walrus branch November 23, 2022 23:22
@tgross
Copy link
Member

tgross commented Nov 23, 2022

I've removed the test that was backported from main b/c it relied on a bunch of post-1.3.x changes to the state store code.

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2023
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.

None yet

3 participants