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

Remove named dhcpd #3312

Merged
merged 8 commits into from
Jul 18, 2022
Merged

Remove named dhcpd #3312

merged 8 commits into from
Jul 18, 2022

Conversation

jvonau
Copy link
Contributor

@jvonau jvonau commented Jul 16, 2022

Replacement for #3296 with net_tweeks #3264

@holta holta added this to the 8.0 milestone Jul 16, 2022
@jvonau jvonau mentioned this pull request Jul 16, 2022
@holta
Copy link
Member

holta commented Jul 18, 2022

What aspects of this PR are most important to test?

Smoke Test on Ubuntu Server 22.04 VM: http://sprunge.us/NHMUFH?en

@jvonau
Copy link
Contributor Author

jvonau commented Jul 18, 2022

Nothing else really, for the most part this is disabling optional features which by default would not be used unless selected. New feature is local_vars validation should these optional features be engaged by selecting install True to advise of the now unavailable option.

@jvonau
Copy link
Contributor Author

jvonau commented Jul 18, 2022

Notes and explanation

1113 =IIAB==========================================================================
1114 COMMAND: /usr/bin/sudo journalctl -b 0 -u dnsmasq # dnsmasq log
1115
1116 Jul 17 21:26:13 box systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
1117 Jul 17 21:26:13 box dnsmasq[9156]: dnsmasq: failed to create listening socket for port 53: Address already in use
1118 Jul 17 21:26:13 box dnsmasq[9156]: failed to create listening socket for port 53: Address already in use
1119 Jul 17 21:26:13 box dnsmasq[9156]: FAILED to start up
1120 Jul 17 21:26:13 box systemd[1]: dnsmasq.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
1121 Jul 17 21:26:13 box systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
1122 Jul 17 21:26:13 box systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.

This is the stock apt install of dnsmasq with issue #1306

1123 Jul 17 21:26:17 box systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
1124 Jul 17 21:26:17 box dnsmasq[9493]: started, version 2.86 cachesize 150
1125 Jul 17 21:26:17 box dnsmasq[9493]: DNS service limited to local subnets
1126 Jul 17 21:26:17 box dnsmasq[9493]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset auth cryptohash DNSSEC loop-detect inotify dumpfile
1127 Jul 17 21:26:17 box dnsmasq[9493]: reading /etc/resolv.conf
1128 Jul 17 21:26:17 box dnsmasq[9493]: using nameserver 127.0.0.53#53
1129 Jul 17 21:26:17 box dnsmasq[9493]: read /etc/hosts - 5 addresses
1130 Jul 17 21:26:17 box systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.

Now the fix delivered in dnsmasq.yml

1131 Jul 17 21:51:26 box systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
1132 Jul 17 21:51:26 box dnsmasq[9493]: exiting on receipt of SIGTERM
1133 Jul 17 21:51:26 box systemd[1]: dnsmasq.service: Deactivated successfully.
1134 Jul 17 21:51:26 box systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.

captive portal

1135 Jul 17 21:51:27 box systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
1136 Jul 17 21:51:27 box dnsmasq[41230]: started, version 2.86 cachesize 150
1137 Jul 17 21:51:27 box dnsmasq[41230]: DNS service limited to local subnets
1138 Jul 17 21:51:27 box dnsmasq[41230]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset auth cryptohash DNSSEC loop-detect inotify dumpfile
1139 Jul 17 21:51:27 box dnsmasq[41230]: reading /etc/resolv.conf
1140 Jul 17 21:51:27 box dnsmasq[41230]: using nameserver 127.0.0.53#53
1141 Jul 17 21:51:27 box dnsmasq[41230]: read /etc/hosts - 5 addresses
1142 Jul 17 21:51:27 box systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.

Start of the network role being run.

1143 Jul 17 21:52:34 box dnsmasq[41230]: reading /etc/resolv.conf
1144 Jul 17 21:52:34 box dnsmasq[41230]: using nameserver 127.0.0.53#53
1145 Jul 17 21:52:34 box dnsmasq[41230]: reading /etc/resolv.conf
1146 Jul 17 21:52:34 box dnsmasq[41230]: using nameserver 127.0.0.53#53
1147 Jul 17 21:52:36 box dnsmasq[41230]: reading /etc/resolv.conf
1148 Jul 17 21:52:36 box dnsmasq[41230]: using nameserver 127.0.0.53#53
1149 Jul 17 21:52:36 box dnsmasq[41230]: reading /etc/resolv.conf
1150 Jul 17 21:52:36 box dnsmasq[41230]: using nameserver 127.0.0.53#53
1151 Jul 17 21:52:36 box dnsmasq[41230]: reading /etc/resolv.conf
1152 Jul 17 21:52:36 box dnsmasq[41230]: using nameserver 127.0.0.53#53
1153 Jul 17 21:52:36 box dnsmasq[41230]: reading /etc/resolv.conf
1154 Jul 17 21:52:36 box dnsmasq[41230]: using nameserver 127.0.0.53#53
1155 Jul 17 21:52:36 box dnsmasq[41230]: reading /etc/resolv.conf
1156 Jul 17 21:52:36 box dnsmasq[41230]: using nameserver 127.0.0.53#53
1157 Jul 17 21:52:36 box dnsmasq[41230]: reading /etc/resolv.conf
1158 Jul 17 21:52:36 box dnsmasq[41230]: using nameserver 127.0.0.53#53
1159 Jul 17 21:52:36 box dnsmasq[41230]: reading /etc/resolv.conf
1160 Jul 17 21:52:36 box dnsmasq[41230]: using nameserver 127.0.0.53#53

Restarting of the network.

1161 Jul 17 21:52:47 box systemd[1]: Stopping dnsmasq - A lightweight DHCP and caching DNS server...
1162 Jul 17 21:52:47 box dnsmasq[41230]: exiting on receipt of SIGTERM
1163 Jul 17 21:52:47 box systemd[1]: dnsmasq.service: Deactivated successfully.
1164 Jul 17 21:52:47 box systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
1165 Jul 17 21:52:47 box systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
1166 Jul 17 21:52:47 box dnsmasq[45745]: started, version 2.86 cachesize 150
1167 Jul 17 21:52:47 box dnsmasq[45745]: DNS service limited to local subnets
1168 Jul 17 21:52:47 box dnsmasq[45745]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset auth cryptohash DNSSEC loop-detect inotify dumpfile
1169 Jul 17 21:52:47 box dnsmasq[45745]: reading /etc/resolv.conf
1170 Jul 17 21:52:47 box dnsmasq[45745]: using nameserver 127.0.0.53#53
1171 Jul 17 21:52:47 box dnsmasq[45745]: read /etc/hosts - 5 addresses
1172 Jul 17 21:52:47 box systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.

final restart in network restart.yml
Notes on dnsmasq with br0 restarting with networkd-dispatcher

@jvonau
Copy link
Contributor Author

jvonau commented Jul 18, 2022

df trigger

1878 Jul 17 22:07:42 vm18 systemd[1]: proc-sys-fs-binfmt_misc.automount: Got automount request for /proc/sys/fs/binfmt_misc, triggered by 55711 (df)
1879 Jul 17 22:07:42 vm18 systemd[1]: Mounting Arbitrary Executable File Formats File System...
1880 Jul 17 22:07:42 vm18 systemd[1]: Mounted Arbitrary Executable File Formats File System.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants