NTP servers must be IPv4 for use with ISC dhcpd
Bug #1606499 reported by
Gavin Panella
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Gavin Panella |
Bug Description
ISC dhcpd (4.3.3-5ubuntu12.1 in Xenial) rejects configuration containing
NTP servers with IPv6 addresses:
/path/
option ntp-servers 12.178.81.19, ntp.example.G99qnq, fd2a:
In MAAS do we:
- Prevent users from configuring NTP servers with IPv6 addresses,
- Eliminate IPv6 only NTP servers from the DHCP configuration,
- Stop publishing the ntp-servers option,
- Or something else?
Related branches
lp:~allenap/maas/ntp-ipv4-ipv6-dhcp-options
- Mike Pontillo (community): Approve
-
Diff: 623 lines (+271/-40)10 files modifiedsrc/provisioningserver/dhcp/config.py (+49/-0)
src/provisioningserver/dhcp/testing/config.py (+21/-3)
src/provisioningserver/dhcp/tests/test_config.py (+92/-22)
src/provisioningserver/rpc/tests/test_clusterservice.py (+7/-0)
src/provisioningserver/rpc/tests/test_dhcp.py (+12/-6)
src/provisioningserver/templates/dhcp/dhcpd.conf.template (+8/-3)
src/provisioningserver/templates/dhcp/dhcpd6.conf.template (+8/-3)
src/provisioningserver/testing/network.py (+38/-0)
src/provisioningserver/utils/tests/test_text.py (+29/-0)
src/provisioningserver/utils/text.py (+7/-3)
Changed in maas: | |
assignee: | nobody → Gavin Panella (allenap) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I would think in the case that MAAS is providing the NTP server it will be all the IPv4 addresses for that DHCP config. When its the users own NTP server, I think we should just strip out the IPv6 addresses and only provide the IPv4 addresses. Then place the other IPv6 address in the dhcpd6 server.