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:
4848 . venv/bin/activate
4949 . environments/.stackhpc/activate
5050 cd packer/
51- packer init
51+ packer init .
5252 PACKER_LOG=1 packer build -only openstack.openhpc -on-error=ask -var-file=$PKR_VAR_environment_root/builder.pkrvars.hcl openstack.pkr.hcl
5353
5454 - name : Get created image name from manifest
5555 id : manifest
5656 run : |
5757 . 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)
5959 while ! openstack image show -f value -c name $IMAGE_ID; do
6060 sleep 30
6161 done
Original file line number Diff line number Diff line change 55- name : Remove dnf caches
66 command : dnf clean all
77
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.
812- 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
1013 file :
1114 path : /etc/resolv.conf
1215 state : absent
1316
14- - name : Delete any injected ssh config for rocky
17+ - name : Reenable NetworkManager control of resolv.conf
1518 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/"
1725 state : absent
1826
1927- name : Run cloud-init cleanup
2028 command : cloud-init clean --logs --seed
21-
Original file line number Diff line number Diff line change 108108 - name : unpack prometheus binaries
109109 become : false
110110 unarchive :
111+ remote_src : yes
111112 src : " /tmp/prometheus-{{ prometheus_version }}.linux-{{ go_arch }}.tar.gz"
112113 dest : " /tmp"
113114 creates : " /tmp/prometheus-{{ prometheus_version }}.linux-{{ go_arch }}/prometheus"
143144 become : yes
144145 gather_facts : no
145146 tasks :
147+ # - meta: end_here
146148 - name : Cleanup image
147149 import_tasks : cleanup.yml
148150
Original file line number Diff line number Diff line change 11flavor = " vm.ska.cpu.general.small"
22networks = [" 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
44# source_image_name = "Rocky-8-GenericCloud-Base-8.7-20221130.0.x86_64.qcow2"
55ssh_keypair_name = " slurm-app-ci"
66security_groups = [" default" , " SSH" ]
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ variable "create_nodes" {
1717variable "cluster_image" {
1818 description = " single image for all cluster nodes - a convenience for CI"
1919 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
2121 # default = "Rocky-8-GenericCloud-Base-8.7-20221130.0.x86_64.qcow2"
2222 # default = "Rocky-8-GenericCloud-8.6.20220702.0.x86_64.qcow2"
2323}
You can’t perform that action at this time.
0 commit comments