비커 및 승인 테스트를 통해 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가 어떤 파일에 대해 불평하는지 알아냈습니다. 간단히 말해서, 인증 영역에는 서브넷이 있어야 할 뒤에 쉼표가 있었지만 대신 비어 있었습니다. .erb 템플릿이 서브넷 변수 범위를 제대로 지정하지 않았기 때문입니다.