Tuesday, 2021-11-02

opendevreviewMichael Johnson proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650603:50
johnsomLet's step this debug up a bit....03:51
eanderssonI did find at least one very similar bug in uwsgi04:05
eanderssone.g. https://github.com/unbit/uwsgi/issues/83504:06
eanderssonbut I am still unable to reproduce it at all locally.04:06
johnsomYeah, 2015?04:06
johnsomYeah, we perfectly reproduced that in our gate.04:07
eanderssonIt's weird that I cannot reproduce it locally.04:07
johnsomI guess I messed something up in the ansible, the jobs are bombing. looking at that now04:07
eanderssonI don't understand what the difference can be.04:07
johnsomSomething strange is happening with the socket. That last log shows the API returning 403 for a third time, but apache switches it to 502. The apache log even shows it got the 403, just as a secondary response. 04:08
johnsomIt seems like it's a timing thing, but I'm looking for more proof by dumping the socket traffic04:09
eanderssonI wonder if it is hitting like a EAGAIN or EWOULDBLOCK and not handling it properly.04:10
johnsomEAGAIN appears to be handled in the mod_uwsgi, I don't see wouldblock though04:10
eanderssonI think in theory they are the same04:11
opendevreviewMichael Johnson proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650604:12
johnsomIt has been a while since I did raw socket work, so... rusty04:12
johnsomThis is where mod_uwsgi is going off the rails: https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/proxy/mod_proxy_uwsgi.c?view=markup#l40704:13
eanderssonI don't think I have ever had to go beyond just using standard Linux tooling for network :D04:14
johnsomAh, well... Been there, done that04:14
eanderssonI would love to know what rv is returning here04:20
eanderssonIt does not look like it is logged anywhere04:20
johnsomI captured it before I got distracted. I think my build of apache logs it04:21
eanderssonhttps://apr.apache.org/docs/apr/1.6/group___a_p_r___s_t_a_t_u_s___i_s.html#ga56aa0a70756b5e83bc9d90f920527be404:21
johnsomgeez, that was May. sigh.04:25
johnsomI think I will let this run, if it doesn't have what we want, I can spin a new apache and get it.04:26
eandersson>  retry=0ProxyPass04:37
eanderssonhttps://zuul.opendev.org/t/openstack/build/97438023fbb54e0c80093f82d6f56fbb/log/controller/logs/apache_config/designate-api-wsgi_conf.txt04:38
johnsomMy ansible foo fails me04:38
eanderssonAh I guess it appended and didn't overwrite the config file04:38
opendevreviewMichael Johnson proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650604:42
johnsomCatch you all tomorrow05:12
eanderssono/05:13
eanderssonjohnsom the issue is that it writes the file before devstack. It is actually devstack that is appending to the file05:28
johnsomBummer, well feel free to poke at it, I won’t until tomorrow05:36
opendevreviewDr. Jens Harbott proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650605:49
fricklereandersson: johnsom: ^^ something like that I hope, overriding the config in the devstack plugin instead of the pre-playbook05:51
eanderssonYep that worked06:57
eanderssonBut now the endpoint isnt working properly06:57
eandersson>  uwsgi: attempt to connect to Unix domain socket /tmp/designate-api-wsgi.socket (uwsgi-uds-designate-api-wsgi) failed06:58
eanderssonguessing the socat piece isnt working properly07:03
eanderssonbut not really seeing anything in the logs07:03
fricklereandersson: I'm guessing that it is the /tmp isolation for apache mentioned in https://opendev.org/openstack/devstack/src/branch/master/lib/apache#L26107:17
fricklerlet me try to move that to /var/run07:17
opendevreviewDr. Jens Harbott proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650607:36
opendevreviewArkady Shtempler proposed openstack/designate-tempest-plugin master: Adds scenario based test case  https://review.opendev.org/c/openstack/designate-tempest-plugin/+/81635613:14
opendevreviewVadym Markov proposed openstack/designate-dashboard master: Fix policy request for Zones panel  https://review.opendev.org/c/openstack/designate-dashboard/+/81618915:28
opendevreviewMichael Johnson proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650616:40
johnsomI rebased apache, added a log for the rv and dumped socat's stderr/stdout to a file (though It should go to a log file I think).16:45
opendevreviewMichael Johnson proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650617:07
johnsomSigh, learning the same lessons as months ago.18:17
eanderssonAppreciate the effort. Logging etc will be a hundred times better if we get this working.18:23
eanderssonYou could probably write a blog post on this lol18:23
johnsomHa, yah18:24
johnsomMy fear is that it's just something dumb as we don't see this in other projects. Octavia has been using uwsgi for years...18:24
eanderssonYea - and there isn't anything special with this implementation and it is failing on the simplest of all calls.18:26
opendevreviewMichael Johnson proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650618:33
johnsomBut, given there is an open bug since 2015, it might really be something....18:34
johnsomI forgot that the trunk branch of apache has new requirements to build, I had to pull it back to the version installed in the base image. It should compile now18:35
eanderssonYea - might be worth to bump that thread18:52
eanderssonSince we can easily reproduce this18:52
eanderssonI wonder if we are the only ones doing a million of these calls to test all APIs for 403s18:56
opendevreviewMichael Johnson proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650621:54
opendevreviewMichael Johnson proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650622:33
opendevreviewMichael Johnson proposed openstack/designate master: DNM: Debug uWSGI  https://review.opendev.org/c/openstack/designate/+/78650623:17

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