91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

cobbler安裝報錯——Exception occured: <class 'cobbler.ce

發布時間:2020-06-14 23:54:08 來源:網絡 閱讀:643 作者:wx5d3fd1efe40e3 欄目:系統運維

研究自動化安裝cobbler,在進行同步cobbler配置時出現報錯

cobbler?sync???????????????//同步生成dhcp配置文件
dhcpd?-t?failed
Exception?occured:?<class?'cobbler.cexceptions.CX'>
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.__name__)

看報錯是與dhcp服務有關,說明可能是dhcp模板配置錯誤,進入配置文件中查看,看到果然是地址池配置錯誤

vi?/etc/cobbler/dhcp.template
subnet?192.168.109.0?netmask?255.255.255.0?{
?????option?routers?????????????192.168.109.1;
?????option?domain-name-servers?8.8.8.8;
?????option?subnet-mask?????????255.255.255.0;
?????range?dynamic-bootp????????192.168.1.100?192.168.1.254;???????//地址池未進行修改
?????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.8;
?????option?subnet-mask?????????255.255.255.0;
?????range?dynamic-bootp????????192.168.109.100?192.168.109.254;???????????????//將地址池做修改
?????default-lease-time?????????21600;
?????max-lease-time?????????????43200;
?????next-server????????????????$next_server;

注意dhcp模板中要修改的地方:subnet、option routers、dns、range dynamic-bootp


修改后重新加載服務,服務成功!

cobbler?sync
task?started:?2019-11-05_011754_sync
task?started?(id=Sync,?time=Tue?Nov??5?01:17:54?2019)
......
running?shell?triggers?from?/var/lib/cobbler/triggers/change/*
***?TASK?COMPLETE?***?????????????//任務完成


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

灌南县| 罗源县| 舞阳县| 鸡西市| 淮阳县| 海盐县| 普洱| 万州区| 吴江市| 枣强县| 荣昌县| 唐河县| 措美县| 洪洞县| 永州市| 米泉市| 溧阳市| 墨玉县| 乌拉特后旗| 凌云县| 克山县| 惠安县| 海口市| 新营市| 清徐县| 黑龙江省| 罗定市| 金川县| 大关县| 安泽县| 临汾市| 乐亭县| 南溪县| 临泉县| 东明县| 确山县| 平乡县| 新乡市| 宁晋县| 鹤庆县| 唐山市|