@@ -143,35 +143,32 @@ a new image:
143
143
additionally configure the control node to export compute hostvars over NFS.
144
144
Check the cluster is up.
145
145
146
- 2 . Reimage the compute nodes:
146
+ 2 . Optionally, reimage the compute nodes to reset services etc. :
147
147
148
148
ansible-playbook --limit compute ansible/adhoc/rebuild.yml
149
149
150
- 3 . Add metadata to a compute node e.g. via Horizon to turn on compute-init
151
- playbook functionality.
150
+ 3 . Add metadata to a compute node (directly via Horizon or via OpenTofu) to
151
+ enable the new compute-init playbook functionality.
152
152
153
- 4 . Stop ansible-init from running
153
+ 4 . Stop ansible-init from running:
154
154
155
155
ansible all -ba "systemctl stop ansible-init"
156
156
157
- 5 . Fake an image build to deploy the compute-init playbook:
157
+ 5 . Fake an image build and rerunning the ` site.yml ` playbook:
158
158
159
- ansible-playbook ansible/fatimage .yml --tags compute_init
159
+ ansible-playbook ansible/final .yml --tags compute_init
160
160
161
- NB: This will also re-export the compute hostvars, as the nodes are not
162
- in the builder group, which conveniently means any changes made to that
163
- play also get picked up.
161
+ This both re-installs the compute-init playbook and re-configures the NFS
162
+ share with exported compute hostvars etc.
164
163
165
- 6 . Fake a reimage of compute to run ansible-init and the updated compute-init playbook:
164
+ 6 . Fake a reimage of compute nodes to re-run ansible-init and the updated
165
+ compute-init playbook:
166
166
167
167
ansible all -ba "rm -f /var/lib/ansible-init.done && systemctl restart ansible-init"
168
168
169
- Use ` systemctl status ansible-init ` to view stdout/stderr from Ansible.
170
-
171
- Steps 4/5/6 can be repeated with changes to the compute script. If required,
172
- reimage the compute node(s) first as in step 2 and/or add additional metadata
173
- as in step 3.
169
+ 7 . Use ` systemctl status ansible-init ` to view stdout/stderr from Ansible.
174
170
171
+ Steps 4-7 can be repeated with changes to the compute script until it works.
175
172
176
173
## Design notes
177
174
- Duplicating code in roles into the ` compute-init ` script is unfortunate, but
0 commit comments