Friday, 2024-01-12

*** noonedeadpunk_ is now known as noonedeadpunk08:14
ihalomi_ hey, not sure if this is right channel but i have problem with my account at opendev. I changed prefered email in my ubuntu one account and now I cannot login into opendev account. It sents me to this page https://review.opendev.org/SignInFailure,SIGN_IN,Contact+site+administrator who should I contact about it? I think its because there is already account in opendev using my new prefered email but ubuntu one account used to creat11:32
fricklerihalomi_: #opendev is a better channel, responded there11:51
noonedeadpunkHey folks16:42
noonedeadpunkI need some help I guess. I'm trying to fix CI for Vitrage, but looks like AODH installation in devstack is also broken. And I'm not _very_ good in debugging devstack issues. So maybe this is smth known :)16:43
noonedeadpunkSo aodh wsgi fails with that: https://zuul.opendev.org/t/openstack/build/39c110a20e8e495e88f987901d3caeb0/log/controller/logs/apache/aodh_log.txt16:43
noonedeadpunkWhich sounds like either path is wrong or dunno even...16:44
clarkbnoonedeadpunk: thats an import error for aodh in the wsgi script /var/www/aodh/app. That means aodh isn't installed or it isn't installed in your python path16:45
clarkbnoonedeadpunk: I would cross check how other services are installing themselves to be executable under wsgi16:46
clarkbthis may be fallout from the install everything into a virtualenv effort and if aodh is a plugin maybe it didn't get updated to do the same or update paths etc16:46
noonedeadpunkI kinda wonder if that could be also that some kind of migration from providing wsgi script to using the module...16:49
noonedeadpunkjust aodh jobs looks like working nicely and apache config is exactly the same: https://zuul.opendev.org/t/openstack/build/32fa462543e548d199b38ab82440948c/log/controller/logs/apache_config/aodh_conf.txt16:50
clarkbhttps://opendev.org/openstack/aodh/src/commit/c19cb61f46c1f0bda6c6494ad20e51141e23d052/devstack/plugin.sh#L67-L90 it is a plugin and it does appear to have some code to deal with virtualenv installs16:54
clarkbinteresting16:54
clarkb/opt/stack/data/venv is where aodh is installed in the failing job16:55
clarkbnoonedeadpunk: in the passing job you have https://zuul.opendev.org/t/openstack/build/32fa462543e548d199b38ab82440948c/log/controller/logs/_.localrc_auto.txt#46 in the failing job you do not16:57
clarkband the venv code in the aodh plugin I linked is for per projcet venvs which is a dead code path I think. The venv codepath in devstack uses a global venv with everything installed in it16:58
clarkbthe update you will want to make is if global venv is set then update the aodh config similar to how it updates the project venv into the config there16:58
fricklerI wonder why aodh is running with mod_wsgi instead of uwsgi. do they do that in their own tests, too?16:59
clarkbfrickler: per the aodh_conf.txt file noonedeadpunk linked it appears they use mod wsgi there too17:00
noonedeadpunkaha17:00
clarkbthe plugin does have some uwsgi stuff in it though17:00
noonedeadpunkOk, now it's way more clear. Except on how to fix, but will figure that part, thanks clarkb!17:02
noonedeadpunkAnd sorry for the stupid question, but I really barely touched devstack in last 3-4 years17:02
clarkbyou just have to follow the breadcrumbs: cannot import aodh -> where is aodh installed -> aodh is installed in a venv -> is the venv in mod_wsgi's python path?17:03
clarkbI guess asking "is aodh installed" is the first question17:04
noonedeadpunkYeah, just that other aodh services seem to be running normally, except API really confused me17:05
fricklerah, aodh sets GLOBAL_VENV="False"17:05
clarkbfrickler: yup17:05
clarkbso they will stop working at some point in the future without updates17:05
frickleryou'll need to do that in your job config, too. except that this is a bad idea ... exactly17:05
noonedeadpunkSo I assume ideally aodh devstack plugin should be checked ideally...17:06
clarkbnoonedeadpunk: I would update the aodh devstack plugin to handle global_venv the code is mostly there it just needs a different flag check for the global venv and then to write the virtualenv to the wsgi config17:07
clarkbthe same change can remove the GLOBAL_VENV=false setting to self test17:07
clarkbhttps://opendev.org/openstack/aodh/src/commit/c19cb61f46c1f0bda6c6494ad20e51141e23d052/devstack/plugin.sh#L67-L90 this is what needs to be updated for mod wsgi17:07
clarkbnot sure about uwsgi17:07
noonedeadpunkok-ok, gotcha, will try to come up with smth, thanks again!17:09

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