‘static-networking’ service can remain in ‘starting’ state forever

  • Done
  • quality assurance status badge
Details
One participant
  • Ludovic Courtès
Owner
unassigned
Submitted by
Ludovic Courtès
Severity
normal
L
L
Ludovic Courtès wrote on 24 May 2024 16:42
(address . bug-guix@gnu.org)
877cfj5l1j.fsf@inria.fr
The ‘static-networking’ service can remain in ‘starting’ state forever
when it specifies a nonexistent NIC.

This can be reproduced by running a system such as hydra/bayfront.scm
(in maintenance.git) in ‘guix system vm’: shepherd will wait for
‘networking’ to start forever, preventing the machine from being cleanly
halted.

I believe this is due to indefinite blocking in ‘network-set-up/linux’:

;; Before going any further, wait for the
;; device to show up.
(wait-for-link
#$(network-address-device address)
#:blocking? #f)

It should instead wait for a limited amount of time (info "(shepherd)
Defining Services").

Ludo’.
L
L
Ludovic Courtès wrote on 25 Dec 2024 22:38
(address . 71173@debbugs.gnu.org)
87zfkj30l2.fsf@gnu.org
Ludovic Courtès <ludo@gnu.org> skribis:

Toggle quote (19 lines)
> The ‘static-networking’ service can remain in ‘starting’ state forever
> when it specifies a nonexistent NIC.
>
> This can be reproduced by running a system such as hydra/bayfront.scm
> (in maintenance.git) in ‘guix system vm’: shepherd will wait for
> ‘networking’ to start forever, preventing the machine from being cleanly
> halted.
>
> I believe this is due to indefinite blocking in ‘network-set-up/linux’:
>
> ;; Before going any further, wait for the
> ;; device to show up.
> (wait-for-link
> #$(network-address-device address)
> #:blocking? #f)
>
> It should instead wait for a limited amount of time (info "(shepherd)
> Defining Services").

L
L
Ludovic Courtès wrote on 9 Jan 00:25 +0100
Re: [bug#75100] [PATCH 0/3] Shepherd service of 'static-networking' completes in timely fashion
87tta8sxb2.fsf@gnu.org
Pushed:

20a74ce28d tests: Run without the Linux kernel “quiet” argument.
431ab10344 services: static-networking: Fail when devices don’t show up.
8d649a8d17 services: static-networking: Run set-up/tear-down as a separate process.
Closed
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 71173@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 71173
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch