Wednesday, 2023-08-23

fricklereandersson: I'm stuck debugging designate testing failures in kolla, maybe you can take a look https://1f951496931df7f98421-2c4ddb9b866dbe784d60fff20a0119fe.ssl.cf1.rackcdn.com/892278/2/check/kolla-ansible-ubuntu-magnum/ab9f889/primary/logs/ansible/test-magnum11:45
fricklera zone is created and then designate-sink is configured to create records in that zone11:46
fricklerafter restarting designate, the zone is stuck in PENDING/UPDATE, before any real update is made, while records in the zone are stuck in PENDING/CREATE11:46
fricklerI have a node held for that job in case you'd want to take a look at things in situ11:47
fricklerthat job is failing since about 2 months, was working fine earlier, and I don't think anything has changed on the kolla side11:47
fricklerthe only patch merged in designate that I've found is https://review.opendev.org/c/openstack/designate/+/886621 but I fail to see how that could break things11:50
fricklerthis was more text about the issue than I expected, guess I should put it onto LP ;)11:51
eanderssonInteresting. I'll take a look.13:59
eanderssonfrickler: Can you enable debug logs for designate?14:10
fricklereandersson: https://1f951496931df7f98421-2c4ddb9b866dbe784d60fff20a0119fe.ssl.cf1.rackcdn.com/892278/2/check/kolla-ansible-ubuntu-magnum/ab9f889/primary/logs/kolla/designate/index.html should have them14:12
eanderssonYea just found them was just looking in the wrong place14:13
frickleryes, kolla job logs are a bit difficult to look at if you're not used to it, sorry for that14:14
eanderssonThe producer isn't doing anything which is odd14:15
eanderssonhttps://zuul.opendev.org/t/openstack/build/b3a983600d6347a3abaa819461986d6e/log/primary/logs/kolla/designate/designate-producer.txt14:16
eanderssonIn the new version of Designate the producer is critical path14:16
eanderssonenabled_tasks = None14:17
eanderssonhttps://zuul.opendev.org/t/openstack/build/b3a983600d6347a3abaa819461986d6e/log/primary/logs/kolla_configs/designate-producer/designate.conf#4314:17
eanderssonFor some reason kolla is setting extensions to zero14:17
eanderssonSo the zone serial number is never incremented14:17
eanderssonhttps://github.com/openstack/kolla-ansible/blob/master/ansible/roles/designate/templates/designate.conf.j2#L5214:26
eanderssonI'll throw in a quick PR to fix it14:26
eanderssonfrickler do you have a bug, or could you create one? https://review.opendev.org/c/openstack/kolla-ansible/+/89242714:29
fricklereandersson: I wanted to, but got distracted by other issues, will add one later. thanks for spotting this14:32
fricklerseems like that line has been in kolla forever, though, any idea what makes this break only now?14:33
eanderssonI updated the commit message14:33
eanderssonWe moved the zone serial from central to the producer14:33
eanderssonincrementing the zone serial14:34
eanderssonSo producer is critical path now, and wasn't before.14:35
fricklerah, that makes sense, thx14:36
opendevreviewMichael Johnson proposed openstack/designate master: Fix DB upgrade with using SQLAlchemy 2.x  https://review.opendev.org/c/openstack/designate/+/89254314:36
eanderssonWorth mentioning that the kolla issue is a bug too because while the producer wasn't critical path ebfore 14:39
eanderssonit had a lot of important recovery and cleanup functionality that ideally shouldn't be deactivated14:40
fricklereandersson: ah, so the issue was triggered when we switched kolla from deploying 2023.1 to master, I missed that patch during my search for possible triggers https://review.opendev.org/c/openstack/kolla/+/88608714:40
fricklereandersson: yes, I agree, will create the bug now14:40
eanderssonYep - that makes sense14:43
frickleractually I found https://bugs.launchpad.net/kolla-ansible/+bug/1773972 with already describes a similar failure14:43
fricklereh, wrong link, sorry, https://bugs.launchpad.net/kolla-ansible/+bug/187955714:43
fricklereandersson: so is it enough to simply leave enabled_tasks undefined and thus using the default, or would it be better to make it configurable?14:45
eanderssonI prefer undefined, because there are almost no scenarios where you would want to disable any of these jobs14:45
eanderssonIn the future we might add more optional jobs and it might make sense to make it configurable14:45
eanderssonHaving that said if you have some free cycles it probably does not hurt to have it configurable, but defaults to all tasks enabled14:47
eandersson(with a good comment)14:48
eandersson"Only disable tasks if you know what you are doing :D"14:48
fricklerbut I'm also confused after reading the docs, they say "enabled_tasks = None" is the default. so why does that config line change the default behavior14:48
frickleror is that string "None" vs. python None?14:48
eanderssonGood question14:49
eanderssonhttps://github.com/openstack/designate/blob/master/designate/conf/producer.py#L58C22-L58C2214:49
eanderssonYou are right it should work, but might be something like Python None14:50
eanderssonI can run it in a debugger real qucik14:50
fricklerit is a list opt, so default = [] I guess14:50
fricklerand setting = None in the config should give ["None"] then14:51
eanderssonAnd no unit test to cover this code :D14:56
eanderssonI'll add one real quick14:58
eanderssonYea - you are right15:09
eandersson<class 'list'> ['None']15:09
eanderssonSo the "way" to set an empty list is just15:10
eandersson> enabled_tasks = 15:10
eanderssonVery confusing :D15:16
-opendevstatus- NOTICE: Gerrit is going to be restarted to pick up a small config update. You will notice a short outage of the service.15:32
opendevreviewMerged openstack/designate master: Fix DB upgrade with using SQLAlchemy 2.x  https://review.opendev.org/c/openstack/designate/+/89254316:50

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