Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Cobbler installation error-Exception occured: & lt;class' cobbler.ce

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Research on automatic installation of cobbler, error occurred when synchronizing cobbler configuration

Cobbler sync / / synchronously generate dhcp configuration files dhcpd-t failedException occured: Exception value: 'cobbler trigger failed: cobbler.modules.sync_post_restart_services'Exception Info: File "/ usr/lib/python2.7/site-packages/cobbler/remote.py", line 82, in run rc = self._run (self) File "/ usr/lib/python2.7/site-packages/cobbler/remote.py", line 181 In runner return self.remote.api.sync (self.options.get ("verbose", False), logger=self.logger) File "/ usr/lib/python2.7/site-packages/cobbler/api.py", line 763, in sync return sync.run () File "/ usr/lib/python2.7/site-packages/cobbler/action_sync.py", line 144, in run utils.run_triggers (self.api, None, "/ var/lib/cobbler/triggers/sync/post/*") Logger=self.logger) File "/ usr/lib/python2.7/site-packages/cobbler/utils.py", line 928, in run_triggers raise CX ("cobbler trigger failed:% s"% m.roomnames _)

The error is related to the dhcp service, indicating that it may be an error in the configuration of the dhcp template. Check it in the configuration file and see that it is indeed an error in the configuration of the address pool.

Vi / etc/cobbler/dhcp.templatesubnet 192.168.109.0 netmask 255.255.255.0 {option routers 192.168.109.1; option domain-name-servers 8.8.8; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.1.100 192.168.1.254; / / address pool unmodified default-lease-time 21600 Max-lease-time 43200; next-server $next_server;subnet 192.168.109.0 netmask 255.255.255.0 {option routers 192.168.109.1; option domain-name-servers 8.8.8; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.109.100 192.168.109.254 / / modify the address pool default-lease-time 21600; max-lease-time 43200; next-server $next_server

Note the changes to be made in the dhcp template: subnet, option routers, dns, range dynamic-bootp

Reload the service after modification, the service is successful!

Cobbler synctask started: 2019-11-05_011754_synctask started (id=Sync, time=Tue Nov 5 01:17:54 2019). Running shell triggers from / var/lib/cobbler/triggers/change/**** TASK COMPLETE * / Task accomplished

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report