-
Notifications
You must be signed in to change notification settings - Fork 181
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
SaltSSH Bootstrap Error on Ubuntu 20.04 Client #5521
Comments
I am assuming that Can you upload complete |
Hi, Many thanks for the response. ssh_push_sudo_user wasn't set but I have done this and re-tried but it made no difference. (I did restart the salt-manager service after the change assuming this would consume the config). I have uploaded the log file /var/log/rhn_web_ui.log but apart from the odd auth failure due to me typing a password incorrectly there doesn't seem anything obvious- is it possible I can turn up the logging level to assist further? Interestingly I was able to run a remote command on the minion using mgr-salt-ssh after cleaning any minion files, and the /var/tmp file permissions were different from those used by the Web UI bootstrap. Kind regards, |
I'm also experiencing this issue with AlmaLinux 8 and CentOS 7 clients. Bootstrapping via Bootstrap Script works, but not via Web UI without a workaround. Uyuni Server 2022.05 (upgraded from previous releases since 2022.01). Tested clients are clean installed systems. Uyuni Server Web UI error:
And the same in rhn_web_ui.log. There doesn't seem to be anything else related other than this line:
The ext_mods seem to be related to "Salt Thin" or something? I do not have CentOS 7 client:Uyuni Server seems to be able to push some of the files, but installation fails due to incorrect permissions. The system will not appear in Uyuni even if the permissions are fixed after first failing a bootstrap attempt and then re-attempting another time.
WorkaroundTheoretically this issue shouldn't happen when bootstrapping with the root user, but it's usually not allowed to SSH in for security reasons.
|
And to confirm my theory, bootstrapping via Web UI as the root user does indeed work without any workarounds etc.. My workaround isn't necessarily needed if you can (temporarily) allow root ssh login. |
Thanks for the while loop workround @santeri3700. I did find that just changing the ownership after the first bootstrap run of the /var/temp/.*_salt directory to uyuni user and also chmod 755, did allow me to complete the bootstrap on the second run. I identified that the reason that clients weren't showing in the UI after changing the temp directory ownership/chmod was that being cloned VMs the machine ID was the same and needed changing. |
@santeri3700 thanks for pointing the workaound, it helps to find the solution. |
I've reproduced the issue, preparing the fix for it. |
Thanks very much @vzhestkov |
@bezkarl actually after failing you can run |
@vzhestkov I ran the above command after the the inital failure as the uyuni user, and the second bootstrap was successful. |
The fix was merged and promoted: openSUSE/salt#534 |
Thanks @vzhestkov |
I think this issue can be closed |
Problem description
When trying to bootstrap a Ubuntu 20.04 client from the Uyuni Web UI, the boostrap fails with the error:
"ERROR com.suse.manager.webui.controllers.utils.AbstractMinionBootstrapper - Error during bootstrap: SaltSSHError(13, stderr: "", stdout: "ERROR: Failure deploying ext_mods:"
Version of Uyuni Server and Proxy (if used)
2022.05-180.1.uyuni1, no proxy
Details about the issue
Hi,
I am attempting to bootstrap from the Uyuni Web UI using a user created on client/minion that is a member of the sudo group, with NOPASSWD set using visudo.
The minion bootstrap fails with the error above, which is found in the /var/log/rhn_web_ui.log
I can "onboard" the minion successfully using a bootstrap script run as root on the minion itself, so it seems this a permissions error when trying through SaltSSH.
I have noticed that a file created as part of the SaltSSH bootstrap in /var/tmp is owned by root and not the user running the bootstrap:
drwxr-xr-x 3 root root 4096 May 31 10:16 .salt_a89cdf_salt
I have tried changing the ownership of this file to the user running the bootstrap and re-run the process. This bypasses the above error and continues to install the venv-salt-minion and start the service. However the minion never appears in the Web UI even though the Salt key shows as accepted, so I am not sure whether changing the file permissions causes another issue which I haven't fully investigated.
While I can workound the issue and bootstrap by running the script on the minion, this may become problematic as we widen the scope and use of our Uyuni instance.
Please let me know if there are any log files I can provide to assist troubleshooting.
Kind regards,
Karl
The text was updated successfully, but these errors were encountered: