File tree Expand file tree Collapse file tree 6 files changed +21
-46
lines changed Expand file tree Collapse file tree 6 files changed +21
-46
lines changed Original file line number Diff line number Diff line change 87
87
TF_VAR_cluster_name : ci${{ github.run_id }}
88
88
if : ${{ always() && steps.provision.outcome == 'failure' && contains('not enough hosts available', steps.provision_failure.messages) }}
89
89
90
- - name : Directly configure cluster and build compute, login and control images
90
+ - name : Directly configure cluster and build compute
91
91
# see pre-hook for the image build
92
92
run : |
93
93
. venv/bin/activate
@@ -131,9 +131,20 @@ jobs:
131
131
(echo $statuscode | grep "200 OK") || (echo $statuscode && exit 1)
132
132
env :
133
133
TEST_USER_PASSWORD : ${{ secrets.TEST_USER_PASSWORD }}
134
-
135
- - name : Test reimage of login and compute nodes
136
- # TODO: test control node reimage
134
+
135
+ - name : Build packer images
136
+ run : |
137
+ . venv/bin/activate
138
+ . environments/${{ matrix.cloud }}/activate
139
+ echo test_user_password: "$TEST_USER_PASSWORD" > $APPLIANCES_ENVIRONMENT_ROOT/inventory/group_vars/basic_users/defaults.yml
140
+ cd packer/
141
+ PACKER_LOG=1 packer build -on-error=ask -var-file=$PKR_VAR_environment_root/builder.pkrvars.hcl openstack.pkr.hcl
142
+ env :
143
+ OS_CLOUD : openstack
144
+ ANSIBLE_FORCE_COLOR : True
145
+ TEST_USER_PASSWORD : ${{ secrets.TEST_USER_PASSWORD }}
146
+
147
+ - name : Test reimage of nodes
137
148
run : |
138
149
. venv/bin/activate
139
150
. environments/${{ matrix.cloud }}/activate
Original file line number Diff line number Diff line change 23
23
# Need to change working directory otherwise we try to switch back to non-existent directory.
24
24
become_flags : ' -i'
25
25
become : true
26
+ - name : Reset ssh connection to allow user changes to affect ansible_user
27
+ meta : reset_connection
26
28
27
29
- hosts : selinux
28
30
gather_facts : false
Original file line number Diff line number Diff line change 1
1
flavor = " vm.alaska.cpu.general.small"
2
2
networks = [" a262aabd-e6bf-4440-a155-13dbc1b5db0e" ] # WCDC-iLab-60
3
- source_image_name = " openhpc-220526-1354 .qcow2"
3
+ source_image_name = " openhpc-220808-1510 .qcow2"
4
4
ssh_keypair_name = " slurm-app-ci"
5
5
security_groups = [" default" , " SSH" ]
6
6
ssh_bastion_host = " 128.232.222.183"
Original file line number Diff line number Diff line change 1
- - hosts : localhost
2
- become : false
3
- tags : build
4
- tasks :
5
- - name : Ensure secrets generated
6
- include_role :
7
- name : passwords
8
-
9
- - name : Build packer images
10
- shell :
11
- cmd : |
12
- cd packer
13
- PACKER_LOG=1 packer build -on-error=ask -var-file=$PKR_VAR_environment_root/builder.pkrvars.hcl openstack.pkr.hcl
14
- chdir : " {{ lookup('env', 'APPLIANCES_REPO_ROOT') }}"
15
- when : " 'builder' not in group_names" # avoid recursion!
16
- register : packer_run
17
- async : 2700 # 45 minutes
18
- poll : 0
19
-
20
1
- hosts : all
21
2
become : true
22
3
tags : etc_hosts
Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ module "cluster" {
18
18
key_pair = " slurm-app-ci"
19
19
control_node = {
20
20
flavor: " vm.alaska.cpu.general.small"
21
- image: " openhpc-220526-1354 .qcow2"
21
+ image: " openhpc-220808-1510 .qcow2"
22
22
}
23
23
login_nodes = {
24
24
login- 0 : {
25
25
flavor: " vm.alaska.cpu.general.small"
26
- image: " openhpc-220526-1354 .qcow2"
26
+ image: " openhpc-220808-1510 .qcow2"
27
27
}
28
28
}
29
29
compute_types = {
30
30
small: {
31
31
flavor: " vm.alaska.cpu.general.small"
32
- image: " openhpc-220526-1354 .qcow2"
32
+ image: " openhpc-220808-1510 .qcow2"
33
33
}
34
34
}
35
35
compute_nodes = {
Original file line number Diff line number Diff line change 1
- - hosts : localhost
2
- become : false
3
- tags : build
4
- tasks :
5
- - name : Ensure secrets generated
6
- include_role :
7
- name : passwords
8
-
9
- - name : Build packer images
10
- shell :
11
- cmd : |
12
- cd packer
13
- PACKER_LOG=1 packer build -on-error=ask -var-file=$PKR_VAR_environment_root/builder.pkrvars.hcl openstack.pkr.hcl
14
- chdir : " {{ lookup('env', 'APPLIANCES_REPO_ROOT') }}"
15
- when : " 'builder' not in group_names" # avoid recursion!
16
- register : packer_run
17
- async : 2700 # 45 minutes
18
- poll : 0
19
-
20
1
- hosts : all
21
2
become : true
22
3
tags : etc_hosts
You can’t perform that action at this time.
0 commit comments