GNU logs - #36855, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Robert Vollmert <rob@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 30 Jul 2019 10:01:01 +0000
Resent-Message-ID: <handler.36855.B.15644808472687 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 36855 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.15644808472687
          (code B ref -1); Tue, 30 Jul 2019 10:01:01 +0000
Received: (at submit) by debbugs.gnu.org; 30 Jul 2019 10:00:47 +0000
Received: from localhost ([127.0.0.1]:49571 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hsOw2-0000hG-PY
	for submit <at> debbugs.gnu.org; Tue, 30 Jul 2019 06:00:47 -0400
Received: from lists.gnu.org ([209.51.188.17]:38588)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rob@HIDDEN>) id 1hsOvz-0000h7-3h
 for submit <at> debbugs.gnu.org; Tue, 30 Jul 2019 06:00:43 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38186)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <rob@HIDDEN>) id 1hsOvx-0003u7-TW
 for bug-guix@HIDDEN; Tue, 30 Jul 2019 06:00:42 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_50,NUMERIC_HTTP_ADDR,
 URIBL_BLOCKED,WEIRD_PORT autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rob@HIDDEN>) id 1hsOvw-0007Hr-NZ
 for bug-guix@HIDDEN; Tue, 30 Jul 2019 06:00:41 -0400
Received: from mx2a.mailbox.org ([2001:67c:2050:104:0:2:25:2]:38846
 helo=mx2.mailbox.org)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rob@HIDDEN>) id 1hsOvw-0007EK-HN
 for bug-guix@HIDDEN; Tue, 30 Jul 2019 06:00:40 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:105:465:1:2:0])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx2.mailbox.org (Postfix) with ESMTPS id 35B7BA1650
 for <bug-guix@HIDDEN>; Tue, 30 Jul 2019 12:00:37 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de
 [80.241.56.116]) (amavisd-new, port 10030)
 with ESMTP id RfLFBAsRl_3b for <bug-guix@HIDDEN>;
 Tue, 30 Jul 2019 12:00:25 +0200 (CEST)
From: Robert Vollmert <rob@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Message-Id: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
Date: Tue, 30 Jul 2019 12:00:23 +0200
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2001:67c:2050:104:0:2:25:2
X-Spam-Score: -1.6 (-)
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.6 (--)

What I see:

1. edit ~/pzprnode/pzprnode

rob@garp ~/pzprnode$ git diff
diff --git a/pzprnode b/pzprnode
index 612e6a8..d8ef0ea 100755
--- a/pzprnode
+++ b/pzprnode
@@ -190,5 +190,6 @@ const server =3D http.createServer((req, res) =3D> {
 });
=20
 server.listen(port, hostname, () =3D> {
+       console.log("updated version");
        console.log(`Server running at http://${hostname}:${port}/`);
 });

2. sudo guix system reconfigure -L ~/garp-config =
~/garp-config/config.scm
3. sudo herd restart pzprnode
4. less /var/log/messages

Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been =
stopped.=20
Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been =
started.=20
Jul 30 11:46:58 localhost pzprnode[4954]: updated version=20
Jul 30 11:46:58 localhost pzprnode[4954]: Server running at =
http://127.0.0.1:3456/=20

5. sudo guix system list-generations

Generation 151	Jul 30 2019 10:37:06
  file name: /var/guix/profiles/system-151-link
  canonical file name: =
/gnu/store/jis33accsfpa068aps0a9mrycmjzfm4m-system
  label: GNU with Linux-Libre 5.2.1
  bootloader: grub
  root device: label: "guix-root"
  kernel: =
/gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bzImage
Generation 152	Jul 30 2019 11:43:13	(current)
  file name: /var/guix/profiles/system-152-link
  canonical file name: =
/gnu/store/3z3wmaj0399kihqc372y91nzcjxc1myl-system
  label: GNU with Linux-Libre 5.2.1
  bootloader: grub
  root device: label: "guix-root"
  kernel: =
/gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bzImage

6. sudo guix system switch-generation 151

substitute: updating substitutes from 'https://ci.guix.gnu.org'... =
100.0%
The following derivation will be built:
   /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv
building /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv...
switched from generation 152 to 151

7. sudo herd restart pzprnode
8. less /var/log/messages

Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been =
stopped.=20
Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been =
started.=20
Jul 30 11:48:03 localhost pzprnode[4994]: updated version=20
Jul 30 11:48:03 localhost pzprnode[4994]: Server running at =
http://127.0.0.1:3456/=20

The line with =E2=80=9Cupdated version=E2=80=9D should not be there.

Presumably, this is due to switch-generations not calling =
upgrade-shepherd-services.





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: Robert Vollmert <rob@HIDDEN>
Subject: bug#36855: Acknowledgement (guix system switch-generation doesn't)
Message-ID: <handler.36855.B.15644808472687.ack <at> debbugs.gnu.org>
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
X-Gnu-PR-Message: ack 36855
X-Gnu-PR-Package: guix
Reply-To: 36855 <at> debbugs.gnu.org
Date: Tue, 30 Jul 2019 10:01:01 +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 36855 <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
36855: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36855
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 30 Jul 2019 16:20:02 +0000
Resent-Message-ID: <handler.36855.B36855.156450355015079 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Robert Vollmert <rob@HIDDEN>
Cc: 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156450355015079
          (code B ref 36855); Tue, 30 Jul 2019 16:20:02 +0000
Received: (at 36855) by debbugs.gnu.org; 30 Jul 2019 16:19:10 +0000
Received: from localhost ([127.0.0.1]:51077 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hsUqD-0003v9-U8
	for submit <at> debbugs.gnu.org; Tue, 30 Jul 2019 12:19:10 -0400
Received: from mx.sdf.org ([205.166.94.20]:59214)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zerodaysfordays@HIDDEN>)
 id 1hsUqB-0003uz-5z
 for 36855 <at> debbugs.gnu.org; Tue, 30 Jul 2019 12:19:08 -0400
Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net
 [173.76.53.40]) (authenticated (0 bits))
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x6UGJ0pL010212
 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO);
 Tue, 30 Jul 2019 16:19:05 GMT
From: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
Date: Tue, 30 Jul 2019 12:16:05 -0400
In-Reply-To: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN> (Robert
 Vollmert's message of "Tue, 30 Jul 2019 12:00:23 +0200")
Message-ID: <87zhkvv6pm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.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: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Robert,

Robert Vollmert <rob@HIDDEN> writes:

> The line with =E2=80=9Cupdated version=E2=80=9D should not be there.
>
> Presumably, this is due to switch-generations not calling
> upgrade-shepherd-services.

I can confirm that 'switch-to-system-generation', the procedure that
carries out 'guix system switch-generation', neither invokes
'upgrade-shepherd-services' nor runs that system's activation script.

I'd be interested to hear from others who have worked on 'guix system'
as to whether or not it would be a good idea to perform the effectful
parts of a system activation for 'switch-generation'. I haven't yet
pondered upon the implications.

Regards,
Jakob

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1AbUUACgkQ9Qb9Fp2P
2VoqLQ//e5V6M06WzlfrTAjUQ7aFELkjPKyuhTGQpPlNNacYB5YIFBehWIutpL62
S0pMMEcdCLbiY60YWV61U8FOuUJCTn2mKkSCFNFdG6oqJIsVptLpU+cGLIRsBy3x
rjPdBtAzE/gyW/PixoN/OorBNpFuvRNtn2LZG5MyqqIZpgK/S7iaSTF4E79Lc85J
+yUdzz2xRioRO1xPPYDItk5wQzI/PYnoUh8xbm74Ie+WhF0ytq85E/VaptrO38Lb
ERJW0WlXcfCHSZqq3b3LZ8+3N/YYjoxbJt4hIpwBNh0xlDDCLhGc7PssJXsUaUoj
8f4BX1m7Tt6IvpotvTb/xaMm9lRJzTw7WOkDRNkWvAFEJTZrSNYZrwS9djaq+woK
rxXG8LGS2ah7lCeNqBKQtihkmOSOGr6yrtYOgSRaOy2m5D0MI+G0h9VR+aguVX10
TEcCOn9xYmV5sIVqx6Ns6+86XJLcujSdQycbE+uKVgn4JMMpzHFRf0aultphjjpJ
O6Jm/FjCf9u3SZJsYwPRwvlAul0/seLEWiN/rErO/0fl9AYhysFiHL5hNmFR1ySW
tcJuttQjmHbhS7VPFnd4B8bzasIXooKxWJpEqO5yoCoD+L6OZW2spWnMZuD6+jQn
lgyfIXXoyfZsHMkUfUgKwGoErK6tKHVabEwOyuDGqhBTRD+WZs8=
=NiIU
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Robert Vollmert <rob@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 06 Aug 2019 21:23:02 +0000
Resent-Message-ID: <handler.36855.B.156512652227100 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 36855 <at> debbugs.gnu.org
Cc: GitHub Developer Support <developer@HIDDEN>
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.156512652227100
          (code B ref -1); Tue, 06 Aug 2019 21:23:02 +0000
Received: (at submit) by debbugs.gnu.org; 6 Aug 2019 21:22:02 +0000
Received: from localhost ([127.0.0.1]:37904 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hv6u9-00072r-So
	for submit <at> debbugs.gnu.org; Tue, 06 Aug 2019 17:22:02 -0400
Received: from lists.gnu.org ([209.51.188.17]:42060)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rob@HIDDEN>) id 1hv6u7-00072c-LR
 for submit <at> debbugs.gnu.org; Tue, 06 Aug 2019 17:22:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42354)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <rob@HIDDEN>) id 1hv6u6-0007Hi-Kl
 for bug-guix@HIDDEN; Tue, 06 Aug 2019 17:21:59 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,NUMERIC_HTTP_ADDR,
 RCVD_IN_DNSWL_LOW,URIBL_BLOCKED,WEIRD_PORT autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rob@HIDDEN>) id 1hv6u4-0007hQ-6i
 for bug-guix@HIDDEN; Tue, 06 Aug 2019 17:21:57 -0400
