From patchwork Wed Feb 16 07:38:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Po-Hsu Lin X-Patchwork-Id: 1593441 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=HCmqLCPz; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Jz8wv0SyNz9s0B for ; Wed, 16 Feb 2022 18:39:25 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1nKEu8-0004Pe-1i; Wed, 16 Feb 2022 07:39:12 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1nKEu6-0004PX-Mc for kernel-team@lists.ubuntu.com; Wed, 16 Feb 2022 07:39:10 +0000 Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 4C8D43F1D0 for ; Wed, 16 Feb 2022 07:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644997150; bh=NY3wlHuqSYUzMTNZzONmPTz8SrxIzB8GGYZnVe4vS+M=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=HCmqLCPz+8Gnewa3o9YFj986YlvMnAB5lYovZwNXbWGZeEN1529A4h5UzW/Ma4HYS fxGwTEFR+BflE9EDn2+XOJxJCPj+WzK2iEMPK5lVb9jRX5Q4DUBmeCANRIwK7Oxmom OTkuRZLoOpMO5Hye8ASlKRnnA3z38B56kJQOow20ge0YeD8f2xy2DKr6Rj0rU3Apej pHIyzlBaC1P4tJhzZiXkwOrl0wETu5HkaiyQb25CZTYXNpVHIakGf9UIvaFM1Qmx2Q JiuUTh1yaIDH8qT6o4V3CUSITDoo+3JOszq2IufEd1LyY1E+zIGpUgd+NCyiYnUWJt Ncv6c3alSW20w== Received: by mail-pg1-f197.google.com with SMTP id bm16-20020a656e90000000b00372932b1d83so821559pgb.10 for ; Tue, 15 Feb 2022 23:39:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=NY3wlHuqSYUzMTNZzONmPTz8SrxIzB8GGYZnVe4vS+M=; b=3PbG6elt3CkDc0KV23e602kcylFzyWjsUdSkH51c5uYobNnEgbxjMWzjkiIpdnNpsb sh+rbD7po93qQvzuwssKfEXOpgKVBRfFGdGKBEtWkisvjxVzy7rmTvNravDSnemIDHe+ 4GLzLZGG/omo0LNqEv8D2ZTRgt1975mhKyXxk05+X+/Exh6esWVv6Ak2uSQhFwnD84zL Hdsy/YrjCYaPTzt+Z+shPlasUiPeuJb4JclFNGxcvAddQb4cBT5OH/lGPciPbCsWzXDf ZYU7voLVn1xGu+8fCmHFgO6U1ptQucv9ImufqrRMWKHtI8E1G+4kZX5zX4lEQ0YU4obs pIcw== X-Gm-Message-State: AOAM530ikpnhLbHHqIdqWT1EJfvRmiFYoy+paXrTXDvCKmhpBZcgFFD+ Zv8dzVERf9dJzlz3jKZGqrkWKRRcTwpIxKrNVpHZqFkeb6tEgLXr8OTBIISPOgYrq7uRS6Ka5Ka vXyRXPq4FcAKQ+/BoNIwZWbDyniav3oVtaE+tpHRw X-Received: by 2002:a63:dc54:0:b0:372:a98d:ad71 with SMTP id f20-20020a63dc54000000b00372a98dad71mr1203509pgj.547.1644997148579; Tue, 15 Feb 2022 23:39:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwk/eJPYlg6BqG5hb1Cm/jxT0Pv9oAYL/l8EYo/2Gh887GZKjYOGFJ2mfNs2w0uFQ1uFztDMw== X-Received: by 2002:a63:dc54:0:b0:372:a98d:ad71 with SMTP id f20-20020a63dc54000000b00372a98dad71mr1203497pgj.547.1644997148220; Tue, 15 Feb 2022 23:39:08 -0800 (PST) Received: from localhost.localdomain (223-136-136-92.emome-ip.hinet.net. [223.136.136.92]) by smtp.gmail.com with ESMTPSA id k18sm16980053pfi.10.2022.02.15.23.39.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 23:39:07 -0800 (PST) From: Po-Hsu Lin To: kernel-team@lists.ubuntu.com Subject: [autotest-client-tests][PATCH] UBUNTU: SAUCE: ubuntu_lxc: skip cgroupv2 incompatible tests Date: Wed, 16 Feb 2022 15:38:36 +0800 Message-Id: <20220216073836.86684-1-po-hsu.lin@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1960847 The following tests should be skipped for Jammy because systemd is now using a full cgroupv2 hierarchy on Jammy: * lxc-test-apparmor-mount * lxc-test-autostart * lxc-test-no-new-privs * lxc-test-unpriv This has been fixed in the "exercise" test script of Jammy lxc package: https://github.com/lxc/lxc-pkg-ubuntu/commit/a9b80060f910e133fe899bd89f We need to take this back to our testing tool as we are not using autopkgtest to run lxc tests since commit f914a916 "UBUNTU: SAUCE: ubuntu_lxc: improve test granularity and idempotency" Tested on a Jammy KVM instance and it works as expected. Signed-off-by: Po-Hsu Lin Acked-by: Andrea Righi --- ubuntu_lxc/control | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ubuntu_lxc/control b/ubuntu_lxc/control index a7da40cc..44d924d9 100644 --- a/ubuntu_lxc/control +++ b/ubuntu_lxc/control @@ -51,6 +51,11 @@ if result == 'GOOD': elif test == 'lxc-test-state-server': continue + # Skip some tests due to cgroup v2 incompatibility (lp:1960847) + if test in ['lxc-test-apparmor-mount', 'lxc-test-autostart', 'lxc-test-no-new-privs', 'lxc-test-unpriv']: + if os.path.isfile('/sys/fs/cgroup/system.slice/memory.current'): + continue + # Skip some tests on old kernels, this must be in another if statement as we have lxc-test-unpriv checked above if test in ['lxc-test-unpriv', 'lxc-test-usernic']: if not os.path.isfile('/proc/self/uid_map') or not os.path.isfile('/etc/subuid') or not os.path.isfile('/etc/subgid'):