Ansible-OpenShift-Provisioning icon indicating copy to clipboard operation
Ansible-OpenShift-Provisioning copied to clipboard

Openshift installer tarball for rhel 9 extracts to `openshift-install-fips`

Open mohammedzee1000 opened this issue 1 year ago • 2 comments

From OCP 4.16 onwards a new separate installer tarball is added for rhel 9 (openshift-install-rhel9-s390x.tar.gz). The normal binary is for rhel 8.

Downloading this and extracting it results in installer binary called openshift-install-fips instead of openshift-install. This will cause AOP install to fail as it wont find openshift-install binary.

❯ wget https://mirror.openshift.com/pub/openshift-v4/s390x/clients/ocp/4.16.5/openshift-install-rhel9-s390x.tar.gz
❯ tar -xzf openshift-install-rhel9-s390x.tar.gz
❯ ls
 openshift-install-fips   openshift-install-rhel9-s390x.tar.gz

mohammedzee1000 avatar Jul 31 '24 14:07 mohammedzee1000

A possible workaround for this is to mirror the installer and oc client tarballs You download, extract, and rename the installer binary (see below), then recreate the tarball, and host both the client tarball and newly created installer tarball in a location on a file server, and provide that URL to clients_download_url

FN=`ls openshift-install*`
if [[ $FN != "openshift-install" ]]; then
    mv $FN openshift-install
fi
tar -czf openshift-install-linux.tar.gz openshift-install

A possible fix would be to detect the binary name after extraction and rename it in shell, this can be done as above (except the tarball recreation)

Of course, we would do something similar in Ansible.

mohammedzee1000 avatar Aug 14 '24 13:08 mohammedzee1000

I think this affects any rhel 9 bastion based install

mohammedzee1000 avatar Aug 14 '24 14:08 mohammedzee1000

@mohammedzee1000 With this PR you are able to use fips to install OCP using ABI.

AmadeusPodvratnik avatar Dec 04 '24 08:12 AmadeusPodvratnik