Received: from mx1.mailbox.org ([80.241.60.212]:18020)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rob@HIDDEN>) id 1hv6u3-0007gd-BJ
 for bug-guix@HIDDEN; Tue, 06 Aug 2019 17:21:55 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org
 [IPv6:2001:67c:2050:105:465:1:2:0])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx1.mailbox.org (Postfix) with ESMTPS id E0A005215F;
 Tue,  6 Aug 2019 23:21:51 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172])
 (amavisd-new, port 10030)
 with ESMTP id mxd9QczHARwY; Tue,  6 Aug 2019 23:21:41 +0200 (CEST)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Robert Vollmert <rob@HIDDEN>
In-Reply-To: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
Date: Tue, 6 Aug 2019 23:21:40 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <3F889811-B4FA-415F-B4C0-7994DD00A968@HIDDEN>
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 80.241.60.212
X-Spam-Score: -1.6 (-)
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.6 (--)

Could we get some input on this bug?

Maybe I=E2=80=99m misunderstanding something, but it seems that a core =
guix
feature (atomic rollbacks) doesn=E2=80=99t work=E2=80=A6

> On 30. Jul 2019, at 12:00, Robert Vollmert <rob@HIDDEN> wrote:
>=20
> What I see:
>=20
> 1. edit ~/pzprnode/pzprnode
>=20
> rob@garp ~/pzprnode$ git diff
> diff --git a/pzprnode b/pzprnode
> index 612e6a8..d8ef0ea 100755
> --- a/pzprnode
> +++ b/pzprnode
> @@ -190,5 +190,6 @@ const server =3D http.createServer((req, res) =3D> =
{
> });
>=20
> server.listen(port, hostname, () =3D> {
> +       console.log("updated version");
>        console.log(`Server running at http://${hostname}:${port}/`);
> });
>=20
> 2. sudo guix system reconfigure -L ~/garp-config =
~/garp-config/config.scm
> 3. sudo herd restart pzprnode
> 4. less /var/log/messages
>=20
> Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been =
stopped.=20
> Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been =
started.=20
> Jul 30 11:46:58 localhost pzprnode[4954]: updated version=20
> Jul 30 11:46:58 localhost pzprnode[4954]: Server running at =
http://127.0.0.1:3456/=20
>=20
> 5. sudo guix system list-generations
>=20
> Generation 151	Jul 30 2019 10:37:06
>  file name: /var/guix/profiles/system-151-link
>  canonical file name: =
/gnu/store/jis33accsfpa068aps0a9mrycmjzfm4m-system
>  label: GNU with Linux-Libre 5.2.1
>  bootloader: grub
>  root device: label: "guix-root"
>  kernel: =
/gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bzImage
> Generation 152	Jul 30 2019 11:43:13	(current)
>  file name: /var/guix/profiles/system-152-link
>  canonical file name: =
/gnu/store/3z3wmaj0399kihqc372y91nzcjxc1myl-system
>  label: GNU with Linux-Libre 5.2.1
>  bootloader: grub
>  root device: label: "guix-root"
>  kernel: =
/gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bzImage
>=20
> 6. sudo guix system switch-generation 151
>=20
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... =
100.0%
> The following derivation will be built:
>   /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv
> building /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv...
> switched from generation 152 to 151
>=20
> 7. sudo herd restart pzprnode
> 8. less /var/log/messages
>=20
> Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been =
stopped.=20
> Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been =
started.=20
> Jul 30 11:48:03 localhost pzprnode[4994]: updated version=20
> Jul 30 11:48:03 localhost pzprnode[4994]: Server running at =
http://127.0.0.1:3456/=20
>=20
> The line with =E2=80=9Cupdated version=E2=80=9D should not be there.
>=20
> Presumably, this is due to switch-generations not calling =
upgrade-shepherd-services.
>=20





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Robert Vollmert <rob@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 06 Aug 2019 21:26:01 +0000
Resent-Message-ID: <handler.36855.B36855.156512672727486 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 36855 <at> debbugs.gnu.org
Cc: guix-devel@HIDDEN
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156512672727486
          (code B ref 36855); Tue, 06 Aug 2019 21:26:01 +0000
Received: (at 36855) by debbugs.gnu.org; 6 Aug 2019 21:25:27 +0000
Received: from localhost ([127.0.0.1]:37916 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hv6xT-00079F-6A
	for submit <at> debbugs.gnu.org; Tue, 06 Aug 2019 17:25:27 -0400
Received: from mx1.mailbox.org ([80.241.60.212]:41196)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rob@HIDDEN>) id 1hv6xR-000792-Kt
 for 36855 <at> debbugs.gnu.org; Tue, 06 Aug 2019 17:25:26 -0400
Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx1.mailbox.org (Postfix) with ESMTPS id 0DE2A51AC5;
 Tue,  6 Aug 2019 23:25:19 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp1.mailbox.org ([80.241.60.240])
 by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de
 [80.241.56.122]) (amavisd-new, port 10030)
 with ESMTP id KFAnkoBzzeyQ; Tue,  6 Aug 2019 23:25:11 +0200 (CEST)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Robert Vollmert <rob@HIDDEN>
In-Reply-To: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
Date: Tue, 6 Aug 2019 23:25:10 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
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 (-)

Could we get some input on this bug?

Maybe I=E2=80=99m misunderstanding something, but it seems that a core =
guix
feature (atomic rollbacks) doesn=E2=80=99t work=E2=80=A6

> On 30. Jul 2019, at 12:00, Robert Vollmert <rob@HIDDEN> wrote:
>=20
> What I see:
>=20
> 1. edit ~/pzprnode/pzprnode
>=20
> rob@garp ~/pzprnode$ git diff
> diff --git a/pzprnode b/pzprnode
> index 612e6a8..d8ef0ea 100755
> --- a/pzprnode
> +++ b/pzprnode
> @@ -190,5 +190,6 @@ const server =3D http.createServer((req, res) =3D> =
{
> });
>=20
> server.listen(port, hostname, () =3D> {
> +       console.log("updated version");
>       console.log(`Server running at http://${hostname}:${port}/`);
> });
>=20
> 2. sudo guix system reconfigure -L ~/garp-config =
~/garp-config/config.scm
> 3. sudo herd restart pzprnode
> 4. less /var/log/messages
>=20
> Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been =
stopped.=20
> Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been =
started.=20
> Jul 30 11:46:58 localhost pzprnode[4954]: updated version=20
> Jul 30 11:46:58 localhost pzprnode[4954]: Server running at =
http://127.0.0.1:3456/=20
>=20
> 5. sudo guix system list-generations
>=20
> Generation 151	Jul 30 2019 10:37:06
> file name: /var/guix/profiles/system-151-link
> canonical file name: =
/gnu/store/jis33accsfpa068aps0a9mrycmjzfm4m-system
> label: GNU with Linux-Libre 5.2.1
> bootloader: grub
> root device: label: "guix-root"
> kernel: =
/gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bzImage
> Generation 152	Jul 30 2019 11:43:13	(current)
> file name: /var/guix/profiles/system-152-link
> canonical file name: =
/gnu/store/3z3wmaj0399kihqc372y91nzcjxc1myl-system
> label: GNU with Linux-Libre 5.2.1
> bootloader: grub
> root device: label: "guix-root"
> kernel: =
/gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bzImage
>=20
> 6. sudo guix system switch-generation 151
>=20
> substitute: updating substitutes from 'https://ci.guix.gnu.org'... =
100.0%
> The following derivation will be built:
>  /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv
> building /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv...
> switched from generation 152 to 151
>=20
> 7. sudo herd restart pzprnode
> 8. less /var/log/messages
>=20
> Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been =
stopped.=20
> Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been =
started.=20
> Jul 30 11:48:03 localhost pzprnode[4994]: updated version=20
> Jul 30 11:48:03 localhost pzprnode[4994]: Server running at =
http://127.0.0.1:3456/=20
>=20
> The line with =E2=80=9Cupdated version=E2=80=9D should not be there.
>=20
> Presumably, this is due to switch-generations not calling =
upgrade-shepherd-services.
>=20





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Christopher Lemmer Webber <cwebber@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 07 Aug 2019 19:38:01 +0000
Resent-Message-ID: <handler.36855.B36855.15652066805969 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 36855 <at> debbugs.gnu.org
Cc: guix-devel@HIDDEN
X-Debbugs-Original-To: bug-guix@HIDDEN
X-Debbugs-Original-Cc: guix-devel@HIDDEN, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.15652066805969
          (code B ref 36855); Wed, 07 Aug 2019 19:38:01 +0000
Received: (at 36855) by debbugs.gnu.org; 7 Aug 2019 19:38:00 +0000
Received: from localhost ([127.0.0.1]:39443 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hvRl1-0001YD-NE
	for submit <at> debbugs.gnu.org; Wed, 07 Aug 2019 15:38:00 -0400
Received: from dustycloud.org ([50.116.34.160]:56368)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cwebber@HIDDEN>) id 1hvRkz-0001Y4-Ak
 for 36855 <at> debbugs.gnu.org; Wed, 07 Aug 2019 15:37:57 -0400
Received: from twig (localhost [127.0.0.1])
 by dustycloud.org (Postfix) with ESMTPS id D58792661E;
 Wed,  7 Aug 2019 15:37:56 -0400 (EDT)
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Christopher Lemmer Webber <cwebber@HIDDEN>
In-reply-to: <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
Date: Wed, 07 Aug 2019 15:37:56 -0400
Message-ID: <87zhkkojfv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.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: -1.0 (-)

Could you look at bug #36878 and commit 1db6f137d... as of latest
master, is this fixed?

Robert Vollmert writes:

> Could we get some input on this bug?
>
> Maybe I=E2=80=99m misunderstanding something, but it seems that a core gu=
ix
> feature (atomic rollbacks) doesn=E2=80=99t work=E2=80=A6
>
>> On 30. Jul 2019, at 12:00, Robert Vollmert <rob@HIDDEN> wrote:
>>=20
>> What I see:
>>=20
>> 1. edit ~/pzprnode/pzprnode
>>=20
>> rob@garp ~/pzprnode$ git diff
>> diff --git a/pzprnode b/pzprnode
>> index 612e6a8..d8ef0ea 100755
>> --- a/pzprnode
>> +++ b/pzprnode
>> @@ -190,5 +190,6 @@ const server =3D http.createServer((req, res) =3D> {
>> });
>>=20
>> server.listen(port, hostname, () =3D> {
>> +       console.log("updated version");
>>       console.log(`Server running at http://${hostname}:${port}/`);
>> });
>>=20
>> 2. sudo guix system reconfigure -L ~/garp-config ~/garp-config/config.scm
>> 3. sudo herd restart pzprnode
>> 4. less /var/log/messages
>>=20
>> Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been stopped=
.=20
>> Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been started=
.=20
>> Jul 30 11:46:58 localhost pzprnode[4954]: updated version=20
>> Jul 30 11:46:58 localhost pzprnode[4954]: Server running at http://127.0=
.0.1:3456/=20
>>=20
>> 5. sudo guix system list-generations
>>=20
>> Generation 151	Jul 30 2019 10:37:06
>> file name: /var/guix/profiles/system-151-link
>> canonical file name: /gnu/store/jis33accsfpa068aps0a9mrycmjzfm4m-system
>> label: GNU with Linux-Libre 5.2.1
>> bootloader: grub
>> root device: label: "guix-root"
>> kernel: /gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bz=
Image
>> Generation 152	Jul 30 2019 11:43:13	(current)
>> file name: /var/guix/profiles/system-152-link
>> canonical file name: /gnu/store/3z3wmaj0399kihqc372y91nzcjxc1myl-system
>> label: GNU with Linux-Libre 5.2.1
>> bootloader: grub
>> root device: label: "guix-root"
>> kernel: /gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bz=
Image
>>=20
>> 6. sudo guix system switch-generation 151
>>=20
>> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
>> The following derivation will be built:
>>  /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv
>> building /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv...
>> switched from generation 152 to 151
>>=20
>> 7. sudo herd restart pzprnode
>> 8. less /var/log/messages
>>=20
>> Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been stopped=
.=20
>> Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been started=
.=20
>> Jul 30 11:48:03 localhost pzprnode[4994]: updated version=20
>> Jul 30 11:48:03 localhost pzprnode[4994]: Server running at http://127.0=
.0.1:3456/=20
>>=20
>> The line with =E2=80=9Cupdated version=E2=80=9D should not be there.
>>=20
>> Presumably, this is due to switch-generations not calling upgrade-shephe=
rd-services.
>>=20





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Christopher Lemmer Webber <cwebber@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 07 Aug 2019 19:39:02 +0000
Resent-Message-ID: <handler.36855.B.15652066825999 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 36855 <at> debbugs.gnu.org
Cc: guix-devel@HIDDEN
X-Debbugs-Original-To: bug-guix@HIDDEN
X-Debbugs-Original-Cc: guix-devel@HIDDEN, 36855 <at> debbugs.gnu.org
Received: via spool by submit <at> debbugs.gnu.org id=B.15652066825999
          (code B ref -1); Wed, 07 Aug 2019 19:39:02 +0000
Received: (at submit) by debbugs.gnu.org; 7 Aug 2019 19:38:02 +0000
Received: from localhost ([127.0.0.1]:39446 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hvRl4-0001Yb-2N
	for submit <at> debbugs.gnu.org; Wed, 07 Aug 2019 15:38:02 -0400
Received: from lists.gnu.org ([209.51.188.17]:49798)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cwebber@HIDDEN>) id 1hvRl2-0001YL-Ue
 for submit <at> debbugs.gnu.org; Wed, 07 Aug 2019 15:38:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51834)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <cwebber@HIDDEN>) id 1hvRl1-00081R-Qc
 for bug-guix@HIDDEN; Wed, 07 Aug 2019 15:38:00 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_20,NUMERIC_HTTP_ADDR,
 URIBL_BLOCKED,WEIRD_PORT autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cwebber@HIDDEN>) id 1hvRkz-0005e8-LK
 for bug-guix@HIDDEN; Wed, 07 Aug 2019 15:37:58 -0400
Received: from dustycloud.org ([50.116.34.160]:44872)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <cwebber@HIDDEN>)
 id 1hvRkz-0005bt-GP; Wed, 07 Aug 2019 15:37:57 -0400
Received: from twig (localhost [127.0.0.1])
 by dustycloud.org (Postfix) with ESMTPS id D58792661E;
 Wed,  7 Aug 2019 15:37:56 -0400 (EDT)
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Christopher Lemmer Webber <cwebber@HIDDEN>
In-reply-to: <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
Date: Wed, 07 Aug 2019 15:37:56 -0400
Message-ID: <87zhkkojfv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 50.116.34.160
X-Spam-Score: -1.3 (-)
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 (--)

Could you look at bug #36878 and commit 1db6f137d... as of latest
master, is this fixed?

Robert Vollmert writes:

> Could we get some input on this bug?
>
> Maybe I=E2=80=99m misunderstanding something, but it seems that a core gu=
ix
> feature (atomic rollbacks) doesn=E2=80=99t work=E2=80=A6
>
>> On 30. Jul 2019, at 12:00, Robert Vollmert <rob@HIDDEN> wrote:
>>=20
>> What I see:
>>=20
>> 1. edit ~/pzprnode/pzprnode
>>=20
>> rob@garp ~/pzprnode$ git diff
>> diff --git a/pzprnode b/pzprnode
>> index 612e6a8..d8ef0ea 100755
>> --- a/pzprnode
>> +++ b/pzprnode
>> @@ -190,5 +190,6 @@ const server =3D http.createServer((req, res) =3D> {
>> });
>>=20
>> server.listen(port, hostname, () =3D> {
>> +       console.log("updated version");
>>       console.log(`Server running at http://${hostname}:${port}/`);
>> });
>>=20
>> 2. sudo guix system reconfigure -L ~/garp-config ~/garp-config/config.scm
>> 3. sudo herd restart pzprnode
>> 4. less /var/log/messages
>>=20
>> Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been stopped=
.=20
>> Jul 30 11:46:57 localhost shepherd[1]: Service pzprnode has been started=
.=20
>> Jul 30 11:46:58 localhost pzprnode[4954]: updated version=20
>> Jul 30 11:46:58 localhost pzprnode[4954]: Server running at http://127.0=
.0.1:3456/=20
>>=20
>> 5. sudo guix system list-generations
>>=20
>> Generation 151	Jul 30 2019 10:37:06
>> file name: /var/guix/profiles/system-151-link
>> canonical file name: /gnu/store/jis33accsfpa068aps0a9mrycmjzfm4m-system
>> label: GNU with Linux-Libre 5.2.1
>> bootloader: grub
>> root device: label: "guix-root"
>> kernel: /gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bz=
Image
>> Generation 152	Jul 30 2019 11:43:13	(current)
>> file name: /var/guix/profiles/system-152-link
>> canonical file name: /gnu/store/3z3wmaj0399kihqc372y91nzcjxc1myl-system
>> label: GNU with Linux-Libre 5.2.1
>> bootloader: grub
>> root device: label: "guix-root"
>> kernel: /gnu/store/fp6wsvn10h1is0wkz8l2sbzjmjbzi7vr-linux-libre-5.2.1/bz=
Image
>>=20
>> 6. sudo guix system switch-generation 151
>>=20
>> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
>> The following derivation will be built:
>>  /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv
>> building /gnu/store/qvxbl3gm6406dbbkm8jigmpc8zi42lfw-grub.cfg.drv...
>> switched from generation 152 to 151
>>=20
>> 7. sudo herd restart pzprnode
>> 8. less /var/log/messages
>>=20
>> Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been stopped=
.=20
>> Jul 30 11:48:02 localhost shepherd[1]: Service pzprnode has been started=
.=20
>> Jul 30 11:48:03 localhost pzprnode[4994]: updated version=20
>> Jul 30 11:48:03 localhost pzprnode[4994]: Server running at http://127.0=
.0.1:3456/=20
>>=20
>> The line with =E2=80=9Cupdated version=E2=80=9D should not be there.
>>=20
>> Presumably, this is due to switch-generations not calling upgrade-shephe=
rd-services.
>>=20





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 07 Aug 2019 20:01:02 +0000
Resent-Message-ID: <handler.36855.B36855.156520803410378 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Christopher Lemmer Webber <cwebber@HIDDEN>
Cc: guix-devel@HIDDEN, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156520803410378
          (code B ref 36855); Wed, 07 Aug 2019 20:01:02 +0000
Received: (at 36855) by debbugs.gnu.org; 7 Aug 2019 20:00:34 +0000
Received: from localhost ([127.0.0.1]:39469 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hvS6q-0002fY-BT
	for submit <at> debbugs.gnu.org; Wed, 07 Aug 2019 16:00:34 -0400
Received: from ol.sdf.org ([205.166.94.20]:50740 helo=mx.sdf.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zerodaysfordays@HIDDEN>)
 id 1hvS6l-0002ZO-Ie
 for 36855 <at> debbugs.gnu.org; Wed, 07 Aug 2019 16:00:29 -0400
Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net
 [173.76.53.40]) (authenticated (0 bits))
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x77K0Oe9013573
 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO);
 Wed, 7 Aug 2019 20:00:25 GMT
From: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN>
Date: Wed, 07 Aug 2019 15:57:10 -0400
In-Reply-To: <87zhkkojfv.fsf@HIDDEN> (Christopher Lemmer Webber's
 message of "Wed, 07 Aug 2019 15:37:56 -0400")
Message-ID: <877e7on3zd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.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: -1.0 (-)

--=-=-=
Content-Type: text/plain

Hi Chris,

Christopher Lemmer Webber <cwebber@HIDDEN> writes:

> Could you look at bug #36878 and commit 1db6f137d... as of latest
> master, is this fixed?

Unfortunately, I don't think that 1db6f137d fixes this. The issue is a
bit more structural as 'switch-to-system-generation' doesn't call out to
'upgrade-shepherd-services'. I'm not sure if this was an intentional
decision or not (perhaps we can ask Ludo when he returns).

Regards,
Jakob

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1LLRYACgkQ9Qb9Fp2P
2Vph4A//cUuLKGk+70b9MEa5VKXtTqIcSN4duoJaZw/1/3PQxzE1k5vwBFTP9SWc
yPH+Ma1YOaiPYihPtkGZZpuEpsJAaXi+5bMBTeDVv41SameHN6qp85ftUp9utcVm
vRzMDfGL7PKbcxlMQZFSTMUrak3fXxAMFg09oVemG2jUOlT0jt6CJSi/gDceV8aD
ekGz9W/kw5z4tYgwHEooyUwg36tZiJ9bmPZMqWykMJatXCv5Y3xfniAC2YwHhCjd
ooahYY1YQd6RqRXzpo6LaJYsue6lq1fGdvsGQQFqZElqZHhEshpHgfcD+y7Z63PP
9MDmj+CAwsVT4NclYIFajEJGVXO/jWCqTz7dgu/r+QBq6OcrE4GCKqEyd3OpUSPM
Ah06+42PjVk6P5jwFgvjLOd5uoqlpdJEIWwjnYk7lElKEoNIVW6ZAsZ9KSLEKhZ8
S7+0dyrWtVymTBv4hCR4ozMaA8pNV+7Yy8h8DWzihKNIepLdbCfg+da5bAmQjeZ1
wViarkiJuCJSuU/YPl/gwWCjpCf9FlBP/NuZrmzMJcz6HbQlCJQGGkLtxXrbB7iS
fB3DrtSMShJMaGfDBTpJk4UYTuJHdwwWlavJYTXRChuuoAOp9pbtLz/1SX/j1MGS
/lZ8VAyVaK/Dj2sryI7xOJBebAYzf+QVJ7/XRWK/X2sYppxt0OM=
=qQfH
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Chris Marusich <cmmarusich@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 08 Aug 2019 16:41:02 +0000
Resent-Message-ID: <handler.36855.B36855.156528244623799 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
Cc: Christopher Lemmer Webber <cwebber@HIDDEN>, guix-devel@HIDDEN, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156528244623799
          (code B ref 36855); Thu, 08 Aug 2019 16:41:02 +0000
Received: (at 36855) by debbugs.gnu.org; 8 Aug 2019 16:40:46 +0000
Received: from localhost ([127.0.0.1]:41635 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hvlT3-0006Bm-Jl
	for submit <at> debbugs.gnu.org; Thu, 08 Aug 2019 12:40:45 -0400
Received: from mail-pl1-f193.google.com ([209.85.214.193]:42968)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cmmarusich@HIDDEN>) id 1hvlT1-0006BX-HV
 for 36855 <at> debbugs.gnu.org; Thu, 08 Aug 2019 12:40:44 -0400
Received: by mail-pl1-f193.google.com with SMTP id ay6so43807029plb.9
 for <36855 <at> debbugs.gnu.org>; Thu, 08 Aug 2019 09:40:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=qFCbPkq2gXnsFkfKf4uLg/lnvJRr/jRUaMCeDA+N5qk=;
 b=WCzSFlC6MY2Sy2C/tLGJyECdDlxqfVdC7cShezah2oU+ZtauSWX0Cmqh406yOAFVzp
 rTSOrNw9z++QeTjtSwrLl8P+YZASacamnBELQaJfGX5DOIUZfG4C8cp3Fvk0ri9h9fYj
 PC5zhk2BvA0PZgo1tuidbUeZsRWXRe+ahlUBnk9fgO2LV7umpOHfgKwPzbTv6uxUJn7V
 3xNvc+iUpH6fPsmPe+kyOhUBqU5VH7mJkNeQh2gsI3B9kRwtCpq7e2OR9kasjb5KgUkw
 FUr2XYIqQzRI96M5undwah4zyOaLDW/IDJkggYY42FFg1DkKdG0QJ4lKXALuUln0wU1d
 6ZzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=qFCbPkq2gXnsFkfKf4uLg/lnvJRr/jRUaMCeDA+N5qk=;
 b=LV6Cx/gJI74cFnITIef9m7FB4LzT2OsbmfQiL9u/z2rGyQZ3zNKOGUYtHbGGyKKAkL
 R1yDpXrlVaK51TLmeCRChFm3GgRemsmhiag68Nezd0n9bccz2h06WdWtC5HAcB4Kfxon
 zqGcuN8yq1eKmiocRrb4C4r2IGz5YrgOgWNY3jc/v9sPAya5W3apd5zFLCiYNeqS7KId
 wBTCBa7FpoAbTQqf1tPglF8bTUn6Q+BSzSIzzBKtajmSShosFJKJOkyawOzH2xudf0y5
 HIKov4UW7F7FoxjSLm5y5wXQBK3VWrmm0itWblz8lJwS57NwOdYuQ2idZg8yKol+Xh9W
 rQWA==
X-Gm-Message-State: APjAAAUvn61VWMRfPlAFhsbpU9i4X+PFaHTZrEtWG1sOHFxXXKm8+Y+C
 liN1COpx/lF1GV8xrnXZIsq8/ZrR
X-Google-Smtp-Source: APXvYqwd8R/HWtj14PYUB5DaddqmYoydr9RkotfvOPpYa8yMlVxeZKjPaM+3wRIgmPHPEr4FJw6FSg==
X-Received: by 2002:a17:902:7c90:: with SMTP id
 y16mr14894549pll.238.1565282436952; 
 Thu, 08 Aug 2019 09:40:36 -0700 (PDT)
Received: from garuda ([2607:fb90:837c:7b23:d90b:2eef:568b:a6f1])
 by smtp.gmail.com with ESMTPSA id r75sm120499509pfc.18.2019.08.08.09.40.34
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 08 Aug 2019 09:40:35 -0700 (PDT)
From: Chris Marusich <cmmarusich@HIDDEN>
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN> <877e7on3zd.fsf@HIDDEN>
Date: Thu, 08 Aug 2019 09:40:30 -0700
In-Reply-To: <877e7on3zd.fsf@HIDDEN> (Jakob L. Kreuze's message of
 "Wed, 07 Aug 2019 15:57:10 -0400")
Message-ID: <87h86ry5j5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.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: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Jakob,

zerodaysfordays@HIDDEN (Jakob L. Kreuze) writes:

> 'switch-to-system-generation' doesn't call out to
> 'upgrade-shepherd-services'. I'm not sure if this was an intentional
> decision or not

It is intentional, but only because there is currently no way to call
upgrade-shepherd-services when switching system generations.

Consider the procedure upgrade-shepherd-services: you must pass it an
<operating-system> record.  When you are flipping from one generation to
another, how do you get the <operating-system> record that was used for
the generation you're switching to?  Guix doesn't currently store the
operating system configuration file or its <operating-system> record
anywhere, so we can't call upgrade-shepherd-services.

This was discussed in 2016 and we agreed we need to persist some
information to enable us to handle Shepherd services correctly.  This is
what Ludo suggested at the time:

https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00173.html

"Maybe we could store in the system output (result of =E2=80=98guix system
build=E2=80=99) an sexp representation of (part of) our <shepherd-service>
records:

  (shepherd-service
    (provisions (x y z))
    (requirements (a b c))
    (start-script "/gnu/store/=E2=80=A6-start-foo.scm")
    (stop-script "/gnu/store/=E2=80=A6-stop-foo.scm")
    =E2=80=A6)

Then =E2=80=98upgrade-shepherd-services=E2=80=99 could start from this simp=
lified
representation instead of using the full-blown <shepherd-service>
objects, and thus could work both when instantiating a new generation
and when rolling back."

Until that happens, you'll always have to reboot to complete the
switch.

FYI, last I checked (about 3 years ago), in NixOS they took a slightly
different approach: instead of storing state describing the previous
system generation and relying on the current system's logic to correctly
parse it and use it to revert the system to a prior configuration, they
just dump everything into a self-contained script that knows how to
update the entire system to one specific configuration.  That approach
is nice in some ways because switching generations is dead simple - you
just run the switching script belonging to the generation you want to
switch to - but it also has downsides.

For example, if the target generation is old enough compared to the
current system, then the target generation's old switching script might
not understand how to deal with the current system correctly.  Instead,
if you only store the bare minimum of state required to take the right
actions, and you implement the meat of the logic in the current Guix
installation, you are more likely to be able to switch generations even
to very old ones where the world was very different, since the current
Guix can be taught how to deal gracefully with the old world.  But it
seems more complicated.  It's all about trade-offs.

That said, I've never gone back to implement this.  If you want to give
it a try, you're more than welcome to do so!

=2D-=20
Chris

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAl1MUH4ACgkQ3UCaFdgi
Rp3y+hAAsKd93p6eAbVyYpZ/RFPBv47+yxJ3Lu0vmYNzch9MeZtlpNpyhQLeLvtw
7qUCxxB9Lht1gveqRnuqByXjV8aIHXpflMdoV8TF0nfEShFNbYGaN2ZDgKURNxiz
9Cpa8Oso7OsQ33HhJVSIn8vK00yZXH7bRyoGZeWrHW/G4mUKVv+R05qcBx9SmJY8
Aa94WEi5ei5XQYj43YHHctb/W91b7/eNoXQf61pdBVFVDUc/Q/5w3eG6p5Ywq7OT
DAaW5klERz5xqanx78KxBblDIh3TjQgo28MCeVJMAeHThOMSKrh2v0iBy/ORaVeD
ckzIsdmviVutbBYjVOdphn2uvAjqXc1zFiQ1ypFB8P6+qOZuxQFJr/sGIvFtKZ1M
fqz027obBpIa8iVWBYQg5xgmoL/qkEiw8x5/aVVbxm2P7cpmh6pNn3UV65uZ5wM/
sGabloJcYwR45S/IAdZ69xdbqeltR3JPaFiS5Yj1kDvXzXewv/gxypGaVGZn2py6
119Db0JqB5nlZU6kdpGHOriNPy1kRLjb77B7JFprBhESfDmNZToF0/emDPpJyOkA
Q9fvNhsjuqkOWSrbjDMG7HvV9MWsvVBPTnbDgO1Oq7GJdXl1W0dyzsxeWSgCb18L
Vbj7WhWYqIVOfeZ5jayscze9tD5ZE6UI50Gx1MHDCwWrUd7GuHA=
=iNTf
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Robert Vollmert <rob@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 08 Aug 2019 17:04:01 +0000
Resent-Message-ID: <handler.36855.B36855.156528383926632 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Chris Marusich <cmmarusich@HIDDEN>
Cc: guix-devel@HIDDEN, "Jakob L. Kreuze" <zerodaysfordays@HIDDEN>, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156528383926632
          (code B ref 36855); Thu, 08 Aug 2019 17:04:01 +0000
