8000 `cobbler validate-autoinstalls`: Crashes with "Unhashable type Profile" · Issue #3597 · cobbler/cobbler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cobbler validate-autoinstalls: Crashes with "Unhashable type Profile" #3597

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

Closed
SchoolGuy opened this issue Feb 13, 2024 · 0 comments · Fixed by #3600
Closed

cobbler validate-autoinstalls: Crashes with "Unhashable type Profile" #3597

SchoolGuy opened this issue Feb 13, 2024 · 0 comments · Fixed by #3600
Assignees
Labels
3.3.3 Release 3.3.3 Bug Report Reporting a bug
Milestone

Comments

@SchoolGuy
Copy link
Member

Describe the bug

cobbler validate-autoinstalls is crashing even though with a single profile or distro added to Cobbler.

Steps to reproduce

  1. Install Cobbler
  2. Import single distro/profile
  3. Execute cobbler validate-autoinstalls
  4. 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

@SchoolGuy SchoolGuy added Bug Report Reporting a bug 3.3.3 Release 3.3.3 labels Feb 13, 2024
@SchoolGuy SchoolGuy added this to the v3.3.4 milestone Feb 13, 2024
@SchoolGuy SchoolGuy moved this from Todo to In Progress in Cobbler Server Feb 15, 2024
@SchoolGuy SchoolGuy self-assigned this Feb 15, 2024
@SchoolGuy SchoolGuy linked a pull request Feb 15, 2024 that will close this issue
12 tasks
@github-project-automation github-project-automation bot moved this from In Progress to Done in Cobbler Server Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.3.3 Release 3.3.3 Bug Report Reporting a bug
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant
0