GNU logs - #53921, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#53921: The libvirt service does not contain a way to turn-on remote listening
Resent-From: Katherine Cox-Buday <cox.katherine.e@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 10 Feb 2022 17:10:01 +0000
Resent-Message-ID: <handler.53921.B.164451298111661 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 53921
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 53921 <at> debbugs.gnu.org
X-Debbugs-Original-To: Guix Bugs <bug-guix@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.164451298111661
          (code B ref -1); Thu, 10 Feb 2022 17:10:01 +0000
Received: (at submit) by debbugs.gnu.org; 10 Feb 2022 17:09:41 +0000
Received: from localhost ([127.0.0.1]:56940 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nICwv-000320-Gd
	for submit <at> debbugs.gnu.org; Thu, 10 Feb 2022 12:09:41 -0500
Received: from lists.gnu.org ([209.51.188.17]:39034)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cox.katherine.e@HIDDEN>) id 1nICws-00031q-NV
 for submit <at> debbugs.gnu.org; Thu, 10 Feb 2022 12:09:39 -0500
Received: from eggs.gnu.org ([209.51.188.92]:51004)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <cox.katherine.e@HIDDEN>)
 id 1nICwo-0008R8-IS
 for bug-guix@HIDDEN; Thu, 10 Feb 2022 12:09:38 -0500
Received: from [2607:f8b0:4864:20::d34] (port=36376
 helo=mail-io1-xd34.google.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <cox.katherine.e@HIDDEN>)
 id 1nICwm-0007ha-9K
 for bug-guix@HIDDEN; Thu, 10 Feb 2022 12:09:33 -0500
Received: by mail-io1-xd34.google.com with SMTP id h7so8168220iof.3
 for <bug-guix@HIDDEN>; Thu, 10 Feb 2022 09:09:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:subject:date:message-id:user-agent:mime-version;
 bh=04cNBgt7Rgn/9O3kUCFx6zzBySo0kC0/jpDsTPdL8nM=;
 b=pnRNZfonGO9XBWbTzJdOBnA3enEHQGRAOz2Z/qyE5pDPr2nu2yFT6aJ5znJl/1HOPa
 Ei52G9/hBSigxTlWZBoWAPNBP6JcnUR8y+RVo5IkBFSwy70bJhTUKWFM8fUN9idFkbdw
 ensl+ElrQiLeXLF/WBz02S/HlsqvPePI0c7jxxvAzDRz1/GAsGfUDGmt420Cwb4XW1kH
 HgXAfnRp6t1l69mHklTPO9gOa/BgY8mRqb3gy9aRBfp7jpIac5u96wGKYEQc8EakKoml
 mOX5dmKe4SSzJYF6WjGNS+yQWDO9P0wXHZmZKia4P5BqK9QkMUkrjwn6x7RHRLrMdTnH
 XvVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:subject:date:message-id:user-agent
 :mime-version;
 bh=04cNBgt7Rgn/9O3kUCFx6zzBySo0kC0/jpDsTPdL8nM=;
 b=B2tJDWSg48ge26j/tjyNjG6BouZgqIoobblixBHyWNvjq/8Me0sfNY4I7JnUUCPaXA
 VCutrWBFMwAATICWF0FJ/50teEGgLNaK9ABb/2QDAabpkJDaFfDPmdhxUewmDmkUZ3dv
 XuNTOIZfZXi1169zsCOlsReROksaASd8Kwie7bcZsDpa2TiWYj1oz8IHZRLkHUo1bycg
 ypOxFgqITSf4D7EsKMiltFyS02dr4JXoQnlbjUgQp4zF9+DeOYhNVA3NTK5FNnc23fj4
 UqzH/UB4fbACsiqJ2av0HATT1O+oDebdjlK2oj3uVnwmO0IxWrp2VL4IrTqUhHnODuok
 1Z0A==
