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; Tue, 23 Jun 2026 17:17:22 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f58.google.com (mail-wr1-f58.google.com [209.85.221.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 65NFHLrZ025864 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 23 Jun 2026 17:17:21 +0200 Received: by mail-wr1-f58.google.com with SMTP id ffacd0b85a97d-46010bc0f1esf3525547f8f.3 for ; Tue, 23 Jun 2026 08:17:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1782227836; cv=pass; d=google.com; s=arc-20240605; b=eEXofFHXOuMTtvMOaNqJxLfxRjxTLQQjO8pCcXBucj82w7U4XniGSdYLMTzMbqDzSg eb5/UmUmn+nAn3dFXtZmri6rX6VThIVzHtQ2TyOFpTBv/3MiWZRgVt4ZzbLMyfVaIsca JxOAR+OdR4FxtHADv9HqqB3nKbdYaUgbxQtZ4itC/Uci2p+zPB1IXXD0UJRSRD1YFjYr APz4kY8rePWElXkx4Jy+kUXtbDmBrCh6pSpckgcJa+G35ezXIhzO1rt8tKXvrdvTJM2S eff+9tHXFo3qyhBFwSwmW2JCPNmap42d9SKxNQo2EVnkzLd65zsYip5La/J246A4WYKk pPxQ== 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:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=75u/k+/aRBl/VrAxAanEWs+of21eT9jbwV0/g3fIlKw=; fh=QYjE7Sj/ggAG1NFocfAx5dJXOlwftwCkvEQXhqfd1SM=; b=GV63VyEdRBznLMUJLH2Xmo0gWR+4hhNMJJhVnAK5eTxtN0aS3QtCTwwQtIXtklmGnQ rwcMCG+pfigCvdB1PMmPdaLTCECQUk15JaPqo6EmgGUr433Z8/fp8vVQ9aDy+5qF9dvC yGhZzz51kOLpEvwhEdaKA+PweUqrl5FyP5j1YhwBDq6gs5/T4UF8t/0jDJC79NLq4bDR 6/TzxvXYmKS5j9TinTwuCS6LQAk1bJnNMyo3pR6XzxPA6DIH2t5j89vCcWiTPJQiS6WW v55RWMYe61RwvKRrgfW7AL1wyenHAi4UEkdqZn3OZJZE52yXE85BNUDb62EubyqQNXIO tJFA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1782227836; x=1782832636; 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:in-reply-to:from:content-language:references:cc :to:subject:user-agent:mime-version:date:message-id:sender:from:to :cc:subject:date:message-id:reply-to; bh=75u/k+/aRBl/VrAxAanEWs+of21eT9jbwV0/g3fIlKw=; b=QRBVp/4rZoiZot+xn+730oeAQIldMh86B+TSdLY9OAdXFxmKaAdwE39ScuD9mDzrKU gSalG0oG4AzuzLT4Tel1EqdQVa2N3JAmf2ok4LdxGfgMnoQ1UeeyvMNwcGgt64ULeqB3 fE1ri/lEdl0lVlQHFP/SMFi0doiFicuZ+Hm1tcTQnSosd/QWy1Ao7yMMx5JUdl5K9rOo 1cPC2VuWAOK+rTZC0nRKPxzN04+Lk763ORu9k5+h35WNsOHXRg5TBeZ9ywIDIgK7X+yr +pPrKUKE980SKojOxEz5LVQOOUqXAy9HRfZDwufPnDYAn/2V2QNBBVHMvgrag/hu/HCB d3dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782227836; x=1782832636; 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:in-reply-to :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:x-beenthere:x-gm-message-state:sender :from:to:cc:subject:date:message-id:reply-to; bh=75u/k+/aRBl/VrAxAanEWs+of21eT9jbwV0/g3fIlKw=; b=oCPNhMqRPSI9eUcuifEOcWIVbY0EPbGsDF8P7WAQNocHQAZTtegKf0rw2Go1OxRFzC yunEbAuVBaRCsfBH7eezWnshkQwJ3zQ9NpjlG7V0k/e67OuQVPQaYRILckOQ1S1ZWBO7 w2PZ1w1G3pPzepyDWGqS0HbqX4yc7ER4LdxzFnD5dQBNfwYLHFZ8ZN6JQt8nFblME8ml f8kJXW/8QhQtMnBnBToAvt90q7jBClrqd8vml5suZ62huYkC8MZ0x0XI13APNaDfoYsl UXWyXhpSzW/nvpngVllNK/alUzEcIXk29dx0MJJtnm8mEoqAVlZmx2K4CgTooUpU9n4l WeIg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AHgh+RoeBrvQ5KavyDNDWp6URcq+w5xgf3m7vVpwgIuMpSULsS5j4itpQGMDws1emdUtayH5Riqo@ilbers.de X-Gm-Message-State: AOJu0Yz9WqTexgcPCXQ78a8WnFOjIKiQcYSzV6GLN6JgnyfYfQI3cJH4 uwRLw2CRuA5FQZxLV9pTMXPckPQrJ8XtySd3t1ZyKDPqblrd+OGLQR8V X-Received: by 2002:a5d:5886:0:b0:467:ea82:1f85 with SMTP id ffacd0b85a97d-467ea821f94mr18207951f8f.28.1782227835912; Tue, 23 Jun 2026 08:17:15 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AX0PUUeqNDCoWCaacM9n4+MhNeOLCDRDlw1i1PUyv3Tz4yzFwg==" Received: by 2002:a05:6000:4203:b0:460:1131:73dd with SMTP id ffacd0b85a97d-463abcce9f0ls4888142f8f.1.-pod-prod-01-eu; Tue, 23 Jun 2026 08:17:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AHgh+RqksmHETyhv+WjJmF+x17GmDOTbK67qeVxdSwyVVL0ORfLww3qwCNNoDhHvs1m8WQXjy/uLFGZMUc9X@googlegroups.com X-Received: by 2002:a5d:5d0d:0:b0:460:1225:2346 with SMTP id ffacd0b85a97d-466607440dbmr22876171f8f.4.1782227832959; Tue, 23 Jun 2026 08:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782227832; cv=none; d=google.com; s=arc-20260327; b=MmfjeV6KfEcft9VKQKSoi5XWZKdnNClgNiux0n4ZlLGWk1Cj/5cFaqGW+blcoIU1y1 6XJM3w1ZyaRGP9QJXT6kGyj0LhSlRXVAlYcwpEePm1N+0UO/estd5WnNMtSM2ionsctj Q2reSEpRy3qeFTZa0+S7vKy8HpPos+5/5LCssUyqChhY+EdgtTAenVsKbXIgEZNKCi3J 36EyM5MrCQXvPeIxKQt5TpfNAC5B2WeOuLM3rxR7y82myv8HomFKRZjjwSrvaCqGglTp fYJ884XGVtXDMV1TBtGGqa+HbZkCd60FUgrHc26ABvrrc95AY2sRfyJwTz+6/N6dFjai H41Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=1LEzii2Gvc7lexOajilDvW2YqInRggvjwEWAgj9RTXE=; fh=BweB6XpPFuDuc9w7IhEzjNOKVIY82vJoUt/ezgb33NA=; b=D8JM1kqIdlZfesVH/EJ4dTypmRP17UbOIBNgYJx9DQ82yObuAhqnhr5RgN7gVcEhWA mpIJpK0JgiyGtltzeDrT1J5EMEy0vmipMbF6YpyoK6j1rFx9mV3FjVQrGp/WVdD5OCSL AKkDT72HFR0GzuIAS0WG4VT4g3IhwoymiU/qtoiNh1uN+UEhxnKrJ2aNw9Ix0pZaF6Iq dJJmej2nAgmQk158mfQcqHQ2GHJR+AcBTNSXYi583dFk5ooUOCs2dkzWQAADYRcyOeVf OJZ6eTvzHOYNq/YXD91jEAq7RtgtYoF94LrtEPbzgtxbem/0Ez+4Q4YSjBqm0gseXd6E S3IA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-46665ee0c58si247872f8f.5.2026.06.23.08.17.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jun 2026 08:17:12 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.148] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 65NFHBp3025850 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Jun 2026 17:17:12 +0200 Message-ID: Date: Tue, 23 Jun 2026 17:17:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 17/17] run-tests: add support for isar-rootless mode To: "MOESSBAUER, Felix" , "Kiszka, Jan" , "isar-users@googlegroups.com" Cc: "Gylstorff, Quirin" References: <20260615092458.259691-1-felix.moessbauer@siemens.com> <20260615092458.259691-18-felix.moessbauer@siemens.com> <972c9ff43f47ec8b25926461b32ef39623c6bcc1.camel@siemens.com> <91bf1599-1a36-416f-9c8f-df48223d7145@ilbers.de> <5e3a2289142c676463b26fe540bfa54b96d37039.camel@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <5e3a2289142c676463b26fe540bfa54b96d37039.camel@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed 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_DNSWL_BLOCKED,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: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@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: GepRj01wBzam On 6/22/26 18:25, MOESSBAUER, Felix wrote: > On Fri, 2026-06-19 at 16:32 +0200, Zhihang Wei wrote: >> On 6/19/26 12:03, MOESSBAUER, Felix wrote: >>> On Fri, 2026-06-19 at 11:08 +0200, Zhihang Wei wrote: >>>> On 6/15/26 11:24, 'Felix Moessbauer' via isar-users wrote: >>>>> If the testsuite is started in rootless mode (-p rootless=1), then start >>>>> the container in rootless mode as well. By that, we can seamlessly >>>>> switch between rootfull and rootless mode when testing. >>>>> >>>>> Note, that this requires a recent enough kas-container version (>5.3). >>>>> >>>>> Signed-off-by: Felix Moessbauer >>>>> --- >>>>> scripts/run-tests.sh | 7 ++++++- >>>>> 1 file changed, 6 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh >>>>> index bce10d70..ed373af7 100755 >>>>> --- a/scripts/run-tests.sh >>>>> +++ b/scripts/run-tests.sh >>>>> @@ -15,4 +15,9 @@ TEST_CONTAINER_VERSION=$(cat ${ISAR_DIR}/testsuite/dockerdata/version) >>>>> export KAS_CONTAINER_IMAGE_DISTRO="container:$TEST_CONTAINER_VERSION" >>>>> export KAS_CONTAINER_IMAGE=${CONTAINER_BASENAME:-ghcr.io/ilbers/isar}/test >>>>> >>>>> -${ISAR_DIR}/kas/kas-container --isar --repo-ro shell -c "$*" >>>>> +ISAR_FLAG="--isar" >>>>> +case "$*" in >>>>> + *"-p rootless=1"*) ISAR_FLAG="--isar-rootless" ;; >>>>> +esac >>>>> + >>>>> +${ISAR_DIR}/kas/kas-container ${ISAR_FLAG} --repo-ro shell -c "$*" >>>> "-p rootless=1" is also passed to avocado, seems unintended. >>> This is intended as we manually need to tell isar to build in rootless >>> mode. Please check p16: >>> >>> --- a/testsuite/cibuilder.py >>> +++ b/testsuite/cibuilder.py >>> @@ -128,6 +128,7 @@ class CIBuilder(Test): >>> customizations=None, >>> generate_sbom=False, >>> lines=None, >>> + rootless=False, >>> **kwargs, >>> ): >>> # write configuration file and set bitbake_args >>> @@ -140,6 +141,9 @@ class CIBuilder(Test): >>> if not sstate: >>> sstate = bool(int(self.params.get('sstate', default=0))) >>> >>> + if not rootless: >>> + rootless = bool(int(self.params.get('rootless', >>> default=0))) >> Understand. >> >>>> isar$ scripts/run-tests.sh -t dev -p rootless=1 >>>> + avocado run --max-parallel-tasks=1 --disable-sysinfo -t dev -p >>>> rootless=1 testsuite/citest.py >>> This will not work, as this starts the container in rootless mode, but >>> the build in privileged mode (which also explains the error pattern >>> from the other mail). >> But why would this not work? I can see from the Avocado test log: >> >> [stdlog] 2026-06-1916:17:36,287avocado.testparameters L0141 DEBUG| >> PARAMS (key=rootless, path=*, default=0) => '1' >> [stdlog] 2026-06-1916:17:36,287avocado.testcibuilder L0164 INFO| >> =================================================== >> ...... >> [stdlog] rootless = True >> ...... >> >> So the build is done in rootless mode. >> >> Or could you share how you are testing it? Thanks. > Hi, I did the following to prepare the container and then run the tests > (on a 7.0.10+deb14-amd64 kernel): > > podman pull ghcr.io/siemens/kas/kas-isar:next > podman build --network=host --build-arg KAS_VERSION=next --tag > ghcr.io/ilbers/isar/test-container:0 --file > testsuite/dockerdata/Dockerfile . > # get latest vesion of kas-container, paste into kas/kas-container > > # Run dev tests, passes > ./scripts/run-tests.sh -t dev -p rootless=1 > > JOB ID : 3189ecd790d9825a8402c61fdd8b20768f18c2d8 > JOB LOG : /work/build/testsuite/job-results/job-2026-06-22T15.41- > 3189ecd/job.log > (1/6) testsuite/citest.py:DevTest.test_dev: STARTED > (1/6) testsuite/citest.py:DevTest.test_dev: PASS (1190.69 s) > (2/6) testsuite/citest.py:DevTest.test_dev_apps: STARTED > (2/6) testsuite/citest.py:DevTest.test_dev_apps: PASS (1427.20 s) > (3/6) testsuite/citest.py:DevTest.test_dev_rebuild: STARTED > (3/6) testsuite/citest.py:DevTest.test_dev_rebuild: PASS (373.13 s) > (4/6) testsuite/citest.py:DevTest.test_dev_run_amd64_bookworm: STARTED > (4/6) testsuite/citest.py:DevTest.test_dev_run_amd64_bookworm: PASS > (96.29 s) > (5/6) testsuite/citest.py:DevTest.test_dev_run_arm64_bookworm: STARTED > (5/6) testsuite/citest.py:DevTest.test_dev_run_arm64_bookworm: PASS > (49.01 s) > (6/6) testsuite/citest.py:DevTest.test_dev_run_arm_bookworm: STARTED > (6/6) testsuite/citest.py:DevTest.test_dev_run_arm_bookworm: PASS > (45.41 s) > > # Run nocross test (which failed on your side) > ./scripts/run-tests.sh testsuite/citest.py:NoCrossTest.test_nocross -p > rootless=1 > + avocado run --max-parallel-tasks=1 --disable-sysinfo > testsuite/citest.py:NoCrossTest.test_nocross -p rootless=1 > JOB ID : 801920baf29862426207f9abf8a22ab2fd69807d > JOB LOG : /work/build/testsuite/job-results/job-2026-06-22T18.12- > 801920b/job.log > (1/6) testsuite/citest.py:NoCrossTest.test_nocross: STARTED > [...] > > Could it be, that your kernel is too old and does not support binfmt- > misc namespacing, which was added in Linux 6.7. > > Felix Hi, The kernel I have is 6.12.90+deb12.1-amd64, but it's indeed running debian bookworm. Zhihang -- 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 email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/c5ae2df6-9ec4-49e2-a50f-235cedadebfa%40ilbers.de.