Cobbler installation error-Exception occured: & lt;class' cobbler.ce
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