X-Gm-Message-State: AOAM530G6kgAmkFPeJQFVETC5evcVsRdGFETsIXQbPrLB4QEecVRZYD2
 SxywrtpExX+T16seEnUBkORVwfmRz14=
X-Google-Smtp-Source: ABdhPJzaSQX3IlgL/ck2O3a+w+0cXnfAuY6g186Sttg7g7/g2hsnqGf+01W4iR7ZzWWIfg7+oBq2cw==
X-Received: by 2002:a02:3b67:: with SMTP id i39mr4444729jaf.50.1644512970480; 
 Thu, 10 Feb 2022 09:09:30 -0800 (PST)
Received: from washu-v4 (172-221-246-205.res.spectrum.com. [172.221.246.205])
 by smtp.gmail.com with ESMTPSA id
 b4sm7316757iln.15.2022.02.10.09.09.29 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 10 Feb 2022 09:09:30 -0800 (PST)
From: Katherine Cox-Buday <cox.katherine.e@HIDDEN>
Date: Thu, 10 Feb 2022 11:09:29 -0600
Message-ID: <8735kq8x86.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::d34
 (failed)
Received-SPF: pass client-ip=2607:f8b0:4864:20::d34;
 envelope-from=cox.katherine.e@HIDDEN; helo=mail-io1-xd34.google.com
X-Spam_score_int: 17
X-Spam_score: 1.7
X-Spam_bar: +
X-Spam_report: (1.7 / 5.0 requ) AC_FROM_MANY_DOTS=2.996, BAYES_00=-1.9,
 DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001,
 RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

The shepherd libvirt service contains ways to configure "listening mode" (i.e. listening over TCP) capabilities, but contains no way to actually turn this feature on, despite referencing[1] an unimplemented `listen` option:

> You must set listen for this to have any effect. 

From libvirt's documentation[2]:

> Note: it is also necessary to start the server in listening mode by
> running it with --listen or adding a LIBVIRTD_ARGS="--listen" line to
> /etc/sysconfig/libvirtd.

Our service definition requires the ability to specify that shepherd should start the service with the `--listen` flag.

[1] - https://guix.gnu.org/manual/en/guix.html#index-listen_002dtcp_003f
[2] - https://libvirt.org/remote.html#Remote_libvirtd_configuration

-- 
Katherine




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Katherine Cox-Buday <cox.katherine.e@HIDDEN>
Subject: bug#53921: Acknowledgement (The libvirt service does not contain
 a way to turn-on remote listening)
Message-ID: <handler.53921.B.164451298111661.ack <at> debbugs.gnu.org>
References: <8735kq8x86.fsf@HIDDEN>
X-Gnu-PR-Message: ack 53921
X-Gnu-PR-Package: guix
Reply-To: 53921 <at> debbugs.gnu.org
Date: Thu, 10 Feb 2022 17:10:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 53921 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
53921: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53921
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#53921: [PATCH] services: libvirt: Enable listening mode based on configuration.
References: <8735kq8x86.fsf@HIDDEN>
In-Reply-To: <8735kq8x86.fsf@HIDDEN>
Resent-From: Brice Waegeneire <brice@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 12 Feb 2022 12:31:02 +0000
Resent-Message-ID: <handler.53921.B53921.164466904314656 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 53921
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: cox.katherine.e@HIDDEN
Cc: 53921 <at> debbugs.gnu.org
Received: via spool by 53921-submit <at> debbugs.gnu.org id=B53921.164466904314656
          (code B ref 53921); Sat, 12 Feb 2022 12:31:02 +0000
Received: (at 53921) by debbugs.gnu.org; 12 Feb 2022 12:30:43 +0000
Received: from localhost ([127.0.0.1]:33683 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nIrY2-0003nw-Is
	for submit <at> debbugs.gnu.org; Sat, 12 Feb 2022 07:30:43 -0500
Received: from relay1-d.mail.gandi.net ([217.70.183.193]:41949)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <brice@HIDDEN>) id 1nIrY0-0003e7-BJ
 for 53921 <at> debbugs.gnu.org; Sat, 12 Feb 2022 07:30:41 -0500
Received: (Authenticated sender: brice@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id 5BCC0240009;
 Sat, 12 Feb 2022 12:30:33 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=waegenei.re; s=gm1;
 t=1644669033;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding;
 bh=pFlYNhMAWLanA6ire5qib5V8fLCinpdudJoj18yzkNM=;
 b=nZULQiP7IafQZg25Q4fxyy1vMaaTBbFk1LNlUjgQl1kZzBQX+7/Om7DdJ4F+fXsHvKIEhO
 CDUEMmGyC7DF/ns61fqa9zvUYpB5vKAqMXvtmopyGrAxuBl/pTy3sLYu2Gfk+CPw4c6MTX
 thwTad/ASc0mVf/yCCrrwwSrpB9xavGAZvWZGiRliRVIrVKpVHOXrJF9ZRrGtRYHEQS7rK
 ZKfG87pmi9dO572mhxsHSa7wYZSZ5M22DpftUSIqzFAokjyvBv6U6m3qyRoem8t+KI6EOQ
 BLC8MyrTcUYSOFekpxRPn4VhfMNhMSD2+/Jc4KCCS3beG8Q9sCHizX98bjnpng==
From: Brice Waegeneire <brice@HIDDEN>
Date: Sat, 12 Feb 2022 13:30:28 +0100
Message-Id: <20220212123028.6320-1-brice@HIDDEN>
X-Mailer: git-send-email 2.34.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Fixes <https://bugs.gnu.org/53921>.

* gnu/services/virtualization.scm (libvirt-shepherd-service): Use
  'match-record' instead of accessors.
  Conditionally add "--listen" flag to the start command.
---
Hello Katherine,

Katherine Cox-Buday <cox.katherine.e@HIDDEN> writes:

> The shepherd libvirt service contains ways to configure "listening mode"
> (i.e. listening over TCP) capabilities, but contains no way to actually turn
> this feature on, despite referencing[1] an unimplemented `listen` option:

Good catch!  This patch fixes the reported issue, I've tested it with success.

Cheers,
- Brice

 gnu/services/virtualization.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index 66ae1a1565..ba9fe0505c 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2018, 2020, 2021 Ludovic Courtès <ludo@HIDDEN>
 ;;; Copyright © 2020,2021 Jan (janneke) Nieuwenhuizen <janneke@HIDDEN>
 ;;; Copyright © 2021 Timotej Lazar <timotej.lazar@HIDDEN>
+;;; Copyright © 2022 Brice Waegeneire <brice@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -467,16 +468,18 @@ (define (%libvirt-activation config)
         (use-modules (guix build utils))
         (mkdir-p #$sock-dir))))
 
-
 (define (libvirt-shepherd-service config)
-  (let* ((config-file (libvirt-conf-file config))
-         (libvirt (libvirt-configuration-libvirt config)))
+  (match-record config <libvirt-configuration>
+    (libvirt listen-tcp? listen-tls?)
     (list (shepherd-service
            (documentation "Run the libvirt daemon.")
            (provision '(libvirtd))
            (start #~(make-forkexec-constructor
-                     (list (string-append #$libvirt "/sbin/libvirtd")
-                           "-f" #$config-file)
+                     (list #$(file-append libvirt "/sbin/libvirtd")
+                           (if (or #$listen-tcp? #$listen-tls?)
+                               "--listen"
+                               "")
+                           "-f" #$(libvirt-conf-file config))
                      ;; For finding qemu and ip binaries.
                      #:environment-variables
                      (list (string-append

base-commit: 068d99978a0c9c6fb66f95455060c8d08ba55ac5
-- 
2.34.0






Last modified: Sat, 12 Feb 2022 12:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.