From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 02 Sep 2024 12:02:37 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f63.google.com (mail-wm1-f63.google.com [209.85.128.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 482A2a5X023714 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 2 Sep 2024 12:02:36 +0200 Received: by mail-wm1-f63.google.com with SMTP id 5b1f17b1804b1-42bbe70c1c2sf24954915e9.1 for ; Mon, 02 Sep 2024 03:02:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725271351; cv=pass; d=google.com; s=arc-20240605; b=OsTqXVS99X/+1Tx9cFg8bwRSUhifKPMyFZfl6jthAu7HNOFfozAm9Dy0RunRlmyYO5 3SPrS7ZV7kFD+xgZk1MOb7Q3fjBd1AGdiPMOHDXQurp6C2cqGJ8lSuLtkp/G6D/8VBNw QFywTEyMTTH4Palb7BVpY/pGlvTO6AHwHIoUivkp9zWkJG6kyTC4hXPImJWnODXGRqIX Vk0zzKolI/R+KGSAAoA21uvJdDVknUUbKMKUhyfu8gx7CPPxK8g6cMw9/aCe1vuK4Z5a awooc2Cf2yzipBWvDPVd31h4KzJ2nGs5VFZ3/sR03FX4Ra6qCDpXOP9WT9DfsoKMyBpl g6MQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:sender:dkim-signature; bh=zwxQ1xyzDtRqWC9zqHTRutklliulhuSLrhfxdqIG7w0=; fh=MIifzvFCc2B64jPA7e0xUYYjR+64czJkRRP8vF5AESM=; b=fMk/mRPsZyJmNgRfY4bxTYtg/XDzbqTCzw7R1TonSWzWXAhHXoVARACxx9z1SUG2nv gzYWLBkKJVjrgJzQzytl0/G7DLp61yiICTQkwHE3qpq3vAMB38SMmNcq9ychTfC30yvz Tfrds2bMTtEbsimWs1JzYaTJoFd7QEkdFGS8lETydJMc9nj+Rh2tei3UdFzkVsuOJaID JqLvHhc28of/Cb+ft3Qv+0mBaSrSnvHj5Nh74mXDugcLaDL6j+EuH86Ajzz4FvJAPvuC N8Mig5y3u4v1Y4aqmFqzz2Roh7ZzKVlT4nehoThjrtxMNtCkVneMm+v+uQyig0dwJZp9 a3vA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1725271351; x=1725876151; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :references:in-reply-to:date:to:from:subject:message-id:sender:from :to:cc:subject:date:message-id:reply-to; bh=zwxQ1xyzDtRqWC9zqHTRutklliulhuSLrhfxdqIG7w0=; b=DA32vsNf8gFWZOAKjLvi85wHaPDbGu7b/ppyz3UXfWXf2vXmX+H+6utmrocnkfn/51 oaEtjmdTZ0P0xmfQRU1AUpKXZK8QAgATE5EfWvDtmtjJOdkoTIXFuQa4oTNEwMKjghlF n6LX7anqP23B1LmqhbcX4oaSaAzshuQebjnqgMj8CuEXUQUPUpzMJ3gq0R68fdbTAK38 D1wo0XsDBxrm9zoxpctvB2gM1v9QMDybU0qOZTUxML9kkhYrpXmnMUhyZJrVqT1HfTr7 tD8vPCkKN5cVuVkrrXee4ztEpsD4ZzIySCf8aFRUcNykGKXZPWes++VfPQOEQrKfH0pN dE3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725271351; x=1725876151; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=zwxQ1xyzDtRqWC9zqHTRutklliulhuSLrhfxdqIG7w0=; b=P7GJfZZJ5Nfl9AlusNW53RImFD2A+7pEDbLFm+AUhhOwkwVy2kRvkG4TzY0OzV3Hgp eci5xMMYHcO0FAOhJVjFCtaqD3Injf4BTo37BLI2Bo/ItS3uZuwuNOrrkeCeuWUzAUIP 0dDqAB42XO0iPWlhPW9h8ymCncuZAZid6YZh3VGvxghfXI0IWkJkdW4dfZc2oqXTglgw JZI/X4a98UTghIkNQq4adJYsu7ZHIImlFeeT7kravdk46V4ap2eI5lD2lhh3jRIOHLdx LV32LoerGlOY6Z+zO5uQivih2NGfO7cOzjgz5g3H28bUVj7OyKlPG6yfaO1smk7BY7R5 c91w== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCV8m+tONN2Iba7Ppllymn+pad18yBOvauV9uQsjuxKgbz2Hx1D+0l5JwRpi5+wOIKhlLN/a@ilbers.de X-Gm-Message-State: AOJu0YwqmPw440zZRN0L0IomIaStILZZJNESx+i5FoEwbRm8UPpa2WY1 Ce8G7I+tQQH/eBDS1NBYvEs9McV/2OOPraDsofLdJE6oIBaYLz71 X-Google-Smtp-Source: AGHT+IHV9eIuhFIS/DUTHaq1G1gyE51u3cVNS8+Qtwvg+ytWiNAYnk4H8ncD1eYvGFLenjMcDIFYAg== X-Received: by 2002:a5d:4565:0:b0:374:c3e4:d6c5 with SMTP id ffacd0b85a97d-374c3e4d81fmr2890363f8f.57.1725271350397; Mon, 02 Sep 2024 03:02:30 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:3590:b0:421:7e41:1867 with SMTP id 5b1f17b1804b1-42bb283d3c5ls24729245e9.0.-pod-prod-08-eu; Mon, 02 Sep 2024 03:02:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVHPR6VuGC0yEURc/nTpyEkchV+Uexzfzivb7eOijPFnXIm3YSPBTaaLLqCwPmpKxPJWTRJVcClxjWw@googlegroups.com X-Received: by 2002:a05:600c:1991:b0:426:5fbe:bf75 with SMTP id 5b1f17b1804b1-42bb27a9f2fmr102903135e9.23.1725271347731; Mon, 02 Sep 2024 03:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725271347; cv=none; d=google.com; s=arc-20240605; b=j8z1Zvzcbv2sG8WUhXgjN1dL6xx0cbDjatuyjKHNJFBdf+WosGOLorWrsEFiO+ASrO WmO9Aj/1gWz09PhDJ5fvnIoGfNyVhjalza07Z1O5viPD+4eWV01HsJ/ZTNP9w/J5kOsR FabZG+QLwynoOWMKQTpsDrL9cXyWt7anww84UphIbghg9xLgTjt9v+vQ+j+kdZsSpzMo /mu4ewdf3hk/HRyw8eBg83hFtqAmYZLBFFMJQAjOJOaIriO8YKoLjB4d+C4kJRTBYPom TuCnDgZPlHuHfp8h9VnPsnGlAkSv+Mtj3CQYFj5f4v55qFHgcNY3otxBirEYsBdFIzdh rX3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=h8+cFHix6UKRY7tUPe4FJRyAbJLg2seWpDcjA7MHO5Q=; fh=O+ZMFUiiuyZKsfz7Fw8hsdknZlxcSFSsLsCydBEGD0o=; b=ctnsrtz342YGom6atLFx9f4WwoY02SJCoZRcFESzBElwSNrszak3K32UpovVOCPMZO ystze6JSNnV+9n30MxMXS7utgF3ec8SDM5oZgAp7r0yPPSCwWGEX1aOZ2WbQ7aZ2UNoo VaUFSHY4CQV/d/ho9PjAgMghOyOwJmVtHrJgkHOFwHdLvf0ecYvSpsnIr2IqJY+ug1kR TeF2vl3mvYm7MwMAIXWkzsfYdI/FZOHVNEatyyrabVHUvOOmJt1hv6EkVK6M6gR69bbI fHuvP7aE3mM7Vlia3gwnz27QFDbXLZVB3pbAcTasZehVTrXKGxlbyOM4JHtFY0/k2fm2 jXhw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-42bb6e2d5cesi2056525e9.2.2024.09.02.03.02.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Sep 2024 03:02:27 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 482A2Onm023701 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 2 Sep 2024 12:02:26 +0200 Message-ID: <58d072e0ac650f6480aedf69071a12efc92ff8f0.camel@ilbers.de> Subject: Re: [PATCH 0/3] Detect systemd services ordering cycle From: Uladzimir Bely To: Jan Kiszka , isar-users@googlegroups.com Date: Mon, 02 Sep 2024 13:02:23 +0300 In-Reply-To: References: <20240816144333.27467-1-ubely@ilbers.de> <3ef96fdd2414065059e49b74e908edf940be5934.camel@ilbers.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: 42K59OWdnXMc On Sat, 2024-08-31 at 10:45 +0200, Jan Kiszka wrote: > On 21.08.24 06:49, Uladzimir Bely wrote: > > On Fri, 2024-08-16 at 17:38 +0300, Uladzimir Bely wrote: > > > Merging v3 of "expand-on-first-boot: Ensure that /tmp is > > > writable" > > > led to systemd services ordering cycle. Systemd randomly drops > > > one > > > of sycled services and sometimes it's "expand-on-first-boot" one. > > >=20 > > > This patchset reverts version 3 of the patch and returns to > > > previous version. > > >=20 > > > Additionally, we extend CI so that qemu run tests could always > > > detect > > > any systemd services ordering cycles. > > >=20 > > > Clara Kowalsky (1): > > > =C2=A0 expand-on-first-boot: Add /tmp to ConditionPathIsReadWrite > > >=20 > > > Uladzimir Bely (2): > > > =C2=A0 Revert "expand-on-first-boot: Ensure that /tmp is writable" > > > =C2=A0 testsuite: Detect systemd services ordering cycle > > >=20 > > > =C2=A0.../expand-on-first-boot/files/expand-on-first-boot.service=C2= =A0 | 3 > > > +-- > > > =C2=A0testsuite/cibuilder.py=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 5 > > > +++++ > > > =C2=A02 files changed, 6 insertions(+), 2 deletions(-) > > >=20 > > > --=20 > > > 2.44.2 > > >=20 > >=20 > > Applied to next. > >=20 >=20 > Still broken: >=20 > root@isar:~# journalctl -u expand-on-first-boot > -- Boot 336ca3ef86c74a06ab8e11e40a321c84 -- > Jun 16 09:44:32 isar systemd[1]: expand-on-first-boot.service - > Expand last partition was skipped because of an unmet condition check > (ConditionPathIsReadWrite=3D/etc /tmp). > root@isar:~# cat /proc/cmdline=20 > BOOT_IMAGE=3D/vmlinuz-6.1.0-23-amd64 root=3DPARTLABEL=3Dplatform rw > rootwait console=3DttyS0,115200 console=3Dtty0 >=20 > Patch will follow. >=20 > Why didn't you test this? >=20 Hello. The patchset was autotested in CI several times, and, according to VM logs (for example, with bullseye/amd64 it previusly was always failing) everything is OK: ``` [ 8.433834] systemd[1]: Starting Expand last partition... [ 8.467179] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped. [ 8.481797] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped. [ 8.492728] random: systemd: uninitialized urandom read (16 bytes read) [ 8.520001] systemd[1]: Starting Load/Save Random Seed... [ 8.581835] systemd[1]: Starting Apply Kernel Variables... [ 8.655061] systemd[1]: Starting Create System Users... [ 8.738683] systemd[1]: Mounted FUSE Control File System. [ 8.786544] systemd[1]: Mounted Kernel Configuration File System. [ 8.837270] systemd[1]: Finished Apply Kernel Variables. [ 8.934155] systemd[1]: Started Journal Service. [ 9.096109] random: crng init done [ 9.098673] random: 46 urandom warning(s) missed due to ratelimiting [ 9.151174] systemd-journald[195]: Received client request to flush runtime journal. [ 9.175233] systemd-journald[195]: Creating journal file /var/log/journal/2cada36492d746358164b901eda86292/system.journal on a btrfs file system, and copy-on-write is enabled. This is likely to slow down journal access substantially, please consider turning off the copy-on-write file attribute on the journal directory, using chattr +C. [ 10.292661] BTRFS info (device sda2): resize device /dev/sda2 (devid 1) from 1305477120 to 1573912576 ``` Now I looked to all logs and found for "bookworm/arm" the following: ``` [ 24.219166] systemd[1]: expand-on-first-boot.service - Expand last partition was skipped because of an unmet condition check (ConditionPathIsReadWrite=3D/etc /tmp). ``` We probably should to extend checks in testsuite, while currenaly only images using "sdimage-efi-sd" and "sdimage-efi-btrfs" only are tested.=20 Probably, this depend on systemd version and bullseye and lower versions are not affected. > Jan >=20 --=20 Best regards, Uladzimir. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/= isar-users/58d072e0ac650f6480aedf69071a12efc92ff8f0.camel%40ilbers.de.