`cobbler validate-autoinstalls`: Crashes with "Unhashable type Profile" · Issue #3597 · cobbler/cobbler · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cobbler validate-autoinstalls is crashing even though with a single profile or distro added to Cobbler.
Steps to reproduce
Install Cobbler
Import single distro/profile
Execute cobbler validate-autoinstalls
See error
Expected behavior
Cobbler version
3.3.3 + release33 commits
Operating system
openSUSE Tumbleweed 20240209
Cobbler log
[2024-02-11_122905_validate_autoinstall_files] 2024-02-11T12:29:06 - INFO | Exception Info:
File "/usr/lib/python3.11/site-packages/cobbler/remote.py", line 103, in run
rc = self._run(self)
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/cobbler/remote.py", line 264, in runner
return self.remote.api.validate_autoinstall_files()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/cobbler/api.py", line 1525, in validate_autoinstall_files
autoinstall_mgr.validate_autoinstall_files()
File "/usr/lib/python3.11/site-packages/cobbler/autoinstall_manager.py", line 328, in validate_autoinstall_files
(success, errors_type, errors) = self.validate_autoinstall_file(x, True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/cobbler/autoinstall_manager.py", line 308, in validate_autoinstall_file
self.generate_autoinstall(profile=obj)
File "/usr/lib/python3.11/site-packages/cobbler/autoinstall_manager.py", line 267, in generate_autoinstall
return self.autoinstallgen.generate_autoinstall_for_profile(profile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/cobbler/autoinstallgen.py", line 342, in generate_autoinstall_for_profile
g = self.api.find_profile(name=g)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/cobbler/api.py", line 1081, in find_profile
return self._collection_mgr.profiles().find(name=name, return_list=return_list, no_errors=no_errors, **kargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/cobbler/cobbler_collections/collection.py", line 127, in find
return self.listing.get(kargs["name"], None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Screenshots
None
Additional information
None
The text was updated successfully, but these errors were encountered:
Describe the bug
cobbler validate-autoinstalls
is crashing even though with a single profile or distro added to Cobbler.Steps to reproduce
cobbler validate-autoinstalls
Expected behavior
Cobbler version
Operating system
openSUSE Tumbleweed 20240209
Cobbler log
Screenshots
None
Additional information
None
The text was updated successfully, but these errors were encountered: