8000 exception on server: '_BindManager' object has no attribute 'write_dns_files' · Issue #3157 · cobbler/cobbler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

exception on server: '_BindManager' object has no attribute 'write_dns_files' #3157

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
mdepot opened this issue Jun 13, 2022 · 1 comment
Closed
Labels
3.3.2 Release 3.3.2 Bug Report Reporting a bug

Comments

@mdepot
Copy link
mdepot commented Jun 13, 2022

Describe the bug

Cobbler 3.3.2 calls a function that doesn't exist.

Steps to reproduce

cobbler system add --name=test --profile=rocky8.6-x86_64
exception on server: '_BindManager' object has no attribute 'write_dns_files'

Cobbler version

cobbler --version
Cobbler 3.3.2
  source: ?, ?
  build time: Wed May  4 01:38:10 2022

Operating system

Rocky 8.6 + EPEL

Cobbler log

[Thread-39] 2022-06-13T11:49:27 - INFO | Writing template files for test
[Thread-39] 2022-06-13T11:49:27 - INFO | generating PXE menu structure
[Thread-39] 2022-06-13T11:49:27 - INFO | rendering DHCP files
[Thread-39] 2022-06-13T11:49:27 - INFO | generating /etc/dhcp/dhcpd.conf
[Thread-39] 2022-06-13T11:49:27 - INFO | rendering DNS files
[Thread-39] 2022-06-13T11:49:27 - INFO | Exception occurred: <class 'AttributeError'>
[Thread-39] 2022-06-13T11:49:27 - INFO | Exception value: '_BindManager' object has no attribute 'write_dns_files'
[Thread-39] 2022-06-13T11:49:27 - INFO | Exception Info:
  File "/usr/lib/python3.6/site-packages/cobbler/remote.py", line 3640, in _dispatch
    return method_handle(*params)

  File "/usr/lib/python3.6/site-packages/cobbler/remote.py", line 2047, in xapi_object_edit
    self.save_item(object_type, handle, token)

  File "/usr/lib/python3.6/site-packages/cobbler/remote.py", line 2102, in save_item
    self.api.add_item(what, obj)

  File "/usr/lib/python3.6/site-packages/cobbler/api.py", line 774, in add_item
    self.get_items(what).add(ref, check_for_duplicate_names=check_for_duplicate_names, save=save)

  File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/collection.py", line 409, in add
    self.api.sync_systems(systems=[ref.name])

  File "/usr/lib/python3.6/site-packages/cobbler/api.py", line 1396, in sync_systems
    sync_obj.run_sync_systems(systems)

  File "/usr/lib/python3.6/site-packages/cobbler/actions/sync.py", line 105, in run_sync_systems
    self.dns.write_dns_files()

Additional information

Perhaps should be calling self.dns.write_configs() instead of self.dns.write_dns_files()

# lines 102-105 in sync.py
if self.settings.manage_dns:
    self.logger.info("rendering DNS files")
    self.dns.regen_hosts()
    self.dns.write_dns_files()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.3.2 Release 3.3.2 Bug Report Reporting a bug
Projects
None yet
Development

No branches or pull requests

2 participants
0