Tuesday, 2021-06-15

opendevreviewErik Olof Gunnar Andersson proposed openstack/designate-tempest-plugin master: Fixed multiple leaking tests  https://review.opendev.org/c/openstack/designate-tempest-plugin/+/79637506:03
opendevreviewErik Olof Gunnar Andersson proposed openstack/designate-tempest-plugin master: Fixed multiple leaking tests  https://review.opendev.org/c/openstack/designate-tempest-plugin/+/79637507:35
opendevreviewArkady Shtempler proposed openstack/designate-tempest-plugin master: Skip "test_list_all_projects_recordsets" because of Designate bug  https://review.opendev.org/c/openstack/designate-tempest-plugin/+/79646913:27
*** njohnston_ is now known as njohnston14:22
opendevreviewArkady Shtempler proposed openstack/designate-tempest-plugin master: Fix "PTR recordset" tests suite  https://review.opendev.org/c/openstack/designate-tempest-plugin/+/79470814:27
opendevreviewArkady Shtempler proposed openstack/designate-tempest-plugin master: Fix "PTR recordset" tests suite  https://review.opendev.org/c/openstack/designate-tempest-plugin/+/79470814:29
jrosserjohnsom: should i see continuous polling from designate worker checking all the zones that exist?15:56
johnsomThere is some polling to check the status yes.15:57
jrosseri'm just trying to debug a situation where a dns server got replaced, and newly created designate records are created OK, but old ones are not being put back15:59
johnsomjrosser I'm assuming the primary for the zone is designate? If so, check the tsig key is correct on the new DNS server. Also, see if you can force a zone transfer on the new DNS server for the zone. Otherwise it may wait for the SOA timeout. Which DNS server are you using?16:02
jrosserit's bind916:03
johnsomActually, no, that doesn't really make sense. If it can do a transfer for new records, it should be transferring the whole zone.16:03
jrosseri was expecting to see a bunch of port 53 traffic to bind9 going round checking that the zones were all in place16:04
jrosserthis sort of thing https://github.com/openstack/designate/blob/master/designate/worker/tasks/zone.py#L35916:04
jrosserbut it's quite possible thats not as continuous a process as i may be expecting16:04
johnsomhttps://docs.openstack.org/designate/latest/admin/config.html#producer-task-periodic-exists16:05
johnsomProducer triggers that, there is a timer setting there16:05
jrosserahha16:06
eanderssonjohnsom: I still havent figured out a clean way to clean up zones created by these tests https://github.com/openstack/designate-tempest-plugin/blob/master/designate_tempest_plugin/tests/api/v2/test_zones_imports.py16:42
eanderssonI kinda wish we had a utility or eve a test at the end that verified that the environment is clean.16:42
mugsiedoes "self.addCleanup()" not catch them?16:45
jrosserhmm so i see 'Finished emitting 48 events for shards 0 to 4094' in producer but really the log in the worker is really quiet16:45
mugsiejrosser: not all of the periodic tasks are on by default afaik16:46
jrossermugsie: even though i see the events in the producer log? or at the worker end?16:47
mugsieso there is a couple of events that get triggered, the timer looks at what needs to run, then emits events for each of them16:48
mugsiethe periodic exists event may not be included by default - I will have a look in a few mins16:48
eanderssonmugsie yea the self.addCleanup code does not work at all for those tests16:49
eanderssonor at least it does not remove the zones :D16:49
johnsomeandersson I was going to look at that today, but Tuesday seems to be the new Monday with all of the interruptions I am getting.16:50
eanderssonNo hurry.16:53
mugsiejrosser: oh, my bad - the "exists" task is for celiometer exists events 16:55
mugsieit looks like there is a missing task :/ - we used to have a task that checked all customer facing DNS servers, and the DNS serial for them, and re-triggered a zone transfer if the zone was out of sync, but I can't see it anymore16:59
johnsomYeah, I remember that. Producer used to trigger that.17:00
mugsieI think it might have been in the old zone manager days17:01
mugsiesorry, pool-manager17:01
mugsietimsim isn't here for me to abuse him about it17:03
jrossermugsie: yeah thats the situation im in, having added another bind instance it's only getting new things added to it17:06
mugsiefor bind, copying the zonefile + cache should be enough to pre-seed the new instance, but I think something the triggers at least a zone notify on a regular basis may be in order. 17:10
mugsieand then for full completeness, a task that scans members of a pool, and marks the zones in error, which will get caught by the periodic recovery17:11
mugsiewhich will force a create 17:11
eanderssonhttps://github.com/openstack/designate/commit/3756fc51e71aaf0ba7cfb9155ca5d1de26ab78bc#diff-2187cbd3c9fec4b2af1d87e1d4d87c186219b2448f422e2e4ea338d765794dab17:14
eanderssonI think this was added for this17:14
eanderssonhttps://bugs.launchpad.net/charm-designate-bind/+bug/187979817:16
johnsomJoy. So, another option is to use rndc on the bind instance, assuming the zone exists, "rndc retransfer <zone>"17:17
eanderssonbut haven't read the full thread so might be completely off here :D17:17
jrossereandersson: awesome thankyou - thats indeed triggered it to refresh the whole pool17:27
jrosseri guess i was assuming too much about how proactively designate could deal with a new/re-provisioned dns server17:28
johnsomI made a note of this for our documentation update tasks.17:39
opendevreviewArkady Shtempler proposed openstack/designate-tempest-plugin master: Fix "PTR recordset" tests suite  https://review.opendev.org/c/openstack/designate-tempest-plugin/+/79470817:41
eanderssonjohnsom looking good! 2 last runs were successful. I am feeling lucky with the third one.18:05
eanderssonas long as the rng does not hit the tld bug it should succeed :D18:05
johnsomlol18:05
johnsomIf only we could mock out the rng....18:06
eanderssonI mean in theory we could just create a tld for ptrs when running the ptrs test, but ideal would be if we could just run the tld tests separeate?18:06
johnsomYeah, we need to step back and look at that. Since any TLD flips the bit for all zone creates, we need to be careful how we handle them in the test suite.18:07
eanderssonAt least in my local testing I hit it about maybe <5% of the time now. So it hopefully gives us some breathing room18:10
eanderssonto come up with a real fix18:10
johnsomIt's looking good. I'm reviewing now. I think we can land this patch, rebase arkady's on it and go from there.20:29
johnsomThere is overlap between the two, but this approach should just keep things simple20:29
eanderssonYea - I kept it as simple as possible. More things I want to fix, but that can be later. Ideally you should be able to run tempest multiple times in a row, but that still fails.20:31
eandersson(without having to manually clean up)20:32
johnsomYeah, agreed. It really should be "safe" to run on a production cloud. In theory.20:35
eanderssonFeel free to merge it in johnsom21:00
eanderssonnicolasbock +2d it already21:00
johnsomlol, two more files to look at, then21:00
eanderssonthere are some unrelated changes I missed (like new lines)21:01
eanderssonbut personally dont really care :D21:01
johnsomYeah, I'll give you a pass on those in this case. girn21:01
johnsomI would have been done, but just got another surprise email/invite... sigh21:03
nicolasbockI thought it was ok to lump those beautifications into the change eandersson :)21:07
johnsomHe knows I would nit him usually. lol21:08
johnsomLittle merge conflict magnets21:09
johnsomI'll rebase the other patch now21:12
opendevreviewMichael Johnson proposed openstack/designate-tempest-plugin master: Fix "PTR recordset" tests suite  https://review.opendev.org/c/openstack/designate-tempest-plugin/+/79470821:28
eanderssonbtw something that would be nice would be to include the test (or parts of the test) in the random zone names.21:41
johnsomYes, that should always be the case21:41
eanderssonIt's such a pain to hunt down what created a zone at the moment with the completely randomized names.21:41
eanderssonI kinda wish we allowed comments / descriptions for zones 21:42
johnsomSo, looking at this zone import issue you mentioned, do you have a pointer to the test that is leaving things around? I need to restack to run this local.21:42
eanderssonI have just been running this over and over21:54
eandersson> designate_tempest_plugin.tests.api.v2.test_zones_imports.ZonesImportTest.test_create_zone_import21:54
eanderssonI don't fully understand the zone import code, but neither show or list zone import contains the uuid in any of the zones created21:56
johnsomHa, yeah, ok I see that the zone create throws away the details of the zone created. My pet-peeve "_" dummy variable used there.21:59
johnsomWe need to capture that response, parse it for the zone ID, then register that for cleanup22:00
johnsomProbably a async mess there too from the looks of it.22:03
opendevreviewMerged openstack/designate-tempest-plugin master: Fixed multiple leaking tests  https://review.opendev.org/c/openstack/designate-tempest-plugin/+/79637522:19
eanderssonAnother idea would be to just capture the zone name and just find it and delete it using the name instead.23:07
eanderssonbtw there is also one PTR record that I can't figure out where it is created23:08

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