-
Notifications
You must be signed in to change notification settings - Fork 188
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
Suspect yq doesn't always successfully install on 01_install_requirements.sh L100 #1643
Comments
I believe the real issue is that you don't have the localtion of yq in your PATH, looking at the logs I can see this: |
Good point, I rechecked pip3 list, indeed I now do see yq (was) installed and located it: Printed my current the PATH, only to find as you said no reference to the missing '/usr/local/bin' Can we fix 01_install_requirements.sh so that it also handles the PATH update/reload?
If it's sufficient to update PATH only for current script session, or better yet fix it globally and re-source PATH so as to update the PATH for this and any future session/scripts. |
I'm not sure this needs fixing to be honest, considering that if a path is missing you can just add it to your login shell configuration file and you'll get it automatically once you log in again. |
Describe the bug
While running 01_install_requirements.sh the script failed/stopped running complaining that yq wasn't found, see tail of initial run: 01_install_requirements-2024-03-13-104741.log
Version / git show-ref
8d1e4db refs/heads/master
8d1e4db refs/remotes/origin/HEAD
To Reproduce
Executed on a RHEL 8.9 system, expected a VM based deployment,
other than CI_TOKEN, listed below are all the changed I made on my config_root.sh
export NUM_MASTERS=3
export NUM_WORKERS=0
export MASTER_MEMORY=65536
export MASTER_DISK=120
export MASTER_VCPU=16
export NUM_EXTRA_WORKERS=2
export EXTRA_WORKER_VCPU=8
export EXTRA_WORKER_MEMORY=32768
export EXTRA_WORKER_DISK=120
export OPENSHIFT_RELEASE_STREAM=4.14
export IP_STACK=v4
export PROVISIONING_NETWORK_PROFILE=Disabled
export REDFISH_EMULATOR_IGNORE_BOOT_DEVICE=True_
Expected/observed behavior
Expected - looking at L100 as yq didn't exist on my system, it should have gotten installed.
Observed - Failed to find/consume yq on L101, maybe it did really get pip installed just needed a waiter or refresh or something before trying to use/call it.
Anyway I manually installed yq via snapd, before I looked into code/logs, subsequent script re-execution continued as seen on 01_install_requirements-2024-03-13-111338.log, however later I hit other issues which I'm now looking into.
Not sure snapd install method accounts for these two (identical?) or only for the second one.
$pip3 list | grep yq
yq 3.2.3
$yq --version
yq 3.2.3
The text was updated successfully, but these errors were encountered: