![Puppet燒杯docker接受dnsmasq](https://rvso.com/image/1575975/Puppet%E7%87%92%E6%9D%AFdocker%E6%8E%A5%E5%8F%97dnsmasq.png)
我正在嘗試透過燒杯和驗收測試將程式碼從 puppet 3 遷移到 puppet 5。
給出以下輸出:
journalctl log for dnsmasq: -- Logs begin at Thu 2018-11-29 17:11:40 UTC, end at Thu 2018-11-29 17:14:55 UTC. -- Nov 29 17:13:51 debian-stretch systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server... Nov 29 17:13:51 debian-stretch dnsmasq[10452]: dnsmasq: syntax check OK. Nov 29 17:13:52 debian-stretch systemd[1]: dnsmasq.service: Control process exited, code=dumped status=11 Nov 29 17:13:52 debian-stretch systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server. Nov 29 17:13:52 debian-stretch systemd[1]: dnsmasq.service: Unit entered failed state. Nov 29 17:13:52 debian-stretch systemd[1]: dnsmasq.service: Failed with result 'core-dump'. Nov 29 17:14:55 debian-stretch systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
我該如何調試這個?我知識不多。
答案1
因此,我實際上可以透過向容器添加睡眠任務來進入容器,然後刪除檔案並嘗試啟動 dnsmasq 服務。之後我找出了 dnsmasq 抱怨的文件。長話短說:auth-zone 有一個逗號,後面應該有子網,但它是空的,因為 .erb 模板沒有正確確定子網變數的範圍。