[BUG][DEPLOY] Unable to install the multi-cluster engine using the provided installation script
rhmdnd opened this issue · comments
Describe the bug
It appears that the deploy process for the multi-cluster engine expects a file that doesn't exist. I followed the directions in the README.md
To Reproduce
Steps to reproduce the behavior:
- Log into the cluster using
oc login
and token obtained from the console - Run
./start.sh
- Provide
2.0-latest
as the SNAPSHOT TAG - The installation fails because of a missing file
Expected behavior
I'd expect the multi-cluster operator to be installed.
Screenshots
$ ./start.sh
* Testing connection
* Using baseDomain: router-default.lbragstad-dev.devcluster.openshift.com
* oc CLI Client Version: 4.10.6
Find snapshot tags @ https://quay.io/stolostron/cmb-custom-registry?tab=tags
Enter SNAPSHOT TAG:
2.0-latest
SNAPSHOT_CHOICE is set to 2.0-latest
Error: stat catalogsources/multicluster-engine.yaml: no such file or directory
Desktop (please complete the following information):
- OS: [e.g. mac, rhel, etc..] Fedora 35
- Browser [e.g. chrome, safari, firefox] Firefox 98.0 (98.0-3.fc35)
- Snapshot [e.g. SNAPSHOT-XX-XX-XX-XX] 2.0-latest
Perhaps this script was moved and the reference to the catalogsources wasn't updated:
https://github.com/stolostron/deploy/tree/master/catalogsources
@rhmdnd
Do you have the prereqs defined here installed as well - https://github.com/stolostron/deploy#lets-get-started?
Notably I think yq
4.12+ is required.
If I recall correctly I've seen this bug happen with some versions of yq. Notably I am using yq 4.16
on my environment and it is working as expected here.
Did you install yq
with snap by any chance?
mikefarah/yq#463
If installed by snap
it uses strict confinement
which may be an issue here.
I installed the binary directly using the following:
VERSION='v4.24.2'
BINARY='yq_linux_amd64'
sudo wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq && sudo chmod +x /usr/bin/yq