Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mohammedzee1000 opened this issue Jul 31, 2024 · 2 comments

Comments

@mohammedzee1000
Copy link
Member

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
Copy link
Member Author

mohammedzee1000 commented Aug 14, 2024

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
Copy link
Member Author

I think this affects any rhel 9 bastion based install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant