public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
From: Daniel Gomez <da.gomez@kernel.org>
To: Chuck Lever <cel@kernel.org>, kdevops@lists.linux.dev
Cc: Chuck Lever <chuck.lever@oracle.com>
Subject: Re: [PATCH v2 33/37] devconfig: include the "service" group in the playbooks hosts list
Date: Tue, 2 Sep 2025 22:27:48 +0200	[thread overview]
Message-ID: <68ce7537-8d59-4df0-8c58-4536dcc4b372@kernel.org> (raw)
In-Reply-To: <20250902135426.815079-34-cel@kernel.org>

On 02/09/2025 15.54, Chuck Lever wrote:
> From: Chuck Lever <chuck.lever@oracle.com>
> 
> 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 <chuck.lever@oracle.com>
> ---
>  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?

>  
>  devconfig-generic-help-menu:
>  	@echo "devconfig          - Ensures generic system setup and is up to date"
> @@ -72,9 +71,9 @@ ifeq (y,$(CONFIG_SYSCTL_TUNING))
>  PHONY += sysctl-tunings
>  sysctl-tunings: $(KDEVOPS_NODES)
>  	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) \
> -		--limit 'baseline:dev:nfsd' \
> +		--limit 'baseline:dev:service' \

Same here. Not needed.

>  		$(KDEVOPS_PLAYBOOKS_DIR)/devconfig.yml \
> -		--extra-vars="$(BOOTLINUX_ARGS)" $(LIMIT_HOSTS) --tags vars,sysctl
> +		--extra-vars="$(BOOTLINUX_ARGS)" --tags vars,sysctl
>  
>  devconfig-help-menu:
>  	@echo "Target node configuration options"
> diff --git a/scripts/firstconfig.Makefile b/scripts/firstconfig.Makefile
> index 9f8a63a8ff84..5651a07d0b66 100644
> --- a/scripts/firstconfig.Makefile
> +++ b/scripts/firstconfig.Makefile
> @@ -2,7 +2,7 @@
>  
>  firstconfig:
>  	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) \
> -		--limit 'baseline:dev' \
> +		--limit 'baseline:dev:service' \

Same here...

>  		--extra-vars '{ kdevops_cli_install: True }' \
>  		--tags vars_simple,firstconfig \
>  		$(KDEVOPS_PLAYBOOKS_DIR)/devconfig.yml
> diff --git a/scripts/provision.Makefile b/scripts/provision.Makefile
> index f04264f6b9ea..62a5692904c9 100644
> --- a/scripts/provision.Makefile
> +++ b/scripts/provision.Makefile
> @@ -70,7 +70,7 @@ KDEVOPS_MRPROPER += $(KDEVOPS_PROVISIONED_DEVCONFIG)
>  $(KDEVOPS_PROVISIONED_DEVCONFIG):
>  	$(Q)if [[ "$(CONFIG_KDEVOPS_ANSIBLE_PROVISION_PLAYBOOK)" != "" ]]; then \
>  		ansible-playbook $(ANSIBLE_VERBOSE) \
> -			--limit 'baseline:dev' \
> +			--limit 'baseline:dev:service' \

And here (playbook is devconfig.yml)

>  			$(KDEVOPS_PLAYBOOKS_DIR)/$(KDEVOPS_ANSIBLE_PROVISION_PLAYBOOK) ;\
>  	fi
>  	$(Q)touch $(KDEVOPS_PROVISIONED_DEVCONFIG)

  reply	other threads:[~2025-09-02 20:27 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-02 13:53 [PATCH v2 00/37] Various fixes Chuck Lever
2025-09-02 13:53 ` [PATCH v2 01/37] scripts: Update gen_ssh_key.sh Chuck Lever
2025-09-02 13:53 ` [PATCH v2 02/37] terraform/azure: Fix count of managed disks Chuck Lever
2025-09-02 13:53 ` [PATCH v2 03/37] terraform/azure: Remove tags from terraform configuration Chuck Lever
2025-09-02 13:53 ` [PATCH v2 04/37] terraform/azure: Enable network acceleration Chuck Lever
2025-09-02 13:53 ` [PATCH v2 05/37] terraform/azure: Make the resource group name a variable Chuck Lever
2025-09-02 13:53 ` [PATCH v2 06/37] terraform/azure: Remove the provider version constraint Chuck Lever
2025-09-02 13:53 ` [PATCH v2 07/37] terraform/azure: Update the RHEL publishers Chuck Lever
2025-09-02 13:53 ` [PATCH v2 08/37] terraform/oci: Work around oracle/oci provider bug Chuck Lever
2025-09-02 13:53 ` [PATCH v2 09/37] terraform/oci: Add Kconfig choices for disk performance provisioning Chuck Lever
2025-09-02 13:53 ` [PATCH v2 10/37] terraform/oci: Enable preemptible compute instances Chuck Lever
2025-09-02 13:53 ` [PATCH v2 11/37] terraform/aws: Fix zone selection for us_west1 Chuck Lever
2025-09-02 13:53 ` [PATCH v2 12/37] Revert "terraform/aws: Add Oracle Linux AMI selections" Chuck Lever
2025-09-02 13:54 ` [PATCH v2 13/37] terraform/aws: Remove unused terraform tags Chuck Lever
2025-09-02 13:54 ` [PATCH v2 14/37] terraform/GCE: Fix the default disk throughput values Chuck Lever
2025-09-02 13:54 ` [PATCH v2 15/37] terraform/gce: Remove unused tags Chuck Lever
2025-09-02 13:54 ` [PATCH v2 16/37] terraform/gce: Remove support for Fedora Chuck Lever
2025-09-02 13:54 ` [PATCH v2 17/37] terraform/gce: Update existing machine types and introduce new ones Chuck Lever
2025-09-02 13:54 ` [PATCH v2 18/37] terraform: Create the user's .ssh/config if it does not already exist Chuck Lever
2025-09-02 13:54 ` [PATCH v2 19/37] pynfs: Don't install xdrlib3 on older RHEL Chuck Lever
2025-09-02 13:54 ` [PATCH v2 20/37] guestfs: Update the guestfs playbook description Chuck Lever
2025-09-02 19:36   ` Daniel Gomez
2025-09-02 13:54 ` [PATCH v2 21/37] gen_hosts: Add 'localhost' to the [all] group Chuck Lever
2025-09-02 19:39   ` Daniel Gomez
2025-09-02 13:54 ` [PATCH v2 22/37] gen_hosts: Add [service] group to the builder host template Chuck Lever
2025-09-02 19:43   ` Daniel Gomez
2025-09-02 19:47     ` Chuck Lever
2025-09-02 20:38       ` Daniel Gomez
2025-09-02 13:54 ` [PATCH v2 23/37] guestfs: Don't run the 'destroy' tags on the controller Chuck Lever
2025-09-02 19:54   ` Daniel Gomez
2025-09-02 19:59     ` Chuck Lever
2025-09-02 20:40       ` Daniel Gomez
2025-09-02 13:54 ` [PATCH v2 24/37] base_image: Skip "locales-all" package on Fedora Chuck Lever
2025-09-02 19:57   ` Daniel Gomez
2025-09-02 13:54 ` [PATCH v2 25/37] update_etc_hosts: ipaddr Chuck Lever
2025-09-02 19:59   ` Daniel Gomez
2025-09-02 13:54 ` [PATCH v2 26/37] Add an Ansible requirements.yml file Chuck Lever
2025-09-02 20:06   ` Daniel Gomez
2025-09-02 20:13     ` Chuck Lever
2025-09-02 13:54 ` [PATCH v2 27/37] terraform/oci: Clean up white space in route table resource Chuck Lever
2025-09-02 20:10   ` Daniel Gomez
2025-09-02 13:54 ` [PATCH v2 28/37] guestfs: Correct the spelling of "drives" Chuck Lever
2025-09-02 20:14   ` Daniel Gomez
2025-09-02 13:54 ` [PATCH v2 29/37] guestfs: Configure how many extra drives to provision Chuck Lever
2025-09-02 20:19   ` Daniel Gomez
2025-09-02 20:23     ` Chuck Lever
2025-09-02 13:54 ` [PATCH v2 30/37] ltp: Replace /opt with a symlink to data partition Chuck Lever
2025-09-02 13:54 ` [PATCH v2 31/37] terraform: Squelch Ansible complaints about missing inventory file Chuck Lever
2025-09-02 13:54 ` [PATCH v2 32/37] terraform: Skip localhost when waiting for targets to reboot Chuck Lever
2025-09-02 13:54 ` [PATCH v2 33/37] devconfig: include the "service" group in the playbooks hosts list Chuck Lever
2025-09-02 20:27   ` Daniel Gomez [this message]
2025-09-02 20:30     ` Chuck Lever
2025-09-02 20:45       ` Daniel Gomez
2025-09-02 13:54 ` [PATCH v2 34/37] Makefile: Remove CONFIG_TOPDIR_PATH_HAS_SHA256SUM Chuck Lever
2025-09-02 13:54 ` [PATCH v2 35/37] Makefile: Set TOPDIR_PATH and generate its sha256sum at run time Chuck Lever
2025-09-02 13:54 ` [PATCH v2 36/37] ansible.cfg: generate an ansible.cfg file in TOPDIR Chuck Lever
2025-09-02 13:54 ` [PATCH v2 37/37] inventory: generate the inventory pathname dynamically Chuck Lever
2025-09-02 15:24 ` [PATCH v2 00/37] Various fixes Luis Chamberlain
2025-09-02 20:34 ` Daniel Gomez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68ce7537-8d59-4df0-8c58-4536dcc4b372@kernel.org \
    --to=da.gomez@kernel.org \
    --cc=cel@kernel.org \
    --cc=chuck.lever@oracle.com \
    --cc=kdevops@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox