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 5435B60DCF for ; Mon, 28 Jul 2025 00:18:03 +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=1753661887; cv=none; b=nV6XXNg57/Vf4xlqmLQAPYpb9fyROKaPmpVYvaTlMF/yaJgNCarxZ3qUmiPziOx1NdEh7kcmiD92JL8Tq42mGGCdhac+gi+z19zp8RmCnlNgmrYVAgFuraw26hC+wuhERiQ0Jtut6KS1/1/qKI0ajA0SRIHrKRrfQwP6K4I3jgA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753661887; c=relaxed/simple; bh=gy3/uEUJtPALoGD2zjYSbqUvwZdHtnLLP0kcNMhNGN0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FhcoMT5QfLSRITJvcndLzqxIrpAv5Y60pVsG8d0ZZZf9f5ATLm9LgbzaKr+D5gtU3laLfzWfvxO3C/5/4JCnCBuiqFZxhyLzGOCkH+9WNyDDiCQVsUPWTygdwtSeisGDfTUcX4D9MA8z5IDm2l252dMQpNyDW+4rTietO1EBIQE= 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=jscm6s8W; 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="jscm6s8W" 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=juFqxJ1gNkri3AZwnzLaf5RyhVp+dN7S9kTUNXHcp98=; b=jscm6s8WgenAzowO5ChtPR8X81 xiUW9w8yGQOxMA99pzESuSC2icJo9CBtJ2ciVhgcO31FLm7+LpTRUtI3IjgJaw4gb/k8b0aBVxRMx uUlVvSSRDjP+5yWE41rXGUp/2bDmZRsBktvacst8No6cTaaCcCK2AfByLzJSrdLIv4bL33rnY3KZe TaYwgfe53NoyfNIPwQu5ePV4b7o90q8Xi4WMxMwNjOJ8qZvsABtsJ1n6mkNbds8vGiCklGZoQtcUv m9sgo5yeiblz2qgOj9wv/GOuyd382LoqGSnZfR8RMFlt4UzHNr3OBVDl2Rd7ff/1wD7+ZFauFzMkQ ruiI0gjA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1ugBZ4-0000000DNWi-3Dei; Mon, 28 Jul 2025 00:18:02 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH 24/40] guestsfs: ensure linux directory exists Date: Sun, 27 Jul 2025 17:17:43 -0700 Message-ID: <20250728001800.3188617-25-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250728001800.3188617-1-mcgrof@kernel.org> References: <20250728001800.3188617-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 When 9p is enabled, guests need to access the host's linux directory through the 9P filesystem mount. However, after the 9p build tasks were moved to a separate subrole, the directory creation that ensures this mount point exists was no longer happening before guest bringup. This caused guests to fail during bringup when trying to mount the non-existent linux directory via 9P. The issue manifests as mount failures during guest initialization. Fix this by ensuring the linux directory exists as part of the guestfs bringup process, before any guests are started. This restores the necessary ordering that was lost during the 9p task reorganization. Fixes: d0d54b450b0d ("bootlinux: Move 9p build tasks to a subrole") Generated-by: Claude AI Signed-off-by: Luis Chamberlain --- playbooks/roles/guestfs/tasks/bringup/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playbooks/roles/guestfs/tasks/bringup/main.yml b/playbooks/roles/guestfs/tasks/bringup/main.yml index 6d819006..af95c5db 100644 --- a/playbooks/roles/guestfs/tasks/bringup/main.yml +++ b/playbooks/roles/guestfs/tasks/bringup/main.yml @@ -127,6 +127,16 @@ when: - passthrough_devices.matched > 0 +- name: Ensure 9P host directory exists before bringing nodes on libvirt + file: + path: "{{ bootlinux_9p_host_path }}" + state: directory + mode: '0755' + run_once: true + delegate_to: localhost + when: + - bootlinux_9p|bool + - name: Boot each target node community.libvirt.virt: name: "{{ inventory_hostname }}" -- 2.47.2