Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4772B2E54A3 for ; Tue, 2 Sep 2025 20:45:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756845916; cv=none; b=nctrDvldAgmlKqLHVOhqpjMLaye9gidXQmYhpkJmgPYEYlRGTAhc2+lsZfn8R5GxKIjWjCEZYao5O645sZ27nTJGONoijuU9c2COTv9IvpCy6tHlMoxkMYW51DB8QTi94adQoZZB0Zg2TJl7dmjfdcX/BlZ+hAKlYZSKduf8K5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756845916; c=relaxed/simple; bh=Z4EONRqFLQkY474Iy6hpD5BBePzXmMVKhvy+zpSBhhA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JCG7DEIKJdS11RQzu/cDuMZcjXZ0F5NfC2K1GW9UCGOKR92QCYhuGRV1XW7SYv5neZZMOscCMSmPoBERNNJrkKkx1gWO8JCnS4f2FjkcEVbRiRHqcBf1wym0Q3iBy3bhGJrgOZ3c61TyVMAy5CO1SGpYcrY+yVCFNQqa+OeBHBg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qBJwuGlG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qBJwuGlG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DA50C4CEED; Tue, 2 Sep 2025 20:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756845916; bh=Z4EONRqFLQkY474Iy6hpD5BBePzXmMVKhvy+zpSBhhA=; h=Date:Reply-To:Subject:To:Cc:References:From:In-Reply-To:From; b=qBJwuGlGGqGEtM3g98ORz/Oe6wNJYAh5IG3tiQd0XXwZlPY4Xd6HRAqD+eB2JbdGy upZSp8riUZm+ZDUJEjWBrm/7LrMlr5Vtntvjwp/C254uzBHjsVX4DySXymcX1R+L1M QKtgOh554PbheJKSAKSOc6NSGL1w8GEj6XB+bBYdD4oaMXJUIRfNi6Mp2efWRajgV0 NJsYtsjHHIv9lVxUSlRgRl3aw06Af84hfraN83OiocotDybke6DuO6rbDR/evsBWpV BgO7Ky53tZ+MFPSom3VKRLFcBpj3W6z4+Jhtwvjrdh7kNewO8FtmglZ9bt8y1uShEj dd8nKj0YWGxPw== Message-ID: <74f75314-0537-4c7d-9772-5ef5b27384fd@kernel.org> Date: Tue, 2 Sep 2025 22:45:13 +0200 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: Daniel Gomez Subject: Re: [PATCH v2 33/37] devconfig: include the "service" group in the playbooks hosts list To: Chuck Lever , kdevops@lists.linux.dev Cc: Chuck Lever References: <20250902135426.815079-1-cel@kernel.org> <20250902135426.815079-34-cel@kernel.org> <68ce7537-8d59-4df0-8c58-4536dcc4b372@kernel.org> <4004010c-5ade-4143-b529-bf426249733d@kernel.org> Content-Language: en-US From: Daniel Gomez Organization: kernel.org In-Reply-To: <4004010c-5ade-4143-b529-bf426249733d@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 02/09/2025 22.30, Chuck Lever wrote: > On 9/2/25 4:27 PM, Daniel Gomez wrote: >> On 02/09/2025 15.54, Chuck Lever wrote: >>> From: Chuck Lever >>> >>> Since commit 1cf0800c9ffc ("gen_hosts: templates: include localhost >>> in the all group"), the devconfig playbook is no longer updating the >>> nfsd service host. >>> >>> 1. Actually all the service hosts need to be updated by devconfig, >>> so ensure devconfig runs against the service group. >>> >>> 2. Since devconfig can run against most workflows, add blank >>> [service] groups to any inventory template that doesn't already >>> have it. >>> >>> Fixes: 1cf0800c9ffc ("gen_hosts: templates: include localhost in the all group") >>> Signed-off-by: Chuck Lever >>> --- >>> playbooks/devconfig.yml | 2 +- >>> playbooks/roles/gen_hosts/templates/blktests.j2 | 3 +++ >>> playbooks/roles/gen_hosts/templates/cxl.j2 | 3 +++ >>> playbooks/roles/gen_hosts/templates/ltp.j2 | 4 ++++ >>> playbooks/roles/gen_hosts/templates/mmtests.j2 | 3 +++ >>> playbooks/roles/gen_hosts/templates/selftests.j2 | 3 +++ >>> playbooks/roles/gen_hosts/templates/sysbench.j2 | 3 +++ >>> scripts/devconfig.Makefile | 9 ++++----- >>> scripts/firstconfig.Makefile | 2 +- >>> scripts/provision.Makefile | 2 +- >>> 10 files changed, 26 insertions(+), 8 deletions(-) >>> >>> diff --git a/playbooks/devconfig.yml b/playbooks/devconfig.yml >>> index cebaa87a7228..f0ca7d767efe 100644 >>> --- a/playbooks/devconfig.yml >>> +++ b/playbooks/devconfig.yml >>> @@ -1,6 +1,6 @@ >>> --- >>> - name: Configure developer environment on target systems >>> - hosts: baseline:dev >>> + hosts: baseline:dev:service >>> gather_facts: false >>> roles: >>> - role: devconfig >>> diff --git a/playbooks/roles/gen_hosts/templates/blktests.j2 b/playbooks/roles/gen_hosts/templates/blktests.j2 >>> index 5bf50acbddac..6aa434c3383c 100644 >>> --- a/playbooks/roles/gen_hosts/templates/blktests.j2 >>> +++ b/playbooks/roles/gen_hosts/templates/blktests.j2 >>> @@ -22,3 +22,6 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> {% endif %} >>> [dev:vars] >>> ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> +[service] >>> +[service:vars] >>> +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> diff --git a/playbooks/roles/gen_hosts/templates/cxl.j2 b/playbooks/roles/gen_hosts/templates/cxl.j2 >>> index 64bec4561b6c..cab7da246b11 100644 >>> --- a/playbooks/roles/gen_hosts/templates/cxl.j2 >>> +++ b/playbooks/roles/gen_hosts/templates/cxl.j2 >>> @@ -16,3 +16,6 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> {% endif %} >>> [dev:vars] >>> ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> +[service] >>> +[service:vars] >>> +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> diff --git a/playbooks/roles/gen_hosts/templates/ltp.j2 b/playbooks/roles/gen_hosts/templates/ltp.j2 >>> index 828fd6362718..6946b3f3593b 100644 >>> --- a/playbooks/roles/gen_hosts/templates/ltp.j2 >>> +++ b/playbooks/roles/gen_hosts/templates/ltp.j2 >>> @@ -24,3 +24,7 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> {% endif %} >>> [dev:vars] >>> ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> + >>> +[service] >>> +[service:vars] >>> +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> diff --git a/playbooks/roles/gen_hosts/templates/mmtests.j2 b/playbooks/roles/gen_hosts/templates/mmtests.j2 >>> index 1252fe876e6c..8df4a3c31213 100644 >>> --- a/playbooks/roles/gen_hosts/templates/mmtests.j2 >>> +++ b/playbooks/roles/gen_hosts/templates/mmtests.j2 >>> @@ -31,3 +31,6 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> {% endfor %} >>> [mmtests:vars] >>> ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> +[service] >>> +[service:vars] >>> +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> diff --git a/playbooks/roles/gen_hosts/templates/selftests.j2 b/playbooks/roles/gen_hosts/templates/selftests.j2 >>> index e505bbf194b4..af0d6b341048 100644 >>> --- a/playbooks/roles/gen_hosts/templates/selftests.j2 >>> +++ b/playbooks/roles/gen_hosts/templates/selftests.j2 >>> @@ -22,3 +22,6 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> {% endif %} >>> [dev:vars] >>> ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> +[service] >>> +[service:vars] >>> +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> diff --git a/playbooks/roles/gen_hosts/templates/sysbench.j2 b/playbooks/roles/gen_hosts/templates/sysbench.j2 >>> index 107eebc5fbce..e30773c1b84a 100644 >>> --- a/playbooks/roles/gen_hosts/templates/sysbench.j2 >>> +++ b/playbooks/roles/gen_hosts/templates/sysbench.j2 >>> @@ -22,3 +22,6 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> {% endif %} >>> [dev:vars] >>> ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> +[service] >>> +[service:vars] >>> +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" >>> diff --git a/scripts/devconfig.Makefile b/scripts/devconfig.Makefile >>> index 146c70f78897..fedf1f2ca21f 100644 >>> --- a/scripts/devconfig.Makefile >>> +++ b/scripts/devconfig.Makefile >>> @@ -57,11 +57,10 @@ extend-extra-args-devconfig: >>> PHONY += devconfig >>> devconfig: $(KDEVOPS_NODES) >>> $(Q)ansible-playbook $(ANSIBLE_VERBOSE) \ >>> - --limit 'baseline:dev:nfsd' \ >>> + --limit 'baseline:dev:service' \ >> >> You don't need --limit at all (I missed this cleanup!). The playbook already has >> hosts: baseline:dev:service. >> >>> $(KDEVOPS_PLAYBOOKS_DIR)/devconfig.yml \ >>> --extra-vars="$(BOOTLINUX_ARGS)" \ >>> - --extra-vars '{ kdevops_cli_install: True }' \ >>> - $(LIMIT_HOSTS) >>> + --extra-vars '{ kdevops_cli_install: True }' >> >> Any reason to remove LIMIT_HOSTS support from here? Maybe not useful for these >> targets? > > Agreed, if we are simply removing the "--limit" option then I suppose > the $LIMIT_HOSTS is no longer redundant and should stay. Even if we keep the first --limit argument, it can be combined with LIMIT_HOSTS. Ansible will take the last argument which may be more restrictive and user controlled.