Skip to content

Commit fcb1722

Browse files
Fix: Issue 433 - UPI installion not working (#434)
This is regression inside of UPI installation and KVM. Several fixes including doc update. Fix was tested using latest OCP version (default) for a four node cluster: # oc get no NAME STATUS ROLES AGE VERSION t313-odf-master-0.t313-odf.lnxero1.boe Ready control-plane,master 105m v1.33.5 t313-odf-master-1.t313-odf.lnxero1.boe Ready control-plane,master 105m v1.33.5 t313-odf-master-2.t313-odf.lnxero1.boe Ready control-plane,master 105m v1.33.5 t313-odf-worker-0.t313-odf.lnxero1.boe Ready worker 90m v1.33.5 Signed-off-by: Amadeuds Podvratnik <[email protected]>
1 parent eba1a73 commit fcb1722

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

docs/set-variables-group-vars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
**ocp_install_tgz** | OpenShift installer filename (tar.gz). | openshift-install-linux.tar.gz
182182
**rhcos_download_url** | Link to the CoreOS files to be used for the bootstrap, control and compute nodes. Feel free to change to a different version. | https://mirror.openshift.com/pub/openshift-v4/multi/clients/ocp/latest/s390x/
183183
**rhcos_os_variant** | CoreOS base OS. Use the OS string as defined in 'osinfo-query os -f short-id' | rhl9
184-
**rhcos_live_kernel** | CoreOS kernel filename to be used for the bootstrap, control and compute nodes. | rhcos-live-kernel-s390x
184+
**rhcos_live_kernel** | CoreOS kernel filename to be used for the bootstrap, control and compute nodes. | rhcos-live-kernel.s390x
185185
**rhcos_live_initrd** | CoreOS initramfs to be used for the bootstrap, control and compute nodes. | rhcos-live-initramfs.s390x.img
186186
**rhcos_live_rootfs** | CoreOS rootfs to be used for the bootstrap, control and compute nodes. | rhcos-live-rootfs.s390x.img
187187

playbooks/6_create_nodes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
roles:
3434
- { role: prep_kvm_guests, when: env.cluster.nodes.bootstrap.vm_name not in hosts_with_host_vars }
3535
# Delete control, compute and infra nodes, if exists
36-
- { role: delete_nodes, when: env.cluster.nodes.bootstrap.vm_name not in hosts_with_host_vars }
36+
- { role: delete_nodes, when: (hosts_with_host_vars|length == 0) or env.cluster.nodes.bootstrap.vm_name not in hosts_with_host_vars }
3737

3838
- name: 6 create nodes - create bootstrap
3939
hosts: kvm_host[0]
@@ -42,7 +42,7 @@
4242
- "{{ inventory_dir }}/group_vars/all.yaml"
4343
roles:
4444
- { role: common, when: env.cluster.nodes.bootstrap.vm_name not in hosts_with_host_vars }
45-
- { role: create_bootstrap, when: env.cluster.nodes.bootstrap.vm_name not in hosts_with_host_vars }
45+
- { role: create_bootstrap, when: (hosts_with_host_vars|length == 0) or env.cluster.nodes.bootstrap.vm_name not in hosts_with_host_vars }
4646

4747
- name: 6 create nodes - bootstrap and control ( if in lpar )
4848
hosts: bastion

roles/boot_LPAR/defaults/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# rhcos_download_url with '/' at the end !
22
rhcos_download_url: "https://mirror.openshift.com/pub/openshift-v4/s390x/dependencies/rhcos/latest/"
3-
3+
44
# RHCOS live image filenames
5-
rhcos_live_kernel: "rhcos-live-kernel-s390x"
5+
rhcos_live_kernel: "rhcos-live-kernel.s390x"
66
rhcos_live_initrd: "rhcos-live-initramfs.s390x.img"
77
rhcos_live_rootfs: "rhcos-live-rootfs.s390x.img"

roles/create_bootstrap/defaults/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ rhcos_download_url: "https://mirror.openshift.com/pub/openshift-v4/s390x/depende
44
rhcos_os_variant: rhl9
55

66
# RHCOS live image filenames
7-
rhcos_live_kernel: "rhcos-live-kernel-s390x"
7+
rhcos_live_kernel: "rhcos-live-kernel.s390x"
88
rhcos_live_initrd: "rhcos-live-initramfs.s390x.img"
99
rhcos_live_rootfs: "rhcos-live-rootfs.s390x.img"

roles/create_compute_node/defaults/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ rhcos_download_url: "https://mirror.openshift.com/pub/openshift-v4/s390x/depende
44
rhcos_os_variant: rhl9
55

66
# RHCOS live image filenames
7-
rhcos_live_kernel: "rhcos-live-kernel-s390x"
7+
rhcos_live_kernel: "rhcos-live-kernel.s390x"
88
rhcos_live_initrd: "rhcos-live-initramfs.s390x.img"
99
rhcos_live_rootfs: "rhcos-live-rootfs.s390x.img"

roles/create_compute_nodes/defaults/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ rhcos_download_url: "https://mirror.openshift.com/pub/openshift-v4/s390x/depende
44
rhcos_os_variant: rhl9
55

66
# RHCOS live image filenames
7-
rhcos_live_kernel: "rhcos-live-kernel-s390x"
7+
rhcos_live_kernel: "rhcos-live-kernel.s390x"
88
rhcos_live_initrd: "rhcos-live-initramfs.s390x.img"
99
rhcos_live_rootfs: "rhcos-live-rootfs.s390x.img"

roles/create_control_nodes/defaults/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ rhcos_download_url: "https://mirror.openshift.com/pub/openshift-v4/s390x/depende
44
rhcos_os_variant: rhl9
55

66
# RHCOS live image filenames
7-
rhcos_live_kernel: "rhcos-live-kernel-s390x"
7+
rhcos_live_kernel: "rhcos-live-kernel.s390x"
88
rhcos_live_initrd: "rhcos-live-initramfs.s390x.img"
99
rhcos_live_rootfs: "rhcos-live-rootfs.s390x.img"

0 commit comments

Comments
 (0)