-
Notifications
You must be signed in to change notification settings - Fork 78
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
Upgrade fails when /tmp is mounted with noexec #679
Comments
It tries to run the validation using the new binary that was uploaded to /tmp and fails to execute it. This is probably because RHEL mounts /tmp as I can think of two workarounds: Remount /tmp without mount -o remount,exec /tmp And to restore: mount -o remount,noexec /tmp This could be put in k0sctl.yaml hooks: spec:
hosts:
- ssh:
...
role: controller
uploadBinary: true
k0sBinaryPath: /root/zid/k0s/images/k0s-v1.28.8+k0s.0-amd64
hooks:
apply:
before:
- mount -o remount,exec /tmp
before:
- mount -o remount,noexec /tmp Or you could set TMPDIR env on the host to point somwhere else, like /root/tmp. |
Can we maybe use the /run folder instead, or is it also noexec?
|
Or maybe the temp k0s binary should go to something like |
I will try the mount workaround and give feedback. Would be nice if you can fix the issue in a new release. |
The issue is really the /tmp mount as
If I manually fix the mount directly on the host, k0sctrl can run the validation. |
I have a cluster which was initialized before successfully with k0sctl Version v0.15.2 with the following config
After upgrading k0sctl to v0.17.5 and do a cluster upgrade I get the error spec.k0s.config fails validation. Maybe it's related to #567
Run log:
The text was updated successfully, but these errors were encountered: