Skip to content

declared hosts support

Luis Chamberlain kdevops 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gen_hosts: refactor monolithic hosts.j2 template into per-workflow templatesplaybooks/roles/gen_hosts/tasks/main.yml playbooks/roles/gen_hosts/templates/hosts.j2 playbooks/roles/gen_hosts/templates/workflows/ai.j2 +26 more+780 -2451 reply
2/2declared_hosts: add support for pre-existing infrastructureMakefile kconfigs/Kconfig.bringup kconfigs/Kconfig.declared_hosts +3 more+363 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] declared hosts support

It should be easy for us to add bare metal support because well, the biggest pain is bring up. If bringup and ssh is already configured, then all we have to do is just skip a bunch of things. So the question to ask, is how do we generate the hosts file? The easiest interface I could think of is to allow you to specify it at make menuconfig time or defconfig time with a DECLARE_HOSTS= specifier with either a space or comma separated lists of hosts.

I tested this with a new workflow I am testing, minio WARP testing, but I also tested this simply with a random host I can ssh to with just:

make defconfig-xfs_reflink_4k DECLARE_HOSTS=foo ; make AV=2 make uname

And that works. For my other workflow I am testing I got full test restults and mkfs'd a drive. And so each workflow needs a bit of love for further DECLARE_HOSTS support. Things like the data partition, and so on. I suspect we can just specify some of these in the command line as CLI variables.

But this goes with just basic raw support. Maybe we only enable workflows for KDEVOPS_USE_DECLARED_HOSTS if we declare the workflow as supporting it (maybe select SUPPORTS_DECLARED_HOSTS)?

Luis Chamberlain (2):
gen_hosts: refactor monolithic hosts.j2 template into per-workflow
templates
declared_hosts: add support for pre-existing infrastructure

 Makefile                                      |   7 +
 kconfigs/Kconfig.bringup                      |   7 +
 kconfigs/Kconfig.declared_hosts               |  65 +++++
 playbooks/roles/devconfig/tasks/main.yml      |  60 ++++
 playbooks/roles/gen_hosts/tasks/main.yml      |  40 ++-
 playbooks/roles/gen_hosts/templates/hosts.j2  | 264 +++---------------
 .../roles/gen_hosts/templates/workflows/ai.j2 |  99 +++++++
 .../gen_hosts/templates/workflows/blktests.j2 |  58 ++++
 .../gen_hosts/templates/workflows/cxl.j2      |   7 +
 .../templates/workflows/declared-hosts.j2     | 219 +++++++++++++++
 .../gen_hosts/templates/workflows/default.j2  |  62 ++++
 .../templates/workflows/fio-tests.j2          |  38 +++
 .../gen_hosts/templates/workflows/fstests.j2  |  72 +++++
 .../gen_hosts/templates/workflows/gitr.j2     |  41 +++
 .../gen_hosts/templates/workflows/ltp.j2      |  41 +++
 .../gen_hosts/templates/workflows/mmtests.j2  |  77 +++++
 .../gen_hosts/templates/workflows/nfstest.j2  |  41 +++
 .../gen_hosts/templates/workflows/pynfs.j2    |   7 +
 .../templates/workflows/reboot-limit.j2       |  33 +++
 .../templates/workflows/selftests.j2          |  53 ++++
 .../gen_hosts/templates/workflows/sysbench.j2 |  53 ++++
 playbooks/roles/gen_nodes/tasks/main.yml      |   5 +
 workflows/ai/Makefile                         |   3 +-
 workflows/blktests/Makefile                   |   3 +-
 workflows/cxl/Makefile                        |   3 +-
 workflows/fio-tests/Makefile                  |   3 +-
 workflows/fstests/Makefile                    |   3 +-
 workflows/gitr/Makefile                       |   3 +-
 workflows/linux/Makefile                      |   3 +-
 workflows/ltp/Makefile                        |   3 +-
 workflows/mmtests/Makefile                    |   3 +-
 workflows/nfstest/Makefile                    |   3 +-
 workflows/pynfs/Makefile                      |   3 +-
 workflows/selftests/Makefile                  |   3 +-
 workflows/sysbench/Makefile                   |   3 +-
 35 files changed, 1143 insertions(+), 245 deletions(-)
 create mode 100644 kconfigs/Kconfig.declared_hosts
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/ai.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/blktests.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/cxl.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/declared-hosts.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/default.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/fio-tests.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/fstests.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/gitr.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/ltp.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/mmtests.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/nfstest.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/pynfs.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/reboot-limit.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/selftests.j2
 create mode 100644 playbooks/roles/gen_hosts/templates/workflows/sysbench.j2
Signature · 1 line
2.50.1