From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 19:33:39 2024 Received: (at submit) by debbugs.gnu.org; 22 Aug 2024 23:33:39 +0000 Received: from localhost ([127.0.0.1]:38563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shHJD-0002Td-5F for submit@debbugs.gnu.org; Thu, 22 Aug 2024 19:33:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:35934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shHJA-0002TR-I6 for submit@debbugs.gnu.org; Thu, 22 Aug 2024 19:33:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shHGJ-000128-Sz for guix-patches@gnu.org; Thu, 22 Aug 2024 19:30:39 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shHGH-0004la-Fo for guix-patches@gnu.org; Thu, 22 Aug 2024 19:30:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8m7d19UZoTJKPPG+VEPhJ1nmXl3xfBbKz5xyYdkhJ/Q=; b=bOZ94Pkegk/7OospNQMyXrBJHA RSY95zu1fSqQFHuHrkG0SN4FN+mr4CnVijv/sXyeCnIYcubsT9Nbd2fNHUg9uiPoHJltW6E1xjZv4 RADa87FkOyk8rWw64v4bxrpHU0k4eZn6KZPSlNW7qzBhpz6YAEu/7XYYIEjbVtulV3wUFg91vh6nB FP0bSz8F1bC+ol6zED7nOgohnaX/7UgMpGnuZOVAG7nTkPK7GYV7lOdt/m9R23oz6rqWgIUTGrkSD 2GRoY/dOuiYA0vbeZkqbCAu0513HAXNe/OZB1Iqpms3Ol1lN2h8RO2FW5AH8Na6FOduVPVUxZGn3d cQFTlPgQ==; Received: from [192.168.2.1] (port=47072 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1shHBB-000000007EZ-0krQ; Fri, 23 Aug 2024 00:25:21 +0100 From: Arun Isaac To: guix-patches@gnu.org Subject: [PATCH 0/2] slurm: Enable REST API. Date: Fri, 23 Aug 2024 00:30:19 +0100 Message-ID: X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) This short patchset enables the REST API support in our slurm package. Arun Isaac (2): gnu: Add libjwt. gnu: slurm: Enable REST API. gnu/packages/parallel.scm | 26 ++++++++++++++++++++++---- gnu/packages/web.scm | 26 +++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 5 deletions(-) base-commit: 6bec6c20b6b18dc173383a6828f1bb84314f986b -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 19:38:10 2024 Received: (at 72766) by debbugs.gnu.org; 22 Aug 2024 23:38:10 +0000 Received: from localhost ([127.0.0.1]:38575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shHNZ-0002bo-Nv for submit@debbugs.gnu.org; Thu, 22 Aug 2024 19:38:10 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:33750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shHNX-0002bf-GD for 72766@debbugs.gnu.org; Thu, 22 Aug 2024 19:38:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4SADjdibL+CjFKNp9EP2YPXE21ydrCvmBB7g/EbERFo=; b=Ty6ZSF+0rrp4uW9CrSOQ53mo+N IdnEaz0fEJq+KoH/2T8ECHyTX2j0cxmAXoOq8G2evCTtTBn0md8VSH7+HpmZ+UzRa5LZDc51BG2qY l/ZhhO3CU8ngmx2UBO6CGvUzq7IcVW8/AU71Fohs0pLw09qLcY2osGPTJiJDI09jR1In3pYpaTErg eGj8O3w6Imd30GuxDtIuofiGISCJrXtsmeMZeMvfTRUAnNsQaup3DPgqqliAzjEBnxr6Kj4NAfEhz tHOzem90iNxNRfN+ioQisLTXvrTesWGfAcqohsDBWTP3LPdn5Y7J20A9zb+sOawUyoeTVPXe2v4OK GtzFaOxA==; Received: from [192.168.2.1] (port=58412 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1shHHn-000000007H1-1yZH; Fri, 23 Aug 2024 00:32:12 +0100 From: Arun Isaac To: 72766@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add libjwt. Date: Fri, 23 Aug 2024 00:36:30 +0100 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/web.scm (libjwt): New variable. Change-Id: Ied516fb41a90de316588622b999b27f0f7ee8de3 --- gnu/packages/web.scm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 34922911a7..dd1b9438a2 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2016 Ben Woodcroft ;;; Copyright © 2016, 2023 Clément Lassieur ;;; Copyright © 2016, 2017 Nikita -;;; Copyright © 2016–2023 Arun Isaac +;;; Copyright © 2016–2024 Arun Isaac ;;; Copyright © 2016–2022 Tobias Geerinckx-Rice ;;; Copyright © 2016 Bake Timmons ;;; Copyright © 2017 Thomas Danckaert @@ -1604,6 +1604,30 @@ (define-public rapidjson style API.") (license license:expat)))) +(define-public libjwt + (package + (name "libjwt") + (version "1.17.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/benmcollins/libjwt/releases/download/v" + version "/libjwt-" + version ".tar.bz2")) + (sha256 + (base32 + "1bpfaa0y8bccz5hr677lkrprs07akx02k0qbf82z2c8syr24a77i")))) + (build-system gnu-build-system) + (inputs + (list jansson openssl)) + (native-inputs + (list check pkg-config)) + (home-page "https://github.com/benmcollins/libjwt") + (synopsis "C @acronym{JWT, JSON Web Token} library") + (description "@code{libjwt} is a @acronym{JWT, JSON Web Token} library for +C.") + (license license:mpl2.0))) + (define-public yajl (package (name "yajl") -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 22 19:38:14 2024 Received: (at 72766) by debbugs.gnu.org; 22 Aug 2024 23:38:14 +0000 Received: from localhost ([127.0.0.1]:38577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shHNe-0002c6-6k for submit@debbugs.gnu.org; Thu, 22 Aug 2024 19:38:14 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:39186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shHNZ-0002bh-4V for 72766@debbugs.gnu.org; Thu, 22 Aug 2024 19:38:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VN3YNf3Wlp8ql3HFGzM4oPBIzIPYsRpAuF5HIT5QSS8=; b=CtNvJJpbgtaDMh0cbt7jBnCpYW DUg63WOmjIw3+ZIuBQdL4LRtCHLPLMwxpUAckni54FrKjaq6qKstjRHrks/CyFbiZ463l6PQ48V6f ITKRNb5DNAoIsimiYTWzUxHKhfWGbdIT2oWP48rcq7XS+qrNcESegtSMwooSnO+zfAp5P5+bpYLSv tyToNgnJXIKRlWpwzuui9dn8uh5AZmojfBNjjuvuv4JdbK0rP/fK3PW69cUxPopddk2tJpjuCBw32 1h7C6Jqt42GkWLx6QeurMMgBeaqZuXZA/ZrPynrvw69NYIm0KnbYQK/gT8fW0P3ytUGUh8eJgEwmv eK0KL4iw==; Received: from [192.168.2.1] (port=58412 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1shHHp-000000007H1-3PCC; Fri, 23 Aug 2024 00:32:14 +0100 From: Arun Isaac To: 72766@debbugs.gnu.org Subject: [PATCH 2/2] gnu: slurm: Enable REST API. Date: Fri, 23 Aug 2024 00:36:31 +0100 Message-ID: <3f45eba5ce4b94bcf046b1f9368336ad236a74e3.1724369334.git.arunisaac@systemreboot.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/parallel.scm (slurm)[inputs]: Add dbus, http-parser, libjwt, librdkafka, libtaml, linux-libre-headers and (mariadb "dev"). [arguments]: Add --enable-slurmrestd, --with-bpf, --with-http-parser and --with-rdkafka to configure flags. Change-Id: Icddaa8f883754129d975e82fccd732a47a467517 --- gnu/packages/parallel.scm | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index e75e902a68..21c945382f 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -15,6 +15,7 @@ ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024 David Elsing ;;; Copyright © 2024 Romain Garbage +;;; Copyright © 2024 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,13 +50,16 @@ (define-module (gnu packages parallel) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages check) + #:use-module (gnu packages databases) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages freeipmi) + #:use-module (gnu packages glib) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) + #:use-module (gnu packages networking) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -63,6 +67,7 @@ (define-module (gnu packages parallel) #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages serialization) #:use-module (gnu packages tcl) #:use-module (gnu packages tls) #:use-module (gnu packages web)) @@ -223,12 +228,18 @@ (define-public slurm (mkdir "contribs") (rename-file "tmp-pmi" "contribs/pmi") (rename-file "tmp-pmi2" "contribs/pmi2"))))) - ;; FIXME: More optional inputs could be added, - ;; in particular mysql and gtk+. - (inputs (list freeipmi + ;; FIXME: More optional inputs (for example, gtk+) could be added. + (inputs (list dbus + freeipmi + http-parser `(,hwloc-2 "lib") json-c + libjwt + librdkafka + libyaml + linux-libre-headers linux-pam + `(,mariadb "dev") openpmix munge numactl @@ -238,13 +249,20 @@ (define-public slurm (build-system gnu-build-system) (arguments (list #:configure-flags - #~(list "--enable-pam" "--sysconfdir=/etc/slurm" + #~(list "--enable-pam" + "--enable-slurmrestd" + "--sysconfdir=/etc/slurm" "--disable-static" + (string-append "--with-bpf=" + #$(this-package-input "linux-libre-headers")) (string-append "--with-freeipmi=" #$(this-package-input "freeipmi")) + (string-append "--with-http-parser=" + #$(this-package-input "http-parser")) (string-append "--with-hwloc=" (ungexp (this-package-input "hwloc") "lib")) (string-append "--with-json=" #$(this-package-input "json-c")) (string-append "--with-munge=" #$(this-package-input "munge")) + (string-append "--with-rdkafka=" #$(this-package-input "librdkafka")) ;; Use PMIx bundled with Open MPI (this is required for Open MPI 5.x). ;; Note: Older versions that inherit from this package lack the -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 02 03:45:06 2024 Received: (at 72766) by debbugs.gnu.org; 2 Sep 2024 07:45:06 +0000 Received: from localhost ([127.0.0.1]:43560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sl1kI-0004Sf-8R for submit@debbugs.gnu.org; Mon, 02 Sep 2024 03:45:06 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:16415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sl1kF-0004Rd-LT for 72766@debbugs.gnu.org; Mon, 02 Sep 2024 03:45:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=LAxCPTtOOsi+CswE9V2WpDzWuUHG1l+vjjq//ANZ1kE=; b=cR4h3MMYc3IKFdo3rexjMPbgiJ9Qy6sSqCH1vHAUBrEFsJExVT70/40f H1EVp5IxtFKx72lWusa/7CkbP+jWBT2fNZ9ti0ua3jftcGQLW6+BXLJFm yAuEz1C1ou4kUVCZJiDickgtGTcM5tsL7DL08TGzM+AAdJaHlzN6qAgR3 E=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.10,195,1719871200"; d="scan'208";a="180967040" Received: from unknown (HELO ribbon) ([193.50.110.97]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2024 09:43:56 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: [bug#72766] [PATCH 2/2] gnu: slurm: Enable REST API. In-Reply-To: <3f45eba5ce4b94bcf046b1f9368336ad236a74e3.1724369334.git.arunisaac@systemreboot.net> (Arun Isaac's message of "Fri, 23 Aug 2024 00:36:31 +0100") References: <3f45eba5ce4b94bcf046b1f9368336ad236a74e3.1724369334.git.arunisaac@systemreboot.net> Date: Mon, 02 Sep 2024 09:43:55 +0200 Message-ID: <87a5gqlcuc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Arun, Arun Isaac skribis: > * gnu/packages/parallel.scm (slurm)[inputs]: Add dbus, http-parser, libjw= t, > librdkafka, libtaml, linux-libre-headers and (mariadb "dev"). > [arguments]: Add --enable-slurmrestd, --with-bpf, --with-http-parser and > --with-rdkafka to configure flags. > > Change-Id: Icddaa8f883754129d975e82fccd732a47a467517 I=E2=80=99m curious what the REST interface has to offer compared to DRMAA. > + (inputs (list dbus > + freeipmi > + http-parser > `(,hwloc-2 "lib") > json-c > + libjwt > + librdkafka > + libyaml > + linux-libre-headers > linux-pam > + `(,mariadb "dev") That=E2=80=99s quite a few heavyweight dependencies (=E2=80=98linux-libre-h= eaders=E2=80=99 is not necessary; it=E2=80=99s included by default). It=E2=80=99s a bit of Inheritance Game in this file (ah ha!) so we should m= ake sure the other slurm variants still work fine. qa.guix hasn=E2=80=99t test= ed it yet. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 06 12:03:19 2024 Received: (at 72766) by debbugs.gnu.org; 6 Sep 2024 16:03:19 +0000 Received: from localhost ([127.0.0.1]:54002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smbQc-0008Fn-To for submit@debbugs.gnu.org; Fri, 06 Sep 2024 12:03:19 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:47860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smbQZ-0008Fa-2y for 72766@debbugs.gnu.org; Fri, 06 Sep 2024 12:03:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YsZfHSI5mSup9sjzlwLn2V5FnPmFdvWVd+Ys1E6zJs0=; b=FLUQ9iTljhmzOfUZXoPgtOhnv4 9EX5Og63zbmiX2DI0atJ4+158j78bDWeHoTglyQGQb5559v3lAPlH0laXQe7Wtfyk7Tfho+wvnzFC 2SGRfYmdv2dQ+lwYTydQP0+RLDR2pNr6dkbwVAYF1mYQyDCsNZNFZA/ece/OGttILMNfjIPrrzNQW K7F8G9dtDeh+A75BadSgEk0KeB1oBUVhd8ei9lq7HYQmmEbt4OvnsMho3WxJ3JT5sFqV2+iZ2Im2d /17gIWNR3x58jhhtmYp82nLhFHFSoPORqaGbVC19Y8gVkZEqXIn7yU+eISmPgSqBwilllxFfMjQ15 TBZJRw+A==; Received: from [192.168.2.1] (port=55494 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1smbKy-000000003c5-1e7b; Fri, 06 Sep 2024 16:57:29 +0100 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#72766] [PATCH 2/2] gnu: slurm: Enable REST API. In-Reply-To: <87a5gqlcuc.fsf@gnu.org> References: <3f45eba5ce4b94bcf046b1f9368336ad236a74e3.1724369334.git.arunisaac@systemreboot.net> <87a5gqlcuc.fsf@gnu.org> Date: Fri, 06 Sep 2024 17:03:05 +0100 Message-ID: <87bk10srba.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, > I=E2=80=99m curious what the REST interface has to offer compared to DRMA= A. I don't know, to be honest. I've started working on ravanan, a new implementation of the Common Workflow Language that takes inspiration from Guix and integrates with Guix for strong reproducibility. https://git.systemreboot.net/ravanan/about/ ravanan uses the slurm REST API to talk to slurm, and that's why I need this patch. I chose the slurm REST API over DRMAA rather arbitrarily. In the future, I could support both in ravanan. So, it's still good to have both. >> + (inputs (list dbus >> + freeipmi >> + http-parser >> `(,hwloc-2 "lib") >> json-c >> + libjwt >> + librdkafka >> + libyaml >> + linux-libre-headers >> linux-pam >> + `(,mariadb "dev") > > That=E2=80=99s quite a few heavyweight dependencies (=E2=80=98linux-libre= -headers=E2=80=99 is > not necessary; it=E2=80=99s included by default). Good catch! I'll remove it before pushing. > It=E2=80=99s a bit of Inheritance Game in this file (ah ha!) so we should= make > sure the other slurm variants still work fine. qa.guix hasn=E2=80=99t te= sted it > yet. I have built the other slurm variants, and they seem to build fine. I also used these packages to migrate a cluster from ancient slurm 18.08 to modern slurm 23.02 in increments of two versions, and tested functionality at each step. They all seem to work. So, I am relatively confident these packages work. Regards, Arun From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 06 12:06:27 2024 Received: (at 72766) by debbugs.gnu.org; 6 Sep 2024 16:06:27 +0000 Received: from localhost ([127.0.0.1]:54013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smbTe-0008UJ-QO for submit@debbugs.gnu.org; Fri, 06 Sep 2024 12:06:27 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:34894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smbTc-0008U8-Re for 72766@debbugs.gnu.org; Fri, 06 Sep 2024 12:06:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Gpg2M+Gi/wzH+xR1PA919/Y2gaARBdgMO2D+3qm1zk0=; b=epdliWnOI8YsyzaxYzwdYtGhTA hioxq8ojm0rAQVK9nwTWhniiI1+y5v0PfPy60hs3EEBjaKDSIUU2YS0dAnPA5iimT6+F3/j4xn3GB DwVBWS3mcE5NamN5NZWHMHUhzmFEtC5FnvE7YDgMTo8lY5pzAGvDyNZb65bD/qwAt6yQ2osTAmJFD 08A35Q80Haf5F7RQgVI7EkAun+4dvXZqRWMIagJQexlqrlHQQiBSZa6KDecGyYzQxXoWdWUNV6XPu TA1Wc1ATwHroLHDNRMJa9PEFjseHO7G5149gfpAObOuJ6K50ZoW32l4Uv5KxxFqsao7XONG3BtCms Vp/jyzaQ==; Received: from [192.168.2.1] (port=56758 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1smbO4-000000003el-1Ryy; Fri, 06 Sep 2024 17:00:40 +0100 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#72766] [PATCH 2/2] gnu: slurm: Enable REST API. In-Reply-To: <87bk10srba.fsf@systemreboot.net> References: <3f45eba5ce4b94bcf046b1f9368336ad236a74e3.1724369334.git.arunisaac@systemreboot.net> <87a5gqlcuc.fsf@gnu.org> <87bk10srba.fsf@systemreboot.net> Date: Fri, 06 Sep 2024 17:06:17 +0100 Message-ID: <878qw4sr5y.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> That=E2=80=99s quite a few heavyweight dependencies (=E2=80=98linux-libr= e-headers=E2=80=99 is >> not necessary; it=E2=80=99s included by default). > > Good catch! I'll remove it before pushing. But, how do I refer to an implicit input (linux-libre-headers, in this case) using this-package-input? Is there some other way to do this? Thanks! From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 09 03:13:38 2024 Received: (at 72766) by debbugs.gnu.org; 9 Sep 2024 07:13:38 +0000 Received: from localhost ([127.0.0.1]:60562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snYag-0002gd-Gl for submit@debbugs.gnu.org; Mon, 09 Sep 2024 03:13:38 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:12385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snYad-0002gN-Kt for 72766@debbugs.gnu.org; Mon, 09 Sep 2024 03:13:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=4OMBnfNlzqcFYuPlqQ0FuheX/SMHO2jvEHR0TO2QYy4=; b=gCEZtN+XCcGQ4+KLq2kVKLGbefkVsk0p03IUSw1X28AAcTjeDBi/Jeny HljbAR1wsiyBUqrd5qAnHb5eZrqbC8qPjEFaT3BXjC4/gMox9PgAvNitP i+I2GqPWffMjNBBQvLnPp1M6wtE3IwMXYIjZe1rZEO3KrhIMh0jED+g4e U=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.10,213,1719871200"; d="scan'208";a="182090318" Received: from unknown (HELO ribbon) ([193.50.110.120]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2024 09:13:25 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: [bug#72766] [PATCH 2/2] gnu: slurm: Enable REST API. In-Reply-To: <878qw4sr5y.fsf@systemreboot.net> (Arun Isaac's message of "Fri, 06 Sep 2024 17:06:17 +0100") References: <3f45eba5ce4b94bcf046b1f9368336ad236a74e3.1724369334.git.arunisaac@systemreboot.net> <87a5gqlcuc.fsf@gnu.org> <87bk10srba.fsf@systemreboot.net> <878qw4sr5y.fsf@systemreboot.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 24 Fructidor an 232 de la =?utf-8?Q?R=C3=A9?= =?utf-8?Q?volution=2C?= jour du Sorgho X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 09 Sep 2024 09:13:25 +0200 Message-ID: <8734m9e1uy.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hey Arun, Arun Isaac skribis: >>> That=E2=80=99s quite a few heavyweight dependencies (=E2=80=98linux-lib= re-headers=E2=80=99 is >>> not necessary; it=E2=80=99s included by default). >> >> Good catch! I'll remove it before pushing. > > But, how do I refer to an implicit input (linux-libre-headers, in this > case) using this-package-input? Is there some other way to do this? It depends on the details, but perhaps you can use =E2=80=98search-input-fi= le=E2=80=99? =E2=80=98this-package-input=E2=80=99 doesn=E2=80=99t let you access implici= t inputs; it just accesses the regular inputs fields. HTH, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 09 11:00:04 2024 Received: (at 72766) by debbugs.gnu.org; 9 Sep 2024 15:00:04 +0000 Received: from localhost ([127.0.0.1]:33864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snfs4-0002Zi-65 for submit@debbugs.gnu.org; Mon, 09 Sep 2024 11:00:04 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:55988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snfs1-0002Ym-3o for 72766@debbugs.gnu.org; Mon, 09 Sep 2024 11:00:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4kBfsWMGirDY5kzlOC/2t65xZ8YL079CWk9hbirLFAQ=; b=ZitfxN/2hk5Hd/NJgvpi/irEe8 bVbzKULBIQfOY++84vrWqlY/4KAunUX3IrgxyfD4cvlFX9z1DP5pAS0e8o3xbavnMBVQdN87Z5h0y e4GsY4NzoGasWIi8/DUJ2OxuvKFrsrLUky72tJH9sM+QIuE6Ky8JxuhMlYD/r488AgRKylHhrkFY2 DFl7oCKvzt1JxyMQieFBb/2c8qmpTzjph9NEqxxi4EBpqvJ6Qp+yisdxY2i1KI8oLWR4LNT9GAJ+p aaKcDVneDPhBBAX2ARO2ud67shAiVcofBZzkiKq3Gc81F5qa7O0xxfFcTMi1md6H8Nw0Xo7aGbgUR 14pRz5JA==; Received: from [192.168.2.1] (port=56150 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1snfmF-000000003Jj-0vad; Mon, 09 Sep 2024 15:54:03 +0100 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#72766] [PATCH 2/2] gnu: slurm: Enable REST API. In-Reply-To: <8734m9e1uy.fsf@inria.fr> References: <3f45eba5ce4b94bcf046b1f9368336ad236a74e3.1724369334.git.arunisaac@systemreboot.net> <87a5gqlcuc.fsf@gnu.org> <87bk10srba.fsf@systemreboot.net> <878qw4sr5y.fsf@systemreboot.net> <8734m9e1uy.fsf@inria.fr> Date: Mon, 09 Sep 2024 15:59:47 +0100 Message-ID: <87mskgrhy4.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> But, how do I refer to an implicit input (linux-libre-headers, in this >> case) using this-package-input? Is there some other way to do this? > > It depends on the details, but perhaps you can use =E2=80=98search-input-= file=E2=80=99? > =E2=80=98this-package-input=E2=80=99 doesn=E2=80=99t let you access impli= cit inputs; it just > accesses the regular inputs fields. Fixed with search-input-directory. Patchset v2 follows. Thanks! From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 09 11:24:49 2024 Received: (at 72766) by debbugs.gnu.org; 9 Sep 2024 15:24:49 +0000 Received: from localhost ([127.0.0.1]:33895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sngG0-00042C-Je for submit@debbugs.gnu.org; Mon, 09 Sep 2024 11:24:49 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:40286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sngFw-00041s-Ra for 72766@debbugs.gnu.org; Mon, 09 Sep 2024 11:24:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wz1z1vnmTxyy5VHLzNllvYloaS/CanjTnscUDXemnUI=; b=e5wxmyXs8uNSq3ZuXZZfiBNVV5 5NlS/ocTrluJLex4hqrYNC1Eh+LdOIGhyiUY5xNe7+D4g5yypku3WyJyH+WBODf/j5G11MyuP1S46 m16r2PuqDOKTfWlGyVlMpi+pynyU7pH/I2LF9Oc3B7ZEhgmj8RmtpC+Z5rYycchzvCYffkOfBY9LO bL8AAFMhLd9QD+8O3v6etWDcgtzQxiZCUHSFuXaDFQAdYnXBS63WxhIQSZq1k+Eef2IaYvSjqfJiH CdDbo2mzrxsvfzOLFQSnhleW+aGQ6OCR13NHk5f/QnyAZA+LwP/0TAdCujAtrzv+OqI/zW53CaBpc AxowEfiA==; Received: from [192.168.2.1] (port=43796 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1sngAC-000000003Yy-3cRl; Mon, 09 Sep 2024 16:18:49 +0100 From: Arun Isaac To: 72766@debbugs.gnu.org Subject: [PATCH v2 1/2] gnu: Add libjwt. Date: Mon, 9 Sep 2024 16:24:19 +0100 Message-ID: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Debbugs-Cc: Arun Isaac , Ludovic Courtès Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/web.scm (libjwt): New variable. Change-Id: Ied516fb41a90de316588622b999b27f0f7ee8de3 --- gnu/packages/web.scm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index c768874a4a..735cc5ce98 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2016 Ben Woodcroft ;;; Copyright © 2016, 2023 Clément Lassieur ;;; Copyright © 2016, 2017 Nikita -;;; Copyright © 2016–2023 Arun Isaac +;;; Copyright © 2016–2024 Arun Isaac ;;; Copyright © 2016–2022 Tobias Geerinckx-Rice ;;; Copyright © 2016 Bake Timmons ;;; Copyright © 2017 Thomas Danckaert @@ -1610,6 +1610,30 @@ (define-public rapidjson style API.") (license license:expat)))) +(define-public libjwt + (package + (name "libjwt") + (version "1.17.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/benmcollins/libjwt/releases/download/v" + version "/libjwt-" + version ".tar.bz2")) + (sha256 + (base32 + "1bpfaa0y8bccz5hr677lkrprs07akx02k0qbf82z2c8syr24a77i")))) + (build-system gnu-build-system) + (inputs + (list jansson openssl)) + (native-inputs + (list check pkg-config)) + (home-page "https://github.com/benmcollins/libjwt") + (synopsis "C @acronym{JWT, JSON Web Token} library") + (description "@code{libjwt} is a @acronym{JWT, JSON Web Token} library for +C.") + (license license:mpl2.0))) + (define-public yajl (package (name "yajl") base-commit: cc2619a7bd7542d834762de2430937a59d1f3a36 -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 09 11:24:51 2024 Received: (at 72766) by debbugs.gnu.org; 9 Sep 2024 15:24:51 +0000 Received: from localhost ([127.0.0.1]:33897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sngG3-00042M-3S for submit@debbugs.gnu.org; Mon, 09 Sep 2024 11:24:51 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:40294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sngFy-00041w-Fm for 72766@debbugs.gnu.org; Mon, 09 Sep 2024 11:24:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=A1OyTJf1wC2QLFcJWaJEmyZf9zngO8OPSrpqDdYgFuI=; b=VFxKJIEIPljyxL+aBBU8eAtqHy 5xBQm3VQnX2UkpzIQlpRvw1zzRDDwm81gSfhgLmZtGE/Z09ehxoWS00BkKlNCluWJPcX+ybQlOlO2 uvl18ZCt5dSC3Dd01hC6IoP2z1TUhqqoRRNYej2nZpaUt4fFcpUZ2A4Zd0ZnrBiIQAhPedlXXN3RQ dJfGMN/PdkQ6xZcf3Q6R/R3NjsCFKC1ISZfzkUmNIdHzdzIwhmCdHyHAjGGCjwUlM2AXBDaonXdXo enfNnCt9N3z5VNkzxfKbbYv/T6YaLjFKj92I3qqyeyM/MmvrQJtaBMNnrZk2zYmfSzZvA235gtE2+ y+D7PsYQ==; Received: from [192.168.2.1] (port=43796 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1sngAF-000000003Yy-3yWQ; Mon, 09 Sep 2024 16:18:52 +0100 From: Arun Isaac To: 72766@debbugs.gnu.org Subject: [PATCH v2 2/2] gnu: slurm: Enable REST API. Date: Mon, 9 Sep 2024 16:24:20 +0100 Message-ID: <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> References: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> MIME-Version: 1.0 X-Debbugs-Cc: Arun Isaac , Ludovic Courtès Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/parallel.scm (slurm)[inputs]: Add dbus, http-parser, libjwt, librdkafka, libtaml and (mariadb "dev"). [arguments]: Add --enable-slurmrestd, --with-bpf, --with-http-parser, --with-rdkafka and --with-yaml to configure flags. Change-Id: Icddaa8f883754129d975e82fccd732a47a467517 --- gnu/packages/parallel.scm | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index d5a55a8641..5d7544783a 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -15,6 +15,7 @@ ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024 David Elsing ;;; Copyright © 2024 Romain Garbage +;;; Copyright © 2024 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,13 +50,16 @@ (define-module (gnu packages parallel) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages check) + #:use-module (gnu packages databases) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages freeipmi) + #:use-module (gnu packages glib) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) + #:use-module (gnu packages networking) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -63,6 +67,7 @@ (define-module (gnu packages parallel) #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages serialization) #:use-module (gnu packages tcl) #:use-module (gnu packages tls) #:use-module (gnu packages web)) @@ -224,12 +229,17 @@ (define-public slurm (mkdir "contribs") (rename-file "tmp-pmi" "contribs/pmi") (rename-file "tmp-pmi2" "contribs/pmi2"))))) - ;; FIXME: More optional inputs could be added, - ;; in particular mysql and gtk+. - (inputs (list freeipmi + ;; FIXME: More optional inputs (for example, gtk+) could be added. + (inputs (list dbus + freeipmi + http-parser `(,hwloc-2 "lib") json-c + libjwt + librdkafka + libyaml linux-pam + `(,mariadb "dev") openpmix munge numactl @@ -239,13 +249,22 @@ (define-public slurm (build-system gnu-build-system) (arguments (list #:configure-flags - #~(list "--enable-pam" "--sysconfdir=/etc/slurm" + #~(list "--enable-pam" + "--enable-slurmrestd" + "--sysconfdir=/etc/slurm" "--disable-static" + (string-append "--with-bpf=" + (dirname (dirname (search-input-directory + %build-inputs "include/linux")))) (string-append "--with-freeipmi=" #$(this-package-input "freeipmi")) + (string-append "--with-http-parser=" + #$(this-package-input "http-parser")) (string-append "--with-hwloc=" (ungexp (this-package-input "hwloc") "lib")) (string-append "--with-json=" #$(this-package-input "json-c")) (string-append "--with-munge=" #$(this-package-input "munge")) + (string-append "--with-rdkafka=" #$(this-package-input "librdkafka")) + (string-append "--with-yaml=" #$(this-package-input "libyaml")) ;; Use PMIx bundled with Open MPI (this is required for Open MPI 5.x). ;; Note: Older versions that inherit from this package lack the -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 10 02:50:52 2024 Received: (at 72766) by debbugs.gnu.org; 10 Sep 2024 06:50:52 +0000 Received: from localhost ([127.0.0.1]:34698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snuiB-0000RN-PI for submit@debbugs.gnu.org; Tue, 10 Sep 2024 02:50:52 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:44002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snui8-0000R7-E1 for 72766@debbugs.gnu.org; Tue, 10 Sep 2024 02:50:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=ynR32r1stGBoDhWmz6DckAZBpBznlPuvPResSe9AS5o=; b=ZViS4Rlhk7K9WVtI+ikOBbfAJpqtzrL+is7NfodIiVONQQgdOBxoMpr6 l2qPp8h6SlXpwrXz9lRHrM8qCaB1wzTJAXO4e6a3a03vG3232Dg+K6WZK BkTi/Ob4OkvIkgFl1Eh93BqXpn91JSt0Q64Qr52dhE2hV1a8Cru186j6F k=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.10,216,1719871200"; d="scan'208";a="95884736" Received: from unknown (HELO ribbon) ([193.50.110.120]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2024 08:50:37 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: [bug#72766] [PATCH v2 2/2] gnu: slurm: Enable REST API. In-Reply-To: <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> (Arun Isaac's message of "Mon, 9 Sep 2024 16:24:20 +0100") References: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 25 Fructidor an 232 de la =?utf-8?Q?R=C3=A9?= =?utf-8?Q?volution=2C?= jour de =?utf-8?Q?l'=C3=89crevisse?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 10 Sep 2024 08:50:36 +0200 Message-ID: <8734m89f43.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Arun! Arun Isaac skribis: > * gnu/packages/parallel.scm (slurm)[inputs]: Add dbus, http-parser, libjw= t, > librdkafka, libtaml and (mariadb "dev"). > [arguments]: Add --enable-slurmrestd, --with-bpf, --with-http-parser, > --with-rdkafka and --with-yaml to configure flags. > > Change-Id: Icddaa8f883754129d975e82fccd732a47a467517 [...] > + (inputs (list dbus > + freeipmi > + http-parser > `(,hwloc-2 "lib") > json-c > + libjwt > + librdkafka > + libyaml > linux-pam > + `(,mariadb "dev") Could you check how this impacts =E2=80=98guix size slurm=E2=80=99? The reason I=E2=80=99m asking is that we at work often end up with slurm in packs that we carry to supercomputers, so it would be best if it wasn=E2=80= =99t too big: --8<---------------cut here---------------start------------->8--- $ guix size slurm |tail -1 total: 359.8 MiB $ guix size slurm mariadb |tail -1 total: 663.4 MiB --8<---------------cut here---------------end--------------->8--- I wonder if we should have a =E2=80=98slurm-minimal=E2=80=99 variant or som= ething? (That could probably come as a patch after this series.) Apart from that, both patches look good to me! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 10 04:32:52 2024 Received: (at 72766) by debbugs.gnu.org; 10 Sep 2024 08:32:52 +0000 Received: from localhost ([127.0.0.1]:34812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snwIu-0005QO-G1 for submit@debbugs.gnu.org; Tue, 10 Sep 2024 04:32:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snwIr-0005Q8-G4 for 72766@debbugs.gnu.org; Tue, 10 Sep 2024 04:32:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snwIf-0000Rw-Ly; Tue, 10 Sep 2024 04:32:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=G/CXRx7efyum7nT8AIU3jSaWTfHFI/J4RNNoh9g/jIc=; b=b+PsBeZcun1V8aDvciB1 7dXt5xBZdqpcQ0HLdbpyvqtXdXQxleWNmfn+L2X3j+JKkCLhRHCtd2hwPMCPahpqC/elIB26/0URD qO1zkoqu1ICrH0k+L4Tcb7WnUUpZfCEORNsdIotUXFdqfPZS612bBxG2fxL9XcF9V8HQMZ2oaxpdW o5zkf6oN+oUCbH0jvg8kzBGEHCG50RhwvSQWNp5USx3ZFOx1/FbgJEkH/A6+DgCnhgILe5QrGVybn 2ePwWbxOkqJ5OYpE7AC2p+6k27eJnWQZ2kdTfbmlYYtSz3tyyKHEB5kKE4JUVUen1/eG8ymyMwVu6 dLx5pf6HIIxslg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: [bug#72766] [PATCH 2/2] gnu: slurm: Enable REST API. In-Reply-To: <87bk10srba.fsf@systemreboot.net> (Arun Isaac's message of "Fri, 06 Sep 2024 17:03:05 +0100") References: <3f45eba5ce4b94bcf046b1f9368336ad236a74e3.1724369334.git.arunisaac@systemreboot.net> <87a5gqlcuc.fsf@gnu.org> <87bk10srba.fsf@systemreboot.net> Date: Tue, 10 Sep 2024 10:32:02 +0200 Message-ID: <87tten9af1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hey, Arun Isaac skribis: >> I=E2=80=99m curious what the REST interface has to offer compared to DRM= AA. > > I don't know, to be honest. > > I've started working on ravanan, a new implementation of the Common > Workflow Language that takes inspiration from Guix and integrates with > Guix for strong reproducibility. > > https://git.systemreboot.net/ravanan/about/ Nice! > ravanan uses the slurm REST API to talk to slurm, and that's why I need > this patch. I chose the slurm REST API over DRMAA rather arbitrarily. In > the future, I could support both in ravanan. So, it's still good to have > both. I=E2=80=99m mentioning DRMAA because Ricardo wrote guile-drmaa for similar purposes, and I think DRMAA is implemented by several batch schedulers. But I don=E2=80=99t know whether it would be a good fit for what you need. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 10 11:02:43 2024 Received: (at 72766) by debbugs.gnu.org; 10 Sep 2024 15:02:43 +0000 Received: from localhost ([127.0.0.1]:36629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1so2OB-0000VD-59 for submit@debbugs.gnu.org; Tue, 10 Sep 2024 11:02:43 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:37866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1so2O7-0000Ur-BU for 72766@debbugs.gnu.org; Tue, 10 Sep 2024 11:02:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WvNmgNnfHi/YuNlbehBwqvBXEqv5UG5WcZaKFvNMf2Y=; b=Zpzwk59t/7TMA3vEouTvkGoZ57 YAWCEthJtVPYl+vbN0TVVeWSW7/8IW0oil8XQqud0R4hOeRwZFMEpp/saSXao0HuNA+qVg0OLfLqI 0NuQbDBmfgHdJxGLeSn2Z6mxPNt/7mreskjUgjiTxRAxd38Ih0f1SEQrHoD4I7G9yoAhfgM1q0g1D 7h9U39naxhaWu7LCDn0mWb7FjL8RA1Q3VQBZ3c0aH1Kfh0XrPhwARCpUBvm+/bL0dVlosipcbiQge BgVhISsaVye9wYI7Am9JVnTceiOyWDidhk/tFopSZEZ/nnU9NvQs2eFV+SGKZJzRTT4XZmM8S/gjA x8SKI7Mw==; Received: from [192.168.2.1] (port=58510 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1so2IH-000000001uY-28yX; Tue, 10 Sep 2024 15:56:38 +0100 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#72766] [PATCH v2 2/2] gnu: slurm: Enable REST API. In-Reply-To: <8734m89f43.fsf@inria.fr> References: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> <8734m89f43.fsf@inria.fr> Date: Tue, 10 Sep 2024 16:02:23 +0100 Message-ID: <87frq7pn5s.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, > Could you check how this impacts =E2=80=98guix size slurm=E2=80=99? The size goes up from 141 MiB to 407 MiB. > The reason I=E2=80=99m asking is that we at work often end up with slurm = in > packs that we carry to supercomputers, so it would be best if it wasn=E2= =80=99t > too big: > > --8<---------------cut here---------------start------------->8--- > $ guix size slurm |tail -1 > total: 359.8 MiB > $ guix size slurm mariadb |tail -1 > total: 663.4 MiB > --8<---------------cut here---------------end--------------->8--- > > I wonder if we should have a =E2=80=98slurm-minimal=E2=80=99 variant or s= omething? > > (That could probably come as a patch after this series.) Yes, I could add a slurm-minimal. Would you like to have a slurm-minimal for every version of slurm or just the latest? Regards, Arun From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 12 04:25:15 2024 Received: (at 72766) by debbugs.gnu.org; 12 Sep 2024 08:25:15 +0000 Received: from localhost ([127.0.0.1]:40093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sof8d-0002UW-7v for submit@debbugs.gnu.org; Thu, 12 Sep 2024 04:25:15 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:42293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sof8a-0002PE-39 for 72766@debbugs.gnu.org; Thu, 12 Sep 2024 04:25:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=4BRVL8lJNYlkkom+pku/5nffbvIrpbxNAJvfcpQov54=; b=duOrTGmr3I7DHB14Uo8znYZgQHuRsVQQIzDoM1H7MuIHVrBMvufxtWBI 0FrhLYi8HLBgQ4350T3J+fRlb3HbGwmJY6XC6MOtk5W/bcJ/9zlCWpX/d IJv11fNfDhYITgZBjZgq1Jw3g6xeQW36RAW03HuSV5GchlG/Wp4HxB3m1 A=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.10,222,1719871200"; d="scan'208";a="96171289" Received: from unknown (HELO ribbon) ([193.50.110.120]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2024 10:24:57 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: [bug#72766] [PATCH v2 2/2] gnu: slurm: Enable REST API. In-Reply-To: <87frq7pn5s.fsf@systemreboot.net> (Arun Isaac's message of "Tue, 10 Sep 2024 16:02:23 +0100") References: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> <8734m89f43.fsf@inria.fr> <87frq7pn5s.fsf@systemreboot.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 27 Fructidor an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de la Verge-d'or X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 12 Sep 2024 10:24:56 +0200 Message-ID: <878qvxl1nr.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello! Arun Isaac skribis: >> Could you check how this impacts =E2=80=98guix size slurm=E2=80=99? > > The size goes up from 141 MiB to 407 MiB. D=E2=80=99oh! >> I wonder if we should have a =E2=80=98slurm-minimal=E2=80=99 variant or = something? >> >> (That could probably come as a patch after this series.) > > Yes, I could add a slurm-minimal. Would you like to have a slurm-minimal > for every version of slurm or just the latest? Hmm! The reason we keep different versions of slurm is because one always needs a slurm client compatible with the version of slurmd running on the target cluster. And so yes, we=E2=80=99d need =E2=80=98slur= m-minimal=E2=80=99 for each version. But that doesn=E2=80=99t sound great so I=E2=80=99m not sure. Another possibility would be to do the opposite: keep =E2=80=98slurm=E2=80= =99 without MariaDB & co., and have a =E2=80=98slurm-rest=E2=80=99 (?) variant with all= the bells and whistles? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 12 07:51:33 2024 Received: (at 72766) by debbugs.gnu.org; 12 Sep 2024 11:51:33 +0000 Received: from localhost ([127.0.0.1]:40325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1soiMG-000502-VL for submit@debbugs.gnu.org; Thu, 12 Sep 2024 07:51:33 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:60152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1soiMD-0004zo-DF for 72766@debbugs.gnu.org; Thu, 12 Sep 2024 07:51:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1NfFUsCnjIHKjKaRfB+N4LcCul+D6ea6oK6wPOa18Gg=; b=NQrZcNZ5OoIXwdThhYF5mckjYi eEdr7KkSnCv+oUYB5ZVL4NN3RuvLFP7wJVZI6/1NhNWbKwP6eMnM8/fjT/8aGCccFKLC6tFzs56Zx XW50w7g1MEhJVyywP5s/m1sbze3o+iu1IlzxRLpqQWkBsHoSPdVCFurnWlZ3v6fmCVBAyQprBXxdg bx0Zi7OADb5s4IRVO4zIcF0ZnKEReCa45XkybdOzRdt9ynD2DTcKZIOeaDCXDJaboiV3evdNTClT9 Wt5VecvsuhjX/e14s+PQ9w7eAkmKUgEtuejbt/S6Z0bwbNByRb8MtT01sJFNY2wN2VBeHwFXa4KD/ IixzkHqA==; Received: from [192.168.2.1] (port=36256 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1soiGG-000000004rN-2ZKA; Thu, 12 Sep 2024 12:45:21 +0100 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#72766] [PATCH v2 2/2] gnu: slurm: Enable REST API. In-Reply-To: <878qvxl1nr.fsf@inria.fr> References: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> <8734m89f43.fsf@inria.fr> <87frq7pn5s.fsf@systemreboot.net> <878qvxl1nr.fsf@inria.fr> Date: Thu, 12 Sep 2024 12:51:11 +0100 Message-ID: <87ttelnl8w.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, > Another possibility would be to do the opposite: keep =E2=80=98slurm=E2= =80=99 without > MariaDB & co., and have a =E2=80=98slurm-rest=E2=80=99 (?) variant with a= ll the bells > and whistles? The problem with that approach is that I'm sure there will be more optional features to add to slurm. Then, we would have a combinatorial explosion of packages---slurm-rest, slurm-rest+feature1, slurm-rest+feature2, slurm-feature1+feature2, etc. I am ok with having a slurm-minimal for all versions. That's the lesser evil. Regards, Arun From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 12 11:32:14 2024 Received: (at 72766) by debbugs.gnu.org; 12 Sep 2024 15:32:14 +0000 Received: from localhost ([127.0.0.1]:41696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1solnq-0000Fu-CT for submit@debbugs.gnu.org; Thu, 12 Sep 2024 11:32:14 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:20592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1solnn-0000FX-RM for 72766@debbugs.gnu.org; Thu, 12 Sep 2024 11:32:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=+3PQ4YKZlqZO3ypDitHM4uhh20q11H4lvGVIAmPssmg=; b=akLjE1GlLtyMhO9f9CaoS4yxGP2AyXkiuN4lxJDtcJr6epV3/G4tjfAi FkhO9FK1R/Vh7rDK/qWcEHUGuc5oK2T06cx4/FfHmI6tC79sN1mme+mt4 6Z5XjzA81Ew6aBIg0eLMMN0QIVLowJs8yRHANeFJFNc8U0u9GkBwM7fCU M=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.10,223,1719871200"; d="scan'208";a="182865152" Received: from unknown (HELO ribbon) ([193.50.110.120]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2024 17:31:50 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: [bug#72766] [PATCH v2 2/2] gnu: slurm: Enable REST API. In-Reply-To: <87ttelnl8w.fsf@systemreboot.net> (Arun Isaac's message of "Thu, 12 Sep 2024 12:51:11 +0100") References: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> <8734m89f43.fsf@inria.fr> <87frq7pn5s.fsf@systemreboot.net> <878qvxl1nr.fsf@inria.fr> <87ttelnl8w.fsf@systemreboot.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 27 Fructidor an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de la Verge-d'or X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 12 Sep 2024 17:31:50 +0200 Message-ID: <87bk0skhw9.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Arun Isaac skribis: >> Another possibility would be to do the opposite: keep =E2=80=98slurm=E2= =80=99 without >> MariaDB & co., and have a =E2=80=98slurm-rest=E2=80=99 (?) variant with = all the bells >> and whistles? > > The problem with that approach is that I'm sure there will be more > optional features to add to slurm. Then, we would have a combinatorial > explosion of packages---slurm-rest, slurm-rest+feature1, > slurm-rest+feature2, slurm-feature1+feature2, etc. Not necessarily: that second variant could be maximal, where additional features would be added. > I am ok with having a slurm-minimal for all versions. That's the > lesser evil. OK. There might be a third option: moving server-side code to a separate output. That way, perhaps client-side code (things like =E2=80=98openmpi= =E2=80=99) would not have MariaDB & co. in their closure? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 17:55:32 2024 Received: (at 72766) by debbugs.gnu.org; 16 Sep 2024 21:55:32 +0000 Received: from localhost ([127.0.0.1]:53555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqJgx-00034K-Ua for submit@debbugs.gnu.org; Mon, 16 Sep 2024 17:55:32 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:41764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqJgu-000344-Hl for 72766@debbugs.gnu.org; Mon, 16 Sep 2024 17:55:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vyXNz0k4a8Iis40SMgOqgVYgHTCGDZIYW0VUOPECLPo=; b=Z+2vsC1jFs41Ld5ii5XBrv6GnK 40VwxlMN3Oc63nD/Ghh8X6TxxB4QkGg/1mWkSAKnNYMgBCEuqIx5PY/5ZRJyuOXE+XbbNAJcJ292b r+lrC78+PJjPZdm4YckVzh2uEZq+v+UVqLZ+y0GGto52JGYbzkZ9I2Q9t9/lSe3MIZP71wUpzc+eL WAHxjqOhvaEDmn3CsfppveMDY7wkNslzV/yf0DO4cza1Z8ys0vbl40MCqt9btakjx0oVUw9yFstvx qn1raRpw7emfH4K6GQW4NKTmbCjHstshTo2rR3Lv2hMFc/uPajQBhrgdIEqxPOAOkfuocWpoDW4L7 vpjznWLw==; Received: from [192.168.2.1] (port=44018 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1sqJah-000000001TN-47TG; Mon, 16 Sep 2024 22:49:04 +0100 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#72766] [PATCH v2 2/2] gnu: slurm: Enable REST API. In-Reply-To: <87bk0skhw9.fsf@inria.fr> References: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> <8734m89f43.fsf@inria.fr> <87frq7pn5s.fsf@systemreboot.net> <878qvxl1nr.fsf@inria.fr> <87ttelnl8w.fsf@systemreboot.net> <87bk0skhw9.fsf@inria.fr> Date: Mon, 16 Sep 2024 22:55:05 +0100 Message-ID: <87bk0nmfgm.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> I am ok with having a slurm-minimal for all versions. That's the >> lesser evil. > > OK. I'll send a v3 patchset with the minimal variants soon.. > There might be a third option: moving server-side code to a separate > output. That way, perhaps client-side code (things like =E2=80=98openmpi= =E2=80=99) > would not have MariaDB & co. in their closure? I presume you might need to carry both the server-side and the client-side code in a guix pack. So, how would this option help? From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 17 02:37:27 2024 Received: (at 72766) by debbugs.gnu.org; 17 Sep 2024 06:37:27 +0000 Received: from localhost ([127.0.0.1]:53760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqRq3-0006tp-Am for submit@debbugs.gnu.org; Tue, 17 Sep 2024 02:37:27 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:45369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqRq0-0006tZ-H4 for 72766@debbugs.gnu.org; Tue, 17 Sep 2024 02:37:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=vBWqrVL775Cn1VcYnW1yP7MRbVfsgLYe7MkntbVA4zg=; b=i0+T63JBJ2ySrhW+jnsoNo8pm4TD5acplQIZXJE94SEzgXMpYaTR9rgx bpxXTbtZAMPJlZcUSXcL5knh4ATLAfRCJNerbVUYCQtyabhEbLkTVqC8v Fq7nLmvPS5OIb9TO6F6qob9PuYT2M8bweGrvJbxWkPh0SyAhAGjHI7ub5 4=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.10,234,1719871200"; d="scan'208";a="96548526" Received: from unknown (HELO ribbon) ([193.50.110.120]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2024 08:37:03 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: [bug#72766] [PATCH v2 2/2] gnu: slurm: Enable REST API. In-Reply-To: <87bk0nmfgm.fsf@systemreboot.net> (Arun Isaac's message of "Mon, 16 Sep 2024 22:55:05 +0100") References: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> <8734m89f43.fsf@inria.fr> <87frq7pn5s.fsf@systemreboot.net> <878qvxl1nr.fsf@inria.fr> <87ttelnl8w.fsf@systemreboot.net> <87bk0skhw9.fsf@inria.fr> <87bk0nmfgm.fsf@systemreboot.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 2 jour =?utf-8?Q?compl=C3=A9mentaire?= an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du =?utf-8?Q?G=C3=A9nie?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 17 Sep 2024 08:37:02 +0200 Message-ID: <87tteeair5.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Morning! Arun Isaac skribis: >> There might be a third option: moving server-side code to a separate >> output. That way, perhaps client-side code (things like =E2=80=98openmp= i=E2=80=99) >> would not have MariaDB & co. in their closure? > > I presume you might need to carry both the server-side and the > client-side code in a guix pack. So, how would this option help? No, to run code on a supercomputer, you only need MPI and things like =E2=80=98salloc=E2=80=99, =E2=80=98sbatch=E2=80=99, etc. There=E2=80=99s d= efinitely no need for =E2=80=98slurmd=E2=80=99 or anything like that in that case because it=E2=80=99s already running on the machine. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 17 10:55:11 2024 Received: (at 72766) by debbugs.gnu.org; 17 Sep 2024 14:55:11 +0000 Received: from localhost ([127.0.0.1]:55715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqZbi-0001HU-TC for submit@debbugs.gnu.org; Tue, 17 Sep 2024 10:55:11 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:45212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqZbf-0001HD-A2 for 72766@debbugs.gnu.org; Tue, 17 Sep 2024 10:55:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NxTyIeCNtq+BOwGONVagpMdCMF1vvAjk0tMwUKax2gE=; b=iOChUdq681C48YacJT8teFrGye R9eP0FMsRiTg7HgDzS0IXW6VQonuXTe6vvPrV+otAiHZOxt+v+Hqe1sIPrlaeBc+7vZFB6Wti3gxa BpgORRKT6KR0nMBzn7QmZE2oDXrt/8zKZIRYpjpm+wGL6Tnde4wbd8r7MlbII5VjkaNh8cPidgAQf skXK3mhOUv/beq0t2oMOJ3PlmieIwgSfsW6bnQVc8rnc5C0ig9/uvTbA7xZUsA9Fjm1CgrExfo7VK bllQqtJPSMxf2pmTi2+ohh9BchUhU9h4YO5ejQPLtNnu3WYfFh1QQ6/0S6r66AuBhqXpJk7Mv2W1C zjUIqYnw==; Received: from [192.168.2.1] (port=35686 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1sqZW5-000000004f0-0oWZ; Tue, 17 Sep 2024 15:49:21 +0100 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#72766] [PATCH v2 2/2] gnu: slurm: Enable REST API. In-Reply-To: <87tteeair5.fsf@inria.fr> References: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> <8734m89f43.fsf@inria.fr> <87frq7pn5s.fsf@systemreboot.net> <878qvxl1nr.fsf@inria.fr> <87ttelnl8w.fsf@systemreboot.net> <87bk0skhw9.fsf@inria.fr> <87bk0nmfgm.fsf@systemreboot.net> <87tteeair5.fsf@inria.fr> Date: Tue, 17 Sep 2024 15:54:41 +0100 Message-ID: <87y13ql49a.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> I presume you might need to carry both the server-side and the >> client-side code in a guix pack. So, how would this option help? > > No, to run code on a supercomputer, you only need MPI and things like > =E2=80=98salloc=E2=80=99, =E2=80=98sbatch=E2=80=99, etc. There=E2=80=99s= definitely no need for =E2=80=98slurmd=E2=80=99 or > anything like that in that case because it=E2=80=99s already running on t= he > machine. Ah, ok, the server-side is maintained by a different admin team. I was thinking you were maintaining the server-side as well. That makes sense, thank you! In that case, I'll split slurm into two outputs---a server and a client-side. I'll send a patch in the coming days. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 18 10:59:11 2024 Received: (at 72766) by debbugs.gnu.org; 18 Oct 2024 14:59:11 +0000 Received: from localhost ([127.0.0.1]:39705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1oRa-00049X-LA for submit@debbugs.gnu.org; Fri, 18 Oct 2024 10:59:11 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:60730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1oRU-000496-QW for 72766@debbugs.gnu.org; Fri, 18 Oct 2024 10:59:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8Ju7K3FiSglYS8d6QRLlOgxeLEry4Uw1qoWTonVnvLM=; b=oYxXm37A6MJH05wQaKvTwqpSsx IFZ+W3Q32xdpjRJlhkwup1pLvLnlRkxmG1OrIl8tv0idjINcdO/n7VdJsKeMVmikf3B0eT8cqyta5 AX8OnjpzQgTIVG8qCsDgQsxoaG3RFJbSgTE/tgt2a+NnMAxzMvSkRueyF2V+SIPqwm8E3OFlwV+pf Q/8qd0ZftVwcwuvp/d+VxA0PFnUAvpMBEds5545y8TzAtv1p3FHytRR5Q3WPFItLKkYclK7EdbOez wpFjk3CXFSzuwQ9OBWOAHkK9yPcJxf6z9lKxJbT0fwjBuK3IoAGqrTTWyfeA5Yu6e1UJCy9GiTuGW 5/77gEfw==; Received: from [192.168.2.1] (port=47248 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t1oLB-000000002pT-3dN4; Fri, 18 Oct 2024 15:52:34 +0100 From: Arun Isaac To: 72766@debbugs.gnu.org Subject: [PATCH v3 1/2] gnu: slurm: Enable REST API. Date: Fri, 18 Oct 2024 15:58:11 +0100 Message-ID: <7aaf17b37cbdfba71f428a24631a7e9e82ed8c0e.1729262403.git.arunisaac@systemreboot.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 X-Debbugs-Cc: Arun Isaac , Ludovic Courtès , Ludovic Courtès Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/parallel.scm (slurm)[inputs]: Add dbus, http-parser, libjwt, librdkafka, libtaml and (mariadb "dev"). [arguments]: Add --enable-slurmrestd, --with-bpf, --with-http-parser, --with-rdkafka and --with-yaml to configure flags. Change-Id: Icddaa8f883754129d975e82fccd732a47a467517 --- gnu/packages/parallel.scm | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index fc96136065..522d326ef2 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -15,6 +15,7 @@ ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024 David Elsing ;;; Copyright © 2024 Romain Garbage +;;; Copyright © 2024 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,14 +50,17 @@ (define-module (gnu packages parallel) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages check) + #:use-module (gnu packages databases) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages freeipmi) #:use-module (gnu packages gcc) + #:use-module (gnu packages glib) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) + #:use-module (gnu packages networking) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -64,6 +68,7 @@ (define-module (gnu packages parallel) #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages serialization) #:use-module (gnu packages tcl) #:use-module (gnu packages tls) #:use-module (gnu packages web)) @@ -223,12 +228,17 @@ (define-public slurm (mkdir "contribs") (rename-file "tmp-pmi" "contribs/pmi") (rename-file "tmp-pmi2" "contribs/pmi2"))))) - ;; FIXME: More optional inputs could be added, - ;; in particular mysql and gtk+. - (inputs (list freeipmi + ;; FIXME: More optional inputs (for example, gtk+) could be added. + (inputs (list dbus + freeipmi + http-parser `(,hwloc-2 "lib") json-c + libjwt + librdkafka + libyaml linux-pam + `(,mariadb "dev") openpmix munge numactl @@ -238,13 +248,22 @@ (define-public slurm (build-system gnu-build-system) (arguments (list #:configure-flags - #~(list "--enable-pam" "--sysconfdir=/etc/slurm" + #~(list "--enable-pam" + "--enable-slurmrestd" + "--sysconfdir=/etc/slurm" "--disable-static" + (string-append "--with-bpf=" + (dirname (dirname (search-input-directory + %build-inputs "include/linux")))) (string-append "--with-freeipmi=" #$(this-package-input "freeipmi")) + (string-append "--with-http-parser=" + #$(this-package-input "http-parser")) (string-append "--with-hwloc=" (ungexp (this-package-input "hwloc") "lib")) (string-append "--with-json=" #$(this-package-input "json-c")) (string-append "--with-munge=" #$(this-package-input "munge")) + (string-append "--with-rdkafka=" #$(this-package-input "librdkafka")) + (string-append "--with-yaml=" #$(this-package-input "libyaml")) ;; Use PMIx bundled with Open MPI (this is required for Open MPI 5.x). ;; Note: Older versions that inherit from this package lack the -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 18 10:59:11 2024 Received: (at 72766) by debbugs.gnu.org; 18 Oct 2024 14:59:11 +0000 Received: from localhost ([127.0.0.1]:39707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1oRb-00049a-9u for submit@debbugs.gnu.org; Fri, 18 Oct 2024 10:59:11 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:39022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1oRX-00049D-Ck for 72766@debbugs.gnu.org; Fri, 18 Oct 2024 10:59:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fTQMQnjPARMm/8t7kqo++wX/Z3fQ4yv1cbtyuAGlKgo=; b=ZqJBbtk+YQFw161coiSEG71vy4 zM1txrGvbklkrKwZAD9rtGu7zKex5l5e9OStgQtjBzeDmm97vQ6GX7oEV6FhxDBgkX2zhv2iEkfwY ucLT6Z2Prs11rsnDBRN63/YnhxOuoqD+t10OlnMTsyBIk7GrkWkKUZSSFaBOWHxYz96jAUaF+hkt1 /WVBLsWwxsexbCmrkF1RGdJRSeE77SgnPWr25X484IAUEwBruEoNPL/8BFd7eUNBBI0NYzWxNuqK8 WBpF6BZUVyuQqHp30VNbGYuzlCp0bg4UILPRtH4dUn9Miy15iIce7BcRXRy2er7hWuUjBVUA+tdwh xDnwDY0Q==; Received: from [192.168.2.1] (port=47248 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t1oLF-000000002pT-2S4J; Fri, 18 Oct 2024 15:52:38 +0100 From: Arun Isaac To: 72766@debbugs.gnu.org Subject: [PATCH v3 2/2] gnu: slurm: Move client executables into separate output. Date: Fri, 18 Oct 2024 15:58:12 +0100 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 X-Debbugs-Cc: Arun Isaac , Ludovic Courtès , Ludovic Courtès Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/parallel.scm (slurm)[outputs]: Add client. [arguments]: Add move-client-executables phase. Change-Id: Id7441b0b34a5b8433e4c38bd5c56e4ca1fec587c --- gnu/packages/parallel.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 522d326ef2..f27f07ca1e 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -246,6 +246,7 @@ (define-public slurm (native-inputs (list autoconf expect perl pkg-config python-wrapper)) (build-system gnu-build-system) + (outputs '("out" "client")) (arguments (list #:configure-flags #~(list "--enable-pam" @@ -291,7 +292,17 @@ (define-public slurm (invoke "make" "install" "-C" "contribs/pmi") ;; Others expect pmi2. - (invoke "make" "install" "-C" "contribs/pmi2")))))) + (invoke "make" "install" "-C" "contribs/pmi2"))) + (add-after 'install 'move-client-executables + (lambda _ + (let ((client-bin (string-append #$output:client "/bin"))) + (mkdir-p client-bin) + (for-each (lambda (executable) + (rename-file executable + (string-append client-bin + "/" + (basename executable)))) + (find-files (string-append #$output "/bin"))))))))) (home-page "https://slurm.schedmd.com/") (synopsis "Workload manager for cluster computing") (description -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 18 10:59:12 2024 Received: (at 72766) by debbugs.gnu.org; 18 Oct 2024 14:59:12 +0000 Received: from localhost ([127.0.0.1]:39709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1oRb-00049h-Ll for submit@debbugs.gnu.org; Fri, 18 Oct 2024 10:59:11 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:60722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1oRU-000495-Qd for 72766@debbugs.gnu.org; Fri, 18 Oct 2024 10:59:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mtjtG8bdu+1WMgpMiVKea7hW5avpLrvMywpcQAosd6Q=; b=VGSzKZ/MNqzwMg5c1XKfpYkFGq 3yYHwD26iDlaoC8ssTIodOq3qOxNU+B+RXIs0gKmb3YfRelm7jIIMhWwzaoXr4haqe/S+vF0ruF8/ oir7kZevcQLHbBZ6ob7sqq75LNgWhCkCG+g7G+dD+cWpvQ6b9at/8QwDcTHnQ4Qaf2N7hgwZcF6av iY7J7bjUx9BwrGjAiilBbXWQd4k8087dcgcsXRrkQEOD+CWt7m1fvAKn9UCCPi+3PxfYFx1Z43qKE t4sF5woaDzLoKDXVINwmvU9gpnddEpT7VmCM7PbUoObQbqdOZMcwN2nlbZAAYCC9AaYc/+eDDawlU NgaSZcwQ==; Received: from [192.168.2.1] (port=47248 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t1oL8-000000002pT-2Suj; Fri, 18 Oct 2024 15:52:31 +0100 From: Arun Isaac To: 72766@debbugs.gnu.org Subject: [PATCH v3 0/2] slurm: Enable REST API Date: Fri, 18 Oct 2024 15:58:10 +0100 Message-ID: X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Debbugs-Cc: Arun Isaac , Ludovic Courtès , Ludovic Courtès Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, I pushed the patch adding libjwt. And, I have added a patch moving slurm client executables into a separate "client" output. `guix size' reports that the "out" and "client" outputs are respectively 192.6 MiB and 201.3 MiB. For comparison, before this patch, the size of slurm was 141.3 MiB. Everything LGTM. I'll push if there are no objections. Thanks! Arun Arun Isaac (2): gnu: slurm: Enable REST API. gnu: slurm: Move client executables into separate output. gnu/packages/parallel.scm | 40 ++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) base-commit: ba0340eec2e50439cfd94e85b40bf41c2d488a74 prerequisite-patch-id: 0a3dc095f7f4c2fc32778dfc299d7bfa447a8ec4 -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 24 06:02:06 2024 Received: (at 72766) by debbugs.gnu.org; 24 Oct 2024 10:02:06 +0000 Received: from localhost ([127.0.0.1]:33705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3ufO-0002B3-GI for submit@debbugs.gnu.org; Thu, 24 Oct 2024 06:02:06 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:20712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3ufK-0002AS-6p for 72766@debbugs.gnu.org; Thu, 24 Oct 2024 06:02:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=d7g+x98dKqS2lTo86OeuYRumOPQp0mSq15Y5HogKmt8=; b=h7R9SL5Lygi0AoLKC2UC3zmGK62N/yoyGPkYDcEzCgoGJ2yUDP8pBeJ7 bSk2K8oohCs+pJTnPpNyCAmJFnB1aqwOtt0Lsaj5jTpuxvUvU4lymrsfz QZiZecitZeyQ7dk3LtKqF6/sztnKLYRupD0UqvycmZhtNbfVWeWfhfG/K c=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.11,228,1725314400"; d="scan'208";a="190512312" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2024 12:01:24 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: [bug#72766] [PATCH v3 2/2] gnu: slurm: Move client executables into separate output. In-Reply-To: (Arun Isaac's message of "Fri, 18 Oct 2024 15:58:12 +0100") References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Tridi 3 Brumaire an 233 de la =?utf-8?Q?R=C3=A9volut?= =?utf-8?Q?ion=2C?= jour de la Poire X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 24 Oct 2024 12:01:24 +0200 Message-ID: <87plnp251n.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Arun, Arun Isaac skribis: > * gnu/packages/parallel.scm (slurm)[outputs]: Add client. > [arguments]: Add move-client-executables phase. > > Change-Id: Id7441b0b34a5b8433e4c38bd5c56e4ca1fec587c [...] > + (outputs '("out" "client")) > (arguments > (list #:configure-flags > #~(list "--enable-pam" > @@ -291,7 +292,17 @@ (define-public slurm > (invoke "make" "install" "-C" "contribs/pmi") >=20=20 > ;; Others expect pmi2. > - (invoke "make" "install" "-C" "contribs/pmi2")))))) > + (invoke "make" "install" "-C" "contribs/pmi2"))) > + (add-after 'install 'move-client-executables > + (lambda _ > + (let ((client-bin (string-append #$output:client "/bi= n"))) > + (mkdir-p client-bin) > + (for-each (lambda (executable) > + (rename-file executable > + (string-append client-bin > + "/" > + (basename e= xecutable)))) > + (find-files (string-append #$output "/bin= "))))))))) I think =E2=80=9Cbin=E2=80=9D would be a more conventional name for the out= put; this is used in a couple of packages and recognized by =E2=80=98package->recutils= =E2=80=99. However, what does =E2=80=98guix size slurm:client=E2=80=99 report? I susp= ect it depends on slurm:out, in which case moving to a separate output makes no difference from that perspective. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 24 10:50:57 2024 Received: (at 72766) by debbugs.gnu.org; 24 Oct 2024 14:50:57 +0000 Received: from localhost ([127.0.0.1]:35871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3zAu-0007zv-Mb for submit@debbugs.gnu.org; Thu, 24 Oct 2024 10:50:56 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:49612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3zAp-0007zX-TI for 72766@debbugs.gnu.org; Thu, 24 Oct 2024 10:50:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HLE1YkcOopg/pXE++Y4W4SkAjinbRhS15KwpMlCLP5E=; b=b31A/vn6BVtJ9orbmiNZjcIV9P bIHhmEXseeUy26oFzY4qpylpVz3QpUiC8nNCUYWFGcxbSJhj3moPCRBSlHCd4EVOPt5xMygfK7GH2 9csmdsiFdskaWUVAaMq0ouBe4xrs0t0EStpEf4F7FM0F1k688UsyFXqQPNruLSXAyoow6SrzuaBzc sEu5hOXDxSPvacmuenu7/yoaq0CWLZ8BmH+F3Nu/nqYgnIqTfp9Gj92PeXfkanLpQ/VlFdPR9FA+c DSnufu525ILmOxZagrlhL7Cxfg2pBPkcwU/KWjpEAlWGmv9zhuNxN2Q1EtqDGXZN5X5v1iGRwyXh2 mx5JxdrA==; Received: from [192.168.2.1] (port=50204 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t3z48-000000002q8-1456; Thu, 24 Oct 2024 15:43:56 +0100 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#72766] [PATCH v3 2/2] gnu: slurm: Move client executables into separate output. In-Reply-To: <87plnp251n.fsf@inria.fr> References: <87plnp251n.fsf@inria.fr> Date: Thu, 24 Oct 2024 15:50:10 +0100 Message-ID: <875xpha731.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, > I think =E2=80=9Cbin=E2=80=9D would be a more conventional name for the o= utput; this is > used in a couple of packages and recognized by =E2=80=98package->recutils= =E2=80=99. Sure, fixed now. > However, what does =E2=80=98guix size slurm:client=E2=80=99 report? I su= spect it > depends on slurm:out, in which case moving to a separate output makes no > difference from that perspective. Yep, that's right. $ ./pre-inst-env guix size slurm:out | tail -n1 total: 192.6 MiB $ ./pre-inst-env guix size slurm:bin | tail -n1 total: 201.3 MiB $ ./pre-inst-env guix size slurm:bin | grep slurm /gnu/store/2qhgkq79ahw64n4kmr3znl8v66z0n87j-slurm-23.11.10 192.6 = 17.5 8.7% /gnu/store/6f3d93i0zdr48v6bp471dfsk7r89xdqh-slurm-23.11.10-bin 201.3 = 1.3 0.6% Should I then go back to the idea of creating a slurm-minimal variant? Regards, Arun From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 25 05:33:14 2024 Received: (at 72766) by debbugs.gnu.org; 25 Oct 2024 09:33:14 +0000 Received: from localhost ([127.0.0.1]:37260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Gh0-0001b5-Ba for submit@debbugs.gnu.org; Fri, 25 Oct 2024 05:33:14 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:29745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Ggy-0001aq-7m for 72766@debbugs.gnu.org; Fri, 25 Oct 2024 05:33:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=TVGpyF7Il+/KWKDwNtjs+1jMk0ieIGloVTsLr1KRgp4=; b=i2xRKKIB69t8InhvBRjv8PLvW7DovNGyrqIaC1j6Jw3xYWgG3ceJ+OBe Ibj7gDQMDpqaM5jk75l6pF4P0/hLeZ319OUFtOTlbXaehTa6Q1/TjCi0b 10ALyQnVMzDsbISQyNkkFVuw0DVXs1Cc3nYf97RE/XdMeslSL+POkS/al 4=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.11,231,1725314400"; d="scan'208";a="190705024" Received: from unknown (HELO ribbon) ([193.50.110.122]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2024 11:32:34 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: [bug#72766] [PATCH v3 2/2] gnu: slurm: Move client executables into separate output. In-Reply-To: <875xpha731.fsf@systemreboot.net> (Arun Isaac's message of "Thu, 24 Oct 2024 15:50:10 +0100") References: <87plnp251n.fsf@inria.fr> <875xpha731.fsf@systemreboot.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 4 Brumaire an 233 de la =?utf-8?Q?R=C3=A9vo?= =?utf-8?Q?lution=2C?= jour de la Betterave X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 25 Oct 2024 11:32:33 +0200 Message-ID: <87o73834um.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, Arun Isaac skribis: >> I think =E2=80=9Cbin=E2=80=9D would be a more conventional name for the = output; this is >> used in a couple of packages and recognized by =E2=80=98package->recutil= s=E2=80=99. > > Sure, fixed now. > >> However, what does =E2=80=98guix size slurm:client=E2=80=99 report? I s= uspect it >> depends on slurm:out, in which case moving to a separate output makes no >> difference from that perspective. > > Yep, that's right. > > $ ./pre-inst-env guix size slurm:out | tail -n1 > total: 192.6 MiB > $ ./pre-inst-env guix size slurm:bin | tail -n1 > total: 201.3 MiB > $ ./pre-inst-env guix size slurm:bin | grep slurm > /gnu/store/2qhgkq79ahw64n4kmr3znl8v66z0n87j-slurm-23.11.10 192.6 = 17.5 8.7% > /gnu/store/6f3d93i0zdr48v6bp471dfsk7r89xdqh-slurm-23.11.10-bin 201.3 = 1.3 0.6% OK. Hmm I just realized that the introduction of this extra output would at least deserve a news entry too, because I can already see myself as the Guix support guy at my workplace having to reply to confused colleagues who realize that =E2=80=98guix shell slurm=E2=80=98 or similar no longer gi= ves them =E2=80=98salloc=E2=80=99 & co. :-) > Should I then go back to the idea of creating a slurm-minimal variant? Yes, probably. Apologies for all the back and forth and hesitations; it=E2=80=99s tricky! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 25 11:24:46 2024 Received: (at 72766) by debbugs.gnu.org; 25 Oct 2024 15:24:46 +0000 Received: from localhost ([127.0.0.1]:39199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4MBB-0001kO-Np for submit@debbugs.gnu.org; Fri, 25 Oct 2024 11:24:46 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:44522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4MB8-0001kC-KI for 72766@debbugs.gnu.org; Fri, 25 Oct 2024 11:24:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Pt3BnLEVYSQJ6dqNQEZmTheYCBtq3/hQsDCBDEhNT4s=; b=nfvS8ymn76wXGjAvzQiRTUK4FO B6sUoBEeqX4DfziBLrcMdLEq/a+keokelccPZQb1ZE6XivdbDcU9C2DoT4EgBqUlJg1/9fxat5bQp VPGU0ojQxMJmqHK4e0e0Bl+wymN1X4Fp8Y8Y6dItnWSlB1KJDPwiVM3fEvR86YqjqYuI+PkMgi9Lj 8XiG2p52xsb8iAwH3JQsVaTgMkHQ3UWdVm8MXy462ezEqwP+69tN0nbsD6dJ60gGcglUZ3O228rS4 NhV1ZPMR2lv6Okvp/VuoEp089UvUjKDm2RQA2xOV3XSYSY1FzJH9f8Ib7UCUIXH0l6vc2EZ2Qwaz/ 8gmA+8OQ==; Received: from [192.168.2.1] (port=32994 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t4M4M-000000003ls-1q4Q; Fri, 25 Oct 2024 16:17:43 +0100 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#72766] [PATCH v3 2/2] gnu: slurm: Move client executables into separate output. In-Reply-To: <87o73834um.fsf@inria.fr> References: <87plnp251n.fsf@inria.fr> <875xpha731.fsf@systemreboot.net> <87o73834um.fsf@inria.fr> Date: Fri, 25 Oct 2024 16:23:59 +0100 Message-ID: <87sesk8auo.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Hmm I just realized that the introduction of this extra output would at > least deserve a news entry too, because I can already see myself as the > Guix support guy at my workplace having to reply to confused colleagues > who realize that =E2=80=98guix shell slurm=E2=80=98 or similar no longer = gives them > =E2=80=98salloc=E2=80=99 & co. :-) > >> Should I then go back to the idea of creating a slurm-minimal variant? > > Yes, probably. > > Apologies for all the back and forth and hesitations; it=E2=80=99s tricky! No worries! A v4 patch follows. Do I need to add a news entry for this v4 patch? I guess not, but just checking. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 25 11:25:20 2024 Received: (at 72766) by debbugs.gnu.org; 25 Oct 2024 15:25:21 +0000 Received: from localhost ([127.0.0.1]:39205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4MBk-0001mK-4S for submit@debbugs.gnu.org; Fri, 25 Oct 2024 11:25:20 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:60026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4MBg-0001mA-Ei for 72766@debbugs.gnu.org; Fri, 25 Oct 2024 11:25:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pYlfdnECAH4sdA2o1jCLLm+Zmq+5cs2FjASPS/cqO90=; b=SgfPuy8xT2T7bnuujJuMOl96T2 vYGqitTwQhKLWW7AD+r4SNd2W32vO8HxYVLZEghMurNHJPbEOU/ELXeaAm78942CjDxzYtXwqjvRs Bhsy/dJFGIxJDnkfmkXW7POAftTt4sQUazhZChPJjq1uH6ppcw4dlPVLZFatKMNPv9WktEOV9jnJ7 RZs2c1D/0KWYKm9/iOToZzSAh8eXm05jqttPSZlH3bqQQjNFfPv4PWYnG8Kg9jvMbtm2Q19wjGz6F jfLnYZBLoPVh5/NNPCPzovB/V9yW9F80CHvHreo26N4vzTmcrIsGh2HRiTNbAPK3H22T1UT/ZfbBp ogyOnKeg==; Received: from [192.168.2.1] (port=41908 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t4M4y-000000003me-3mXf; Fri, 25 Oct 2024 16:18:21 +0100 From: Arun Isaac To: 72766@debbugs.gnu.org Subject: [PATCH v4] gnu: slurm: Enable REST API. Date: Fri, 25 Oct 2024 16:24:30 +0100 Message-ID: <64fa0bf0f949a50512b2dc91ed436a5e96d71a77.1729869863.git.arunisaac@systemreboot.net> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Debbugs-Cc: Arun Isaac , Ludovic Courtès , Ludovic Courtès Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72766 Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Rename slurm and slurm-* to slurm-minimal and slurm-minimal-*. Add new slurm packages that inherit from slurm-minimal and have the REST API enabled. * gnu/packages/parallel.scm (make-slurm): New function. (slurm-minimal, slurm-minimal-23.02, slurm-minimal-22.05, slurm-minimal-21.08, slurm-minimal-20.11, slurm-minimal-20.02, slurm-minimal-19.05, slurm-minimal-18.08): New variables. (slurm, slurm-23.02, slurm-22.05, slurm-21.08, slurm-20.11, slurm-20.02, slurm-19.05, slurm-18.08): Inherit from slurm-minimal, slurm-minimal-23.02, slurm-minimal-22.05, slurm-minimal-21.08, slurm-minimal-20.11, slurm-minimal-20.02, slurm-minimal-19.05 and slurm-minimal-18.08 respectively. Change-Id: I6410ac385d8876f4b6a908ddb1272172475a87bb --- gnu/packages/parallel.scm | 98 ++++++++++++++++++++++++++++----------- 1 file changed, 72 insertions(+), 26 deletions(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 89d82fb8da..66997951c3 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -15,6 +15,7 @@ ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024 David Elsing ;;; Copyright © 2024 Romain Garbage +;;; Copyright © 2024 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,14 +50,17 @@ (define-module (gnu packages parallel) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages check) + #:use-module (gnu packages databases) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages freeipmi) #:use-module (gnu packages gcc) + #:use-module (gnu packages glib) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) + #:use-module (gnu packages networking) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -64,6 +68,7 @@ (define-module (gnu packages parallel) #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages serialization) #:use-module (gnu packages tcl) #:use-module (gnu packages tls) #:use-module (gnu packages web)) @@ -190,9 +195,9 @@ (define-public xjobs when jobs finish.") (license license:gpl2+))) -(define-public slurm +(define-public slurm-minimal (package - (name "slurm") + (name "slurm-minimal") (version "23.11.10") (source (origin (method url-fetch) @@ -223,8 +228,6 @@ (define-public slurm (mkdir "contribs") (rename-file "tmp-pmi" "contribs/pmi") (rename-file "tmp-pmi2" "contribs/pmi2"))))) - ;; FIXME: More optional inputs could be added, - ;; in particular mysql and gtk+. (inputs (list freeipmi `(,hwloc-2 "lib") json-c @@ -291,6 +294,35 @@ (define-public slurm "https://github.com/SchedMD/slurm/blob/master/contribs/pmi2/COPYRIGHT") license:gpl2+)))) ; the rest, often with OpenSSL exception +(define (make-slurm base-slurm) + "Make a slurm package with all optional features enabled. Base it off of the +minimal slurm package BASE-SLURM." + (package + (inherit base-slurm) + (name "slurm") + (arguments + (substitute-keyword-arguments (package-arguments base-slurm) + ((#:configure-flags flags #~'()) + #~(cons* "--enable-slurmrestd" + (string-append "--with-bpf=" + (dirname + (dirname (search-input-directory + %build-inputs "include/linux")))) + (string-append "--with-http-parser=" + #$(this-package-input "http-parser")) + (string-append "--with-rdkafka=" + #$(this-package-input "librdkafka")) + (string-append "--with-yaml=" + #$(this-package-input "libyaml")) + #$flags)))) + ;; FIXME: More optional inputs could be added. + (inputs + (modify-inputs (package-inputs base-slurm) + (prepend dbus freeipmi http-parser + libjwt librdkafka libyaml (list mariadb "dev")))))) + +(define-public slurm (make-slurm slurm-minimal)) + ;; The SLURM client/daemon protocol and file format changes from time to time ;; in incompatible ways, as noted in ;; . Thus, keep older @@ -298,9 +330,9 @@ (define-public slurm ;; As noted in the link, YY.MM is the release scheme, and the 'maintenance' ;; digit does not introduce incompatibilities. -(define-public slurm-23.02 +(define-public slurm-minimal-23.02 (package - (inherit slurm) + (inherit slurm-minimal) (version "23.02.6") (source (origin (inherit (package-source slurm)) @@ -314,12 +346,14 @@ (define-public slurm-23.02 (base32 "08rz3r1rlnb3pmfdnbh542gm44ja0fdy8rkj4vm4lclc48cvqp2a")))))) -(define-public slurm-22.05 +(define-public slurm-23.02 (make-slurm slurm-minimal-23.02)) + +(define-public slurm-minimal-22.05 (package - (inherit slurm-23.02) + (inherit slurm-minimal-23.02) (version "22.05.1") (source (origin - (inherit (package-source slurm-23.02)) + (inherit (package-source slurm-minimal-23.02)) (method url-fetch) (uri (string-append "https://download.schedmd.com/slurm/slurm-" @@ -329,12 +363,14 @@ (define-public slurm-22.05 (base32 "0f3hhlki8g7slllsnyj1qikbsvr62i0hig85lcdcfnmsagzlhbyi")))))) -(define-public slurm-21.08 +(define-public slurm-22.05 (make-slurm slurm-minimal-22.05)) + +(define-public slurm-minimal-21.08 (package - (inherit slurm-22.05) + (inherit slurm-minimal-22.05) (version "21.08.8") (source (origin - (inherit (package-source slurm-22.05)) + (inherit (package-source slurm-minimal-22.05)) (method url-fetch) (uri (string-append "https://download.schedmd.com/slurm/slurm-" @@ -346,15 +382,17 @@ (define-public slurm-21.08 ;; This and older versions of slurm have PMIx support but they seem to ;; require an older version of openpmix. Disable PMIx support. - (inputs (modify-inputs (package-inputs slurm-22.05) + (inputs (modify-inputs (package-inputs slurm-minimal-22.05) (delete "openpmix"))))) -(define-public slurm-20.11 +(define-public slurm-21.08 (make-slurm slurm-minimal-21.08)) + +(define-public slurm-minimal-20.11 (package - (inherit slurm-21.08) + (inherit slurm-minimal-21.08) (version "20.11.9") (source (origin - (inherit (package-source slurm-21.08)) + (inherit (package-source slurm-minimal-21.08)) (method url-fetch) (uri (string-append "https://download.schedmd.com/slurm/slurm-" @@ -364,12 +402,14 @@ (define-public slurm-20.11 (base32 "0xq2d6dm285y541dyg1h66z7svsisrq8c81ag0f601xz1cn3mq9m")))))) -(define-public slurm-20.02 +(define-public slurm-20.11 (make-slurm slurm-minimal-20.11)) + +(define-public slurm-minimal-20.02 (package - (inherit slurm-20.11) + (inherit slurm-minimal-20.11) (version "20.02.6-1") (source (origin - (inherit (package-source slurm-20.11)) + (inherit (package-source slurm-minimal-20.11)) (method url-fetch) (uri (string-append "https://download.schedmd.com/slurm/slurm-" @@ -379,17 +419,19 @@ (define-public slurm-20.02 (base32 "0qj4blfymrd2ry2qmb58l3jbr4jwygc3adcfw7my27rippcijlyc")))) (arguments - (substitute-keyword-arguments (package-arguments slurm-20.11) + (substitute-keyword-arguments (package-arguments slurm-minimal-20.11) ((#:configure-flags flags ''()) #~(append '("CFLAGS=-O2 -g -fcommon" "LDFLAGS=-fcommon") #$flags)))))) -(define-public slurm-19.05 +(define-public slurm-20.02 (make-slurm slurm-minimal-20.02)) + +(define-public slurm-minimal-19.05 (package - (inherit slurm-20.02) + (inherit slurm-minimal-20.02) (version "19.05.8") (source (origin - (inherit (package-source slurm-20.02)) + (inherit (package-source slurm-minimal-20.02)) (method url-fetch) (uri (string-append "https://download.schedmd.com/slurm/slurm-" @@ -399,14 +441,16 @@ (define-public slurm-19.05 (base32 "10c9j4a9a6d4ibpf75006mn03p8xgpaprc247x2idakysjf2fw43")))))) +(define-public slurm-19.05 (make-slurm slurm-minimal-19.05)) + ;; Same as Debian 10 -(define-public slurm-18.08 +(define-public slurm-minimal-18.08 (package - (inherit slurm-19.05) + (inherit slurm-minimal-19.05) (version "18.08.9") (source (origin - (inherit (package-source slurm-20.02)) + (inherit (package-source slurm-minimal-20.02)) (uri (string-append "https://download.schedmd.com/slurm/slurm-" version ".tar.bz2")) @@ -415,6 +459,8 @@ (define-public slurm-18.08 (base32 "1bgrpz75m7l4xhirsd0fvnkzlkrl8v2qpmjcz60barc5qm2kn457")))))) +(define-public slurm-18.08 (make-slurm slurm-minimal-18.08)) + (define-public slurm-drmaa (package (name "slurm-drmaa") base-commit: 2394a7f5fbf60dd6adc0a870366adb57166b6d8b -- 2.45.2 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 12 05:36:00 2024 Received: (at 72766) by debbugs.gnu.org; 12 Nov 2024 10:36:00 +0000 Received: from localhost ([127.0.0.1]:60747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAoFb-00083R-Nl for submit@debbugs.gnu.org; Tue, 12 Nov 2024 05:36:00 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:46432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAoFZ-00083D-Ox for 72766@debbugs.gnu.org; Tue, 12 Nov 2024 05:35:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=d+pgSTJtYSjFG11o8v1fwY0tE+HkCDMEMG040bUG8Aw=; b=MFBLecDczgEtKbyatyWQJ+LMl4UYV76PkrBTWNi0HK8qR8Q1r/8D7IOy oJ+jA9IoeBv34Ug4EHjANMVNEet62sqrdyknf5xl09VmFlIuycckTo3oC TvGsQxSXp91EfDdVZsbRLzmCKzX+N9y7WKGqXeV+XCnr8pDiuHNj55PnT 0=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.12,147,1728943200"; d="scan'208";a="193325440" Received: from unknown (HELO ribbon) ([193.50.110.122]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2024 11:35:52 +0100 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Arun Isaac Subject: Re: [bug#72766] [PATCH v4] gnu: slurm: Enable REST API. In-Reply-To: <64fa0bf0f949a50512b2dc91ed436a5e96d71a77.1729869863.git.arunisaac@systemreboot.net> (Arun Isaac's message of "Fri, 25 Oct 2024 16:24:30 +0100") References: <64fa0bf0f949a50512b2dc91ed436a5e96d71a77.1729869863.git.arunisaac@systemreboot.net> Date: Tue, 12 Nov 2024 11:35:51 +0100 Message-ID: <87o72ku4c8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72766 Cc: 72766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, Arun Isaac skribis: > Rename slurm and slurm-* to slurm-minimal and slurm-minimal-*. Add new sl= urm > packages that inherit from slurm-minimal and have the REST API enabled. > > * gnu/packages/parallel.scm (make-slurm): New function. > (slurm-minimal, slurm-minimal-23.02, slurm-minimal-22.05, slurm-minimal-2= 1.08, > slurm-minimal-20.11, slurm-minimal-20.02, slurm-minimal-19.05, > slurm-minimal-18.08): New variables. > (slurm, slurm-23.02, slurm-22.05, slurm-21.08, slurm-20.11, slurm-20.02, > slurm-19.05, slurm-18.08): Inherit from slurm-minimal, slurm-minimal-23.0= 2, > slurm-minimal-22.05, slurm-minimal-21.08, slurm-minimal-20.11, > slurm-minimal-20.02, slurm-minimal-19.05 and slurm-minimal-18.08 respecti= vely. > > Change-Id: I6410ac385d8876f4b6a908ddb1272172475a87bb [...] > +(define (make-slurm base-slurm) > + "Make a slurm package with all optional features enabled. Base it off = of the > +minimal slurm package BASE-SLURM." > + (package > + (inherit base-slurm) > + (name "slurm") > + (arguments > + (substitute-keyword-arguments (package-arguments base-slurm) > + ((#:configure-flags flags #~'()) > + #~(cons* "--enable-slurmrestd" > + (string-append "--with-bpf=3D" > + (dirname > + (dirname (search-input-directory > + %build-inputs "include/linux"= )))) > + (string-append "--with-http-parser=3D" > + #$(this-package-input "http-parser")) > + (string-append "--with-rdkafka=3D" > + #$(this-package-input "librdkafka")) > + (string-append "--with-yaml=3D" > + #$(this-package-input "libyaml")) > + #$flags)))) > + ;; FIXME: More optional inputs could be added. > + (inputs > + (modify-inputs (package-inputs base-slurm) > + (prepend dbus freeipmi http-parser > + libjwt librdkafka libyaml (list mariadb "dev")))))) Could you add a comment and/or synopsis stating that these dependencies enable support for the REST API? Otherwise LGTM. Feel free to commit with this change. Thanks! Ludo=E2=80=99.=20 From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 09:06:14 2024 Received: (at 72766-done) by debbugs.gnu.org; 18 Nov 2024 14:06:14 +0000 Received: from localhost ([127.0.0.1]:60651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tD2OH-0003oK-6T for submit@debbugs.gnu.org; Mon, 18 Nov 2024 09:06:14 -0500 Received: from mugam.systemreboot.net ([139.59.75.54]:35194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tD2O9-0003nn-9u for 72766-done@debbugs.gnu.org; Mon, 18 Nov 2024 09:06:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=78vCDAjbFexainfaTpfzrbJPcsEv9COA3jSfK+91LBE=; b=pOcCqxAVF8inBAElGUKTdILyoo UGP2UhkqTTxuDA4UpXctelJfQvVVZaSGufKNoJCg2sjwvSeDMztmXaLGX0hmMb1rHI48iN12Hn4yH BCq+5BJLd7wMRCbnSjgQA3/lCLZZIpOve+TSFfesUdCl7Gdc3nZGcaRlvl8Va/KbTJIFG3Dngxijo bQgRcx5pZRynD3C1+QrojgaUb4AEVZhOdRN5BAdGUoD8wBwGrn0n/EjeehBeYwoiQ9LSghQzKlQtr fpt7rAfpF8FzOBXDyBJb31DA6GTWzyXYnDBDAjlImVs+3iqOdO72zi/jNa6MKbOYXMuuhOKVpXcWr MSjXNcTQ==; Received: from [192.168.2.1] (port=55718 helo=localhost) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1tD2H1-000000006vj-3a7h; Mon, 18 Nov 2024 13:58:40 +0000 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#72766] [PATCH v4] gnu: slurm: Enable REST API. In-Reply-To: <87o72ku4c8.fsf@gnu.org> References: <64fa0bf0f949a50512b2dc91ed436a5e96d71a77.1729869863.git.arunisaac@systemreboot.net> <87o72ku4c8.fsf@gnu.org> Date: Mon, 18 Nov 2024 14:05:50 +0000 Message-ID: <874j44ocw1.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72766-done Cc: 72766-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Could you add a comment and/or synopsis stating that these dependencies > enable support for the REST API? > > Otherwise LGTM. Feel free to commit with this change. I added a comment and pushed. Thank you! From unknown Tue Jun 17 22:30:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 17 Dec 2024 12:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator