GNU bug report logs - #64850
[PATCH 0/1] Provide a way to use multiple dhcp clients with static-networking

Previous Next

Package: guix-patches;

Reported by: Alexey Abramov <levenson <at> mmer.org>

Date: Tue, 25 Jul 2023 10:59:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64850 in the body.
You can then email your comments to 64850 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#64850; Package guix-patches. (Tue, 25 Jul 2023 10:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexey Abramov <levenson <at> mmer.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 25 Jul 2023 10:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexey Abramov <levenson <at> mmer.org>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/1] Provide a way to use multiple dhcp clients with
 static-networking
Date: Tue, 25 Jul 2023 12:57:39 +0200
In a case you need to configure existing interfaces, rename them or for
example construct a bond first and attach dhcp client to it, we need to run
static-networking AND dhcp-client at the same time.  At this moment both
services provision 'networking by default.

Even though we can override provision for static-networking, it is still not
enough in case we need to run multiple dhcp-clients on different interfaces.

This patch will allow provision override for dhcp-client. This is an addition to bug#64616.

Alexey Abramov (1):
  services: dhcp-client-configuration: Allow provision override

 gnu/services/networking.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#64850; Package guix-patches. (Tue, 25 Jul 2023 11:01:02 GMT) Full text and rfc822 format available.

Message #8 received at 64850 <at> debbugs.gnu.org (full text, mbox):

From: Alexey Abramov <levenson <at> mmer.org>
To: 64850 <at> debbugs.gnu.org
Subject: [PATCH 1/1] services: dhcp-client-configuration: Allow provision
 override
Date: Tue, 25 Jul 2023 12:59:56 +0200
* gnu/services/networking.scm: Allow setting up provision to allow running
DHCP client and static network configuration simultaneously.
---
 gnu/services/networking.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index 5657b141d9..dc75c2f59d 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -88,6 +88,7 @@ (define-module (gnu services networking)
             dhcp-client-configuration
             dhcp-client-configuration?
             dhcp-client-configuration-package
+            dhcp-client-configuration-provision
             dhcp-client-configuration-interfaces
             dhcp-client-configuration-shepherd-requirement
 
@@ -303,6 +304,8 @@ (define-record-type* <dhcp-client-configuration>
                 (default isc-dhcp))
   (shepherd-requirement dhcp-client-configuration-shepherd-requirement
                         (default '()))
+  (provision    dhcp-client-configuration-provision
+                (default '(networking)))
   (interfaces   dhcp-client-configuration-interfaces
                 (default 'all)))                  ;'all | list of strings
 
@@ -312,6 +315,7 @@ (define dhcp-client-shepherd-service
      (let ((package (dhcp-client-configuration-package config))
            (shepherd-requirement (dhcp-client-configuration-shepherd-requirement config))
            (interfaces (dhcp-client-configuration-interfaces config))
+           (provision (dhcp-client-configuration-provision config))
            (pid-file "/var/run/dhclient.pid"))
        (list (shepherd-service
               (documentation "Set up networking via DHCP.")
@@ -321,7 +325,7 @@ (define dhcp-client-shepherd-service
               ;; networking is unavailable, but also means that the interface is not up
               ;; yet when 'start' completes.  To wait for the interface to be ready, one
               ;; should instead monitor udev events.
-              (provision '(networking))
+              (provision provision)
 
               (start #~(lambda _
                          (define dhclient
-- 
2.40.1





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 17 Sep 2023 13:07:01 GMT) Full text and rfc822 format available.

Notification sent to Alexey Abramov <levenson <at> mmer.org>:
bug acknowledged by developer. (Sun, 17 Sep 2023 13:07:01 GMT) Full text and rfc822 format available.

Message #13 received at 64850-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Alexey Abramov <levenson <at> mmer.org>
Cc: 64850-done <at> debbugs.gnu.org
Subject: Re: bug#64850: [PATCH 0/1] Provide a way to use multiple dhcp
 clients with static-networking
Date: Sun, 17 Sep 2023 15:06:33 +0200
Hi,

Alexey Abramov <levenson <at> mmer.org> skribis:

> * gnu/services/networking.scm: Allow setting up provision to allow running
> DHCP client and static network configuration simultaneously.
> ---
>  gnu/services/networking.scm | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
> index 5657b141d9..dc75c2f59d 100644
> --- a/gnu/services/networking.scm
> +++ b/gnu/services/networking.scm
> @@ -88,6 +88,7 @@ (define-module (gnu services networking)
>              dhcp-client-configuration
>              dhcp-client-configuration?
>              dhcp-client-configuration-package
> +            dhcp-client-configuration-provision
>              dhcp-client-configuration-interfaces
>              dhcp-client-configuration-shepherd-requirement
>  
> @@ -303,6 +304,8 @@ (define-record-type* <dhcp-client-configuration>
>                  (default isc-dhcp))
>    (shepherd-requirement dhcp-client-configuration-shepherd-requirement
>                          (default '()))
> +  (provision    dhcp-client-configuration-provision
> +                (default '(networking)))

I changed the field name to ‘shepherd-provision’ for consistency and
documented it in ‘doc/guix.texi’.  Committed!

Thanks,
Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 16 Oct 2023 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 207 days ago.

Previous Next


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