Friday, 2026-06-05

opendevreviewOpenStack Proposal Bot proposed openstack/devstack master: Updated from generate-devstack-plugins-list  https://review.opendev.org/c/openstack/devstack/+/98947302:27
opendevreviewBrian Haley proposed openstack/tempest master: Changed some more Neutron code to use project_id  https://review.opendev.org/c/openstack/tempest/+/99175403:33
opendevreviewMerged openstack/devstack master: Add cinder config for multi-ceph setup  https://review.opendev.org/c/openstack/devstack/+/95208811:30
opendevreviewMerged openstack/devstack master: Add support for Cinder replication  https://review.opendev.org/c/openstack/devstack/+/95304511:48
-opendevstatus- NOTICE: Gerrit on review.opendev.org is being upgraded to version 3.13 and will be offline starting at 1600 UTC. We have allocated an hour for the outage window lasting until 1700 UTC. https://lists.opendev.org/archives/list/service-announce@lists.opendev.org/thread/UIFRQR34WYMF3KDMNQFMO222DIK3HTUD/15:02
-opendevstatus- NOTICE: Gerrit on review.opendev.org is being upgraded to version 3.13 and will be offline momentarily. We have allocated an hour for the outage window lasting until 1700 UTC. https://lists.opendev.org/archives/list/service-announce@lists.opendev.org/thread/UIFRQR34WYMF3KDMNQFMO222DIK3HTUD/16:01
dansmithgmaan: I am completely flailing trying to run tempest with just a small set of tests16:56
dansmithgmaan: feeling like an idiot but I used to do `tox -eall -- someregexstuff` but all I get is "that is not a tempest command"16:56
dansmithhelp my friday brain?16:56
gmaandansmith:  it should work, you can try dierctly tempest run command tempest run --regex <someregexstuff>16:58
gmaanyou are running locally right or want to configure in job16:58
gmaantox -eall also run run command internally so not sure why tox ia giving error16:59
dansmithyeah I tried running manually too17:01
dansmith.tox/tempest/bin/tempest run --regex ServersUpdatePinnedAZ2104Test17:01
dansmithtempest: 'run --regex ServersUpdatePinnedAZ2104Test' is not a tempest command. See 'tempest --help'.17:01
dansmithglad I'm not crazy at least17:01
gmaanare you running from inside tempest dir?17:03
dansmithyes, working dir is /opt/stack/tempest17:03
gmaanhumm17:03
gmaanand what tempest --help gives? I am wondering it is correctly picking installed tempest or not17:04
dansmithyeah doesn't show run as a command17:04
dansmithhttps://pastebin.com/NEE76zQG17:05
gmaanit seems it is not installed amd pointing to other CLI or something17:06
gmaantry to install from inside tempest dir "python3 setup.py install'17:08
gmaanor via virtual env17:10
dansmithI don't get why I have a tempest cli if not installed17:14
dansmiththis is just from devstack17:14
dansmith.tox/tempest/bin/python setup.py install17:14
dansmithdid stuff, help still shows no run17:14
gmaanit is again pointing to the globally installed/broken maybe? 17:17
dansmithI dunno what you mean, I'm trying to run it direct from the tox venv ^17:18
dansmithsame error from `/opt/stack/data/venv/bin/tempest run` if that's what you mean17:18
gmaaninstall from tempest workspace not from venv 17:18
dansmithI'm confused, shouldn't I be running tempest via tox?17:19
dansmiththis is in a clean noble VM that just had devstack run in it17:19
gmaanit should work but it seems installation is broken there. either recreate the new venv17:19
gmaannot sure why it is happening,  i never faced it in clean devstack but faced when i reinstated it after some tempest cli change17:20
melwittfwiw I have never seen the bin/tempest command before, is that a relatively new thing?17:20
dansmithmelwitt: tox itself runs tempest via the tempest command17:21
melwittI used to do just like source /opt/stack/venv/bin/activate followed by just the tox -eall -- stuff17:21
dansmithgmaan: okay I'll destroy the VM and start over17:21
melwittoh ok17:21
dansmithmelwitt: eh? why would you activate the venv before running tox? tox runs everything in a venv17:21
melwittafter changing into /opt/stack/tempest17:22
gmaandansmith: not VM but try python setup.py install from /opt/stack/tempest  17:22
dansmithgmaan: with the devstack venv activated?17:22
gmaanno venv activated17:22
melwittis tox not only installed in the venv? that's why I would, it's been awhile though17:22
dansmithgmaan: installed into the system python?17:22
dansmithmelwitt: okay I always use system tox17:23
gmaanthat is one I want to see if it works there17:23
gmaanif not then I will just recreate the venv and activate again and try from there17:23
melwittin my devstack generally I have to activate /opt/stack/venv before I do anything bc that's where everything is installed17:23
dansmithgmaan: okay I can't do that into the system python lib without root.. is that really what you expect?17:23
gmaanwith root, I mean if you are going to destroy the VM anyways I want to try if system wide installation fix it at system wide17:24
gmaanand is not then something really broken somewhere17:24
dansmithgmaan: sure, I just don't understand why the system python environment has anything to do with this17:24
dansmithgmaan: when you say "recreate the venv" are you talking about the devstack global venv (/opt/stack/data/venv) or the tox one (.tox/{full,tempest]) ?17:25
gmaannot sure, i hope you tried to delete the venv and ran tox again?17:25
gmaantox one only .tox. i usually delete .tox and run fresh tox17:26
dansmithI didn't because this is a completely fresh install and .tox was just created this morning, but.. deleting..17:26
gmaank17:26
dansmithrm -Rf .tox17:26
dansmithtox -eall17:27
dansmithtempest: 'run --regex ' is not a tempest command. See 'tempest --help'.17:27
gmaani have not tried fresh devsatack this week so nt sure if something broken there17:27
gmaanhumm17:27
dansmithI will nuke my vm and start over17:27
gmaank17:27
dansmithhopefully it will be monday before it finishes :D17:27
gmaan:) i thought you mentioned it takes 8-10 min for you to bring devstack up17:28
dansmithme? no :D17:28
melwittI dunno, in my experience after fresh install I just activate the global venv (/opt/stack/data/venv) then cd /opt/stack/tempest then tox -eall -- stuff. if that doesn't work anymore then I will be sad haha17:28
dansmithand you're activating to get tox?17:29
gmaanmelwitt: it should work, I am using it same way and working but it is my old setup not the fresh17:29
melwittmaybe not but it does get literally everything that got installed by devstack. everything is in there17:29
dansmithit seems so weird to activate a venv just to have a tool that will activate a vevn17:29
melwitta lot of things don't work if I don't do that17:29
melwittand gmaan I know what you are referring I think, for awhile after the devstack parallel and some async improvements some were saying devstack was installing quite fast17:30
gmaanif not dansmith then maybe it was sean-k-mooney mentioned somewher to me that it takes 8-10 min17:31
gmaanbut do not remember exactly who and when17:31
sean-k-mooneyon baremental yes17:31
melwittI suspect it might be a mix, like somethings are inside the tempest venv but other things in the global. so I have a feeling you need to be in the global to begin with to maximize success17:31
sean-k-mooneyyou can deploy in under 10 mins17:32
sean-k-mooneylocally it take me about 27 mins to do 2 node devsack in libvirt vms17:32
dansmithmelwitt: but the point of tox is to literally isolate the environment the tests run in.. so the venv that tox creates (in .tox/$target) should  be whole17:32
sean-k-mooneydansmith: i normaly jsut cd to /opt/stack/tempest and source .tox/tempest and run `tempest run ...`17:33
dansmithsean-k-mooney: yeah also tried that but no go17:33
melwittI know :) just trying to help unblock you. maybe I'm totally wrong but just saying at least in the past it was not hard at all to run tempest. it used to be very easy17:33
dansmithmelwitt: I know, which is why I'm asking .. never had a problem before :)17:34
melwittcould be a bad coincidence and maybe something is currently broken17:34
melwittthough we would expect to see broken in CI then I think17:34
gmaandansmith: I tried on my env (last week installation), deleted .tox and then tox -eall did everything fine- creating fresh venv, running tempest run command successfully 17:34
dansmithgmaan: ack, well, I'm re-stacking in a fresh VM now17:35
gmaank17:35
sean-k-mooneythe relevent config for tempet is stored in /opt/stack/tempest/ect/tempst.conf by the way17:35
sean-k-mooneyso nuking the tox envs wotn remove the generate config that devstack created for you17:35
sean-k-mooneythat the default tempest "workspace" location17:35
dansmithI don't seem to even be getting to the configs phase17:38
dansmithokie doke18:34
dansmithturns out I didn't commit my schema file, so when I pulled the branch to my test VM, it was missing that file, import of the tempest module would fail (silently) and give that behavior18:35
sean-k-mooneyhuh as in the api repsoncde schemas? i woudl have expected python or tempst to be very mad and load about that kind of missing import error but glad you fixed it18:42
sean-k-mooneyi have seen things like that mased by pyc files before but not often18:42
melwittoof18:49
dansmithyeah, kinda feel stupid but also kinda feel like that could have a better failure mode :D18:57
gmaanohh, it should be import or module error when tempest try to register service client but i think its cliff hiding those and end up no command error19:04
gmaanor maybe other underlying module19:04
dansmithidk.. I should have tried master I guess, but there was zero chance in my head that that failure mode was related to the branch I have checked out with just some test files edited :)19:06
melwittyeah I mean that's painful to have a simple mistake make a silent problem like that19:21
melwittnot sure if there is a way we could improve something to make it not hidden19:22
gmaanits seems its stevedore hide the actual error,19:22
gmaan 1. stevedore does not load the extension if file missing and it end up cliff not to load that cli: https://github.com/openstack/cliff/blob/master/cliff/commandmanager.py#L13119:22
gmaan 2. when we run tempest command, cliff does not find it and raise no command error https://github.com/openstack/cliff/blob/master/cliff/commandmanager.py#L227   https://github.com/openstack/cliff/blob/master/cliff/app.py#L41019:22
gmaannot sure if something stevedore  can raise if module is not importable. I am not sure where to improve though19:23
gmaanas cliff cannot make assumption that command is missing due to file missing or stevedore actually did not find it bcz it is not installed19:23
gmaanwe can try to pre-import the tempest.cmd in tempest/cmd/main before it actuall ship to cliff and if not importable then raise error with right msg19:27
dansmithwell, maybe not worth all that19:43
dansmithjust seems like a really obscure thing to debug19:43

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