-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
Exception "autoinstall_snippets_dir" is required to find snippets for windows #3819
Comments
I've come across this error myself using Cobbler 3.3.6 running on Fedora 34 Server, after successfully importing a Windows 10 distro (following the guide here). I'm getting the below error in cobbler.log upon adding a new Windows Cobbler System, or performing a Cobbler sync
I've taken a look at template_api.py and concluded that a variable is not set properly in Cobbler's environment. The Variable "autoinstall_snippets_dir" is defined in settings.yaml, but not in windows.settings. I've tried defining the variable in windows.settings file, restarting cobblerd, and running cobbler sync again, but the error persists. I noticed that the "autoinstall_snippets_dir" defined in settings.yaml has its value UNquoted, whereas variables in windows.settings have their values inside double-qoutes, however, I've tried with and without quotes for that variable in windows.settings file, which did not seem to make any difference. I've also tried unsetting the "autoinstall" option for the Cobbler Profile to attempt to bypass loading templates/snippets, but this brought no change either. I tried this with and without the "autoinstall_snippets_dir" variable set in windows.settings file (with and without quotes). Is there another snippets directory that should be installed or created? I've also taken some steps from here (which may or may not be relevant to Cobbler 3.3.6?) and even though it mentions windows.settings file, I still couldn't get passed this step. Without "cobbler sync" action working, I'm not comfortable proceeding. I also wanted to point out an inconsistency with this guide, and the official docs For now, I will pursue Windows deployments with the "windows_enabled" option set to "false" in windows.settings, since this error does not arise with Windows disabled in Cobbler, and I'm not trying to do unattended install right now, just PXE boot with manual install. |
@tpw56j Do you have any idea what could cause this? |
@SchoolGuy This is a bug that I forgot to backport to 3.3. |
Describe the bug
I'm trying to create system based on windows profile.
cobbler sync fails.
message in cobbler log:
"autoinstall_snippets_dir" is required to find snippets
Steps to reproduce
Expected behavior
cobbler sync should end without error
Cobbler version
Operating system
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
Cobbler log
Screenshots
Additional information
also on version 3.3.4
The text was updated successfully, but these errors were encountered: