From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MN/KDPHZOmERZgAAgWs5BA (envelope-from ) for ; Fri, 10 Sep 2021 06:07:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ECV3CPHZOmG1eQAA1q6Kng (envelope-from ) for ; Fri, 10 Sep 2021 04:07:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AA7CC1EAE4 for ; Fri, 10 Sep 2021 06:07:12 +0200 (CEST) Received: from localhost ([::1]:33228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOXol-00023Y-Qs for larch@yhetil.org; Fri, 10 Sep 2021 00:07:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOXoZ-00023A-Aa for guix-devel@gnu.org; Fri, 10 Sep 2021 00:06:59 -0400 Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]:34549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOXoX-0000FT-Mp for guix-devel@gnu.org; Fri, 10 Sep 2021 00:06:59 -0400 Received: by mail-il1-x12d.google.com with SMTP id w1so719650ilv.1 for ; Thu, 09 Sep 2021 21:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XNvVW37BryvJZjqhTdNCwDel8Wls8cDkPJR+WwETh1o=; b=gYp3Bflpi68Fj0q5TwAy+3wBrdfMK/0bEkPeS1mlAZ0vyPLYdAM0HN99CRsTc2tahg iT+lVnNwFAwzKIAtHqUPlKUM3W99guPlsTZMEy1ri2TTvlwx1V6SYLx1KB9Y6pLUXOBP jk2/i4x5MuHE4vH0QJwEZu1Qr57aKEtVSqxnEH8Ad452euuxnlegPuN8oymjHK31gQbt 0jYC1sz7uSES0f4PIOHEQkASYjUYgFj4EblFeBji35IbbYWEV6dRkrcfYn32D/o5vx1O ERXlM1aJR4vf1AKq6pYL6nhqM3uxiXgmRwQNo7oKkUqz1huERR0dm+E3zeDTxiis3PRq Qc8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=XNvVW37BryvJZjqhTdNCwDel8Wls8cDkPJR+WwETh1o=; b=DDZChsmcY6Oaoj8mRjq15oImUcimyAnulVJsMIfGGB3nd7pQeFIDl/DxIoaoN10G1g MkbGyOD/79ADa25z+Bpzd9rdrGdeoJHTFQgkUso9bSeg20vTW/mfr76KA1SZNyOVRniR jrquciHXl++Wo7owYCM+BkbZ68C4EFFCMeVvLOE2kj9oQ4uezJxFjKQFY1S4+imLLSya MB2xepvkbCKSuq7VJL3Xa8m9TyEVGxWgH7eNgp52LyilfJQhSnyQLD5yJIA6tNYl0fmO H7zbtf150645KliUpRd9uC0/0xN1uJqzfQbdWsFtj2x1j/kEiKLbrl6Vk1OtLzriN++K xkvQ== X-Gm-Message-State: AOAM530j0yVIzRF7kXC+mZVPOqyf+kkd/eRfBTIbV0Q5lByLWmBn52zQ Qad6QFg600+Uo0eBagAjKt46rg4tDE4= X-Google-Smtp-Source: ABdhPJyoVCckR0uHvTWXVrtIqStiUo29t3Tfcb2Tq6sLKNC2AuXdsMbsH1aa5ZvMJlI70mpZQvWXlA== X-Received: by 2002:a05:6e02:1a6b:: with SMTP id w11mr3639712ilv.21.1631246815700; Thu, 09 Sep 2021 21:06:55 -0700 (PDT) Received: from washu-v4 (172-221-246-205.res.spectrum.com. [172.221.246.205]) by smtp.gmail.com with ESMTPSA id f5sm2027424ils.3.2021.09.09.21.06.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Sep 2021 21:06:55 -0700 (PDT) From: Katherine Cox-Buday To: Julien Lepiller Subject: Re: Sniping "guix deploy" References: <20210910014504.77da1263@tachikoma.lepiller.eu> Date: Thu, 09 Sep 2021 23:06:53 -0500 In-Reply-To: <20210910014504.77da1263@tachikoma.lepiller.eu> (Julien Lepiller's message of "Fri, 10 Sep 2021 01:45:04 +0200") Message-ID: <87v9393wgy.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::12d; envelope-from=cox.katherine.e@gmail.com; helo=mail-il1-x12d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631246832; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XNvVW37BryvJZjqhTdNCwDel8Wls8cDkPJR+WwETh1o=; b=F1Exk64O3cWksi7Xxqcqe8sGSvrJAWiLURUsu5TZoIo1ye4RyAAZCBTuXwjsqeGshndM14 X3kYDGuvCPMzeTz7BgybH9IxNqtKsWrcThupvT+JyY0+5vZ8UXTNHSYb9qyeNiDfPmaMGq P40ylCV2kny8taHoUGPC5Cim9G+qw+KP2oTVg43+UICArM08ufbvamnActGsAOtrSNReQ6 eBVfy93D68GHwIWPn3bA6ncDD9M04jHddKhh1MJThhAgY6JKbKhhD1/jrMoCnKnxAqWhyx N9Ko1UNnjDJr6xVZp0pgqlnPZYE+6NIGnWk7fBJyjUHrN8kjaOuz5Lh7Ix6A+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631246832; a=rsa-sha256; cv=none; b=Me/L5UOB8kZbDcm0RuglWRVcQbcZlLMQAecS05vZGJP30F5S3lCzxknjD4Hc5OOlgiizZf ttpeL8vNCXjLKGpmSv5NW1HmUGVvhW+XVsvxf9JIzwaix5giqVpcHDB0ZHUTK6yedaIJDE 2cbOImLQxF7kuj3hdhlu0pg2Llq5ecW1qz3lBzpimpH0QVWfw+knM+arX8zL2uRcat1Qs6 aEug9T5wPUtjzv3iW9/w3kE2gCGYyC6oocZIQM/aMK7Y959fXdYhltkrtkgAEKrlRaseDD 9KgM4o38drwq7mQUfWSeCqsl0bM3m6bXqlw6p4N1IZW1+hKTzTLe75a+DE151w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gYp3Bflp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gYp3Bflp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: AA7CC1EAE4 X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: Keu3V4d8Ofq9 Julien Lepiller writes: > As a rule of thumb, when you update multiple systems and one system > provides security for another, you should update the security system > before the protected system if you restrict access, and the other way > around if you allow more access. Maybe we could add that to the manual, > in addition to letting users configure upgrade order? I am not a Guix deploy expert (although I have just begun using it -- it's great!), but it seems to me that this is a higher-order mechanism that wields deploy in a certain way. I.e., as I understand it, deploy is going to walk the list of machines you give it and run the deployment synchronously. If you wanted to build references between machines, for security, live-upgrades, or otherwise, I would think you'd declare some kind of data structure other than a list (probably a graph) which would tell deploy what order to perform the deployment. Rolling back is a whole other matter, but I imagine that same data structure could tell deploy how to walk it in reverse. So, not that I have time to work on any of this, but what I would do is shore up deploy so that it's nice and robust (I think it's still early days), and then work on a declarative way to define machines and their dependencies, and then a function to produce a sequence from these data structures so deploy can stay an iterative type process. Just late night thoughts from me :) Thanks for the input! -- Katherine