diff --git a/0001-support-oversubscribe-in-submit_job-restapi.patch b/0001-support-oversubscribe-in-submit_job-restapi.patch new file mode 100644 index 0000000000000000000000000000000000000000..5047d84dac89e5fa1e7b64b75c321349edd78513 --- /dev/null +++ b/0001-support-oversubscribe-in-submit_job-restapi.patch @@ -0,0 +1,26 @@ +From 89f5e47cb1cb0636d944996fbb976a786e000830 Mon Sep 17 00:00:00 2001 +From: motodiary +Date: Thu, 14 Mar 2024 10:06:48 +0800 +Subject: [PATCH] support --oversubscribe in submit_job restapi + +--- + src/plugins/openapi/v0.0.37/jobs.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/plugins/openapi/v0.0.37/jobs.c b/src/plugins/openapi/v0.0.37/jobs.c +index e5e5030..b925846 100644 +--- a/src/plugins/openapi/v0.0.37/jobs.c ++++ b/src/plugins/openapi/v0.0.37/jobs.c +@@ -181,7 +181,8 @@ const params_t job_params[] = { + { "no_shell", LONG_OPT_NO_SHELL, true }, + { "open_mode", LONG_OPT_OPEN_MODE }, + { "overcommit", 'O', true }, +- { "oversubscribe", 's', true }, ++ /* to support --oversubscribe in submit_job restapi */ ++ { "oversubscribe", 's'}, + { "hetjob_group", LONG_OPT_HET_GROUP, true }, + { "parsable", LONG_OPT_PARSABLE, true }, + { "partition", 'p' }, +-- +2.33.0 + diff --git a/slurm.spec b/slurm.spec index 49380cb9143d0c9de8288d39313134337c765b75..d1c15655055955d77234fdc5dc4ffd54b6f2bba7 100644 --- a/slurm.spec +++ b/slurm.spec @@ -1,6 +1,6 @@ Name: slurm Version: 21.08.8 -%define rel 2 +%define rel 3 Release: %{rel}%{?dist} Summary: Slurm Workload Manager @@ -16,6 +16,7 @@ URL: https://slurm.schedmd.com/ %endif Source: %{slurm_source_dir}.tar.bz2 +Patch1: 0001-support-oversubscribe-in-submit_job-restapi.patch # build options .rpmmacros options change to default action # ==================== ==================== ======================== @@ -333,7 +334,7 @@ notifies slurm about failed nodes. %prep # when the rel number is one, the tarball filename does not include it -%setup -n %{slurm_source_dir} +%autosetup -n %{slurm_source_dir} -p1 %build %configure \ @@ -693,6 +694,9 @@ rm -rf %{buildroot} %systemd_postun_with_restart slurmdbd.service %changelog -* Sat May 07 2022 Bruce Ma +* Wed Mar 15 2024 Xing Liu - 21.08.8-3 +- support '--oversubscribe' attribute in submit_job restapi. + +* Sat May 07 2022 Bruce Ma - 21.08.8-2 - Init package slurm-2.1.08.8-2 .