Tuesday, 2022-04-19

opendevreviewGhanshyam proposed openstack/devstack stable/yoga: Write safe.directory items to system git config  https://review.opendev.org/c/openstack/devstack/+/83835201:43
opendevreviewGhanshyam proposed openstack/devstack stable/xena: Write safe.directory items to system git config  https://review.opendev.org/c/openstack/devstack/+/83842302:04
opendevreviewGhanshyam proposed openstack/devstack stable/wallaby: Write safe.directory items to system git config  https://review.opendev.org/c/openstack/devstack/+/83842602:31
opendevreviewGhanshyam proposed openstack/devstack stable/victoria: Write safe.directory items to system git config  https://review.opendev.org/c/openstack/devstack/+/83842802:47
gmanndansmith: clarkb backported '--system' one till stable/victoria https://review.opendev.org/q/I941ef5ea90970a0901236afe81c551aaf24ac1d802:48
opendevreviewWenping Song proposed openstack/tempest master: Fix: change values to items as keys and values are all used  https://review.opendev.org/c/openstack/tempest/+/83843003:21
*** pojadhav is now known as pojadhav|ruck03:59
opendevreviewMerged openstack/devstack master: Add OpenStack two nodes nodeset for Centos 9  https://review.opendev.org/c/openstack/devstack/+/83684105:48
opendevreviewRajat Dhasmana proposed openstack/tempest master: Add test to rebuild volume backed instance  https://review.opendev.org/c/openstack/tempest/+/83101805:57
*** jpena|off is now known as jpena07:01
opendevreviewFrancesco Pantano proposed openstack/devstack-plugin-ceph master: Deploy with cephadm  https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/82648407:01
*** pojadhav|ruck is now known as pojadhav|lunch07:35
fricklerclarkb: I think https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_a6b/558930/22/check/tempest-full-py3/a6bd686/controller/logs/screen-keystone.txt is the real issue07:35
*** arxcruz|out is now known as arxcruz08:11
*** pojadhav|lunch is now known as pojadhav|ruck08:30
opendevreviewEduardo Olivares proposed openstack/tempest master: Validate network downtime during live migration  https://review.opendev.org/c/openstack/tempest/+/82868609:22
opendevreviewEduardo Olivares proposed openstack/tempest master: Validate network downtime during live migration  https://review.opendev.org/c/openstack/tempest/+/82868609:43
*** icey_ is now known as icey09:53
sean-k-mooneydansmith: you could perhaps try the ansibel devstack repo i have been playing with too. i have not fully figured out how to emulate the gate jobs with it yet but i was hoping to use it to be able to work on gate jobs eventually10:33
sean-k-mooneyclarkb: ill test that out and report back. i need to start writing some docs for my molecuel roles but one of the things that was only list was to document how to test with un merged patches.10:43
sean-k-mooneyah you are defaulting GLOBAL_VENV to true cool so i dont need to set anyting in the local.conf10:43
opendevreviewAndre Aranha proposed openstack/tempest master: Add multinode FIPS job to the experimental queue  https://review.opendev.org/c/openstack/tempest/+/82658013:12
*** spotz__ is now known as spotz13:12
dansmithsean-k-mooney: ah yeah good idea13:26
dansmithgmann: okay I was going to do that after it landed.. sorry clarkb 13:26
gmanndansmith: also, I think I will do for ussuri also as I need to pin the tempest there so that we can declare the 'end of support of ussuri' in tempest - https://review.opendev.org/q/topic:ussuri-last13:28
dansmithgmann: okay13:35
*** spotz is now known as spotz__13:54
*** spotz__ is now known as spotz13:54
bkopilovHi experts ,Need help with review : 14:06
bkopilovhttps://review.opendev.org/c/openstack/tempest/+/83760314:07
dansmithgmann: do you want me to +W those backports even though I wrote the original?14:07
gmanndansmith: I think you can. 14:07
dansmithgmann: okay, good to just +W them all, or do you want to wait for wallaby until yoga merges, etc?14:07
dansmither, xena (/me not so good at alphabet)14:08
gmanndansmith: you can do for all, that is usually we do in devstack, if anything failing/merge conflict or so we can fix it later14:08
dansmithgmann: cool, here goes14:08
gmanndansmith: thanks 14:08
elodillesgmann: nova and neutron grenade were working ~ a week ago for EM branches, so at least those were used o:) i'll try to look after the devstack patches that need to be backported14:31
*** pojadhav|ruck is now known as pojadhav|out14:49
clarkbfrickler: thanks I agree. If I have time I'll try to look closer14:49
kopecmartin#startmeeting qa15:00
opendevmeetMeeting started Tue Apr 19 15:00:15 2022 UTC and is due to finish in 60 minutes.  The chair is kopecmartin. Information about MeetBot at http://wiki.debian.org/MeetBot.15:00
opendevmeetUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.15:00
opendevmeetThe meeting name has been set to 'qa'15:00
kopecmartin#link https://wiki.openstack.org/wiki/Meetings/QATeamMeeting#Weekly_QA_Team_meeting15:00
kopecmartinagenda ^^15:00
kopecmartin#topic Announcement and Action Item (Optional)15:02
kopecmartinnone from my side15:02
kopecmartin#topic Zed Priority Items progress15:02
gmanno/15:02
kopecmartin#link https://etherpad.opendev.org/p/qa-zed-priority15:02
kopecmartinhi gmann15:02
kopecmartintopic: Unstable tests in Tempest monitoring15:03
kopecmartinI found out that we have 3 tests decorated as unstable ones15:03
gmannok15:04
kopecmartintest_create_object_with_transfer_encoding is associated with the following bug15:05
gmannkopecmartin: can you please remove the +W , i forgot to keep it in -W as I am still testing it https://review.opendev.org/c/openstack/tempest/+/83777715:05
kopecmartingmann: sure, sorry15:05
gmannthanks15:06
kopecmartinso the above test is associated with the following bug: 15:06
kopecmartin#link https://bugs.launchpad.net/tempest/+bug/1905432  15:06
kopecmartinit's in progress, we can leave the test as is right now15:06
kopecmartinalthough the other test15:06
kopecmartintest_container_synchronization15:06
kopecmartinshould be fixed already15:06
kopecmartin#link  https://bugs.launchpad.net/tempest/+bug/131713315:06
kopecmartindo we want to remove the unstable decorator there and watch what happens?15:07
gmannI think we can remove and watch, its start of cycle so good to try15:07
kopecmartinack15:08
kopecmartinthe last one test_server_connectivity_cold_migration_revert15:08
kopecmartinhas an expired test15:08
kopecmartin*bug15:08
kopecmartin#link  https://bugs.launchpad.net/neutron/+bug/183659515:09
kopecmartinshould we skip the test permanently?15:09
gmannhumm skip test permanently is not good15:10
kopecmartinyeah, ok , maybe let me dig in a bit and find out where/what jobs execute the test15:10
kopecmartinlet's see how it behaves 15:10
gmannyeah, we can re-open it for neutron15:12
kopecmartinsounds good15:12
kopecmartinany other updates?15:12
kopecmartini'm gonna push a review soon to switch to ecdsa keys by default in tempest15:13
kopecmartin#topic OpenStack Events Updates and Planning15:15
kopecmartinnothing specific here15:15
kopecmartin#topic Gate Status Checks15:15
kopecmartinhttps://review.opendev.org/q/label:Review-Priority%253D%252B2+status:open+(project:openstack/tempest+OR+project:openstack/patrole+OR+project:openstack/devstack+OR+project:openstack/grenade)15:15
kopecmartinnone reviews there15:16
soniya29i have couple of patches failing in barbican-tempest-plugin with same error15:16
soniya29https://aad416e65f3b6b410df4-779f7e98ba8ab2ef93c3580c1febb3f0.ssl.cf2.rackcdn.com/834000/3/check/barbican-tempest-plugin-simple-crypto-victoria/07b40f8/job-output.txt15:16
kopecmartinyeah, they fail due to this15:16
kopecmartin#link https://bugs.launchpad.net/devstack/+bug/196879815:16
kopecmartineven though some workaround patches have been merged, it still fails somewhere 15:17
kopecmartine.g. barbican-tempest-plugin or python-tempestconf15:17
kopecmartini don't know why15:17
gmannsoniya29: kopecmartin yeah it should be fixed now. or you saw the error after fix were merged ?15:18
soniya29kopecmartin, my patches are blocked because of it :)15:18
soniya29gmann, i am seeing these errors today15:18
kopecmartinyep, it failed today, see my comment15:18
kopecmartinhttps://bugs.launchpad.net/devstack/+bug/1968798/comments/515:18
gmannsoniya29: this is victoris job which should be fixed too15:18
soniya29gmann, it is failing on xena, ussuri as well15:19
soniya29https://review.opendev.org/c/openstack/barbican-tempest-plugin/+/83400015:19
gmannussuri it will fail as we fixed only till stable/victoria 15:19
soniya29https://review.opendev.org/c/openstack/barbican-tempest-plugin/+/83380115:20
kopecmartini wonder why this fails as it uses master :/15:21
kopecmartin#link https://zuul.opendev.org/t/openstack/build/025e36991b6e472ba0c204fede26710415:21
clarkbI haven't opened the links but any use of git as a different user than ownership of the repo can cause this15:23
opendevreviewEduardo Olivares proposed openstack/tempest master: Validate network downtime during live migration - part II  https://review.opendev.org/c/openstack/tempest/+/83851815:23
clarkbthe patches to devstack have flagged the repos that devsatck clones as safe to address this but if a plugin or job manually clones and doesn't do this they can still break15:24
clarkbor if they interact with the zuul cloned repos directly as not the zuul user15:24
clarkbetc etc. You'll need to dig into why they are still broken particualrly on master where the workaroudns should be sufficient15:24
kopecmartinclarkb: does this count as interacting with it directly as not zuul user? 15:26
kopecmartin#link https://opendev.org/openinfra/python-tempestconf/src/branch/master/roles/install-plugins/tasks/main.yaml#L515:26
clarkbkopecmartin: no that should run out of the tempest clone done by devsatck which gets the flag set. The next task may be though as that pip installs requirements as root out of the zuul clone15:27
clarkber wait that doesn't pip install requirements it just gets upper constraints15:27
clarkbit pip installs some list of plugins but I'm not sure where those plugins are located15:27
kopecmartinit fails on the Prepare tempest venv task anyway15:28
kopecmartinbefore installign plugins15:28
kopecmartinok, i'll try to dig more into that15:28
kopecmartinbtw, plugins_paths is just a var which references the plugins locations where they were cloned by devstack15:29
kopecmartinso the workaround should work on that too15:29
clarkbspecifically the issue is running git commands in a git repo as a user other than the user that owns the files in the git repo15:29
clarkbreading the files directly or navigating the repo with cd and that sort of interaction is fine. It is git itself policing this when you run git commands against a repo15:30
clarkbinstalling things causes this to happen because pbr runs git commands to determine version info15:30
kopecmartini see, thanks, i'll check the tasks executed in more detail15:33
kopecmartin#topic Periodic jobs Status Checks15:33
kopecmartinstable:15:34
kopecmartin#link https://zuul.openstack.org/builds?job_name=tempest-full-yoga&job_name=tempest-full-xena&job_name=tempest-full-wallaby-py3&job_name=tempest-full-victoria-py3&job_name=tempest-full-ussuri-py3&pipeline=periodic-stable15:34
kopecmartinmaster:15:34
kopecmartin#link https://zuul.openstack.org/builds?project=openstack%2Ftempest&project=openstack%2Fdevstack&pipeline=periodic15:34
kopecmartintempest-full-ussuri-py3 failed couple days ago with the same pbr error 15:35
kopecmartin#link tempest-full-ussuri-py315:35
kopecmartin#link https://zuul.openstack.org/build/e5fe6f0121924271b820c1ac3288264015:35
kopecmartinwhich makes sense as the fix/workaround wasn't backported to ussuri15:35
kopecmartin#link https://review.opendev.org/c/openstack/devstack/+/83774915:36
kopecmartin#topic Distros check15:37
kopecmartincentos 8/9 stream15:37
kopecmartin#link https://zuul.openstack.org/builds?job_name=tempest-full-centos-9-stream&job_name=tempest-full-py3-centos-8-stream&job_name=devstack-platform-centos-8-stream&job_name=devstack-platform-centos-9-stream&skip=015:37
kopecmartinfedora15:38
kopecmartin#link https://zuul.openstack.org/builds?job_name=devstack-platform-fedora-latest&skip=015:38
kopecmartinoh, that's really bad15:38
kopecmartinopenEuler15:38
kopecmartin#link https://zuul.openstack.org/builds?job_name=devstack-platform-openEuler-20.03-SP2+&skip=015:38
kopecmartindebian15:38
kopecmartin#link https://zuul.openstack.org/builds?job_name=devstack-platform-debian-bullseye&skip=015:38
kopecmartin#topic Sub Teams highlights 15:39
kopecmartinChanges with Review-Priority == +115:39
kopecmartin#link https://review.opendev.org/q/label:Review-Priority%253D%252B1+status:open+(project:openstack/tempest+OR+project:openstack/patrole+OR+project:openstack/devstack+OR+project:openstack/grenade)15:39
kopecmartinno reviews15:40
kopecmartin#topic Open Discussion15:40
kopecmartinanything for the open discussion?15:40
toskyvery quickly, I have a question15:43
toskyas you may know, there is an ongoing effort to switch the ceph deployment to cephadm (in devstack-plugin-cephadm)15:43
toskywhile helping with testing some patches, we realized we don't test RGW in place of swift at all15:43
toskyso I've tried to enable it, and I hit an issue15:43
toskythe problem we are facing now is that when you disable swift, tempest verify-config complains because it finds the swift endpoint but swift is false in the service_enabled section.15:43
toskySo I'm not sure what to do: change the definitions services so that "s-*" means "the swift services" and "swift" generically means "any swift interface", and the latter can be set to true while the former to false?15:43
toskyor something else15:43
toskylet me dig the error15:43
toskyhttps://57f0df93d98f0ba67cf4-594c8dbcc2892c36fc68c95ad460eff0.ssl.cf5.rackcdn.com/837842/1/check/devstack-plugin-ceph-tempest-py3/5444202/job-output.txt15:45
toskyfrom https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/83784215:45
tosky(the error is not related to cephadm, that patch doesn't use it, it's an issue we have had for a long while)15:45
opendevreviewMerged openstack/devstack stable/yoga: Write safe.directory items to system git config  https://review.opendev.org/c/openstack/devstack/+/83835215:47
opendevreviewMerged openstack/devstack stable/xena: Write safe.directory items to system git config  https://review.opendev.org/c/openstack/devstack/+/83842315:47
opendevreviewMerged openstack/devstack stable/wallaby: Write safe.directory items to system git config  https://review.opendev.org/c/openstack/devstack/+/83842615:47
opendevreviewMerged openstack/devstack stable/victoria: Write safe.directory items to system git config  https://review.opendev.org/c/openstack/devstack/+/83842815:47
* kopecmartin checking the links15:48
toskywhat I'd like to avoid is to introduce another variable for devstack/tempest which really means "a generic swift interface is available", but maybe it's the only way15:51
kopecmartinit sounds like a bug in verify_tempest_config .. i'm trying to figure out whether it's possible to make it smarter15:52
kopecmartin.. without a new option 15:53
kopecmartini forgot how the tool works, i need to check whether it's possible to deduce that rgw is enabled and skip the recommendation to enable swift 15:54
gmannbut is swift enabled in service_available option?15:54
kopecmartinno, it's not15:54
kopecmartinhttps://57f0df93d98f0ba67cf4-594c8dbcc2892c36fc68c95ad460eff0.ssl.cf5.rackcdn.com/837842/1/check/devstack-plugin-ceph-tempest-py3/5444202/controller/logs/tempest_conf.txt15:54
gmannand how we disabled the swift, it should be disabled in devstack in that case15:56
opendevreviewDan Smith proposed openstack/devstack master: Gather performance data after tempest  https://review.opendev.org/c/openstack/devstack/+/83713915:57
kopecmartingmann: https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/837842/1/.zuul.yaml15:58
gmannbecause if you are disabling the swift in tempest but enabled it in devstack then it will complain so you need to disable in devstack side also so that devstack would not cerate the swift endpoint15:58
sean-k-mooneygmann: that seam like a sub optimial solution16:00
gmanntosky: kopecmartin it check both 'swift' or 's-*'   https://github.com/openstack/devstack/blob/676dcaf94487665882be048cfe1f3206d6807e0f/functions-common#L208316:00
sean-k-mooneygmann: we might need swift for some feature but not want to actully test it with devstack16:00
sean-k-mooneygmann: for example we talkabout using swift to store tpm data for shleve at one point16:01
sean-k-mooneyif we wanted to test that in the nova gate we woudl need to enable swift but we might not want to run the swift tempest tests16:01
gmannsean-k-mooney: yeah so in that case you just do not run the swift test. 16:01
sean-k-mooneyright so we shoudl be able to have swift enabeld in devstack adn disable it in tempest16:02
gmannverify-config tool is mainly to tell if anything mismatch in tempest config from what your cloud has16:02
sean-k-mooneysure but coudl it not be a warning instead of an error16:02
gmannsean-k-mooney: not disable in tempest, just do not run the swift test via regex16:02
sean-k-mooneygmann: right im sayting using the regex is not good form a ux point of view16:03
sean-k-mooneyit works but if i disable it in the tempest config i should not have too use the regex16:03
sean-k-mooneyi understand that conflict with verify-config's usecase16:03
gmannyeah but making verify-config less restrictive loose overall goal of this tool16:03
gmannyeah16:04
gmannfor current error, not sure why s-* are not working to disable service in devstack even we have this https://github.com/openstack/devstack/blob/676dcaf94487665882be048cfe1f3206d6807e0f/functions-common#L208316:04
sean-k-mooneyignoring the tool if i disable swift in tempest is that enough to disable the tests16:04
sean-k-mooneygmann: is this related to ceph? is it the rados gateway?16:05
toskygmann: I think disabling s-* is working - the point of the job is that RGW is enabled instead16:05
toskygmann: so the endpoint is populated16:05
sean-k-mooney right16:05
sean-k-mooneyso tempest shoudl treat RGW as swirft16:05
toskythe problem is that tempest tries to set service_enabled.swift based on s-* and swift value and it found it false and it sets it to false16:05
sean-k-mooneyRGW is ment to supprot swifts api16:05
toskyand then verify-config is called, before everything else could forcibly set service_enable.swift to true, and fails16:06
sean-k-mooneyya so verify-cofnig either need to check the ceph plugin flag16:06
toskybasically everything would work if "swift" meant just "swift-like interface" and then the real availability of the services was handled by s-* variables16:07
gmannI see, I think we talked about RGW support in tempest/devstack testing  but I need to check if something we talked in bug or so 16:07
sean-k-mooneyor it need to look at the keytone endpoints in perfernce to local.conf16:07
toskysean-k-mooney: but that would be a reverse dependency to devstack-plugin-ceph16:07
sean-k-mooneynot entirely16:07
sean-k-mooneyit does not depend on it it can simple check if the value is set or not16:07
toskyunless you have a variable which says "expect to find a swift interface, regardless of the implementation"16:08
gmannso that can happen if any other deployment is adding things which we told devstack/tempest not to and things fail16:08
*** jpena is now known as jpena|off16:08
toskybut then we could use 'swift' in SERVICE_ENABLED for that, as I said before16:08
gmanntosky: yes and do not run test if you do not need. 16:08
gmanntosky: I mean enable it in tempest and do not run test16:09
sean-k-mooneytosky: https://github.com/openstack/devstack-plugin-ceph/blob/master/devstack/lib/ceph#L115=16:09
sean-k-mooneyi was hoping there woudl be something like that16:09
sean-k-mooneywhich enabled or disable the RWG16:09
sean-k-mooneythat it could check16:09
toskysean-k-mooney: yes, but that's not the problem16:09
toskytempest shouldn't need to check that value16:09
sean-k-mooneyoh there is ENABLE_CEPH_RGW16:09
sean-k-mooneyright it coudl use the keystone catalog16:10
sean-k-mooneyi guess it is and comparing it to its enabeld services16:10
sean-k-mooneybased on its config16:10
sean-k-mooneyso you could add a test_cofig section to the devstack_plugin_ceph16:11
toskyit's too late16:11
sean-k-mooneywhich woudl enable swift16:11
sean-k-mooneyok well post_config16:11
sean-k-mooneyit happens before any service is started16:11
sean-k-mooneyif you use post_cofnig jobs can still override it with test config16:11
toskytoo late :) the section in lib/tempest has no breaks between setting swift false and ruenning verify-config16:11
sean-k-mooneyoh ok 16:12
sean-k-mooneywell that seam simple to fix16:12
toskyhence the suggestion of redefining the meaning of 'swift'16:13
sean-k-mooneyjust move verify-config ot after test_config phase16:13
toskyor that16:13
toskyI was trying to find a minimally-invasive change16:13
toskybut it probably doesn't exist :)16:13
toskyso I'm here16:13
sean-k-mooneythis is where it is failing yes https://github.com/openstack/devstack/blob/676dcaf94487665882be048cfe1f3206d6807e0f/lib/tempest#L661=16:14
sean-k-mooneyso ya i think the simple solution would be to move that to its own fucntion and run it either after post_config (and before test_config) preserveing the current validation scope but allowing other plugins to modify the config16:16
sean-k-mooneyor put it after test_config having it veriry the final config16:16
toskyneed to disappear for a while, but open to any solution16:17
sean-k-mooneyright now its happeing in install https://github.com/openstack/devstack/blob/676dcaf94487665882be048cfe1f3206d6807e0f/doc/source/plugins.rst#pluginsh-contract=16:17
sean-k-mooneymovign it to extra or test-config woudl be what i woudl suggest16:17
sean-k-mooneyproably extra16:18
kopecmartinthank you for the discussion, i need to end the meeting now :) 16:19
kopecmartinwe may continue next time 16:19
kopecmartin#endmeeting16:19
opendevmeetMeeting ended Tue Apr 19 16:19:56 2022 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)16:19
opendevmeetMinutes:        https://meetings.opendev.org/meetings/qa/2022/qa.2022-04-19-15.00.html16:19
opendevmeetMinutes (text): https://meetings.opendev.org/meetings/qa/2022/qa.2022-04-19-15.00.txt16:19
opendevmeetLog:            https://meetings.opendev.org/meetings/qa/2022/qa.2022-04-19-15.00.log.html16:19
sean-k-mooneyoh sorry didnt know this was still the meeting16:20
sean-k-mooneykopecmartin: please tell me to come back later in the future16:20
kopecmartinsean-k-mooney: it was the open discussion part, you used exactly as it should be :) 16:20
opendevreviewBrian Rosmaita proposed openstack/devstack stable/ussuri: Mark our source trees as safe for git to use as other users  https://review.opendev.org/c/openstack/devstack/+/83774916:37
clarkbgmann: why was ^ restored when it cannot work?16:42
clarkbI left notes about that in my abandonment message16:42
opendevreviewGhanshyam proposed openstack/devstack stable/ussuri: Mark our source trees as safe for git to use as other users  https://review.opendev.org/c/openstack/devstack/+/83774916:45
opendevreviewBrian Rosmaita proposed openstack/devstack stable/train: Mark our source trees as safe for git to use as other users  https://review.opendev.org/c/openstack/devstack/+/83855616:45
clarkbrosmaita isn't here but the patches being pushed do not work16:46
clarkblooks like gmann's should though16:46
gmannclarkb: I am squashing both backport16:46
clarkbgmann: ok we should probably tell rosmaita to stop a minute because the patchsets being pushed are broken16:46
gmannyeah for stable/ussuri I am doing but he want for stable/train or so then it is fine16:47
gmannpinged him in cinder channel16:48
dansmithI really need to get a t-shirt made up that says "I shoulda checked with gmann first"16:49
gmanndansmith: heh. thanks for review. 16:52
opendevreviewsean mooney proposed openstack/devstack master: [WIP] refactor tempest install phases  https://review.opendev.org/c/openstack/devstack/+/83855917:02
sean-k-mooneytosky: ^ if you had that (untested) i think you could modify the enabled services in the devstack-ceph-plugin based on if RGW is enabled in the post-extras or extras phases17:03
opendevreviewBrian Rosmaita proposed openstack/devstack stable/train: Mark our source trees as safe for git to use as other users  https://review.opendev.org/c/openstack/devstack/+/83855617:04
toskysean-k-mooney: uh, thanks, let me see if I can adapt my patch to your change17:07
sean-k-mooneyim not sure if that will break anything else but i think it woudl enable you to modify things by giving you a full phase to work with17:11
gmannclarkb: frickler stable/ussuri is ready https://review.opendev.org/c/openstack/devstack/+/83774918:32
clarkbI guess those branches rely on us to review too?18:34
clarkbI've approved it18:35
opendevreviewDan Smith proposed openstack/devstack master: Gather performance data after tempest  https://review.opendev.org/c/openstack/devstack/+/83713918:37
sean-k-mooneyclarkb: so finally got around to runnign your global vnev change and it looks like it failed because the python path is node set in the systemd unit files genergated leading too  ModuleNotFoundError: No module named 'keystone'18:52
sean-k-mooneyclarkb: i also noticed that its using system uwsgi18:52
sean-k-mooneyhttps://paste.opendev.org/show/bbN8bASPdn60ST3pXe3M/18:52
clarkbit should be set in the units. https://review.opendev.org/c/openstack/devstack/+/558930/22/functions-common is what attempts that18:53
sean-k-mooneyso am i correct in thinkinging we should be use uwsgi form the venv 18:53
sean-k-mooneyand setting the path18:53
clarkbyes setting the path and running all the python stuff out of the venv is the intent. Fwiw a lot of stuff has changed in devstack since this was written 4 years ago18:53
clarkbI've spent a fair bit of time addressing those issues one by once since I rebased18:54
clarkblike for some reason glance has a special way of installing rootwrap rules different to everything else18:54
sean-k-mooneyi dont see that in the file that was generated but let me double check i am not missing something in the local.conf18:54
sean-k-mooneyi think it was enabled by default right18:54
clarkbyes https://review.opendev.org/c/openstack/devstack/+/558930/22/stackrc sets them by default18:55
clarkbits just easier for testing to start that way18:55
clarkboh I think I see it18:55
clarkbthat is in write_user_unit_file but I bet we don't use user unit files anymore or something like that18:55
sean-k-mooneywe use system level ones18:56
sean-k-mooneynot user uinit files18:56
clarkboh and uwsgi gets its own function18:56
sean-k-mooneyin  /etc/systemd/system/devstack\@keystone.service 18:56
clarkbI think the issue is that uwsgi gets its own function18:57
sean-k-mooneyack18:57
clarkbgive me a minute and I can work on a patch update18:57
sean-k-mooneyso you need to set it here too right https://review.opendev.org/c/openstack/devstack/+/558930/22/functions-common#160518:57
sean-k-mooneyok ill try copy pasting the path line locally quickly18:58
opendevreviewClark Boylan proposed openstack/devstack master: Add option to install everything in global venvs  https://review.opendev.org/c/openstack/devstack/+/55893018:58
clarkbsomething liek that maybe18:58
clarkbyes exactly18:58
sean-k-mooneyyep that is what i was thinking18:58
sean-k-mooneyi think its still going to use system uwsgi18:59
sean-k-mooneywhich might be ok18:59
clarkbthere isn't a system uwsgi I don't think19:00
clarkbso it will fail if it tries to?19:00
sean-k-mooney/sbin/uwsgi exists19:01
clarkbit does `run_process "c-api" "$(which uwsgi) --procname-prefix cinder-api --ini $CINDER_UWSGI_CONF"` the key bit being the $(which uwsgi) which should find the venv first19:01
clarkband that path is set in the unit19:01
clarkbare we installing uwsgi from the distro?19:01
clarkbbecause pip install uwsgi won't install to /sbin19:01
sean-k-mooneyyes19:01
sean-k-mooneyat least we do by default19:02
sean-k-mooneyso unless you removed that it would be using distro uwsgi19:02
clarkbhuh why would we do that ....19:03
clarkbanyway that should work since /sbin should also be in the path19:03
clarkband then it will load the python environment in the venv in theory19:03
clarkbbut also why are we installing uwsgi from the distro and not pypi?19:03
sean-k-mooneyit might get pulling in i think we install python-mod-uwsgi19:03
sean-k-mooney+lib/apache:install_apache_wsgi:152        install_package httpd python3-mod_wsgi19:05
sean-k-mooneyhttps://github.com/openstack/devstack/blob/master/lib/apache#L90-L125=19:07
clarkbya ok I think it should stillwork to use the distro install19:07
sean-k-mooneyya it should19:07
clarkbsince uwsgi should load the environment by running code out of the venv19:07
sean-k-mooneythe disto somethime has a specifc version of python compiled in19:07
sean-k-mooneythat something that could be fixed later if it was a problem19:08
* sean-k-mooney is annoyed. i am doing a 24 hour blood pressur monitor and the tube came off the last time it did a reading and didint do any since19:09
sean-k-mooneyso either it swapped to 1 per hour or its given up and ill have to do it again19:10
sean-k-mooneyhum... i turnd the bp monitor on and off again and it seam to be working... i guess ill find out in a week or two when i get the results back hopefully it will get enought that id dont have to do this yet again19:20
sean-k-mooneyclarkb: that got to about the same place it looks liek tehre are still some path issues19:27
sean-k-mooneyi might play around with it a bit but i think im going to go get something to eat soon19:27
sean-k-mooneyhttps://paste.opendev.org/show/b7mpOyO0DWxOmAkepJGA/19:28
sean-k-mooneythe path is set properly in the unit file this time19:29
sean-k-mooneyEnvironment = "PATH=/bin:/opt/stack/data/.venv/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin"19:29
sean-k-mooneybut uwsgi might need to be configure directly with the python path19:29
sean-k-mooneyclarkb: oh... if i start python3 in the venvs and import keystone it fails19:37
sean-k-mooneyclarkb: so wsgi is now failing because keystone is not installed into the venv19:37
sean-k-mooneyactully now that i rentered it ti workd19:39
sean-k-mooneyhum19:40
sean-k-mooneyi wonder is it because i cahnged directory19:40
sean-k-mooneyok i must have typoed it19:41
sean-k-mooneyclarkb: ok got it working19:56
sean-k-mooneyclarkb: we have to explitly pass the virtual env on the uwsgi call19:56
sean-k-mooneyclarkb: /sbin/uwsgi --procname-prefix keystone --ini /etc/keystone/keystone-uwsgi-public.ini --home /opt/stack/data/.venv/19:56
sean-k-mooneythen it can find everything and work properly19:56
clarkbsean-k-mooney: ok let me see about adding that20:06
sean-k-mooneythis is what i was goign to test https://paste.opendev.org/show/brzdDDy4sxzPpKrYPDVy/20:07
clarkbya that is close to what I'm doing. If you want to push that update after testing I'm fine with that or I can do it concurrently20:09
sean-k-mooneygo with your version20:09
opendevreviewClark Boylan proposed openstack/devstack master: Add option to install everything in global venvs  https://review.opendev.org/c/openstack/devstack/+/55893020:11
clarkbmoved it up a bit so that the unit management is only dealing with unit stuff and not the actual command but that is close to what you've got20:11
sean-k-mooneyya that makes sense it keep that function generic20:12
sean-k-mooneythat is a really unhelpful name by the way https://uwsgi-docs.readthedocs.io/en/latest/Options.html#home20:13
sean-k-mooneyalthough it look like you can also use --venv 20:13
sean-k-mooneywell home pyhome venv and virtualenv all seam to be aliass20:13
sean-k-mooneyso we might want to use venv to be more dicirptive assumeing they are all interchangeable20:14
clarkb++ if this works we can update the next patchset for the next problem to use venv20:15
sean-k-mooneyso for system python non of those exist in the help output  i did contaminate my venv by isntalling uwsgi form pypi which has all of them20:20
sean-k-mooneywhich is why i said use your one because we might need to also start using it form pypi20:20
sean-k-mooneyi can test again with your patch tomorrow in a clean env but i think this is about to finish stacking20:21
clarkboh hrm20:22
clarkbmine is using system uwsgi though at least by default20:22
sean-k-mooneyya so that just finished stacking20:22
clarkbI guess we can toggle thato ver if necessary20:22
sean-k-mooneywell i think it might work but be undocumeted on the system one20:22
sean-k-mooneynot sure20:22
clarkbaha20:22
clarkbwouldn't surprise me20:23
sean-k-mooneyit stacked 20:23
sean-k-mooneyhehe thats funny i went to run tempst smoke and tox was not installed because i did not activate the venv :)20:26
sean-k-mooneythe tests appear to be passing20:26
clarkblooks like ti still failed in upstream ci. Mybe due to that flag not being valid?20:27
clarkbanyway progress at least20:27
sean-k-mooneyya perhaps let me take a look at the log quickly20:27
sean-k-mooneyyep20:27
sean-k-mooneyso https://zuul.opendev.org/t/openstack/build/696090fafada4ca0ad6dedb88ff1368f/log/controller/logs/screen-keystone.txt is the error i see if the virutal env is not used20:29
sean-k-mooneyhum we dont seam to save the systemd unit files in the job output20:30
sean-k-mooneywell actully i guess its litrally in the job-output.txt form the devtack log20:31
sean-k-mooneyclarkb: https://zuul.opendev.org/t/openstack/build/696090fafada4ca0ad6dedb88ff1368f/log/controller/logs/devstacklog.txt#1142120:32
sean-k-mooneylooks like your change did not take effect20:32
clarkbya it seems to have skipped myconditional20:33
clarkbheh I see it20:33
clarkbits a dumb bug20:33
clarkbshould I try --venv in the fix?20:33
sean-k-mooneyit shoudl be an alisa based on the new doc20:33
sean-k-mooneyso you could20:34
sean-k-mooneyoh20:34
opendevreviewClark Boylan proposed openstack/devstack master: Add option to install everything in global venvs  https://review.opendev.org/c/openstack/devstack/+/55893020:34
sean-k-mooney if [[ "GLOBAL_VENV" == "True" ]] ; then20:34
clarkbwe'll find out if it works20:34
sean-k-mooneyno $20:34
clarkbyup that was the problem20:34
sean-k-mooneyRan: 109 tests in 443.6734 sec.20:34
sean-k-mooney - Passed: 10420:34
sean-k-mooney - Skipped: 420:34
sean-k-mooney - Expected Fail: 020:34
sean-k-mooney - Unexpected Success: 020:34
sean-k-mooney - Failed: 120:34
sean-k-mooneyso the smoke test basiclly passed20:34
sean-k-mooneythe failed test was for horizon20:35
opendevreviewLuigi Toscano proposed openstack/devstack-plugin-ceph master: [CI] [DNM] Test RGW in place of swift  https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/83784220:35
sean-k-mooneyclarkb: ya horizon seams to not work but its proably something similar20:36
sean-k-mooneysetting the python path in apache or something like that20:36
sean-k-mooneyyep same error 0 ModuleNotFoundError: No module named 'django'20:37
sean-k-mooneyi bet horizon has its own function too for wsgi20:38
clarkbya probably20:38
clarkbI'm not sure how much further I'll be able to push this today. YOu should feel free to push up a new patchset whenever if you poke at it more20:38
sean-k-mooneyack im going to wrap up for today i can add a followup patch if i end up working on it more tonight20:39
sean-k-mooneylets see how your current one does in the gate20:39
clarkbI'll try to update it back to --home if it is obvious that --venv didn't work at least20:40
sean-k-mooneyso ya https://github.com/openstack/devstack/blob/master/lib/horizon#L115-L137= horizon seam to use a template 20:41
sean-k-mooneyya so there is proably a way to set it in https://github.com/openstack/devstack/blob/master/files/apache-horizon.template that but ill have to look up the apache docs 20:43
sean-k-mooneyhttps://modwsgi.readthedocs.io/en/master/configuration-directives/WSGIPythonPath.html#wsgipythonpath20:44
sean-k-mooneythat is proablty what we want although ther emight be a simpler way then directly setting the python path20:44
clarkbhttps://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html is less clear20:46
clarkbthey mention the config option you found but at the very end. I can psuh a new patchset to try that though as it is easy20:47
sean-k-mooneyhttps://paste.opendev.org/show/bfi6ivIr3o25mzWF3nU7/20:48
sean-k-mooneyits not hard to get the path either20:49
sean-k-mooneyso sure go for it but im really going to go eat this time20:49
sean-k-mooneychat to you tomorrow20:49
clarkbya enjoy there isn't any rush on this20:49
clarkbthere are a lot of these template files. We may need to go through and update a number of them. Or maybe stop running services with wsgi instead of uwsgi entirely in devstack?20:54
clarkbanyway I have a local update staged for when we have results for --venv20:55
opendevreviewClark Boylan proposed openstack/devstack master: Add option to install everything in global venvs  https://review.opendev.org/c/openstack/devstack/+/55893021:18
gmannkopecmartin: this is ready https://review.opendev.org/c/openstack/tempest/+/83671521:34
opendevreviewDan Smith proposed openstack/devstack master: Gather performance data after tempest  https://review.opendev.org/c/openstack/devstack/+/83713922:14
opendevreviewLuigi Toscano proposed openstack/devstack-plugin-ceph master: [CI] [DNM] Test RGW in place of swift  https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/83784222:20

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