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 C61C521A449 for ; Sat, 18 Oct 2025 02:31:57 +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=1760754719; cv=none; b=AbFdOIetCEcYBSg/7tQzGJyLJFS4cqrUO5+zwzTqfl9aPPK96JpzH51vEY2S5rkEr7WXAOXgVKHx+9McX93DjUdoIYen98lJ7NUICykOZ2NQb5wJrARLV5G5CiaM7dkgBae5YWxF05+H8844DZuR9APjxaBSVdo4EYxLO0VyU/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760754719; c=relaxed/simple; bh=cjBxjSET8ZnSB4qn6GpwB7gDpG1hy3f8+OEyeZaCeKQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CTAaddSkXO31nhgoJtcdIB4+0NnlPdhuBFMjMplzfPTYGpEbcAJcLdlweqGzvFeqIjrmiP96c5bIYFKONiM6yZyRcddanK1ujXr07XauW7nQNZP8nMJhzGe3c80uIhLzIrIUdXyYrp1cvpRrGRgYgJ0da/LXix7V3/yjZF+FLI8= 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=4+hR1lX4; 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="4+hR1lX4" 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=IWvCoML4rxRrnpduzyJvPhAcluTGBb6RJbH+x4ObfBM=; b=4+hR1lX4ZyPmMusxtb6EM3TiEu 2EbcYOeaaNtFAZUEnWbnKLvUvZrAnG8ORqnm5CFHutajnryMbWobjIGyqoQi+gd3xWQ8i0fESh6sK +Dea/270O4CQjm0nK1av6che16dAai8hJf5dH5k0UGeLHhyd2gxY/GKieFhGDfZT4zB0NePpEP9nm g6Mlriu9VW4f324UNJZ2a/Vj33UukLXN5YV7wxNzXJ0uuAWMw7siLBmc01AgEjZeBb6aW/2LCGDLC 29hshy2/qcuhpW1/mXj9AULRFTFxJcEUQe+mJwGZDrZzW1J4F1fYiWegqJ50CmhgfBztv4DApfflQ sr0i4fAQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9wjd-00000009Oep-0YtD; Sat, 18 Oct 2025 02:31:57 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH 8/8] playbooks: Fix host pattern for single-node setups Date: Fri, 17 Oct 2025 19:31:53 -0700 Message-ID: <20251018023154.2239688-9-mcgrof@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251018023154.2239688-1-mcgrof@kernel.org> References: <20251018023154.2239688-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 Change devconfig.yml and update_etc_hosts.yml to use "all:!localhost" instead of "baseline:dev:service" as the host pattern. This fixes warnings about unmatched host groups during bringup for single-node configurations like rcloud-guest-test. The hardcoded "baseline:dev:service" pattern only works for A/B testing setups with dedicated service nodes. Single-node setups don't have these groups defined, causing Ansible to emit warnings: [WARNING]: Could not match supplied host pattern, ignoring: baseline [WARNING]: Could not match supplied host pattern, ignoring: dev [WARNING]: Could not match supplied host pattern, ignoring: service Using "all:!localhost" works for all deployment scenarios: - Single-node: runs on the node, skips localhost - A/B testing: runs on baseline and dev nodes, skips localhost - With service nodes: includes service nodes, skips localhost Commmit 1cf0800c9ffce ("gen_hosts: templates: include localhost in the all group") introduced this new warning and commit 94d0e3157a017 ("devconfig: include the "service" group in theplaybooks hosts list") extended it with the service group. Generated-by: Claude AI Fixes: 1cf0800c9ffce ("gen_hosts: templates: include localhost in the all group") Fxies: 94d0e3157a017 ("devconfig: include the "service" group in theplaybooks hosts list") Signed-off-by: Luis Chamberlain --- playbooks/devconfig.yml | 2 +- playbooks/update_etc_hosts.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/devconfig.yml b/playbooks/devconfig.yml index f0ca7d76..e1d97138 100644 --- a/playbooks/devconfig.yml +++ b/playbooks/devconfig.yml @@ -1,6 +1,6 @@ --- - name: Configure developer environment on target systems - hosts: baseline:dev:service + hosts: all:!localhost gather_facts: false roles: - role: devconfig diff --git a/playbooks/update_etc_hosts.yml b/playbooks/update_etc_hosts.yml index a8e9bc26..5a7d83d6 100644 --- a/playbooks/update_etc_hosts.yml +++ b/playbooks/update_etc_hosts.yml @@ -1,6 +1,6 @@ --- - name: Update target /etc/hosts with all targets and disable cloud-init - hosts: baseline:dev:service + hosts: all:!localhost gather_facts: false roles: - role: update_etc_hosts -- 2.51.0