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

kairos-agent does not work with a URL #764

Closed
sdwilsh opened this issue Jan 28, 2023 · 3 comments · Fixed by #963
Closed

kairos-agent does not work with a URL #764

sdwilsh opened this issue Jan 28, 2023 · 3 comments · Fixed by #963
Assignees
Labels
area/agent bug Something isn't working chore good first issue Good for newcomers lane/ux

Comments

@sdwilsh
Copy link
Contributor

sdwilsh commented Jan 28, 2023

Kairos version:
(there might be some typos here; the vmware remote console doesn't let me copy text, so I had to type this manually)

NAME="kairos-ubuntu-22-lts"
VERSION="v1.5.1-k3sv1.26.1+k3s1"
ID="kairos"
ID_LIKE="Kairos-ubuntu-22-lts"
VERSION_ID="v1.5.1-k3sv1.26.1+k3s1"
PRETTY_NAME="kairos-ubuntu-22-lts v1.5.1-k3sv1.26.1+k3s1"
ANSI_COLOR="0;32"
BUG_REPORT_URL="https://github.com/kairos-io/kairos/issues/new/choose"
HOME_URL="https://github.com/kairos-io/provider-kairos"
IMAGE_REPO="quay.io/kairos/kairos-ubuntu-22-lts"
IMAGE_LABEL="latest"
GITHUB_REPO="kairos-io/provider-kairos"
VARIANT="core"
FLAVOR="opensuse-leap"

CPU architecture, OS, and Version:

Linux localhost.localdomain 5.15.0-58-generic #64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Describe the bug
The program exists and outputs:

open http://10.10.0.20:9000/config.yml: no such file or directory

To Reproduce

  1. On a server that the installer can talk to, write a config file and then host it with python3 -m http.server 9000
  2. On the machine with the installer, run sudo kairos-agent manual-install --reboot --device "auto" http://[ip addr of other machine]:9000/config.yml

Expected behavior
As the help indicates, the installer will grab the config from the URL, and install it.

@sdwilsh sdwilsh added the bug Something isn't working label Jan 28, 2023
@sdwilsh
Copy link
Contributor Author

sdwilsh commented Jan 28, 2023

My workaround is to just curl -o config.yml http://10.10.0.20:9000/config.yml and then pass the file instead. Given that works, I know the URL is also correct.

@mudler
Copy link
Member

mudler commented Jan 29, 2023

thanks for the feedback @sdwilsh , this looks indeed a bug

@mudler mudler removed their assignment Jan 29, 2023
@paynejacob paynejacob self-assigned this Feb 21, 2023
@paynejacob
Copy link
Contributor

I am able to reproduce this with the provider image as well as the core images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/agent bug Something isn't working chore good first issue Good for newcomers lane/ux
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants