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

Build target proxmox-flatcar fails #1678

Open
clevelandcs opened this issue Jan 31, 2025 · 2 comments
Open

Build target proxmox-flatcar fails #1678

clevelandcs opened this issue Jan 31, 2025 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@clevelandcs
Copy link

Environment

  • Make target: make build-proxmox-flatcar
  • Run using container image? (Y/N): N
  • Environment vars:

  • Vars file:

What steps did you take and what happened?

  1. Pull repository
  2. make deps-proxmox
  3. set env vars per docs
  4. run make build-proxmox-flatcar
  5. wait for VM to start, SSH never becomes available
  6. Check VM console
  7. Error sed cannot read /tmp/ignition.json no such file or directory

What did you expect to happen?

VM should reboot with open ssh interface for template configuration to proceed. A proxmox flatcar kubernetes template should exist at the end.

Relevant log output

Log Output

Image

Anything else you would like to add?

Can include the rest of the local logs but realistically that won't add anything. Nothing was set aside from the env vars in the docs.


/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 31, 2025
@clevelandcs
Copy link
Author

Just realized that I should probably be on a release tag... Switching to v0.1.40 I don't even see a flatcar target for Proxmox so maybe it's not ready for prime time like the other flatcar targets?

@AverageMarcus
Copy link
Member

Yeah, looks like we haven't done a release yet since it was introduced here #1589

We're completely lacking testing for Proxmox so we rely completely on users like you to help us with this 😅 Sorry about that!

Looking at the error my guess is that boot command is not waiting for the curl command to complete before trying to modify the file.

Could you please try setting the following values and report back if it changes things:

{
  "boot_command_prefix": "sudo systemctl mask sshd.socket --now<enter><wait>curl -sLo /tmp/ignition.json https://raw.githubusercontent.com/kubernetes-sigs/image-builder/21f6a77a9a46a217949579d52f7b671568521678/images/capi/packer/files/flatcar/ignition/bootstrap-pass-auth.json && sed -i \"s|BUILDERPASSWORDHASH|$(mkpasswd -5 {{user `ssh_password`}})|\" /tmp/ignition.json && sudo flatcar-install -d /dev/sda -C {{user `channel_name`}} -V {{user `release_version`}} -i /tmp/ignition.json && sudo reboot<enter>",
  "boot_command_suffix": ""
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants