Skip to content

Commit e8d8e1d

Browse files
isumitsolankiSumit Solanki
and
Sumit Solanki
authored
Fix: Boot-artifacts has been renamed as required to boot the agents. (#402)
**Issue:** ABI cluster creation is getting failed in 4.19 installer version #401 **RCA:** From 4.19 ocp installer have started generating boot-artifacts with different name like agent.s390x-kernel.img as agent.s390x-vmlinuz. While booting agents we are providing agent.s390x-kernel.img as expected but now agent.s390x-kernel.img is not present in boot-artifacts **Fix:** Renamed agent.s390x-vmlinuz as agent.s390x-kernel.img because agent.s390x-vmlinuz has same content as agent.s390x-kernel.img Signed-off-by: Sumit Solanki <[email protected]> Co-authored-by: Sumit Solanki <[email protected]>
1 parent 5e3579d commit e8d8e1d

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

roles/abi_install_complete/tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
until: install_complete.finished
1616
# Set wait time to 71 min, because it depends highly on system performance and network speed
1717
retries: 141
18-
delay: 2
18+
delay: 30
1919
when: not install_config_vars.fips
2020

2121
- name: FIPS wait-for install-complete

roles/create_agent/tasks/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@
2424
chdir: ~/{{ abi.ansible_workdir }}
2525
when: abi.boot_method | lower == "iso" and install_config_vars.fips
2626

27+
- name: Check is vmlinuz exists in boot-artifacts
28+
stat:
29+
path: "~/{{ abi.ansible_workdir }}/boot-artifacts/agent.{{ ansible_architecture }}-vmlinuz"
30+
register: vmlinuz
31+
32+
- name: Copy and rename vmlinuz as kernel.img for PXE
33+
ansible.builtin.copy:
34+
src: "~/{{ abi.ansible_workdir }}/boot-artifacts/agent.{{ ansible_architecture }}-vmlinuz"
35+
dest: /var/www/html/agent.{{ ansible_architecture }}-kernel.img
36+
mode: '644'
37+
remote_src: true
38+
when: vmlinuz.stat.exists
39+
2740
- name: Copy initrd.img, kernel.img, and rootfs.img for PXE
2841
ansible.builtin.copy:
2942
src: "~/{{ abi.ansible_workdir }}/boot-artifacts/"

0 commit comments

Comments
 (0)