Received: (at 36855) by debbugs.gnu.org; 8 Aug 2019 17:03:59 +0000
Received: from localhost ([127.0.0.1]:41639 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hvlpV-0006vS-Kv
	for submit <at> debbugs.gnu.org; Thu, 08 Aug 2019 13:03:59 -0400
Received: from mx2.mailbox.org ([80.241.60.215]:40162)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rob@HIDDEN>) id 1hvlpQ-0006vC-Ih
 for 36855 <at> debbugs.gnu.org; Thu, 08 Aug 2019 13:03:54 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx2.mailbox.org (Postfix) with ESMTPS id 8B298A0141;
 Thu,  8 Aug 2019 19:03:46 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de
 [80.241.56.122]) (amavisd-new, port 10030)
 with ESMTP id bFy_IlSiD1SJ; Thu,  8 Aug 2019 19:03:41 +0200 (CEST)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Robert Vollmert <rob@HIDDEN>
In-Reply-To: <87h86ry5j5.fsf@HIDDEN>
Date: Thu, 8 Aug 2019 19:03:38 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <51A8B412-1AE3-4464-8146-DE8B19B7C4DF@HIDDEN>
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN> <877e7on3zd.fsf@HIDDEN>
 <87h86ry5j5.fsf@HIDDEN>
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 (-)

On 8. Aug 2019, at 18:40, Chris Marusich <cmmarusich@HIDDEN> wrote:
> zerodaysfordays@HIDDEN (Jakob L. Kreuze) writes:
>=20
>> 'switch-to-system-generation' doesn't call out to
>> 'upgrade-shepherd-services'. I'm not sure if this was an intentional
>> decision or not
>=20
> It is intentional, but only because there is currently no way to call
> upgrade-shepherd-services when switching system generations.

How does shepherd work on a non-guix system? Can=E2=80=99t be it be =
configured
like other daemons to read its configuration from a file, e.g. from

   /run/current-system/etc/shepherd.conf

and be told via signal to reload its configuration from disk?

=E2=80=A6

(I feel a bit cheated right now. This behaviour makes Guix System =
entirely
unsuitable for server use. It shouldn=E2=80=99t be advertised as =
supporting
transactional upgrades and rollbacks if those require a reboot.)





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Chris Marusich <cmmarusich@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 09 Aug 2019 07:36:01 +0000
Resent-Message-ID: <handler.36855.B36855.156533615915989 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Robert Vollmert <rob@HIDDEN>
Cc: guix-devel@HIDDEN, "Jakob L. Kreuze" <zerodaysfordays@HIDDEN>, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156533615915989
          (code B ref 36855); Fri, 09 Aug 2019 07:36:01 +0000
Received: (at 36855) by debbugs.gnu.org; 9 Aug 2019 07:35:59 +0000
Received: from localhost ([127.0.0.1]:42015 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hvzRP-00049o-Fs
	for submit <at> debbugs.gnu.org; Fri, 09 Aug 2019 03:35:59 -0400
Received: from mail-pg1-f181.google.com ([209.85.215.181]:46085)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cmmarusich@HIDDEN>) id 1hvzRN-00049Z-EH
 for 36855 <at> debbugs.gnu.org; Fri, 09 Aug 2019 03:35:58 -0400
Received: by mail-pg1-f181.google.com with SMTP id w3so8223709pgt.13
 for <36855 <at> debbugs.gnu.org>; Fri, 09 Aug 2019 00:35:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=GAkcq5nvQKoyrJqiIa0uGHbHHGzsAsjJxwo4yJzvrGE=;
 b=SzxxQRwDXScjN7SNo4IzekHvNRgZeJG2x5EDhVWDOlmdF1e2HV+WIbfRAt7KlWx0EI
 W5NcoEBgbRZHTAMXL2OpVbGmIcwUK9PlWzNOGWP9eoe17L8YIBr/D25SgHg9nVTN/Yms
 mkRtsC5ye83MQs/DueUsuuCGoANwdf2X8xAmN7FNbY/mWcSQgepTiYmRMB7k/+2FOiPD
 +YvPRGWk5eja1VPYtYHyLN0V9KwXWKUBHuYg9cPPkYKINSfmS53MQ+KG8wPG3NFab3LN
 9Ht+TYppeAMXOZIpw+KB2Oftlu0qRR78AkkQKM8+ETBXq078YQEjC+8aSAdtxfudqmIU
 bawg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=GAkcq5nvQKoyrJqiIa0uGHbHHGzsAsjJxwo4yJzvrGE=;
 b=BgDeXX7Eb9EsxhjZp0EgAa+ph5kVZ5nvHugIXqqmjr858knnhbz1iusxqkqdeungji
 Dk4NlNPJxl1LikZMpRB4dvvdeSIU8vrIablBxjFBv/XiYoVWgS7laOxkOboIU+syEyDM
 GlCZv7zWZCtwgwEHUC/9cFJn6dNvrz7y6ldq0qtULCtpW/DYtOHzTNhEK1Z7eWXBrxtc
 ylPbI7BJsgSN0uOPx0jDBvUrufBVhAdHXaNisEFsHUnb6kX7mCcDJdpmutAOjxxqv0yc
 3xZBS6KsOPqwj+/WY9oT0bDWhx6pjU+10BTQ+h7JphT3jwUbXFRxuXclfRTQ9Kzs8xMu
 fC8Q==
X-Gm-Message-State: APjAAAWlDgQeSOoRCMtb1mMcmGOtGDHY7k4yKmB6p6nKv80qwvxganvF
 dCRjRfwcSH4UdSoNtawBhhqlV9NBr/w=
X-Google-Smtp-Source: APXvYqyhmXFVGZcA4tBHcq0ZmnMoaHGIrvO3mmfqfrUsa+JkGKy65bnBfzaojEXXVZcuK2XpY5lr/g==
X-Received: by 2002:a65:5a86:: with SMTP id c6mr15152215pgt.95.1565336150967; 
 Fri, 09 Aug 2019 00:35:50 -0700 (PDT)
Received: from garuda ([2601:601:9d80:25b2:d90b:2eef:568b:a6f1])
 by smtp.gmail.com with ESMTPSA id h9sm108327616pgk.10.2019.08.09.00.35.48
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 09 Aug 2019 00:35:49 -0700 (PDT)
From: Chris Marusich <cmmarusich@HIDDEN>
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN> <877e7on3zd.fsf@HIDDEN>
 <87h86ry5j5.fsf@HIDDEN>
 <51A8B412-1AE3-4464-8146-DE8B19B7C4DF@HIDDEN>
