Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEAPATH Yocto dnsmasq.service fail on boot after configuration #721

Open
Revalioli opened this issue Feb 14, 2025 · 1 comment
Open

SEAPATH Yocto dnsmasq.service fail on boot after configuration #721

Revalioli opened this issue Feb 14, 2025 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@Revalioli
Copy link
Contributor

On SEAPATH Yocto, libvirt installs as dependency dnsmasq. dnsmasq.service is then started along libvirtd at boot and requires /etc/resolv.conf to exist, or be a link to an existing file.

Currently, role network_resolved disable systemd-resolved.service if dns_servers isn't defined.
But if systemd-resolved.service isn't started, then resolv.conf is never created, and dnsmasq.service fails because /etc/resolv.conf points to nothing. This makes one cukinia test to fail.

If I understood correctly, dnsmasq isn't installed on SEAPATH Debian.
How should both flavors be harmonized regarding dnsmasq and systemd-resolved configuration ? @eroussy @insatomcat @dupremathieu

  • Installing dnsmasq on Debian and keeping dnsmasq and systemd-resolved services enabled even without dns-servers specified in the ansible inventory ?
  • Remove dnsmasq from SEAPATH Yocto ? In Yocto, the libvirt recipe requires dnsmasq to build, so would have to uncouple dnsmasq from libvirt.
  • Something else ?

As a temporary workaround, I opened a PR #720 to keep systemd-resolved.service enabled on SEAPATH Yocto.

To Reproduce
Steps to reproduce the behavior:

  1. Build and flash a Yocto image (standalone or cluster)
  2. Configure the system with Ansible without defining dns_servers
  3. Reboot and run systemctl status systemd-resolved
@Revalioli Revalioli added the bug Something isn't working label Feb 14, 2025
@eroussy eroussy added the question Further information is requested label Feb 18, 2025
@Revalioli
Copy link
Contributor Author

Revalioli commented Feb 18, 2025

Related issue : seapath/meta-seapath#301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants