[PATCH 0/2] declared hosts support
Luis Chamberlain <[email protected]>
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
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
--
2.50.1