From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7343661073770217472 X-Forwarded-Encrypted: i=2; AJvYcCUSLIB8qfZcgPRdCxpz0xVwXNRo3ehTg7bo4V5mmvr2pUXjQptK/O6VDHsuQmTQFW1cxQvrLhLt6DRq5RDf1mtjhOA6HqS06oiuBHc= X-Received: by 2002:a05:6512:131e:b0:512:a371:3b27 with SMTP id x30-20020a056512131e00b00512a3713b27mr4235547lfu.13.1710326888960; Wed, 13 Mar 2024 03:48:08 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:3458:b0:513:1813:feb9 with SMTP id j24-20020a056512345800b005131813feb9ls178820lfr.0.-pod-prod-09-eu; Wed, 13 Mar 2024 03:48:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVBqmLYPJwr/xrZVHaZ1SYyR8V2Ky1xEH0mV5zN9o00o+iWn6KWlpZFBdyYDxonhulGPHRkbIfpeCW4+iKU4AqNGxaHsLNfy/rADrE= X-Google-Smtp-Source: AGHT+IHKcmPaOsmZLhiDFrG63dkh1EO75eQxP02k2YPhnjho0V1r51yjh/fq+19iIJ6vlqKvFjC+ X-Received: by 2002:a05:6512:2302:b0:513:506:219d with SMTP id o2-20020a056512230200b005130506219dmr3593700lfu.49.1710326886465; Wed, 13 Mar 2024 03:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710326886; cv=none; d=google.com; s=arc-20160816; b=CqGcF9VbTexRyg1kfLJtNmMzLKSPRJw6+Gdx/Tzv+j09X4HAqmiYm+HPWQqOAc2sfB RD73KxOq+FV4K1KjBJq3YMBEZhOak8Ggn7HfTGRJYEvtyXYC7ebGPseMWCv0hVUbcwku 1B69FYeCUaBEl5Ax1mAl1IsA+UeNJRrWOitpJuOsWk7eb66xhmLP4mJd8ZvQ0qaOjO7n hgrG57Z8Hp0jHRHo/sdYKkjEq+eijOuTgu7DNCs/3BK3xLMVWRQhJDDvELo0PE9s54t3 vcv3atpht0w8t07SpmftNII6hzhkiViRUmu+0YXJPekdKmVBVSj+GD9GcgdnusJCEIEb xUNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id; bh=mVcVmFkNuOJcisdJsuE6PgiEezs0SNXWNiP2qA/BVUE=; fh=HQH7GoVXYQQTSHt8HuEISdzGbJPrZt2uZbIhKsQHUos=; b=CsA/Da0OJilU8XQG8fjm6rD/RanIfgeZyA7jtmpn6v/O94ZT4Xe0UGpbNhfhEe1bW+ r0J9us6Bd1OTpL4NECRK2eKqKu6FqF7XEGBWwbRaacT8ksFmf4i1SxogSy1Z07XzlSdz nNtf9BveuN2qI+45upK4ax5enZLi7TpkUEtdPq2TclpvMiwMnf9JAgy1QdO+SE1zgDZS v4K+cwOZdMAm94QYIq72xLqADfAQXsSIZAes13dw92+W1iuxEXOpJj9PXjHwH/16COpx 6T3QjNdr8Rrd/sl8wuceqGNw51/bDPs+1nr9CAR11jrxliC9gxJrPohZDZCeEwNtyc5p zPHQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id fl22-20020a05600c0b9600b00413eb099bdasi51597wmb.1.2024.03.13.03.48.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Mar 2024 03:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de 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 42DAm47O017060 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Mar 2024 11:48:05 +0100 Message-ID: <0a3ee875-d004-42d4-906b-4e6e847c7cd7@ilbers.de> Date: Wed, 13 Mar 2024 12:48:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: No network available during task do_install on debian bullseye/5.10 host - but on a debian buster/4.19 host network is available Content-Language: en-US, ru-RU To: "Kaufmann, Bjoern" , "isar-users@googlegroups.com" References: From: Anton Mikanovich In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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-TUID: j8uP77CLrmf+ 07/03/2024 17:33, 'Kaufmann, Bjoern' via isar-users wrote: > Hello, > > I have the following recipe my-recipe_2023.1.bb: > > inherit dpkg-raw > > do_install() { > ip a > } > > I run a build based on isar "d26660b724b034b602f3889f55a23cd9be2e87bd" (> v0.9, < v0.10-rc1) inside of a docker container "ghcr.io/siemens/kas/kas-isar:3.3". > > _____ > > In the first scenario the build runs inside the docker container on a debian buster VM with 4.19.0-26 kernel. In this scenario the logfile "build/tmp/work/debian-bullseye -amd64/my-recipe/2023.1-r0/temp/log.do_install" looks as follows: > > DEBUG: Executing shell function do_install > 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > inet 127.0.0.1/8 scope host lo > valid_lft forever preferred_lft forever > 944: eth0@if945: mtu 1500 qdisc noqueue state UP group default > link/ether 02:42:ac:11:00:03 brd ff:ff:ff:ff:ff:ff link-netnsid 0 > inet 172.17.0.3/16 brd 172.17.255.255 scope global eth0 > valid_lft forever preferred_lft forever > DEBUG: Shell function do_install finished > > _____ > > In the second scenario the exact same build runs inside the docker container on a debian bullseye VM with 5.10.0-28 kernel. In this scenario the logfile "build/tmp/work/debian-bullseye -amd64/my-recipe/2023.1-r0/temp/log.do_install" looks as follows: > > DEBUG: Executing shell function do_install > 1: lo: mtu 65536 qdisc noop state DOWN group default qlen 1000 > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > DEBUG: Shell function do_install finished > > _____ > > > I would like to understand why the same build behaves differently on the two different host systems. Thanks in advance. > > Best regards, > Bjoern > > > Hello Bjoern, The task do_install is performed in original environment without any additional chroots. It means there is no need to run Isar to have the same 'ip a' output. You can just control network availability inside the container in the same way. To check that you can perform 'kas-container shell' and then run 'ip a'. We've checked networking on Buster and Bullseye host (but without Proxmox VMs) and didn't find any issues. In both cases output looks like: 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever 9: eth0@if10: mtu 1500 qdisc noqueue state UP group default     link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0     inet 172.17.0.2/16 brd 172.17.255.255 scope global eth0        valid_lft forever preferred_lft forever With the only difference in random eth0 index.