Skip to content

Deploy rebuild machinery #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Although most of the inventory uses the group convention described above there a
- An inventory group `<cluster_name>_<partition_name>` defining the hosts it contains - these must be homogenous w.r.t CPU and memory.
- An entry in the `openhpc_slurm_partitions` mapping in `environments/<environment>/inventory/group_vars/openhpc/overrides.yml`.
See the [openhpc role documentation](https://github.com/stackhpc/ansible-role-openhpc#slurmconf) for more options.

- On an OpenStack cloud, rebuilding/reimaging compute nodes from Slurm can be enabled by defining a `rebuild` group containing the relevant compute hosts (e.g. in the generated `hosts` file).

## Adding new functionality
TODO: this is just rough notes:
Expand Down
9 changes: 9 additions & 0 deletions ansible/slurm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
- import_role:
name: stackhpc.openhpc

- name: Setup slurm-driven reimage
hosts: rebuild
become: yes
tags:
- rebuild
tasks:
- import_role:
name: stackhpc.slurm_openstack_tools.rebuild

- name: Set locked memory limits on user-facing nodes
hosts:
- compute
Expand Down
12 changes: 11 additions & 1 deletion ansible/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,14 @@
- import_role:
name: opendistro
tasks_from: validate.yml
tags: validate
tags: validate

- name: Validate rebuild configuration
hosts: rebuild
gather_facts: false
tags: rebuild
tasks:
- import_role:
name: stackhpc.slurm_openstack_tools.rebuild
tasks_from: validate.yml
tags: validate
2 changes: 1 addition & 1 deletion dev/vagrant-example-configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ ansible-playbook ansible/adhoc/generate-passwords.yml

echo "Running site.yml"

ansible-playbook ansible/site.yml
ansible-playbook -vvvv ansible/site.yml -e "openhpc_rebuild_clouds=/tmp/vagrant-example/openstack"
3 changes: 3 additions & 0 deletions environments/common/inventory/groups
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ cluster # TODO: FIXME in branch
[selinux:children]
# Define selinux status for these
cluster

[rebuild]
# nodes in 'compute' group which can be rebuilt from slurm (on an OpenStack cloud)
2 changes: 1 addition & 1 deletion environments/common/layouts/everything
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ control
control

[filebeat:children]
slurm_stats
slurm_stats