Skip to content

Commit a805101

Browse files
fix: Updated InfraEnv template and updated timeouts for image downloads (#418)
Updated InfraEnv template Updated timeouts for image downloads Signed-off-by: DAMISETTI-VEERABHADRARAO <damisetti.veerabhadrarao@ibm.com>
1 parent f81d851 commit a805101

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

roles/create_hcp_InfraEnv/templates/InfraEnv.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ spec:
1313
pullSecretRef:
1414
name: pull-secret
1515
sshAuthorizedKey: "{{ ssh_key }}"
16+
ignitionConfigOverride: '{"ignition":{"version":"3.2.0"},"storage":{"files":[{"path":"/etc/containers/policy.json","mode":420,"overwrite":true,"contents":{"source":"data:text/plain;charset=utf-8;base64,ewogICAgImRlZmF1bHQiOiBbCiAgICAgICAgewogICAgICAgICAgICAidHlwZSI6ICJpbnNlY3VyZUFjY2VwdEFueXRoaW5nIgogICAgICAgIH0KICAgIF0sCiAgICAidHJhbnNwb3J0cyI6CiAgICAgICAgewogICAgICAgICAgICAiZG9ja2VyLWRhZW1vbiI6CiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgIiI6IFt7InR5cGUiOiJpbnNlY3VyZUFjY2VwdEFueXRoaW5nIn1dCiAgICAgICAgICAgICAgICB9CiAgICAgICAgfQp9"}}]}}'

roles/download_rootfs_hcp/tasks/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
url: "{{ rootfs.stdout }}"
4848
dest: /var/www/html/rootfs.img
4949
validate_certs: false
50+
timeout: 60
5051

5152
- name: Copy kernel.img to /var/www/html/
5253
ansible.builtin.copy:

roles/setup_for_agents_hcp/tasks/main.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
url: "{{ initrd.stdout }}"
1616
dest: /var/lib/libvirt/images/pxeboot/initrd.img
1717
validate_certs: false
18+
timeout: 60
1819
when: ( hcp.data_plane.kvm.boot_method | lower != 'iso' and hcp.compute_node_type | lower == 'kvm' ) or hcp.compute_node_type | lower != 'kvm'
1920

2021
- name: Get URL for kernel.img
@@ -27,6 +28,7 @@
2728
url: "{{ kernel.stdout }}"
2829
dest: /var/lib/libvirt/images/pxeboot/kernel.img
2930
validate_certs: false
31+
timeout: 60
3032
when: ( hcp.data_plane.kvm.boot_method | lower != 'iso' and hcp.compute_node_type | lower == 'kvm' ) or hcp.compute_node_type | lower != 'kvm'
3133

3234
- name: Get URL for ISO
@@ -39,6 +41,7 @@
3941
url: "{{ iso.stdout }}"
4042
dest: /var/lib/libvirt/images/pxeboot/image.iso
4143
validate_certs: false
44+
timeout: 60
4245
when: hcp.data_plane.kvm.boot_method | lower == 'iso' and hcp.compute_node_type | lower == 'kvm'
4346

4447
- name: Generate param files

0 commit comments

Comments
 (0)