Date: Fri, 09 Aug 2019 00:35:44 -0700
In-Reply-To: <51A8B412-1AE3-4464-8146-DE8B19B7C4DF@HIDDEN> (Robert
 Vollmert's message of "Thu, 8 Aug 2019 19:03:38 +0200")
Message-ID: <87o90yvlin.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.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: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Robert,

Robert Vollmert <rob@HIDDEN> writes:

> On 8. Aug 2019, at 18:40, Chris Marusich <cmmarusich@HIDDEN> wrote:
>> zerodaysfordays@HIDDEN (Jakob L. Kreuze) writes:
>>=20
>>> 'switch-to-system-generation' doesn't call out to
>>> 'upgrade-shepherd-services'. I'm not sure if this was an intentional
>>> decision or not
>>=20
>> It is intentional, but only because there is currently no way to call
>> upgrade-shepherd-services when switching system generations.
>
> How does shepherd work on a non-guix system? Can=E2=80=99t be it be confi=
gured
> like other daemons to read its configuration from a file, e.g. from
>
>    /run/current-system/etc/shepherd.conf
>
> and be told via signal to reload its configuration from disk?

Maybe!  In the email thread I linked, Ludo talked about storing a
description of the Shepherd services in the system generation for future
reference.  Maybe we could store it in a place like this, and maybe
Shepherd already has mechanisms for reloading configurations like this.
I don't intend to work on this because I need to focus on other things
right now, but I would be happy if someone took up this work!

> (I feel a bit cheated right now. This behaviour makes Guix System entirely
> unsuitable for server use. It shouldn=E2=80=99t be advertised as supporti=
ng
> transactional upgrades and rollbacks if those require a reboot.)

I agree that Guix should update as many Shepherd services as it can when
switching generations.  However, I don't think it's inaccurate to say
that Guix supports transactional upgrades and rollbacks.  When you
invoke "guix system switch-generation", the system profile symlink is
flipped atomically, so you get an atomic update from one version of the
system to another.  Software running in the system never sees an
inconsistent view of the system.  Contrast this with nearly any other
mutable GNU/Linux system, in which files are more or less sprayed into
the existing file system with no guarantee of consistency or atomicity.

=2D-=20
Chris

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAl1NIlAACgkQ3UCaFdgi
Rp2VIw//US1/6CiS04hRQjoDqQ84bx59a3iownqkYyiAL/94IUUetS4ZNSg5nQ4A
Pir0iD/3vJEsXLnBzKwH7AcC8mRYI3AUviv+AT7LYKuM95UVOeqp1iuUKlzCQRXl
szOwI19vOJKFHrpjPEcwev1/c5Y2hYMW2rRTuajfvkeS2QNiLzNODMMjkksDcHVT
tezSf72AtLL74+qXsmDidJpLYXbJ60EK4hFEztJcJLRekN5B0tT06W9qpsRCtNoB
O8j8BHLDFvQXj9+2fj1TXGLYnUu0UbmgxoAaykCVIB9RxcWCfoq/ZHxT2SxUiHBG
9HxBKaRnCdXHcGdHiH9vuVjg7vFTBkYHBTFs9Z8rhEzWhoCcXVozbGEY33OUPcdn
0aNqWsQX4er5ewWiDK6Rkw1XrCpl/Jxe+BKLjTIO/UuWAHhpF87Hcqznddzjuerp
W6zNXmo0HnweObv/VjWOyf3u+9kwMBRjxXO1FOSZD5D7DAAZewfKE/9CVSbrsjn5
yubVoCB/Yb4ZPJ33w3oXQVHnxL4yrbv3DMdQYNNLkdfQc9n6m3d8nnpsaHTkEmaY
9UdLCpeKN75QVyh66comhZbmkNQ6I7vGypqTDVo12/09aF7YLCDC9AiKYvZ4TYD9
dq7znOudwA72iyxRSM+JRPDmvXXNIr9ypSHjBrPjX6vY8LX882M=
=fHHl
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 26 Aug 2019 10:08:01 +0000
Resent-Message-ID: <handler.36855.B36855.156681405826071 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Chris Marusich <cmmarusich@HIDDEN>
Cc: guix-devel@HIDDEN, "Jakob L. Kreuze" <zerodaysfordays@HIDDEN>, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156681405826071
          (code B ref 36855); Mon, 26 Aug 2019 10:08:01 +0000
Received: (at 36855) by debbugs.gnu.org; 26 Aug 2019 10:07:38 +0000
Received: from localhost ([127.0.0.1]:45628 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i2BuU-0006mQ-1e
	for submit <at> debbugs.gnu.org; Mon, 26 Aug 2019 06:07:38 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53980)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1i2BuS-0006mE-VK
 for 36855 <at> debbugs.gnu.org; Mon, 26 Aug 2019 06:07:37 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:37145)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1i2BuN-0002I0-PN; Mon, 26 Aug 2019 06:07:31 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=47550 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1i2BuN-0001oH-4I; Mon, 26 Aug 2019 06:07:31 -0400
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN> <877e7on3zd.fsf@HIDDEN>
 <87h86ry5j5.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 9 Fructidor an 227 de la =?UTF-8?Q?R=C3=A9volution?=
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, 26 Aug 2019 12:07:29 +0200
In-Reply-To: <87h86ry5j5.fsf@HIDDEN> (Chris Marusich's message of "Thu, 08
 Aug 2019 09:40:30 -0700")
Message-ID: <874l241bq6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

Hey Chris & Jakob,

Chris Marusich <cmmarusich@HIDDEN> skribis:

> zerodaysfordays@HIDDEN (Jakob L. Kreuze) writes:
>
>> 'switch-to-system-generation' doesn't call out to
>> 'upgrade-shepherd-services'. I'm not sure if this was an intentional
>> decision or not
>
> It is intentional, but only because there is currently no way to call
> upgrade-shepherd-services when switching system generations.

[...]

> FYI, last I checked (about 3 years ago), in NixOS they took a slightly
> different approach: instead of storing state describing the previous
> system generation and relying on the current system's logic to correctly
> parse it and use it to revert the system to a prior configuration, they
> just dump everything into a self-contained script that knows how to
> update the entire system to one specific configuration.  That approach
> is nice in some ways because switching generations is dead simple - you
> just run the switching script belonging to the generation you want to
> switch to - but it also has downsides.

Jakob, now that we generate scripts for the effectful bits of system
reconfiguration (one of these bits being service upgrades), couldn=E2=80=99=
t we
take it one step further and store those scripts in the =E2=80=9Csystem=E2=
=80=9D
derivation so we can run them eventually, notably upon
=E2=80=98switch-generation=E2=80=99?

> For example, if the target generation is old enough compared to the
> current system, then the target generation's old switching script might
> not understand how to deal with the current system correctly.  Instead,
> if you only store the bare minimum of state required to take the right
> actions, and you implement the meat of the logic in the current Guix
> installation, you are more likely to be able to switch generations even
> to very old ones where the world was very different, since the current
> Guix can be taught how to deal gracefully with the old world.  But it
> seems more complicated.  It's all about trade-offs.

Indeed.  The important thing to me is that from the GRUB menu you can
really switch to any generation.  I=E2=80=99ve actually never used
=E2=80=98switch-generations=E2=80=99 on my laptop, but technically, I feel =
like storing
the =E2=80=9Cswitch-to-system=E2=80=9D script would be the easiest way.

Thanks,
Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Mark H Weaver <mhw@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 26 Aug 2019 18:53:01 +0000
Resent-Message-ID: <handler.36855.B36855.15668455291846 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: guix-devel@HIDDEN, Chris Marusich <cmmarusich@HIDDEN>, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.15668455291846
          (code B ref 36855); Mon, 26 Aug 2019 18:53:01 +0000
Received: (at 36855) by debbugs.gnu.org; 26 Aug 2019 18:52:09 +0000
Received: from localhost ([127.0.0.1]:47224 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i2K65-0000Ti-2x
	for submit <at> debbugs.gnu.org; Mon, 26 Aug 2019 14:52:09 -0400
Received: from world.peace.net ([64.112.178.59]:46014)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mhw@HIDDEN>) id 1i2K63-0000Ta-Bz
 for 36855 <at> debbugs.gnu.org; Mon, 26 Aug 2019 14:52:07 -0400
Received: from mhw by world.peace.net with esmtpsa
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89)
 (envelope-from <mhw@HIDDEN>)
 id 1i2K62-0006F8-D5; Mon, 26 Aug 2019 14:52:06 -0400
From: Mark H Weaver <mhw@HIDDEN>
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN> <877e7on3zd.fsf@HIDDEN>
 <87h86ry5j5.fsf@HIDDEN>
 <874l241bq6.fsf__35802.4716888153$1566814098$gmane$org@HIDDEN>
Date: Mon, 26 Aug 2019 14:51:27 -0400
In-Reply-To: <874l241bq6.fsf__35802.4716888153$1566814098$gmane$org@HIDDEN>
 ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22's\?\= message of "Mon, 26 Aug 2019
 12:07:29 +0200")
Message-ID: <87woezoj3p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.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: -1.0 (-)

Hi,

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Jakob, now that we generate scripts for the effectful bits of system
> reconfiguration (one of these bits being service upgrades), couldn=E2=80=
=99t we
> take it one step further and store those scripts in the =E2=80=9Csystem=
=E2=80=9D
> derivation so we can run them eventually, notably upon
> =E2=80=98switch-generation=E2=80=99?

As a bonus, this approach might solve another issue I've observed: on my
Guix system, where I build everything locally, several derivations are
built *during* activation.  Based on the terminal output, I get the
impression that the system is compiling things while the system in an
intermediate state, when some of the activation steps have been done,
but not all of them.

As I recall, the derivations built during activation are limited to
compiled modules for Guile, but it still sometimes takes on the order of
a minute or two on my laptop to complete the "activating system" steps.
This seems suboptimal.

The next time I update my system, I'll try to remember to keep a
transcript of this, so that I can be more specific.

      Best,
       Mark




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Mark H Weaver <mhw@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 28 Aug 2019 00:35:01 +0000
Resent-Message-ID: <handler.36855.B36855.156695249125501 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: guix-devel@HIDDEN, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156695249125501
          (code B ref 36855); Wed, 28 Aug 2019 00:35:01 +0000
Received: (at 36855) by debbugs.gnu.org; 28 Aug 2019 00:34:51 +0000
Received: from localhost ([127.0.0.1]:49623 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i2lvH-0006dF-Ao
	for submit <at> debbugs.gnu.org; Tue, 27 Aug 2019 20:34:51 -0400
Received: from world.peace.net ([64.112.178.59]:48670)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mhw@HIDDEN>) id 1i2lvG-0006d7-8Y
 for 36855 <at> debbugs.gnu.org; Tue, 27 Aug 2019 20:34:50 -0400
Received: from mhw by world.peace.net with esmtpsa
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89)
 (envelope-from <mhw@HIDDEN>)
 id 1i2lvF-00047E-7J; Tue, 27 Aug 2019 20:34:49 -0400
