2016-05-23 15:49:07 |
Andreas Hasenack |
bug |
|
|
added bug |
2016-05-23 15:49:07 |
Andreas Hasenack |
attachment added |
|
subnets.txt https://bugs.launchpad.net/bugs/1584850/+attachment/4668752/+files/subnets.txt |
|
2016-05-23 15:50:34 |
🤖 Landscape Builder |
tags |
kanban-cross-team landscape |
landscape |
|
2016-05-23 15:50:52 |
Andreas Hasenack |
attachment added |
|
rectangular-structure.txt https://bugs.launchpad.net/maas/+bug/1584850/+attachment/4668753/+files/rectangular-structure.txt |
|
2016-05-23 15:52:16 |
Andreas Hasenack |
description |
We got a situation where IPv6 was being used in a MAAS 1.9 subnet and the node failed to get a FQDN for its hostname.
Specifically, the call that failed was pyton's socket.gethostbyaddr(<hostname>), which is used by socket.getfqdn():
ubuntu@rectangular-structure:~$ python -c "import socket; print socket.gethostname()"
rectangular-structure
ubuntu@rectangular-structure:~$ python -c "import socket; print socket.gethostbyaddr(socket.gethostname())"
Traceback (most recent call last):
File "<string>", line 1, in <module>
socket.herror: [Errno 1] Unknown host
ubuntu@rectangular-structure:~$
A DNS traffic capture showed this:
146 2.859261 192.168.120.8 -> 198.18.173.40 DNS 88 Standard query 0x0e2a AAAA rectangular-structure.maas
147 2.859422 198.18.173.40 -> 192.168.120.8 DNS 146 Standard query response 0x0e2a AAAA rectangular-structure.maas AAAA 2001:4878:c1e0:603a:225:90ff:fe30:4b6c NS maas A 198.18.173.40
149 2.859831 192.168.120.8 -> 198.18.173.40 DNS 134 Standard query 0xd332 PTR c.6.b.4.0.3.e.f.f.f.0.9.5.2.2.0.a.3.0.6.0.e.1.c.8.7.8.4.1.0.0.2.ip6.arpa
150 2.860065 198.18.173.40 -> 192.168.120.8 DNS 196 Standard query response 0xd332 No such name PTR c.6.b.4.0.3.e.f.f.f.0.9.5.2.2.0.a.3.0.6.0.e.1.c.8.7.8.4.1.0.0.2.ip6.arpa SOA use1.akamai.com
We can see that the PTR for the IPv6 address does not exist. Looking at /etc/bind in the MAAS node, that's confirmed:
$ grep rectangular -r etc/
etc/bind/maas/zone.168.192.in-addr.arpa:8.120.168.192.in-addr.arpa. IN PTR rectangular-structure.maas.
etc/bind/maas/zone.maas:rectangular-structure IN A 192.168.120.8
etc/bind/maas/zone.maas:rectangular-structure IN AAAA 2001:4878:c1e0:603a:225:90ff:fe30:4b6c
I found it curious that MAAS would have the AAAA record, but not the corresponding PTR one, so I decided to file this bug about it. |
MAAS Version 1.9.1+bzr4543-0ubuntu2 (trusty1)
We got a situation where IPv6 was being used in a MAAS 1.9 subnet and the node failed to get a FQDN for its hostname.
Specifically, the call that failed was pyton's socket.gethostbyaddr(<hostname>), which is used by socket.getfqdn():
ubuntu@rectangular-structure:~$ python -c "import socket; print socket.gethostname()"
rectangular-structure
ubuntu@rectangular-structure:~$ python -c "import socket; print socket.gethostbyaddr(socket.gethostname())"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
socket.herror: [Errno 1] Unknown host
ubuntu@rectangular-structure:~$
A DNS traffic capture showed this:
146 2.859261 192.168.120.8 -> 198.18.173.40 DNS 88 Standard query 0x0e2a AAAA rectangular-structure.maas
147 2.859422 198.18.173.40 -> 192.168.120.8 DNS 146 Standard query response 0x0e2a AAAA rectangular-structure.maas AAAA 2001:4878:c1e0:603a:225:90ff:fe30:4b6c NS maas A 198.18.173.40
149 2.859831 192.168.120.8 -> 198.18.173.40 DNS 134 Standard query 0xd332 PTR c.6.b.4.0.3.e.f.f.f.0.9.5.2.2.0.a.3.0.6.0.e.1.c.8.7.8.4.1.0.0.2.ip6.arpa
150 2.860065 198.18.173.40 -> 192.168.120.8 DNS 196 Standard query response 0xd332 No such name PTR c.6.b.4.0.3.e.f.f.f.0.9.5.2.2.0.a.3.0.6.0.e.1.c.8.7.8.4.1.0.0.2.ip6.arpa SOA use1.akamai.com
We can see that the PTR for the IPv6 address does not exist. Looking at /etc/bind in the MAAS node, that's confirmed:
$ grep rectangular -r etc/
etc/bind/maas/zone.168.192.in-addr.arpa:8.120.168.192.in-addr.arpa. IN PTR rectangular-structure.maas.
etc/bind/maas/zone.maas:rectangular-structure IN A 192.168.120.8
etc/bind/maas/zone.maas:rectangular-structure IN AAAA 2001:4878:c1e0:603a:225:90ff:fe30:4b6c
I found it curious that MAAS would have the AAAA record, but not the corresponding PTR one, so I decided to file this bug about it. |
|
2016-05-23 16:14:32 |
Andreas Hasenack |
bug |
|
|
added subscriber Landscape |
2016-05-23 19:17:51 |
LaMont Jones |
maas: assignee |
|
LaMont Jones (lamont) |
|
2016-05-23 19:44:23 |
Andres Rodriguez |
summary |
Missing PTR record for IPv6 address |
[2.0b5,1.9] DNS record created against IPv6 address when it is not on the PXE interface |
|
2016-05-23 19:44:37 |
Andres Rodriguez |
summary |
[2.0b5,1.9] DNS record created against IPv6 address when it is not on the PXE interface |
[1.9] DNS record created against IPv6 address when it is not on the PXE interface |
|
2016-05-23 19:44:52 |
Andres Rodriguez |
maas: milestone |
|
1.9.4 |
|
2016-05-24 14:33:35 |
Launchpad Janitor |
branch linked |
|
lp:~lamont/maas/bug-1584850 |
|
2016-05-24 21:04:32 |
LaMont Jones |
nominated for series |
|
maas/2.0 |
|
2016-05-24 21:04:32 |
LaMont Jones |
bug task added |
|
maas/2.0 |
|
2016-05-24 21:05:39 |
LaMont Jones |
maas/2.0: assignee |
|
LaMont Jones (lamont) |
|
2016-05-24 21:05:44 |
LaMont Jones |
maas/2.0: milestone |
|
2.0.0 |
|
2016-05-24 21:06:13 |
Launchpad Janitor |
branch linked |
|
lp:~lamont/maas/bug-1584850-trunk |
|
2016-05-25 23:53:44 |
LaMont Jones |
summary |
[1.9] DNS record created against IPv6 address when it is not on the PXE interface |
[2.0b5,1.9] DNS record added for non-boot interface when no address of that family exists on the boot interface |
|
2016-05-25 23:53:55 |
LaMont Jones |
summary |
[2.0b5,1.9] DNS record added for non-boot interface when no address of that family exists on the boot interface |
[2.0b5,1.9] DNS record added for non-boot interface IP when no address of that family exists on the boot interface |
|
2016-05-26 13:16:33 |
Andres Rodriguez |
nominated for series |
|
maas/1.9 |
|
2016-05-26 13:16:33 |
Andres Rodriguez |
bug task added |
|
maas/1.9 |
|
2016-05-26 13:16:39 |
Andres Rodriguez |
maas/1.9: milestone |
|
1.9.4 |
|
2016-05-26 13:16:43 |
Andres Rodriguez |
bug task deleted |
maas/2.0 |
|
|
2016-05-26 13:16:49 |
Andres Rodriguez |
maas: milestone |
1.9.4 |
2.0.0 |
|
2016-05-26 13:16:55 |
Andres Rodriguez |
maas/1.9: assignee |
|
LaMont Jones (lamont) |
|
2016-05-26 13:16:59 |
Andres Rodriguez |
maas/1.9: status |
New |
Fix Committed |
|
2016-05-26 13:17:01 |
Andres Rodriguez |
maas: status |
New |
In Progress |
|
2016-05-26 13:17:05 |
Andres Rodriguez |
maas: importance |
Undecided |
Critical |
|
2016-05-26 13:17:06 |
Andres Rodriguez |
maas/1.9: importance |
Undecided |
Critical |
|
2016-05-26 16:27:44 |
MAAS Lander |
maas: status |
In Progress |
Fix Committed |
|
2016-07-13 13:24:12 |
Andres Rodriguez |
maas/1.9: status |
Fix Committed |
Fix Released |
|
2016-08-18 11:23:29 |
Andres Rodriguez |
maas: status |
Fix Committed |
Fix Released |
|