Monday, 2023-03-27

wxy-xiyuanOnce nodepool-builder use diskimage-buidler>=3.28.0, the openEuler CI job timeout problem will be fixed I think. Let's wait more.00:54
wxy-xiyuan]06:07
*** jpena|off is now known as jpena07:42
*** ykarel_ is now known as ykarel13:21
opendevreviewMerged openstack/devstack master: Add config options for cinder nfs backend  https://review.opendev.org/c/openstack/devstack/+/86867214:20
*** jpena is now known as jpena|off16:33
dansmithclarkb: could we have some way to not even start the expensive jobs until the linter job(s) pass?16:48
dansmithI am certainly not without guilt here, submitting patches that fail linters, but.. maybe we could improve behavior a bit by saying "we don't run your stuff on devstack if it failed pep8"16:49
clarkbdansmith: yes zuul allows you to define the jobs in a pipeline such that one or more must pass before others start. We've looked at it in the past and found that often that creates more round trips since things like pep8 are often not fatal16:51
dansmithclarkb: yeah, non-fatal technically, but we could call it fatal for our purposes16:52
clarkbright. The idea is/was that pep8 could fail and the unittests and devstack all on different things and you could correct the three in a single new patchset rather than two or three. I think this made sense because we expected people to at least run linters pre push (and I'll admit I skip it sometimes too when I'm like this is fine and find out nope)16:53
dansmithI have shamelessly submitted patches (usually for configs that I can't easily replicate locally) that fail pep8 for SyntaxError or other fatal things and don't realize until later16:53
dansmithprobably not very common, but.. we *could* say you have to pass pep8 to run the expensive stuff16:53
dansmithyep, it's always making a tiny change I'm sure of that I fail :D16:54
dansmithanyway, just curious if it was an option16:54
JayFI've even pushed patches which I remembered to run (and make them pass!) unit tests, then realized post-push I didn't do lint ... I should get the pre-commit-hooks Sean was talking about18:36
opendevreviewArtom Lifshitz proposed openstack/whitebox-tempest-plugin master: WIP/DNM: try using barbican client from their plugin  https://review.opendev.org/c/openstack/whitebox-tempest-plugin/+/87871118:46
sean-k-mooneyJayF: for what its worth reboot on centos 9 stream is broken i belive becasue of the apache <=> uwsgi interaction19:50
sean-k-mooneycurl -g -i -X GET http://localhost/identity/v3/ -H "Accept: application/json19:50
sean-k-mooneygives a 50319:50
sean-k-mooneybut keystone steams to be fine looking at journalctl output so if that was fixed it proably would work19:51
clarkbwhat is the uwsgi interaction?19:51
JayFI avoid CentOS Stream tbh, so I don't think I'd hit that one.19:51
sean-k-mooneyi think its really the proxy behavior19:52
sean-k-mooneyclarkb: basically sudo journalctl -u devstack@keystone -xe seams to show keystone working away fine19:53
sean-k-mooneybut if i curl it i just get a 50319:53
clarkbright so apache is saying the service isn't ready for some reason19:55
clarkbapache should log why somewhere19:55
sean-k-mooneyya i didnt see anything in the error log or access log but im sure its somewhere19:55
sean-k-mooneyi dont think this happens on ubuntu for what its worht19:56
clarkbsean-k-mooney: is there a keystone specific log file? I want to say there is19:56
clarkbkeystone specific apache log file I mean19:56
sean-k-mooney[stack@controller ~]$ sudo ls /var/log/httpd/19:57
sean-k-mooneyaccess_log  error_log  horizon_access.log  horizon_error.log  ssl_access_log  ssl_error_log  ssl_request_log19:57
sean-k-mooneynot that i can see i would assume just in the error_log19:57
sean-k-mooneythis is not super important i was just looking at this becasue fo the tc converstation19:57
clarkbgrepping in devstack I see `ErrorLog /var/log/%APACHE_NAME%/keystone.log`19:58
clarkbbut maybe that template isn't in use19:58
clarkbyup thats in the wsgi config for mod_wsgi and uwsgi uses something else19:59
sean-k-mooneythats the wsgi config for keystone  https://termbin.com/2r5z20:02
sean-k-mooneyfrom /etc/keystone/keystone-uwsgi-public.ini 20:02
sean-k-mooneyi dont see any extra log cofnig20:02
sean-k-mooneyand the apache one is tiny20:02
clarkbis the socket "file" present?20:03
sean-k-mooneyhttps://termbin.com/oyhzo20:04
sean-k-mooneyill check20:04
sean-k-mooneyyep its in /var/run/uwsgi/20:04
clarkbjust talking out loud here: I wonder if apache starts before the uwsgi service creates the socket it caches the lack of the socket and returns errors?20:04
clarkbmight be worth doing a `systemctl restart httpd` to see if that changes naything20:05
sean-k-mooneyactully apache does not start automaticallly20:05
sean-k-mooneyi started it myself20:05
sean-k-mooneybut i can stop and start it again20:05
clarkbeasy to try but seems unlikely to be a race in service startup given that20:05
sean-k-mooneyi know tha the wsgi dir used to be a probelm but that was fixed with tmpfiles.d i think20:06
clarkbis /var/run a tmpfs too? that could be am ounting order of operations20:07
sean-k-mooneytmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,size=1574272k,nr_inodes=819200,mode=755,inode64)20:07
sean-k-mooneyi dont see var/run but ill check again20:07
sean-k-mooneyah its a simlink which is what i was expecting20:08
sean-k-mooneylrwxrwxrwx. 1 root root 6 Aug 25  2022 /var/run -> ../run20:08
sean-k-mooneyi think this is a routing thing20:08
sean-k-mooneywhen devstack deploys it moves the ip to an ovs bridge20:09
sean-k-mooneyafter the reboot it goes back to eth0 or whatever20:09
sean-k-mooneyhum but actully that does nto really make sense20:09
sean-k-mooneythat should not casue a 50320:09
clarkbya 503 should mean no access to the backing service or running out of threads20:09
clarkbsince the backend service is on a socket and not via tcp it shouldn't care about eth020:10
sean-k-mooneylol20:10
sean-k-mooneyok its working now want to guess20:10
sean-k-mooney[stack@controller devstack]$ openstack service list | nc termbin.com 999920:11
sean-k-mooneyhttps://termbin.com/y92d620:11
sean-k-mooneyclarkb: it was Selinux...20:11
sean-k-mooneyset it to permissive and it worked20:12
sean-k-mooneyim going to change that in the config and reboot again and see if it works20:12
clarkbhuh did rebooting switch it from permissive to enforcing?20:12
clarkb++20:12
sean-k-mooneyyep we only disable it at runtime in devstack20:12
sean-k-mooneywe dont persit it to the file20:12
sean-k-mooneyok works so only two thing are misisng for the fedora famaily of distors20:16
sean-k-mooneydisable selinux in the file. and enable httpd so it starts on reboot20:16
sean-k-mooneyJayF: ^20:16
sean-k-mooneyi can proably hack a pacth up for that quickly20:16
sean-k-mooneythat also makes sense why it works on ubuntu apache2 is enable by default when you install and apparmor does not block access to uwsgi sockets20:17
sean-k-mooneyas a side note this si a 2 node devstack i deploy with a molecue evn using vagrat/libvirt during the tc call in 1 command using the zull devstack roles20:18
JayFsean-k-mooney: clarkb: very nice find!!! 20:19
sean-k-mooneyhttps://github.com/openstack/devstack/blob/540ec94a043056d14a5e3eaff9ea776b5a2f67bb/tools/fixup_stuff.sh#L36-L4020:21
sean-k-mooneyso that just need to be replace with something that survives reboot20:21
sean-k-mooneycrudini is prbably the best way to do that20:22
sean-k-mooneyactully i think devstack uses iniset instead fo crudini driectly20:24
sean-k-mooneyactully i can jsut use a heredoc20:24
sean-k-mooneynow the real question is do i test this locally or push cause obviously its correct :P20:32
JayFjust make sure to run lint ;)20:32
sean-k-mooneydoes devstack have ath i assume bashate20:33
sean-k-mooneyhehe good thing i checked my indetation was broken in the heredoc20:36
sean-k-mooney766 second that much better20:50
sean-k-mooneyok that seams to work20:51
sean-k-mooneyto test this properly i would need a clean vm but i can try that tomorrow20:52
opendevreviewsean mooney proposed openstack/devstack master: Fix reboot on fedora like nodes  https://review.opendev.org/c/openstack/devstack/+/87871820:58
sean-k-mooneyok that should do it ^20:58
*** spotz_ is now known as spotz23:34

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