From: Mark H Weaver <mhw@HIDDEN>
In-Reply-To: <87woezoj3p.fsf__10757.9769611888$1566845612$gmane$org@HIDDEN>
 (Mark H. Weaver's message of "Mon, 26 Aug 2019 14:51:27 -0400")
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN> <877e7on3zd.fsf@HIDDEN>
 <87h86ry5j5.fsf@HIDDEN>
 <874l241bq6.fsf__35802.4716888153$1566814098$gmane$org@HIDDEN>
 <87woezoj3p.fsf__10757.9769611888$1566845612$gmane$org@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
Date: Tue, 27 Aug 2019 20:34:10 -0400
Message-ID: <87tva2m8ki.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.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: -1.0 (-)

Hello again,

Mark H Weaver <mhw@HIDDEN> writes:

> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:
>
>> Jakob, now that we generate scripts for the effectful bits of system
>> reconfiguration (one of these bits being service upgrades), couldn=E2=80=
=99t we
>> take it one step further and store those scripts in the =E2=80=9Csystem=
=E2=80=9D
>> derivation so we can run them eventually, notably upon
>> =E2=80=98switch-generation=E2=80=99?
>
> As a bonus, this approach might solve another issue I've observed: on my
> Guix system, where I build everything locally, several derivations are
> built *during* activation.  Based on the terminal output, I get the
> impression that the system is compiling things while the system in an
> intermediate state, when some of the activation steps have been done,
> but not all of them.
>
> As I recall, the derivations built during activation are limited to
> compiled modules for Guile, but it still sometimes takes on the order of
> a minute or two on my laptop to complete the "activating system" steps.
> This seems suboptimal.
>
> The next time I update my system, I'll try to remember to keep a
> transcript of this, so that I can be more specific.

Here's a transcript:

--8<---------------cut here---------------start------------->8---
activating system...
building /gnu/store/fbp6bbxw9cf617fmk57sddrz7zfsfw5p-module-import-compiled=
.drv...
building /gnu/store/wfi6hnr9ggal0s1d32xx5wbl5k5wqlvx-switch-to-system.scm.d=
rv...
making '/gnu/store/mjzk53ia3bajn08lscpyzz5apcw3r70g-system' the current sys=
tem...
setting up setuid programs in '/run/setuid-programs'...
populating /etc from /gnu/store/l7r1has973n26hfqrs6vxbi94xzgh360-etc...
building /gnu/store/h2fqcxv3xx14lkdhyphm3lawkayw7sdl-module-import-compiled=
.drv...
building /gnu/store/dar9smjyxmri6v6cchnmp5mpyiimyx64-install-bootloader.scm=
.drv...
guix system: bootloader successfully installed on '/dev/sda'
building /gnu/store/vkk3h5p799lfpmf6msdhrzlq0wqvk3zq-module-import-compiled=
.drv...
building /gnu/store/hn8sr8p13gg2mf379xawscabckp03fkb-upgrade-shepherd-servi=
ces.scm.drv...
shepherd: Evaluating user expression (let* ((services (map primitive-load (=
?))) # ?) ?).
guix system: warning: only 3.9% of free space available on /gnu/store
hint: Consider deleting old profile generations and collecting garbage, alo=
ng these lines:

     guix gc --delete-generations=3D1m

--8<---------------cut here---------------end--------------->8---

       Mark




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 28 Aug 2019 18:29:02 +0000
Resent-Message-ID: <handler.36855.B36855.156701693916824 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: guix-devel@HIDDEN, Chris Marusich <cmmarusich@HIDDEN>, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156701693916824
          (code B ref 36855); Wed, 28 Aug 2019 18:29:02 +0000
Received: (at 36855) by debbugs.gnu.org; 28 Aug 2019 18:28:59 +0000
Received: from localhost ([127.0.0.1]:51200 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i32gl-0004NH-Bs
	for submit <at> debbugs.gnu.org; Wed, 28 Aug 2019 14:28:59 -0400
Received: from mx.sdf.org ([205.166.94.20]:57343)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zerodaysfordays@HIDDEN>)
 id 1i32gi-0004N6-Dd
 for 36855 <at> debbugs.gnu.org; Wed, 28 Aug 2019 14:28:58 -0400
Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net
 [173.76.53.40]) (authenticated (0 bits))
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x7SISrF5004321
 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO);
 Wed, 28 Aug 2019 18:28:54 GMT
From: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN> <877e7on3zd.fsf@HIDDEN>
 <87h86ry5j5.fsf@HIDDEN> <874l241bq6.fsf@HIDDEN>
Date: Wed, 28 Aug 2019 14:28:39 -0400
In-Reply-To: <874l241bq6.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Mon, 26 Aug 2019 12:07:29 +0200")
Message-ID: <8736hlp2js.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.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: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Ludo,

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Jakob, now that we generate scripts for the effectful bits of system
> reconfiguration (one of these bits being service upgrades), couldn=E2=80=
=99t
> we take it one step further and store those scripts in the =E2=80=9Csyste=
m=E2=80=9D
> derivation so we can run them eventually, notably upon
> =E2=80=98switch-generation=E2=80=99?

We'd need to find a way of serializing at least the relationships
between services, but I think it's possible (albeit quite involved). I
do really like the idea, though. That way, the system generation would
fully encompass the desired state of the system.

Regards,
Jakob

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1mx9cACgkQ9Qb9Fp2P
2Vr6ug/7BAHt99XLSlA1NNqfodZ7hW+jlTAmfM/RXEC9yWbccpHICaxvncwzqtTz
1u6FaCNkz853Q4lCwh+xxNSHGD1IryxjjIXcosO2mQuqnujLjzHlQxmPMRMZTf0p
wiYtDE1vZXPOuuamwJg2+ETSYq3XwRCUztTC1u7d2Z4Ss6fBNGbG6+sTNoLyccbj
wdKk6phulg2HysKpzbJzxHWJ2G+sZ8xcOwXHuffEz4GGYGEj7SH7jhMTgYvdRHiA
ZGB16FQJ8UEupmmJ5XuC028G10RVUkBfLbkrKKAYLDuo14sqoGkPn+95s4ezwmxJ
JI5ODviO9dCkkOcTvnmQbRLMo2n8pLfRXo4JI5BDVvhRbP0IGX/GWStHFYH0pdrb
Gdfy+MIM7/lWDUH/cjXl+Md5biLBXpyxZ071sf8fZm0tmYJrB7iSpguLl2ROQWiQ
WkCe29JsMSNzACxmF4isnuy5ZTNr/2pp4xmUAVx7+xoy8ZamIAjGR1z0FSXBFp0I
WgFNllBHNDN9Wn9xPZIU5cfDMvAmJq9Ifvp5HnpyJZa10E3b0+6ZM4cP3rC5jAY7
vutgtwm2YIAqa2qQJlEa8wcxFRPm3yByrcE+UHidFnii0e/a0D4X2pL7igw6/tnR
QxvXXNRUHOK+Ysno0kyOUYJTn6OTCrkdmhduPx/BmlaSw5QaK48=
=Mllt
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 28 Aug 2019 18:34:01 +0000
Resent-Message-ID: <handler.36855.B36855.156701721517452 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Mark H Weaver <mhw@HIDDEN>
Cc: guix-devel@HIDDEN, Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156701721517452
          (code B ref 36855); Wed, 28 Aug 2019 18:34:01 +0000
Received: (at 36855) by debbugs.gnu.org; 28 Aug 2019 18:33:35 +0000
Received: from localhost ([127.0.0.1]:51204 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i32lC-0004XN-Ul
	for submit <at> debbugs.gnu.org; Wed, 28 Aug 2019 14:33:35 -0400
Received: from mx.sdf.org ([205.166.94.20]:56523)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zerodaysfordays@HIDDEN>)
 id 1i32lA-0004XD-T7
 for 36855 <at> debbugs.gnu.org; Wed, 28 Aug 2019 14:33:33 -0400
Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net
 [173.76.53.40]) (authenticated (0 bits))
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x7SIXUE5010040
 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO);
 Wed, 28 Aug 2019 18:33:31 GMT
From: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN> <877e7on3zd.fsf@HIDDEN>
 <87h86ry5j5.fsf@HIDDEN>
 <874l241bq6.fsf__35802.4716888153$1566814098$gmane$org@HIDDEN>
 <87woezoj3p.fsf__10757.9769611888$1566845612$gmane$org@HIDDEN>
 <87tva2m8ki.fsf@HIDDEN>
