8000 `cobbler buildiso` fails when a system is based on an image · Issue #3236 · cobbler/cobbler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cobbler buildiso fails when a system is based on an image #3236

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 Aug 22, 2022 · 0 comments · Fixed by #3237
Closed

cobbler buildiso fails when a system is based on an image #3236

SchoolGuy opened this issue Aug 22, 2022 · 0 comments · Fixed by #3237
Assignees
Labels
Bug Report Reporting a bug
Milestone

Comments

@SchoolGuy
Copy link
Member

Describe the bug

When executing cobbler buildiso --systems="example" the ISO is not built successfully.

Steps to reproduce

  1. Add an image to Cobbler
  2. Add a system with the previously added image as a parent
  3. Run cobbler buildiso ...
  4. See below stacktrace

Expected behavior

cobbler buildiso will succeed without problems.

Cobbler version

3.3.3

Operating system

openSUSE Leap/Tumbleweed

Cobbler log

[2022-08-10_124242_buildiso] 2022-08-10T12:42:43 - INFO | copying kernels and initrds for standalone distro
[2022-08-10_124242_buildiso] 2022-08-10T12:42:43 - INFO | processing system: suma-cobbler-test-cli-sles15.tf.local:1
[2022-08-10_124242_buildiso] 2022-08-10T12:42:43 - INFO | Exception occurred: <class 'AttributeError'>
[2022-08-10_124242_buildiso] 2022-08-10T12:42:43 - INFO | Exception value: 'NoneType' object has no attribute 'name'
[2022-08-10_124242_buildiso] 2022-08-10T12:42:43 - INFO | Exception Info:
        File "/usr/lib/python3.6/site-packages/cobbler/remote.py", line 100, in run
          rc = self._run(self)

  File "/usr/lib/python3.6/site-packages/cobbler/remote.py", line 175, in runner
    self.options.get("xorrisofs_opts", ""),

  File "/usr/lib/python3.6/site-packages/cobbler/api.py", line 1909, in build_iso
    distro_name=distro_name, systems=systems, exclude_dns=exclude_dns)

  File "/usr/lib/python3.6/site-packages/cobbler/actions/buildiso/netboot.py", line 567, in run
    self.generate_netboot_iso(systems, exclude_dns)

  File "/usr/lib/python3.6/site-packages/cobbler/actions/buildiso/netboot.py", line 534, in generate_netboot_iso
    self._generate_netboot_system(system, cfglines, exclude_dns)

  File "/usr/lib/python3.6/site-packages/cobbler/actions/buildiso/netboot.py", line 460, in _generate_netboot_system
    distname = self.make_shorter(dist.name)

Screenshots

None

Additional information

Found during stabilization of Cobbler for Uyuni/SUSE Manager by @meaksh.

@SchoolGuy SchoolGuy added the Bug Report Reporting a bug label Aug 22, 2022
@SchoolGuy SchoolGuy added this to the v3.4.0 milestone Aug 22, 2022
@SchoolGuy SchoolGuy self-assigned this Aug 22, 2022
@SchoolGuy SchoolGuy moved this to Todo in Cobbler Server Aug 22, 2022
@SchoolGuy SchoolGuy moved this from Todo to In Progress in Cobbler Server Aug 22, 2022
Repository owner moved this from In Progress to Done in Cobbler Server Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Reporting a bug
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant
0