File tree Expand file tree Collapse file tree 5 files changed +17
-8
lines changed Expand file tree Collapse file tree 5 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,14 @@ jobs:
48
48
. venv/bin/activate
49
49
. environments/.stackhpc/activate
50
50
cd packer/
51
- packer init
51
+ packer init .
52
52
PACKER_LOG=1 packer build -only openstack.openhpc -on-error=ask -var-file=$PKR_VAR_environment_root/builder.pkrvars.hcl openstack.pkr.hcl
53
53
54
54
- name : Get created image name from manifest
55
55
id : manifest
56
56
run : |
57
57
. venv/bin/activate
58
- IMAGE_ID=$(jq --raw-output '.builds[-1].artifact_id' packer-manifest.json)
58
+ IMAGE_ID=$(jq --raw-output '.builds[-1].artifact_id' packer/packer -manifest.json)
59
59
while ! openstack image show -f value -c name $IMAGE_ID; do
60
60
sleep 30
61
61
done
Original file line number Diff line number Diff line change 5
5
- name : Remove dnf caches
6
6
command : dnf clean all
7
7
8
+ # If image build happens on a Neutron subnet with property dns_namservers defined, then cloud-init
9
+ # disables NetworkManager's control of /etc/resolv.conf and appends nameservers itself.
10
+ # We don't want network configuration during instance boot to depend on the configuration
11
+ # of the network the builder was on, so we reset these aspects.
8
12
- name : Delete /etc/resolv.conf
9
- # required as if cloud-init (rather than network manager) controls this on next boot it won't be entirely overrwritten
10
13
file :
11
14
path : /etc/resolv.conf
12
15
state : absent
13
16
14
- - name : Delete any injected ssh config for rocky
17
+ - name : Reenable NetworkManager control of resolv.conf
15
18
file :
16
- path : /home/rocky/.ssh/
19
+ path : /etc/NetworkManager/conf.d/99-cloud-init.conf
20
+ state : absent
21
+
22
+ - name : Delete any injected ssh config for ansible_user
23
+ file :
24
+ path : " /home/{{ ansible_user }}/.ssh/"
17
25
state : absent
18
26
19
27
- name : Run cloud-init cleanup
20
28
command : cloud-init clean --logs --seed
21
-
Original file line number Diff line number Diff line change 108
108
- name : unpack prometheus binaries
109
109
become : false
110
110
unarchive :
111
+ remote_src : yes
111
112
src : " /tmp/prometheus-{{ prometheus_version }}.linux-{{ go_arch }}.tar.gz"
112
113
dest : " /tmp"
113
114
creates : " /tmp/prometheus-{{ prometheus_version }}.linux-{{ go_arch }}/prometheus"
143
144
become : yes
144
145
gather_facts : no
145
146
tasks :
147
+ # - meta: end_here
146
148
- name : Cleanup image
147
149
import_tasks : cleanup.yml
148
150
Original file line number Diff line number Diff line change 1
1
flavor = " vm.ska.cpu.general.small"
2
2
networks = [" a262aabd-e6bf-4440-a155-13dbc1b5db0e" ] # WCDC-iLab-60
3
- source_image_name = " openhpc-230221-1226-f5ba2db7 .qcow2" # https://github.com/stackhpc/ansible-slurm-appliance/pull/250
3
+ source_image_name = " openhpc-230412-1447-e3769af6 .qcow2" # https://github.com/stackhpc/ansible-slurm-appliance/pull/258
4
4
# source_image_name = "Rocky-8-GenericCloud-Base-8.7-20221130.0.x86_64.qcow2"
5
5
ssh_keypair_name = " slurm-app-ci"
6
6
security_groups = [" default" , " SSH" ]
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ variable "create_nodes" {
17
17
variable "cluster_image" {
18
18
description = " single image for all cluster nodes - a convenience for CI"
19
19
type = string
20
- default = " openhpc-230221-1226-f5ba2db7 .qcow2" # https://github.com/stackhpc/ansible-slurm-appliance/pull/250
20
+ default = " openhpc-230412-1447-e3769af6 .qcow2" # https://github.com/stackhpc/ansible-slurm-appliance/pull/258
21
21
# default = "Rocky-8-GenericCloud-Base-8.7-20221130.0.x86_64.qcow2"
22
22
# default = "Rocky-8-GenericCloud-8.6.20220702.0.x86_64.qcow2"
23
23
}
You can’t perform that action at this time.
0 commit comments