Date: Wed, 28 Aug 2019 14:33:18 -0400
In-Reply-To: <87tva2m8ki.fsf@HIDDEN> (Mark H. Weaver's message of "Tue, 27
 Aug 2019 20:34:10 -0400")
Message-ID: <87y2zdnnrl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.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: -1.0 (-)

--=-=-=
Content-Type: text/plain

Hi Mark,

Mark H Weaver <mhw@HIDDEN> writes:

> Hello again,
>
> Mark H Weaver <mhw@HIDDEN> writes:
>
>> As a bonus, this approach might solve another issue I've observed: on my
>> Guix system, where I build everything locally, several derivations are
>> built *during* activation.  Based on the terminal output, I get the
>> impression that the system is compiling things while the system in an
>> intermediate state, when some of the activation steps have been done,
>> but not all of them.
>>
>> As I recall, the derivations built during activation are limited to
>> compiled modules for Guile, but it still sometimes takes on the order of
>> a minute or two on my laptop to complete the "activating system" steps.
>> This seems suboptimal.
>>
>> The next time I update my system, I'll try to remember to keep a
>> transcript of this, so that I can be more specific.
>
> Here's a transcript:
>
> activating system...
> building /gnu/store/fbp6bbxw9cf617fmk57sddrz7zfsfw5p-module-import-compiled.drv...
> building /gnu/store/wfi6hnr9ggal0s1d32xx5wbl5k5wqlvx-switch-to-system.scm.drv...
> making '/gnu/store/mjzk53ia3bajn08lscpyzz5apcw3r70g-system' the current system...
> setting up setuid programs in '/run/setuid-programs'...
> populating /etc from /gnu/store/l7r1has973n26hfqrs6vxbi94xzgh360-etc...
> building /gnu/store/h2fqcxv3xx14lkdhyphm3lawkayw7sdl-module-import-compiled.drv...
> building /gnu/store/dar9smjyxmri6v6cchnmp5mpyiimyx64-install-bootloader.scm.drv...
> guix system: bootloader successfully installed on '/dev/sda'
> building /gnu/store/vkk3h5p799lfpmf6msdhrzlq0wqvk3zq-module-import-compiled.drv...
> building /gnu/store/hn8sr8p13gg2mf379xawscabckp03fkb-upgrade-shepherd-services.scm.drv...
> shepherd: Evaluating user expression (let* ((services (map primitive-load (?))) # ?) ?).
> guix system: warning: only 3.9% of free space available on /gnu/store
> hint: Consider deleting old profile generations and collecting garbage, along these lines:
>
>      guix gc --delete-generations=1m
>
>        Mark

Thanks for the input; I wasn't aware that the activation process was
taking so long for some people. One of Ludovic's suggestions was to
create a single derivation, rather than three, to speed up system
activation. I'll look into this further.

Regards,
Jakob

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1myO4ACgkQ9Qb9Fp2P
2Vo4AA/9FVJyp6OfbInjB/I0Ds27/CbzT3AO+EB4Oy0XYbQtowNhIcraLR0/yxRh
9Zar+zosHG/WOtA9UI76KZL3ZopijwRO+JFe6X6F9iNmwBBf8J5TyL4OmIHR+a/4
NlGbvZauS18HXzrrcV7NN1MpVWLLaHacM5DAboCDUFW2a+u4NaJOwC3yu/1lCaIe
oAhBo9Tlde/xb8kiMHrmmGxAFUXiXOZ4tOeS6E1G9yWkqPlAbfzVyvCtnM2K3xVx
BLudy3MvbCX4Fid12kTiAAOpjM/G4mQmY+99pf5Edv/f8iHhfNiQ6YZk5Wt265MN
UUxi2G0PX3lNONO9YUbD0KKZAEmAaS4QVab2LpqBBcTw2axQ5CfYYgh1MobgU5Vi
j18EkXEMj6rQ3Xp/6c1B2kBTKG3oUqChaaX+caOg9bXKoSq3GTdiT/mY6t/KxkQF
47no41V5YhgrC6LHVZ3f9wk/yjh0DorRy/kMyI5/E7Zwhv5h+6cA1xFsPIdIkQ6y
V96+Voz2TFqOLs4kFmPVWNWN5ceTqgXPXBqv847aLOelLoWu0njHUUJLf0LjeGm4
ptZbtnt6a60MCEM6mxqmx7Z6qizVofYOLwNP0k9iURkVKyHYqmJRCZFcm8FlfbMV
Xf4NQ1x5CMWXI4O8jhk1Lzwagg4tk3JjBweUTx0K61oufEZsADg=
=8OXh
-----END PGP SIGNATURE-----
--=-=-=--




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: Mark H Weaver <mhw@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 28 Aug 2019 18:48:02 +0000
Resent-Message-ID: <handler.36855.B36855.156701806318963 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
Cc: guix-devel@HIDDEN, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.156701806318963
          (code B ref 36855); Wed, 28 Aug 2019 18:48:02 +0000
Received: (at 36855) by debbugs.gnu.org; 28 Aug 2019 18:47:43 +0000
Received: from localhost ([127.0.0.1]:51208 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i32yt-0004vn-A7
	for submit <at> debbugs.gnu.org; Wed, 28 Aug 2019 14:47:43 -0400
Received: from world.peace.net ([64.112.178.59]:50714)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mhw@HIDDEN>) id 1i32yo-0004vY-Id
 for 36855 <at> debbugs.gnu.org; Wed, 28 Aug 2019 14:47:41 -0400
Received: from mhw by world.peace.net with esmtpsa
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89)
 (envelope-from <mhw@HIDDEN>)
 id 1i32yn-0003rB-ET; Wed, 28 Aug 2019 14:47:37 -0400
From: Mark H Weaver <mhw@HIDDEN>
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN> <877e7on3zd.fsf@HIDDEN>
 <87h86ry5j5.fsf@HIDDEN>
 <874l241bq6.fsf__35802.4716888153$1566814098$gmane$org@HIDDEN>
 <87woezoj3p.fsf__10757.9769611888$1566845612$gmane$org@HIDDEN>
 <87tva2m8ki.fsf@HIDDEN>
 <87y2zdnnrl.fsf__16000.9061962896$1567017269$gmane$org@HIDDEN>
Date: Wed, 28 Aug 2019 14:46:56 -0400
In-Reply-To: <87y2zdnnrl.fsf__16000.9061962896$1567017269$gmane$org@HIDDEN>
 (Jakob L. Kreuze's message of "Wed, 28 Aug 2019 14:33:18 -0400")
Message-ID: <875zmhm8jo.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.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: -1.0 (-)

Hi Jakob,

zerodaysfordays@HIDDEN (Jakob L. Kreuze) writes:

> Thanks for the input; I wasn't aware that the activation process was
> taking so long for some people. One of Ludovic's suggestions was to
> create a single derivation, rather than three, to speed up system
> activation. I'll look into this further.

To be clear, I don't care how long it takes to build these derivations.
However, I think they should all be built before starting to activate
the system.  Does that make sense?

On a side note, what would happen if one of those builds failed?  Would
the system activation be left half-done?

     Thanks,
       Mark




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36855: guix system switch-generation doesn't
Resent-From: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 29 Aug 2019 00:09:01 +0000
Resent-Message-ID: <handler.36855.B36855.15670373324070 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36855
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Mark H Weaver <mhw@HIDDEN>
Cc: guix-devel@HIDDEN, 36855 <at> debbugs.gnu.org
Received: via spool by 36855-submit <at> debbugs.gnu.org id=B36855.15670373324070
          (code B ref 36855); Thu, 29 Aug 2019 00:09:01 +0000
Received: (at 36855) by debbugs.gnu.org; 29 Aug 2019 00:08:52 +0000
Received: from localhost ([127.0.0.1]:51396 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i37zf-00013a-UL
	for submit <at> debbugs.gnu.org; Wed, 28 Aug 2019 20:08:52 -0400
Received: from mx.sdf.org ([205.166.94.20]:61395)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zerodaysfordays@HIDDEN>)
 id 1i37zZ-00013N-TO
 for 36855 <at> debbugs.gnu.org; Wed, 28 Aug 2019 20:08:50 -0400
Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net
 [173.76.53.40]) (authenticated (0 bits))
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x7T08WKO013908
 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO);
 Thu, 29 Aug 2019 00:08:34 GMT
From: zerodaysfordays@HIDDEN (Jakob L. Kreuze)
References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@HIDDEN>
 <A3C3B87A-1B74-4983-A8EA-7281E3103567@HIDDEN>
 <87zhkkojfv.fsf@HIDDEN> <877e7on3zd.fsf@HIDDEN>
 <87h86ry5j5.fsf@HIDDEN>
 <874l241bq6.fsf__35802.4716888153$1566814098$gmane$org@HIDDEN>
 <87woezoj3p.fsf__10757.9769611888$1566845612$gmane$org@HIDDEN>
 <87tva2m8ki.fsf@HIDDEN>
 <87y2zdnnrl.fsf__16000.9061962896$1567017269$gmane$org@HIDDEN>
 <875zmhm8jo.fsf@HIDDEN>
Date: Wed, 28 Aug 2019 20:08:19 -0400
In-Reply-To: <875zmhm8jo.fsf@HIDDEN> (Mark H. Weaver's message of "Wed, 28
 Aug 2019 14:46:56 -0400")
Message-ID: <87k1awomto.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.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: -1.0 (-)

--=-=-=
Content-Type: text/plain

Hi Mark,

Mark H Weaver <mhw@HIDDEN> writes:

> Hi Jakob,
>
> zerodaysfordays@HIDDEN (Jakob L. Kreuze) writes:
>
>> Thanks for the input; I wasn't aware that the activation process was
>> taking so long for some people. One of Ludovic's suggestions was to
>> create a single derivation, rather than three, to speed up system
>> activation. I'll look into this further.
>
> To be clear, I don't care how long it takes to build these
> derivations. However, I think they should all be built before starting
> to activate the system. Does that make sense?

Yes, and I agree that it would be ideal to have the derivations built
prior to system activation -- that way, the activation scripts could be
included in 'show-what-to-build*'.

> On a side note, what would happen if one of those builds failed? Would
> the system activation be left half-done?

Yes. You raise another very good reason for why system activation should
be carried out by a single, atomic activation script :)

Regards,
Jakob

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1nF3MACgkQ9Qb9Fp2P
2Voaew/9HFix6uBnigXRQc/XKlacYPkV/cPIYXvcTwSQvvq+bDYCGtCvRh5rO+3X
aVF99yG3vy73lMY+f0ap6ZyGsdx2b4y6dp4MIrq7WdqKh2cV1tJwDKO+nisYKICu
FTYv6bJs+68GGWLKd/qSGf+r7kvZwfWNu486NTqIJVtiwJls0z66WmdKtvKXvCl3
Sd3wnfpj+QlfBu4iaVXqEeraQrQTw06XXIy8Du6U6jG8sbCTDxv57MPYGe69K9Hu
MBMG0gdAr3x7n6rCn1FJFhetns+ZLtLfPYc9/rbKEVYr7BD+xl44WRGr2/Yl3NzM
uGFwK4vflQdhyTVi+c9JIGAke6RGEmKR0meI89YN4O7UHTnrqk8uvOJn0EyOt1X8
jWYYJRbzXbBx/WGoZglksaN2ehdF9rJKx+OSchwlGi9jbaLcyeU8la5udbvyx2uk
ca4GucHhgVPaSBP2RNnMyZaMA3cFveLUssKugplGkD/eKvfLjHbtGwabFnTh0eIU
Y1y+Qh8wIqqWIdDAVkEXeHjZHkv5ueiPru1kW6LAldCkm4MMkL2oyPPVCXdNM7P5
Wz4JjpEqgiDvetyhXYoXW8erPDNlqeQVG7D1vXLARJ8c/xLPJKTJoOizfNKyZuiR
MDrPeqDGcAa+v38tsDiBgWEuj5zHmehquTi/KwBVjmYPTrA0ugw=
=TWMS
-----END PGP SIGNATURE-----
--=-=-=--




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 6 Nov 2019 17:46:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 12:46:10 2019
Received: from localhost ([127.0.0.1]:41237 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSPNi-0006wC-FT
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:10 -0500
Received: from eggs.gnu.org ([209.51.188.92]:40227)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iSPNh-0006vs-L8
 for control <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:09 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53113)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iSPNc-000878-Fu
 for control <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:04 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=54018 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1iSPNb-0007Ea-G0
 for control <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:04 -0500
Date: Wed, 06 Nov 2019 18:46:02 +0100
Message-Id: <87woccvqxx.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Subject: control message for bug #36855
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
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: -3.3 (---)

merge 36855 37596
quit





Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 6 Nov 2019 17:46:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 12:46:30 2019
Received: from localhost ([127.0.0.1]:41240 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSPO1-0006x1-NR
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:29 -0500
Received: from eggs.gnu.org ([209.51.188.92]:40315)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iSPO0-0006wf-6f
 for control <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:28 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53134)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iSPNv-0000cU-1X
 for control <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:23 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=54020 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1iSPNu-0007HJ-4f
 for control <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:22 -0500
Date: Wed, 06 Nov 2019 18:46:20 +0100
Message-Id: <87v9rwvqxf.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Subject: control message for bug #36855
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
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: -3.3 (---)

retitle 36855 'guix system switch-generation' does not reload Shepherd services
quit





Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 6 Nov 2019 17:46:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 12:46:34 2019
Received: from localhost ([127.0.0.1]:41245 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iSPO6-0006xM-2y
	for submit <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:34 -0500
Received: from eggs.gnu.org ([209.51.188.92]:40317)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1iSPO4-0006wo-Ie
 for control <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:32 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53135)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1iSPNz-0000mL-0I
 for control <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:27 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=54022 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1iSPNy-0007Hf-B5
 for control <at> debbugs.gnu.org; Wed, 06 Nov 2019 12:46:26 -0500
Date: Wed, 06 Nov 2019 18:46:25 +0100
Message-Id: <87tv7gvqxa.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Subject: control message for bug #36855
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
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: -3.3 (---)

severity 36855 important
quit






Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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