From patchwork Tue May 14 08:38:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ales Musil X-Patchwork-Id: 1934914 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=V2VK+XG1; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VdqXH1B96z20d6 for ; Tue, 14 May 2024 18:39:11 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 1079340787; Tue, 14 May 2024 08:39:07 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 2mA7O0KXVe60; Tue, 14 May 2024 08:39:05 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org C582B407A9 Authentication-Results: smtp4.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=V2VK+XG1 Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id C582B407A9; Tue, 14 May 2024 08:39:02 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id DF5B4C0DD2; Tue, 14 May 2024 08:39:01 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2B4A7C0077 for ; Tue, 14 May 2024 08:38:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A847A80FA0 for ; Tue, 14 May 2024 08:38:58 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id maJtRSjMWR9Z for ; Tue, 14 May 2024 08:38:57 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.129.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=amusil@redhat.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 8B76081007 Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8B76081007 Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=V2VK+XG1 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id 8B76081007 for ; Tue, 14 May 2024 08:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715675936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+5QpKQsndD4pXPyow/7igGv9LXVxXje04tE40LrFZKo=; b=V2VK+XG1am+3XGaixGEnLx2NL72vcyKvmCR5CMYZYrtCHlCJajmax+6vMOAATBs4pwMUAY 7MxxiBoEHji+xuaQ/6FZunjT5nlCbble3Qm7qjsuL5C/O5EXDo/sZuNQFjqySYYhYq8V2v /tShXD16ZdYQbrQTWgZnOh1bKsVxzzg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-643-pxANb77tOPmdLHBs47ouDw-1; Tue, 14 May 2024 04:38:55 -0400 X-MC-Unique: pxANb77tOPmdLHBs47ouDw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id CF652800FF4 for ; Tue, 14 May 2024 08:38:54 +0000 (UTC) Received: from amusil.brq.redhat.com (unknown [10.43.17.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5F4661C00A8F; Tue, 14 May 2024 08:38:54 +0000 (UTC) From: Ales Musil To: dev@openvswitch.org Date: Tue, 14 May 2024 10:38:47 +0200 Message-ID: <20240514083851.417951-4-amusil@redhat.com> In-Reply-To: <20240514083851.417951-1-amusil@redhat.com> References: <20240514083851.417951-1-amusil@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH ovn 3/7] ci: Update the Ubuntu container to 24.04. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" The Ubuntu 24.04 marks the Python installation as externally managed this prevents pip from installing system-wide packages. Set the PIP_BREAK_SYSTEM_PACKAGES env variable that allows pip to ignore this and install the packages anyway. At the same time the Python Babel fails to detect timezone when it is just set to UTC. Setting it to Etc/UTC fixes the issue: ValueError: ZoneInfo keys may not be absolute paths, got: /UTC Signed-off-by: Ales Musil --- utilities/containers/ubuntu/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/utilities/containers/ubuntu/Dockerfile b/utilities/containers/ubuntu/Dockerfile index ac1e6a5bf..c1ff711c5 100755 --- a/utilities/containers/ubuntu/Dockerfile +++ b/utilities/containers/ubuntu/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.hub.docker.com/library/ubuntu:22.04 +FROM registry.hub.docker.com/library/ubuntu:24.04 ARG CONTAINERS_PATH @@ -37,6 +37,7 @@ RUN apt update -y \ selinux-policy-dev \ sudo \ tcpdump \ + tzdata \ wget \ && \ apt autoremove \ @@ -73,6 +74,10 @@ WORKDIR /workspace COPY $CONTAINERS_PATH/py-requirements.txt /tmp/py-requirements.txt +# Ubuntu 24.04 marks the Python installation as externally managed, allow pip +# to install the packages despite that. +ENV PIP_BREAK_SYSTEM_PACKAGES 1 + # Update and install pip dependencies RUN python3 -m pip install --upgrade pip \ && \ @@ -80,4 +85,7 @@ RUN python3 -m pip install --upgrade pip \ && \ python3 -m pip install -r /tmp/py-requirements.txt +# The Python Babel fails to detect timezone when it is set to UTC only. +ENV TZ Etc/UTC + CMD ["/sbin/init"]