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

Kubectl installation PATH configuration in a Ubuntu 22.04 VM requires reboot #40

Open
K123AsJ0k1 opened this issue Aug 20, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@K123AsJ0k1
Copy link
Collaborator

The kubectl installation and configuration in the current setup.sh might require reboot in some operating systems for the PATH configuration. For example, when I tried to setup the OSS platform in a GPU CPouta VM flavor using ubuntu 22.04, but it gave the following error during kind cluster creation:

Adding ~/.local/bin to $PATH in ~/.profile)
Client Version: v1.28.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Done!
./setup.sh: line 160: kind: command not found
Creating kind cluster...
/home/ubuntu/cloud-hpc-oss-mlops-platform/scripts/create_cluster.sh: line 14: kind: command not found

This problem vanished, when I rebooted the VM, which enabled the setup.sh to install the OSS platform normally. A temporary fix for this is to mention this problem and the solution in the setup.md troubleshoot.

@K123AsJ0k1 K123AsJ0k1 added the bug Something isn't working label Aug 20, 2024
@dmuiruri
Copy link
Collaborator

When I last tested OSS installation in CPouta VMs, I also used Ubuntu 22.04 images and did not encounter such behaviour, but it is still possible if there have been updates on OSS since I tested it.

@JoaquinRives
Copy link

Sounds like the add_local_bin_to_path (or source ~/.profile) not working properly on CPouta VMs. No idea how CPouta VMs OS works, but it might be possible to update the add_local_bin_to_path function so that it is not necessary to reboot.

  # make sure ~/.local/bin is in $PATH
  BASE=~
  if [[ ":$PATH:" != *${BASE}/.local/bin* ]]; then
    echo 'Adding ~/.local/bin to $PATH in ~/.profile)'
    echo "" >> ~/.profile
    echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.profile
    source ~/.profile
  fi
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants