From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C271A1D52B for ; Mon, 11 Aug 2025 20:12:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754943153; cv=none; b=TiOMXp4FBljkS3wAz7BbQdnRV1xldons9LwaBmfsBQmLeSGPqGyOvQ2E749dsp48eRv51tuXWM9bCQU65mCrN/I+uFtOd8emonhZrbihrIqom84rydwxycQ1o1GxN3L33W8ZM+KuNOJBVEw2pJuO0HXToLVFq2s8MbsXryYMjto= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754943153; c=relaxed/simple; bh=9K1f1IOUvZgQScWWcBO0mysCqOOXhrIdEYmZQzTY9Ks=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pogKrkp/QhHzkCg6yEUUPLO3EK8STsMdHOPtCPuZpDnDGcFy5p9PV7HLEZ5LjXAobNQI/Gz6FQdIYpb13HysUT3t35+aHrqRmnO4Mwq4l7TaBHVOCDzf0jyPT7a4bzptSswD6oQrY33xZBRkIhh8GANjk8a9/7uuj/HJPeQMqoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=shs/zFsk; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="shs/zFsk" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=KnFkjfYE3resP4trzJSFts2j1NzIUrnyMFsOsxbT0M8=; b=shs/zFskpyMabkrSZVcVapsMQK 8OLUR16fT2shDM5731uTC0O4si3jf3jp78KXwU/f2Qh62ygNSxt2fwPRbOMW80CXBbYVFny5qizBM MstuPrdDAZeexf51G7SARSud5z1athXoVTEpT+BqkqVtKPqnPHCL9rcsK0/1GBQ7PL93J6fHHKr/j Nxi71Zfz796PMJ+1wbjb2Dz4OZ12QRMF7rDWkNogJmoG+Vf26i+UFjKjkV4pkQCHxwO1obI4IanGB jOw7PpTsj7g16QArrnpbgA9R2w74th3brK/5qI6ptmdKBGkcXvZOlYgqq66TpDB/zTiaOgk/RRarE uFKLEdgw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1ulYsh-0000000903y-1vPV; Mon, 11 Aug 2025 20:12:31 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH 4/8] guestfs / devconfig: allow for upgrade from Debian testing to forky Date: Mon, 11 Aug 2025 13:12:26 -0700 Message-ID: <20250811201230.2145164-5-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250811201230.2145164-1-mcgrof@kernel.org> References: <20250811201230.2145164-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain Debian Trixie (13) was just released as stable, and the testing repository has transitioned from codename 'trixie' to 'forky'. This causes apt-get update to fail with: E:Repository 'http://mirror.keystealth.org/debian testing InRelease' changed its 'Codename' value from 'trixie' to 'forky' Fix by adding a preliminary apt-get update with the --allow-releaseinfo-change flag to accept the repository metadata changes before installing packages. This ensures the playbook can handle Debian testing transitions gracefully. We do this for both the host through the guestfs playbook and and the target node through the devconfig playbook. Generated-by: Claude AI Signed-off-by: Luis Chamberlain --- .../roles/devconfig/tasks/install-deps/debian/main.yml | 9 +++++++++ .../roles/guestfs/tasks/install-deps/debian/main.yml | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml b/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml index 6ffe00f..140c3a1 100644 --- a/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml +++ b/playbooks/roles/devconfig/tasks/install-deps/debian/main.yml @@ -45,6 +45,15 @@ ignore_errors: yes tags: firstconfig +- name: Update apt cache accepting release info changes + become: yes + become_method: sudo + ansible.builtin.command: + cmd: apt-get update --allow-releaseinfo-change + changed_when: false + ignore_errors: true + tags: firstconfig + - name: Upgrade Packages become: yes become_method: sudo diff --git a/playbooks/roles/guestfs/tasks/install-deps/debian/main.yml b/playbooks/roles/guestfs/tasks/install-deps/debian/main.yml index 0529db6..dc69c65 100644 --- a/playbooks/roles/guestfs/tasks/install-deps/debian/main.yml +++ b/playbooks/roles/guestfs/tasks/install-deps/debian/main.yml @@ -1,4 +1,12 @@ --- +- name: Update apt cache accepting release info changes + become: true + become_method: ansible.builtin.sudo + ansible.builtin.command: + cmd: apt-get update --allow-releaseinfo-change + changed_when: false + ignore_errors: true + - name: Install guestfs dependencies for Debian become: true become_method: ansible.builtin.sudo -- 2.47.2