Wednesday, 2022-09-14

fricklernicolasbock: wow, that's some pretty ancient stuff in your local.conf. note that if you include the neutron devstack plugin, you can simple enable_service q-dns instead of doing all that manual configuration05:19
frickleralso OVN had many issues with DNS handling, some have recently been solved, but you need to check how far those fixes have been backported. some issues are still open, too05:20
fricklerand in general I still think that their idea of spoofing DNS responses is a bad thing to do05:20
nicolasbockI found https://bugs.launchpad.net/neutron/+bug/1951872 for example frickler 12:42
nicolasbockIs that one of those issues you were thinking of?12:42
fricklerthat is one of the things that got fixed, yes. https://bugs.launchpad.net/neutron/+bug/1902950 is still open12:44
nicolasbockThe fact that OVN hijacks DNS had me confused for a while frickler 12:51
nicolasbockIt would be nice if it wasn't so stealthy about it 12:51
fricklerat least every provider will have to attach a large warning sign for their customers: DNS answers may not be coming from the source they appear to be coming from12:55
fricklerand I didn't even create bugs yet for what happens when you use TCP for DNS or some additional options in your query12:56
nicolasbockOh great, there is that :/12:59
johnsomYeah, I think there is still no way to integrate outside resolution with OVN. I think it's either routed out or answered from the OVN DB. Unlike OVS where you could configure local resolvers.15:59
*** tweining_ is now known as tweining16:01
opendevreviewMerged openstack/designate master: Fix Redis connection over TLS  https://review.opendev.org/c/openstack/designate/+/85631316:10
opendevreviewMichael Johnson proposed openstack/designate stable/yoga: Fix Redis connection over TLS  https://review.opendev.org/c/openstack/designate/+/85748616:11
opendevreviewMichael Johnson proposed openstack/designate stable/xena: Fix Redis connection over TLS  https://review.opendev.org/c/openstack/designate/+/85748716:11
opendevreviewMichael Johnson proposed openstack/designate stable/wallaby: Fix Redis connection over TLS  https://review.opendev.org/c/openstack/designate/+/85748816:11
nicolasbockMaybe what I am trying to solve is https://bugzilla.redhat.com/show_bug.cgi?id=2036034 johnsom 17:01
nicolasbockThe issue is that when I do a reverse lookup inside a VM I get the `dns_domain` of `neutron.conf` 17:02
nicolasbockAnd not the domain I set on my network17:02
nicolasbockWhich is presumably because the VM gets the generic dns domain via DHCP17:02
johnsomOVN will only do name resolution from it's database, it doesn't support using resolvers like OVS did.17:04
nicolasbockThis is not working properly even with OVS though if I am not mistaken17:04
johnsomWhat I am talking about is Case 2 here: https://docs.openstack.org/neutron/yoga/admin/config-dns-res.html#case-2-dhcp-agents-forward-dns-queries-from-instances17:06
johnsomIt's not implemented in OVN, but does work for the other ML2s17:06
nicolasbockAh ok17:06
johnsomMaybe a different issue to the one you are seeing17:06
nicolasbockMaybe I misunderstand the documentation. Let me explain what I did17:08
nicolasbock1. create network with --dns-domain17:08
nicolasbock2. create zone17:08
johnsomIf you are doing a reverse "dig -x" from inside the guest, it should be using the resolvers configured in the guest. OVN does try to hijack the outgoing requests as Jens mentioned, and will respond with information it has in the OVN DB.17:08
nicolasbockcreate server on network17:08
nicolasbockThe port that's created for the sever will have the wrong dns_assignment17:09
nicolasbockthe fqdn uses the generic dns domain17:10
nicolasbockNot the one from the network17:10
nicolasbockDid I misunderstand case 3(c)?17:11
nicolasbockExpecting that the domain used here is the one from the network?17:11
johnsomOk, yeah, the typical neutron ignored the external DNS setup. There are these three restrictions:17:11
johnsomThe network may not have attribute router:external set to True.17:11
johnsomThe network type can be FLAT, VLAN, GRE, VXLAN or GENEVE.17:11
johnsomFor network types VLAN, GRE, VXLAN or GENEVE, the segmentation ID must be outside the ranges assigned to project networks.17:11
johnsomThat last one is the one that gets most people17:12
nicolasbockCheck and check17:12
nicolasbockI do get correct recordsets17:12
nicolasbockPTR and A17:12
nicolasbockSo the Designate part is fine17:12
johnsomAll three of those have to be met, plus the zone existing for the project ID17:12
johnsomOh, you get records in Designate but the dns_assignment field is different????17:13
johnsomThat would be a new one for me.17:13
nicolasbockThe recordsets look correct17:13
nicolasbockThey have the correct domain17:13
nicolasbockBut the port doesn't17:13
nicolasbockThe port does not have a dns domain set17:13
nicolasbockBut its fqdn is using the wrong domain17:13
nicolasbockThe VM thinks it's in the generic dns domain17:14
johnsomSo, network is example.org. dns_domain, port has dns_name test and dns_domain empty. You get test.example.org. in the Designate recordset, but dns_assignment on the port is different?17:15
nicolasbockCorrect17:16
nicolasbockThat's using Ussuri17:16
nicolasbockI am still ironing out my devstack setup so I can test this in master17:16
johnsomSo, that sounds like a neutron bug to me17:16
nicolasbockAh17:16
nicolasbockNeutron creates the port and its dns assignment right?17:16
johnsomAlso, the guest VM hostname/domain, that comes in via cloud-init from nova17:16
nicolasbockOk17:17
johnsomNova has many issues around hostnames.  If you don't put a fqdn in the "hostname" field (and the version of nova let's you), it only passed the short name to the VM, it doesn't pass a domain.17:17
nicolasbockWow, that'sounds terribly fragile17:18
johnsomIn recent versions they broke the hostname field worse, to not allow FQDNs anymore, which.... is bad for many reasons17:18
nicolasbockYes, I can see that17:18
johnsomJust to give you more of the picture, this cloud-init section is helpful: https://cloudinit.readthedocs.io/en/latest/topics/modules.html#set-hostname17:29
nicolasbockThanks17:32
*** kleini_ is now known as kleini19:30
opendevreviewMichael Johnson proposed openstack/designate stable/yoga: Remove lower-constraint job from stable/victoria  https://review.opendev.org/c/openstack/designate/+/85776821:10
opendevreviewMichael Johnson proposed openstack/designate stable/yoga: Remove lower-constraint job from stable/yoga  https://review.opendev.org/c/openstack/designate/+/85776821:10
opendevreviewMichael Johnson proposed openstack/designate stable/yoga: Check zone_id in notification_handler to avoid UUID format issue.  https://review.opendev.org/c/openstack/designate/+/85706921:11
opendevreviewMichael Johnson proposed openstack/designate stable/xena: Check zone_id in notification_handler to avoid UUID format issue.  https://review.opendev.org/c/openstack/designate/+/85748921:11
opendevreviewMichael Johnson proposed openstack/designate stable/wallaby: Check zone_id in notification_handler to avoid UUID format issue.  https://review.opendev.org/c/openstack/designate/+/85777021:11

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!