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 2EBE71482F2 for ; Wed, 30 Jul 2025 06:01:51 +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=1753855312; cv=none; b=R8KdaZIjk7eqiXpNz/8+/L4XGfGCGSAqlW9OMDvrtBCwluY2gefJvK6Lx/+gPBiWtfDlUSdsOHBO4U2FAIQ8N0vcKuVpGrFX5gDKwtfkWB1W6eOR5IuC+H0lDBfeNyJ4jBZSqnBNEh7ZQsffB4xbgYtuRjr5AA5SeKjy8rHOTMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753855312; c=relaxed/simple; bh=t96NV8W97XLLIsDhBALlAetIZjMmG2otvDgu15/jldE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C1nS3Rmgn4ObEvFOTByrVl7i6K8mnYC97kUt9u6rAVyqlgdty+Um5dmh2/9mAmpFjFhaQuo7gmQ0PQYDK3ypA4+p9A2KoE8P/2/jmLeAMKgRVUBt/srxeclCNqpzsCI9fTtYKw8ooi+h7ivDLZs5wCfVji166XZqsmvZw6oHNJ0= 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=YX3UR/oO; 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="YX3UR/oO" 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=d8ZPpkp92sAIXUNP/g9UA5dkpHIgTZVA5wNhGzc6yBU=; b=YX3UR/oOqem/vZ89//YeXAiZKr qlU466+hxbgNjcZ0+ybxbTjovEYUpB8U7WGW1IAQLCgpd7zoiPnDt/c+mH1BvGc9l60+tXHYBuVC/ 8sRlH5E0ZuUj+xGRWzkWMJ/MaMjUGp0pcDKVaxV4MjziJfNZ8SnmdKryLAxn9VLXYIKXwUnKI+OJt 0TfbkdG6DzyXDzjH5iCEuGfB7fii0+sc9xeTnmC/+5R7pCxnRvEJKRkka3hK0XsbwY7nQ7aPBYqww IYjcXkX4EoDchaxQaRU/gQu2/NBIBWp+pYJDbR811N/vNVrOMQg6LJNzCqdd2ndMJYEoCbwFT+yGO izV4FRdg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1ugzss-00000000lOL-3fV4; Wed, 30 Jul 2025 06:01:50 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH v2 2/9] Makefile: suppress Ansible warnings during configuration generation Date: Tue, 29 Jul 2025 23:01:38 -0700 Message-ID: <20250730060147.182140-3-mcgrof@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250730060147.182140-1-mcgrof@kernel.org> References: <20250730060147.182140-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 The initial configuration generation playbooks (ansible_cfg.yml, gen_hosts.yml, and gen_nodes.yml) run without a proper inventory file by design, as they are responsible for creating the configuration files that will be used by subsequent playbooks. This causes Ansible to emit warnings about: - "No inventory was parsed, only implicit localhost is available" - "provided hosts list is empty, only localhost is available" These warnings are harmless but create noise in the build output, potentially confusing users who might think something is wrong. Add ANSIBLE_LOCALHOST_WARNING=False and ANSIBLE_INVENTORY_UNPARSED_WARNING=False environment variables to these three ansible-playbook invocations to suppress these specific warnings. This makes the build output cleaner while maintaining the same functionality. The warnings were appearing because: 1. ansible_cfg.yml creates the ansible.cfg file 2. gen_hosts.yml creates the hosts inventory file 3. gen_nodes.yml creates the kdevops_nodes.yaml file All three intentionally run with "--connection=local" and minimal inventory since they're bootstrapping the configuration that other playbooks will use. Generated-by: Claude AI Signed-off-by: Luis Chamberlain --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 37c2522b..31f544e9 100644 --- a/Makefile +++ b/Makefile @@ -195,7 +195,8 @@ include scripts/gen-nodes.Makefile false) $(ANSIBLE_CFG_FILE): .config - $(Q)ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \ + $(Q)ANSIBLE_LOCALHOST_WARNING=False ANSIBLE_INVENTORY_UNPARSED_WARNING=False \ + ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \ --inventory localhost, \ $(KDEVOPS_PLAYBOOKS_DIR)/ansible_cfg.yml \ --extra-vars=@./.extra_vars_auto.yaml @@ -226,13 +227,15 @@ endif DEFAULT_DEPS += $(ANSIBLE_INVENTORY_FILE) $(ANSIBLE_INVENTORY_FILE): .config $(ANSIBLE_CFG_FILE) $(KDEVOPS_HOSTS_TEMPLATE) - $(Q)ansible-playbook $(ANSIBLE_VERBOSE) \ + $(Q)ANSIBLE_LOCALHOST_WARNING=False ANSIBLE_INVENTORY_UNPARSED_WARNING=False \ + ansible-playbook $(ANSIBLE_VERBOSE) \ $(KDEVOPS_PLAYBOOKS_DIR)/gen_hosts.yml \ --extra-vars=@./extra_vars.yaml DEFAULT_DEPS += $(KDEVOPS_NODES) $(KDEVOPS_NODES): .config $(ANSIBLE_CFG_FILE) $(KDEVOPS_NODES_TEMPLATE) - $(Q)ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \ + $(Q)ANSIBLE_LOCALHOST_WARNING=False ANSIBLE_INVENTORY_UNPARSED_WARNING=False \ + ansible-playbook $(ANSIBLE_VERBOSE) --connection=local \ --inventory localhost, \ $(KDEVOPS_PLAYBOOKS_DIR)/gen_nodes.yml \ --extra-vars=@./extra_vars.yaml -- 2.47.2