Message ID | cover.1730441684.git.maxim.cournoyer@gmail.com |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 011ED27BBE2; Fri, 1 Nov 2024 06:21:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9049027BBE9 for <patchwork@mira.cbaines.net>; Fri, 1 Nov 2024 06:21:27 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1t6l1t-0006Ou-QM; Fri, 01 Nov 2024 02:21:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1t6l1s-0006Oi-3n for guix-patches@gnu.org; Fri, 01 Nov 2024 02:21:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1t6l1r-00046U-Rb for guix-patches@gnu.org; Fri, 01 Nov 2024 02:21:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=nuIGGHnOie3x96+k4YHSvemJx8JGfOrpObJW759k1Os=; b=aakIfMp8Pgo8xcqGI01ZEC4MV5Mu9jdnVy6z20YBjrMESJL6ETyfqicMX8d9XzULOKPO1+QjpWfh3wkcC6Tokq/2KnrqVwuKSFhB3NxvGzx5rnQjc2XBMHxPgg9Wma+CaOco4XIiDC2iR8d4qEVUAlyaxjJ9/CaDEEvpRcpZZXGEmK9YFmAziu9hFYRNCcupGBZux4NR8s9lGITsowYeduY8JDS1Odqhb6WBIP4lLiAnta6ziKmB0rRFw+tvd75P4dQqT1YOfVttooKeEDBg8jeOO68rNCVUOXECK1eal9e2XI8S3lKvykOx0Gt9PmxuKJBsM8NFxm00KVvxOgM2nA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1t6l1q-0003aj-Ln for guix-patches@gnu.org; Fri, 01 Nov 2024 02:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#74151] [PATCH 0/7] Add anonip system test. Resent-From: Maxim Cournoyer <maxim.cournoyer@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 01 Nov 2024 06:21:02 +0000 Resent-Message-ID: <handler.74151.B.173044205713773@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74151 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74151@debbugs.gnu.org Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173044205713773 (code B ref -1); Fri, 01 Nov 2024 06:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Nov 2024 06:20:57 +0000 Received: from localhost ([127.0.0.1]:47090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1t6l1l-0003a5-2u for submit@debbugs.gnu.org; Fri, 01 Nov 2024 02:20:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:44020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maxim.cournoyer@gmail.com>) id 1t6l1j-0003Zy-Px for submit@debbugs.gnu.org; Fri, 01 Nov 2024 02:20:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <maxim.cournoyer@gmail.com>) id 1t6l1j-0006Mw-Hl for guix-patches@gnu.org; Fri, 01 Nov 2024 02:20:55 -0400 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <maxim.cournoyer@gmail.com>) id 1t6l1i-00045e-3x for guix-patches@gnu.org; Fri, 01 Nov 2024 02:20:55 -0400 Received: by mail-qv1-xf2c.google.com with SMTP id 6a1803df08f44-6cbf347dc66so9920066d6.3 for <guix-patches@gnu.org>; Thu, 31 Oct 2024 23:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730442052; x=1731046852; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nuIGGHnOie3x96+k4YHSvemJx8JGfOrpObJW759k1Os=; b=A5uzPLWIQj9MTteR4G79hxBi7J90u7GFOmHpyUEPDWGkzcCtPXppiTvoKzzG7gwY2V PVIjm2QvUysOkAFjuBS2cJ+vnul8oqBNnxHKbkZLVao1GqN8nMNzgMXkKlrgwnGnXIL7 Yj6qCf3VT0JzDFlN8bUnLB4Iy//AsfASGiUMtdVkpvnI1FeoIcy1FZcz16acj4l25n1Z o4ua6oMgeY+5RV47v+uWrO/be9AxGngGF9gjx00jcv+OCQGcZGF+ZqPjwixg1RllzUM1 vtllDHwDQXDisEDAb0Ss57SX8v3G8nwG8Nc8aEJwmaDQ7L6uTBXEm5y3VrLP5T+Hd3K4 VcsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730442052; x=1731046852; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nuIGGHnOie3x96+k4YHSvemJx8JGfOrpObJW759k1Os=; b=usqVj86nniZsc4sU2hy2JLCFuffR90u0+0pqEILzATl5uWcwXnvcMMg5j9oZeIu3wW NU8OoRS+95+KeSSxtIwrFGEF7czn4eDOLzb4DYRRaN1tOsdxioshXhYNs87S05FkY7oE R/4lssLXOOKQb+nX5B27soBz1GOkbAb+tS5/ySFnrakFziWLjJhNUHSz8QzEb4MWC3Hy 6po9Vem9AjBxIagjesIeNxn2KS8MqrfIgrV5S+LStojxwvzdZ45LpuGQklolJF907qTe raJwJwfvyYOgHnCgJuDxnkqRSqIDjxfMzoQ+ftQaTH2uq8jtt+QEankXo4lo0TSr+3ze AAMQ== X-Gm-Message-State: AOJu0YxaTTCyutxw0SQzetLzrLbdKI5hbS2Cfo3b12cFPcPH+94lll+R xU7kAqLufrNfYOWBB9cOKQiGmG+umL233rtalvDVfDLc14gPdFgqSnc9oi8b X-Google-Smtp-Source: AGHT+IGKoCdJJdPUIlzkgLZaeLPhIjYgC3fIe9PAQQkLF9puQUItbiZ+/f59XOdcUeGMv6qeQM8C4g== X-Received: by 2002:a05:6214:54c1:b0:6cb:f039:85a0 with SMTP id 6a1803df08f44-6d35c189fa5mr34375746d6.40.1730442052266; Thu, 31 Oct 2024 23:20:52 -0700 (PDT) Received: from localhost.localdomain (vps-6234970c.vps.ovh.ca. [51.222.13.224]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6d35417a3c5sm15889666d6.130.2024.10.31.23.20.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2024 23:20:50 -0700 (PDT) From: Maxim Cournoyer <maxim.cournoyer@gmail.com> Date: Fri, 1 Nov 2024 15:20:38 +0900 Message-ID: <cover.1730441684.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::f2c; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf2c.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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Add anonip system test.
|
|
Message
Maxim Cournoyer
Nov. 1, 2024, 6:20 a.m. UTC
This was developed as part of investigating the source of bug #59181 ([berlin] web services fail to start on reboot due to anonip). There is no issue having anonip run and the system reboot (as should be expected as /var/run is supposed to be cleared thus the named pipes should be recreated every boot). This points to a race with nginx that would "win" creating its log files under /var/run/anonip/* before the anonip service does. It'll need further investigating in that direction. Maxim Cournoyer (7): doc: Use @table @code for anonip-configuration doc. services: anonip: Add 'debug?' configuration field. system/vm: Fix virtual-machine bug. tests: web: Have the retry-on-error throw on exhausted attempts. services: herd: Export 'eval-there' in API. build: marionette: Make it possible to reboot VM during tests. tests: Add anonip system test. doc/guix.texi | 21 ++++--- gnu/build/marionette.scm | 2 +- gnu/services/herd.scm | 1 + gnu/services/web.scm | 8 ++- gnu/system/vm.scm | 9 ++- gnu/tests/web.scm | 117 ++++++++++++++++++++++++++++++++++++++- 6 files changed, 142 insertions(+), 16 deletions(-) base-commit: 4009d1de954d694cb11af391d4113d29c5c1379d
Comments
Hi, Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis: > This was developed as part of investigating the source of bug #59181 ([berlin] > web services fail to start on reboot due to anonip). > > There is no issue having anonip run and the system reboot (as should be > expected as /var/run is supposed to be cleared thus the named pipes should be > recreated every boot). This points to a race with nginx that would "win" > creating its log files under /var/run/anonip/* before the anonip service does. > > It'll need further investigating in that direction. This is nice work, LGTM! This did not elucidate the cause of #59181, right? Thanks, Ludo’.
Hi Ludovic, Ludovic Courtès <ludo@gnu.org> writes: > Hi, > > Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis: > >> This was developed as part of investigating the source of bug #59181 ([berlin] >> web services fail to start on reboot due to anonip). >> >> There is no issue having anonip run and the system reboot (as should be >> expected as /var/run is supposed to be cleared thus the named pipes should be >> recreated every boot). This points to a race with nginx that would "win" >> creating its log files under /var/run/anonip/* before the anonip service does. >> >> It'll need further investigating in that direction. > > This is nice work, LGTM! > > This did not elucidate the cause of #59181, right? It did! The cause was the activation snippet of nginx, which runs the nginx check command, which creates every file involved to check if it has sufficient permissions. The files would then exist before anonip had a chance to create them. The fix has already been merged, so a reboot following a recent reconfigure on berlin should show all our services up and running. I'll run the system tests again and push it this doesn't break any.