Thursday, 2022-07-21

opendevreviewErik Olof Gunnar Andersson proposed openstack/designate master: Cleaned up and fixed record objects and tests  https://review.opendev.org/c/openstack/designate/+/84983104:25
opendevreviewErik Olof Gunnar Andersson proposed openstack/designate master: Fixed issues with __repr__ and __str__ on objects  https://review.opendev.org/c/openstack/designate/+/84984704:28
opendevreviewErik Olof Gunnar Andersson proposed openstack/designate master: Added additional test coverage for adapters  https://review.opendev.org/c/openstack/designate/+/84984804:29
opendevreviewErik Olof Gunnar Andersson proposed openstack/designate master: Cleaned up and fixed record objects and tests  https://review.opendev.org/c/openstack/designate/+/84983104:39
opendevreviewErik Olof Gunnar Andersson proposed openstack/designate master: Fixed issues with __repr__ and __str__ on objects  https://review.opendev.org/c/openstack/designate/+/84984704:40
opendevreviewErik Olof Gunnar Andersson proposed openstack/designate master: Added additional test coverage for adapters  https://review.opendev.org/c/openstack/designate/+/84984804:41
opendevreviewMichael Johnson proposed openstack/designate master: Enable cache_ok on custom sqlalchemy UUID type  https://review.opendev.org/c/openstack/designate/+/85068117:53
ozzzo_workOne of my regions has a bunch of zones in ERROR status, and the designate-worker.log says "Could not find <serial> for <zone> on enough nameservers."18:29
ozzzo_workWHen I use dig to check the SOA, that same serial is reported18:29
ozzzo_workWhen I create new VMs, they get correct DNS records, but the recordset entries are in ERROR status18:30
ozzzo_workIt looks like Designate is correctly updating the DNS servers, but then it gets confused and thinks that it failed18:30
ozzzo_workwhat would cause that?18:30
ozzzo_workWhen I first started investigating, mariadb was jammed up so I recovered it, and then bounced the designate containers on all 3 controllers, and mariadb is fine now, but Designate is still broken18:31
ozzzo_workwhen I create a VM, the forward and reverse zones go PENDING for a while and then back to ERROR18:33
eanderssonozzzo_work is this Train?18:51
johnsomeandersson Yeah, it's likely Train if they are on 16.219:13
johnsomozzzo_work I would check your nameservers configuration. The error is not enough name servers had the record. Do a "designate-manage pool show_config" and make sure the "nameservers" records are correct and reachable from the workers on the controllers.19:15
eanderssonYep - was just gonna suggest the same, make sure to use the show_config command, as the configuration file may not be in sync.19:15
ozzzo_workeandersson:  yes RHOSP Train19:23
ozzzo_workit looks like we don't have designate-manage installed. Is there an equivalent "openstack" command?19:24
johnsomNo, that is the official command19:24
johnsomIt needs to be run from a location that has access to the DB. You may need to run it from inside one of your containers19:25
ozzzo_workI'm getting "-bash: designate-manage: command not found"19:26
ozzzo_workDoes that need that I need to install the client? I've been using the openstack client for everything19:26
johnsomIt is installed with designate19:26
ozzzo_workoic got it19:26
johnsomRight, openstack client works with the API, designate-manage (like neutron-manage, etc.) talks to the database directly. It is used for the DB migrations, pools management, etc.19:27
ozzzo_workoic this shows the same thing I see in pools.yml. Do I need to check the DNS servers (also-notify) or the Designate servers?19:28
ozzzo_workI used nc to verify that I can connect to port 53 on the DNS servers from all 3 controllers19:28
johnsomAll of them in this list: nameservers: - host: 10.21.21.88  port: 5319:29
ozzzo_workyes I can connect to 53 on all of those19:29
ozzzo_workI'm using: nc -vz <IP> 5319:30
ozzzo_workthe "nameservers" are my controllers; the "also-notifies" are the DNS servers that they update19:31
johnsomFor nc you probably need to us "-u" for UDP19:31
ozzzo_workthat works for both sets19:32
johnsomThe nameservers should be the bind9 instances, which may be running on the controllers. Also, you might make sure to run that from inside the worker container as from outside might behave differently.19:34
ozzzo_workok19:34
ozzzo_workI can connect to them from inside the worker container19:36
johnsomHmmm, so that is odd.19:37
johnsomOr at least the most common configuration issue isn't at play here.19:37
ozzzo_workwe last changed config here 2 weeks ago; the problem seems to have started at 9AM this morning with mariadb failing19:38
ozzzo_worker.. 6AM eastern time; 9AM UTC19:38
johnsomThe message you reported is after the records are created by designate, the worker attempts to query all of the bind instances  to make sure they pulled the new zone update (i.e. have the new serial #).19:43
johnsomIf you are confident in the pools configuration we had you look at. You could try a "designate-manage pool update" to see if that gets things re-synced.19:45
ozzzo_workshould I run that from one of the designate_worker containers?19:48
johnsomyes19:48
ozzzo_workall zones are PENDING now; waiting19:51
ozzzo_workI get this in designate-worker.log: https://paste.openstack.org/show/bRPHOtYt9DKBFnsNLdKO/19:55
ozzzo_workand then more of the "enough nameservers" errors19:55
ozzzo_workand the zones all changed from PENDING to ERROR19:56
ozzzo_workwe don't have a zone called dva3-p4gen-319:57
ozzzo_workbut we do have tenant networking in this region; this could be a network that a customer created19:58
johnsomIt's in your designate database if it's trying to update the zone configuration.19:58
ozzzo_workdo I need to spelunk in the database, or is there a better way?20:00
johnsomIt should show up in an openstack zone list --all-projects20:01
ozzzo_workok I see it, so it looks like my DB isn't broken. What else would explain the "failed: not found"?20:04
johnsomCan you check your bind9 logs and see if there is a reason bind9 might be rejecting the zone updates?20:08
ozzzo_workon the also-notify servers or the controllers?20:19
johnsomThe instances listed in the pool nameserver list20:21
ozzzo_workthe DNS servers are accepting the updates. When I see the error: Could not find <serial> for <zone> on enough nameservers, I can dig SOA and I see that same SN20:21
ozzzo_workwhere are the bind9 logs on my controllers? I see a designate_backend_bind9 container but no bind9 logs in /var/log/kolla/designate/20:22
johnsomIt would not be under designate, bind or named somewhere under /var/log20:23
ozzzo_workok I found it; it's in the container log: https://paste.openstack.org/show/bkkf9jiNCiLt1lIR8unc/20:35
ozzzo_workI see those errors for all of the "dva3-p4gen-?" zones and some of the reverse zones20:36
ozzzo_workthe "dva3-p4gen-?" zones are customer domains that we are doing DNS for, we call it "bring your own domain"20:37
opendevreviewMerged openstack/designate master: Cleaned up and fixed record objects and tests  https://review.opendev.org/c/openstack/designate/+/84983120:38
ozzzo_workwe have those same zones in dva4 which isn't broken; I'm not sure that they are the cause of the dva3 issue20:39
johnsomI think I would take one of the zones listed in the "not enough nameservers" and trace it through the worker, mdns and bind9 logs. Something is out of sync between the designate DB and the bind instances that isn't reconciling. 20:46
johnsomI would have expected the update command to help resync all of that, but something else is going on.20:47
johnsomYou might also check the bind configuration for the zone.20:49
ozzzo_workok I'll search logs, ty for the advice!21:04
johnsomNP, let us know what you find21:04
opendevreviewMichael Johnson proposed openstack/designate master: Fix pecan lookup_controller DeprecationWarning  https://review.opendev.org/c/openstack/designate/+/85069521:27
opendevreviewMichael Johnson proposed openstack/designate master: DNM: testing git review  https://review.opendev.org/c/openstack/designate/+/85069921:38
opendevreviewMichael Johnson proposed openstack/designate master: Fix sqlalchemy table_names DeprecationWarning  https://review.opendev.org/c/openstack/designate/+/85070423:15

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