Thursday, 2021-09-30

opendevreviewmelanie witt proposed openstack/nova stable/victoria: Add functional regression test for bug 1853009  https://review.opendev.org/c/openstack/nova/+/81181000:29
opendevreviewmelanie witt proposed openstack/nova stable/victoria: Clear rebalanced compute nodes from resource tracker  https://review.opendev.org/c/openstack/nova/+/81181100:29
opendevreviewmelanie witt proposed openstack/nova stable/victoria: Invalidate provider tree when compute node disappears  https://review.opendev.org/c/openstack/nova/+/81181200:29
opendevreviewmelanie witt proposed openstack/nova stable/victoria: Prevent deletion of a compute node belonging to another host  https://review.opendev.org/c/openstack/nova/+/81181300:29
opendevreviewmelanie witt proposed openstack/nova stable/victoria: Fix inactive session error in compute node creation  https://review.opendev.org/c/openstack/nova/+/81181400:29
opendevreviewmelanie witt proposed openstack/nova stable/ussuri: Add functional regression test for bug 1853009  https://review.opendev.org/c/openstack/nova/+/81181500:35
opendevreviewmelanie witt proposed openstack/nova stable/ussuri: Clear rebalanced compute nodes from resource tracker  https://review.opendev.org/c/openstack/nova/+/81181600:35
opendevreviewmelanie witt proposed openstack/nova stable/ussuri: Invalidate provider tree when compute node disappears  https://review.opendev.org/c/openstack/nova/+/81181700:35
opendevreviewmelanie witt proposed openstack/nova stable/ussuri: Prevent deletion of a compute node belonging to another host  https://review.opendev.org/c/openstack/nova/+/81181800:35
opendevreviewmelanie witt proposed openstack/nova stable/ussuri: Fix inactive session error in compute node creation  https://review.opendev.org/c/openstack/nova/+/81181900:35
opendevreviewmelanie witt proposed openstack/nova stable/wallaby: Prevent deletion of a compute node belonging to another host  https://review.opendev.org/c/openstack/nova/+/81180801:10
opendevreviewmelanie witt proposed openstack/nova stable/wallaby: Fix inactive session error in compute node creation  https://review.opendev.org/c/openstack/nova/+/81180901:10
opendevreviewmelanie witt proposed openstack/nova stable/wallaby: Fix inactive session error in compute node creation  https://review.opendev.org/c/openstack/nova/+/81180901:38
opendevreviewmelanie witt proposed openstack/nova stable/victoria: Prevent deletion of a compute node belonging to another host  https://review.opendev.org/c/openstack/nova/+/81181301:44
opendevreviewmelanie witt proposed openstack/nova stable/victoria: Fix inactive session error in compute node creation  https://review.opendev.org/c/openstack/nova/+/81181401:44
opendevreviewmelanie witt proposed openstack/nova stable/ussuri: Prevent deletion of a compute node belonging to another host  https://review.opendev.org/c/openstack/nova/+/81181801:46
opendevreviewmelanie witt proposed openstack/nova stable/ussuri: Fix inactive session error in compute node creation  https://review.opendev.org/c/openstack/nova/+/81181901:46
opendevreviewmelanie witt proposed openstack/nova stable/train: Add functional regression test for bug 1853009  https://review.opendev.org/c/openstack/nova/+/81182101:58
opendevreviewmelanie witt proposed openstack/nova stable/train: Clear rebalanced compute nodes from resource tracker  https://review.opendev.org/c/openstack/nova/+/81182201:58
opendevreviewmelanie witt proposed openstack/nova stable/train: Invalidate provider tree when compute node disappears  https://review.opendev.org/c/openstack/nova/+/81182301:58
opendevreviewmelanie witt proposed openstack/nova stable/train: Prevent deletion of a compute node belonging to another host  https://review.opendev.org/c/openstack/nova/+/81182401:58
opendevreviewmelanie witt proposed openstack/nova stable/train: Fix inactive session error in compute node creation  https://review.opendev.org/c/openstack/nova/+/81182501:58
opendevreviewmelanie witt proposed openstack/nova stable/victoria: Prevent deletion of a compute node belonging to another host  https://review.opendev.org/c/openstack/nova/+/81181303:53
opendevreviewmelanie witt proposed openstack/nova stable/victoria: Fix inactive session error in compute node creation  https://review.opendev.org/c/openstack/nova/+/81181403:53
opendevreviewmelanie witt proposed openstack/nova stable/ussuri: Prevent deletion of a compute node belonging to another host  https://review.opendev.org/c/openstack/nova/+/81181804:05
opendevreviewmelanie witt proposed openstack/nova stable/ussuri: Fix inactive session error in compute node creation  https://review.opendev.org/c/openstack/nova/+/81181904:05
opendevreviewmelanie witt proposed openstack/nova stable/train: Prevent deletion of a compute node belonging to another host  https://review.opendev.org/c/openstack/nova/+/81182404:25
opendevreviewmelanie witt proposed openstack/nova stable/train: Fix inactive session error in compute node creation  https://review.opendev.org/c/openstack/nova/+/81182504:25
*** elodilles_pto is now known as elodilles07:12
elodillesbauzas: nova + placement RC2s are now +2+W'd, hopefully will be released soon07:18
bauzas++07:19
bauzaselodilles: we have a relnote with https://review.opendev.org/c/openstack/nova/+/81144707:19
bauzaselodilles: I guess we would need to create a RC3 if we backport it to stable/xena or no ?07:19
elodillesbauzas: yes, i think so07:24
bauzaselodilles: because release team is tagging 24.0.0 on top of the last RC, right?07:29
bauzasand not tagging on the last patch ?07:29
bauzasif so, we need to plan it :)07:29
lyarwoodFWIW I'm against the releasenote in Nova07:29
lyarwoodit's an os-brick regression 07:29
lyarwoodit should be fixed or documented there07:29
bauzasI don't disagree07:29
bauzasah07:30
bauzasgood point07:30
lyarwoodotherwise we'd end up documenting all known issues ;)07:30
bauzasthat's a very valid point07:30
bauzaslyarwood: the problem itself is the dependencies we have07:31
elodillesif we don't need the releasenote, then it is not relevant, but still: yes, last RC is tagged, not the last patch07:32
bauzaslyarwood: we would need to mark this osbrick release not supported by nova, right? (I mean, once we have the new osbrick release that fixes the problem)07:32
bauzasmy concern goes to upper constraints and requirements that we have in our tree, if you prefer07:33
lyarwoodYeah once we have the fix07:33
lyarwoodotherwise we wouldn't support Xena os-brick which could be awkward07:33
lyarwoodand this isn't a critical backend IMHO07:33
bauzasok, -2d the relnote07:58
bauzaslyarwood: what I'm afraid is that I don't see efforts yet on fixing the os-brick root issue 07:59
lyarwoodThat's on them07:59
lyarwoodBrian has said they want to fix it07:59
gibiif Xena nova does not work with xena os-brick but work with an older os-brick then we should tell this info to our deployers08:13
opendevreviewzhen proposed openstack/nova stable/wallaby: Add missing __init__.py in nova/db/api  https://review.opendev.org/c/openstack/nova/+/81178608:16
bauzasgibi: it's a requirements question08:18
lyarwoodgibi: if it was a generic issue then sure but it's a single backend and a single usecase within that backend08:18
lyarwoodgibi: otherwise as I said before we would end up documenting all issues in our libs with each release08:19
gibibauzas: sure, can we ping reqs now for Xena?08:19
gibilyarwood: OK, so this is not a wide issue08:19
gibithen I'm OK to let this slip08:19
bauzasgibi: not sure, the problem is that for the moment, I don't see any work on os-brick08:19
bauzaslyarwood convinced me it's a small issue, so we can leave it tracked as only a bug08:20
bauzasgibi: if really we see larger problems, we could document something in our relnotes later on08:20
lyarwoodyeah lets just let them fix it and release a new version and we can then blacklist the original 08:20
lyarwoodtbh we don't even need to blacklist it08:21
gibiOk 08:21
lyarwoodas again we'd have to blacklist every previous version that contained issues later fixed lol08:21
gibiyou are right, I probably overreacted without having the context08:23
gibielodilles: it seems the release script is broken https://zuul.opendev.org/t/openstack/build/ff6be46d117e4c229b9d45e36addbbae/log/job-output.txt#84908:57
elodillesgibi: indeed. it seems there was a new jsonschema release yesterday :)09:02
gibimurphy does not like xena09:02
opendevreviewLee Yarwood proposed openstack/nova master: nova-manage: Always get BDMs using get_by_volume_and_instance  https://review.opendev.org/c/openstack/nova/+/81171610:39
lyarwoodif anyone has time today reviews on ^ and the change below it would be appreiciated 10:39
lyarwoodhttps://review.opendev.org/q/topic:bug/1943431 also 10:39
gibilyarwood: I'm +2 on https://review.opendev.org/c/openstack/nova/+/811716 (and the parent). Can I trade this with https://review.opendev.org/c/openstack/nova/+/810911 ? :)11:04
opendevreviewDmitriy Rabotyagov proposed openstack/nova master: Ensure MAC addresses are in lower case  https://review.opendev.org/c/openstack/nova/+/81194711:09
lyarwoodgibi: ack will do11:15
lyarwoodand thanks!11:15
opendevreviewDmitriy Rabotyagov proposed openstack/nova master: Ensure MAC addresses characters are in the same case  https://review.opendev.org/c/openstack/nova/+/81194711:28
gibilyarwood: I finished with https://review.opendev.org/q/topic:bug/1943431 too. If you have still time then I could trade that with https://review.opendev.org/c/openstack/nova/+/811396 :)11:47
lyarwoodgibi: ack need to grab lunch and then sit on a call for a while but I'll review both series after that this afternoon11:50
*** tobberydberg_ is now known as tobberydberg11:51
gibilyarwood: thank you, enjoy your lunch11:51
bauzasgibi: https://review.opendev.org/c/openstack/nova/+/810909/2 gets a -112:08
bauzashave you rechecked ?12:09
bauzashem no12:09
gibilet me check the result12:09
gibiI recheked it in the morning12:09
bauzasagain, grenade failing and the likes12:11
bauzasbut I'll review anyway12:12
bauzasyou're one of my r-p tagged 12:12
bauzasoh, strangely, you aren't12:12
bauzaswtf12:12
gibithe multicell job as two build timeout 12:12
gibithe grenade failed on a live migration test I need to look deeper12:13
gibiprobably unrelated but I don't have a matcher for that failure yet12:13
gibiteh multicell build timeout is due to vif plug timeout12:13
gibithat is unrelated for sure12:13
gibithe grenade live migration failure is due to https://bugs.launchpad.net/nova/+bug/191231012:16
gibiI hit recheck12:16
*** bhagyashris is now known as bhagyashris|rover12:43
opendevreviewDmitriy Rabotyagov proposed openstack/nova master: Ensure MAC addresses characters are in the same case  https://review.opendev.org/c/openstack/nova/+/81194712:59
opendevreviewDmitriy Rabotyagov proposed openstack/nova master: Ensure MAC addresses characters are in the same case  https://review.opendev.org/c/openstack/nova/+/81194713:05
opendevreviewDmitriy Rabotyagov proposed openstack/nova master: Ensure MAC addresses characters are in the same case  https://review.opendev.org/c/openstack/nova/+/81194713:06
bauzasgibi: https://review.opendev.org/c/openstack/nova/+/810909/2/nova/compute/manager.py#5642 shouldn't we also revert to the original flavor in revert_resize ?13:35
gibibauzas: is that missing? if yes then that is a separate bug 13:35
bauzasI dunno13:35
bauzasI'm afraid you set a field on the instance before confirming13:36
bauzaswhich means a revert needs to get back 13:36
gibiI set it earlier than before, but before it was still set during resize not resize confirm13:36
bauzasgibi: I can't see it in the left side13:37
gibiI'm not moving this field change from resize_confirm to resize. I move it from resize_finish (which is part of resize) to resize13:37
bauzasoh fuck13:37
bauzasyou're right13:37
bauzasstupid me13:37
bauzasI confused myself with the resize methods naming13:37
gibibauzas: sorry, yeah, first I moved, but that breaks upgrade, now I just double set13:37
gibicheck the first PS13:37
gibithat has the move implemented 13:38
bauzasresize_confirm != resize_finish13:38
gibibauzas: yepp that naming is hard :D13:38
bauzasyeah you finish a resize before you confirm it :p13:38
gibiyou finish the resize_instance RPC call on the destination :D13:38
gibithere can be finsh_confirm_resize too13:39
gibibut I think we dont call it like that13:39
opendevreviewMerged openstack/nova master: Reproduce bug 1944759  https://review.opendev.org/c/openstack/nova/+/81076313:47
bauzasgibi: yeah I know13:47
bauzasit was my brain which fscked13:48
opendevreviewLee Yarwood proposed openstack/nova master: Add regression test for bug #1943431  https://review.opendev.org/c/openstack/nova/+/81075513:50
opendevreviewLee Yarwood proposed openstack/nova master: compute: Update volume_id within connection_info during swap_volume  https://review.opendev.org/c/openstack/nova/+/80702513:51
opendevreviewLee Yarwood proposed openstack/nova master: fup: Move _wait_for_volume_{attach,detach} to os-volume_attachments  https://review.opendev.org/c/openstack/nova/+/81077513:51
opendevreviewLee Yarwood proposed openstack/nova master: fup: Refactor and simplify Cinder fixture GET volume mock  https://review.opendev.org/c/openstack/nova/+/81077613:51
lyarwoodsorry are we holding +Ws until we are out of rc?13:52
gibilyarwood: I'm hesitant. bauzas?13:52
bauzasholding stable patches ?13:52
bauzasor master ones ?13:53
gibiI think lyarwood is asking for master13:53
bauzasformer, yes13:53
bauzaslatter, nope13:53
gibiack, then I'm addin +A13:53
bauzaslike, I litterally sent gibi's patch to the gate13:53
gibito https://review.opendev.org/c/openstack/nova/+/81075513:53
lyarwoodcool yeah I just did for the regression test that landed above 13:53
bauzasgibi: we branched Xena on RC1, right?13:53
gibibauzas: right13:54
bauzasso we're officially working on Yoga with master13:54
gibiin my head RC period is when we want to keep master and stable close for easy backport of last minute issues13:54
bauzasthat said, any backported change to stable/xena can't be approved until we deliver GA or it's a regression bugfix13:54
bauzasgibi: today is the last RC day13:55
gibiyepp I know13:55
bauzasI don't think we're taking an absolute risk13:55
gibiOK13:55
bauzasthis is tho an interesting thought13:55
bauzashonestly, I think we should make more room for bugfixing during our release cadence13:56
bauzasbut let's discuss this at the PTG13:56
lyarwoodbug fixing never stops ;)14:02
gibibauzas: you mean feature freezing at F2? ;)14:03
bauzasI don't know14:04
bauzasI'm not opiniated about the solution14:04
bauzasif we could somehow prioritize bugs over features during a period of time that would be explicitely and properly communicated, this would get my interest14:04
bauzasbut that also means that people thinking about new features need to understand in advance our release cadence (ideally drafting before the PTG)14:05
opendevreviewMerged openstack/nova master: Add section for 'nova-manage placement audit' tool  https://review.opendev.org/c/openstack/nova/+/80947914:10
*** haleyb is now known as haleyb|out14:11
*** bhagyashris_ is now known as bhagyashris|rover14:19
opendevreviewBalazs Gibizer proposed openstack/nova master: Enable min pps tempest testing in nova-next  https://review.opendev.org/c/openstack/nova/+/81174815:19
bauzasgibi: sorry was unclear with my comment on your fix, as I really didn't wanted you to invest time into functesting different compute versions, but this is possible https://github.com/openstack/nova/blob/d64edd3da2336a5c7c8f69cced45272cbaf638a9/nova/tests/functional/test_cold_migrate.py#L7415:49
bauzasthis is just a fyk15:50
gibibauzas: that probably works if the old behavior is tight to an old service version. In my case there is no service version bump15:51
bauzasthen I can't remember where but I'm also sure I wrote some upgrade checks15:52
bauzasanyway15:52
bauzasiirc, the idea is to pin rpc versions to make the compute appear "old"15:53
gibiyepp, if there is such old version15:57
gibibut in my case there is no version difference between the unpatches and the patches compute15:57
gibiunpatched and patched15:58
melwittelodilles: hi, what is the other patch you think might be better for fixing l-c on stable/train? re: https://review.opendev.org/c/openstack/nova/+/811762/1#message-d28da6263de9241f21a437daf6a0b7273eec47e415:59
melwittI'm not opinionated how to fix it, so if there is another way, I'm happy to rebase the patches onto that16:00
opendevreviewMerged openstack/nova master: Update contributor guide for Yoga  https://review.opendev.org/c/openstack/nova/+/80993616:01
opendevreviewMerged openstack/nova master: Add regression test for bug #1943431  https://review.opendev.org/c/openstack/nova/+/81075516:12
elodillesmelwitt: I though about this one: https://review.opendev.org/c/openstack/nova/+/81046116:40
elodillesI missed that it is not yet merged o:)16:41
elodillesso anyway, both ways work for me16:41
melwittelodilles: ah ok, thanks for the link. does it need an update based on the latest comments about min version? or would that be a separate patch?17:01
melwittelodilles: also meant to tell you I saw grenade jobs on stable/train also failing with "AttributeError: module 'jsonschema' has no attribute 'compat'" https://zuul.opendev.org/t/openstack/build/08e374906e2844ef865d4c698b3b78e5/log/job-output.txt#28564 is this also related to the setuptools issue?17:14
elodillesmelwitt: oh, I haven't seen that yet :( that most probably the very same jsonschema 4.0.0 release from yesterday that we faced in openstack-releases' validator :(17:34
elodillesthough jsonschema should be upper constrained in stable O.o17:37
melwitthm yeah17:39
melwittelodilles: oh but the error was raised from tempest, which would be coming from master17:41
elodillesactually tempest should be used from train-last tag and still, should be installed with upper constraints. or am I wrong?17:43
elodillesseemingly I am wrong at some point otherwise it wouldn't fail :)17:44
melwittwell.. not sure. because if this fails here it seems like it would fail in the tempest repo itself but it's not17:46
melwittI see that the job began collecting jsonschema==2.6.0 but ended up installing 4.0.017:48
melwittbut why...17:48
melwittor how. it's pinned to 3.0.2 as you said earlier https://github.com/openstack/requirements/blob/stable/train/upper-constraints.txt#L63417:49
melwittcollecting: https://zuul.opendev.org/t/openstack/build/08e374906e2844ef865d4c698b3b78e5/log/job-output.txt#3883417:49
melwittok but then it uninstalls 4.0.0 and installs 2.6.0 here https://zuul.opendev.org/t/openstack/build/08e374906e2844ef865d4c698b3b78e5/log/job-output.txt#38886-3889517:51
melwittand then tempest installs 4.0.0 https://zuul.opendev.org/t/openstack/build/08e374906e2844ef865d4c698b3b78e5/log/job-output.txt#5551217:52
melwittgmann: does tempest running on stable branch not use upper-constraints from stable? ^17:52
elodillesactually, since this is a grenade job, it should be stein17:55
elodilleswhere jsonschema is constrained 2.6.017:55
melwittoh right17:56
elodillesbut tempest @ stein-last requires: jsonschema>=3.2.0 # MIT17:56
elodillesso it is strange how it works17:57
elodilles(just for the record, currently jsonschema===3.2.0 is in the upper-constraints.txt @ master)18:00
melwittyeah, I don't understand it18:12
opendevreviewLee Yarwood proposed openstack/nova master: trivial: Rename LibvirtConfigGuestPCIeRootPortController  https://review.opendev.org/c/openstack/nova/+/81200218:23
opendevreviewMerged openstack/nova master: Store old_flavor already on source host during resize  https://review.opendev.org/c/openstack/nova/+/81090920:07
gmannmelwitt:elodilles: in train, we still using tempest master which I need to move to train-last soon 21:32
melwittgmann: lmk if I can help. stable/train currently broken due to new jsonschema 4.0.0 from master21:32
gmannin stein yes tempest 26.0.0 is used21:32
gmannmelwitt: ok. I need to go out to pick up my wife. I will check after coming back21:33
melwittgmann: np thanks, I can work on it, just I would need a hint where to make a change21:35
gmannmelwitt: at first glance, it seems it is using stein branch constraint only https://zuul.opendev.org/t/openstack/build/08e374906e2844ef865d4c698b3b78e5/log/job-output.txt#1229021:39
melwitthm ok21:41
gmannmelwitt: I think tempest job on stable/stein also should fail on this. 22:16
melwittgmann: yeah.. I've been looking at how it says it's using the stein upper-constraints file, but then after it does "tox -r -notest -efull" the 4.0.0 jsonschema gets installed. I don't understand that22:17
gmannmelwitt: it is pinned to used stable/stein u-c in stable/stein with tempest 26.0.022:17
melwittso I was looking at https://github.com/openstack/tempest/blob/5d7e46f5689040ddaff798662f7a44fc71758d2e/tox.ini#L14 and I didn't know what the -c does but it looks like this is supposed to be use the env var upper-constraints file if present else use master?22:18
gmannbut it should not install latest jsonschema 22:18
melwitthere it says "full installed" ... jsonschema==4.0.0 https://zuul.opendev.org/t/openstack/build/08e374906e2844ef865d4c698b3b78e5/log/job-output.txt#1230022:19
melwittI took that to mean the tox -efull env installed 4.0.0 22:19
gmannbut later on it uninstall 4.0.0 and install 2.6.0 https://zuul.opendev.org/t/openstack/build/08e374906e2844ef865d4c698b3b78e5/log/job-output.txt#12423-1242722:22
melwittoh, again? oh sorry22:23
melwittok here's the last time it installs 4.0.0 before the error https://zuul.opendev.org/t/openstack/build/08e374906e2844ef865d4c698b3b78e5/log/job-output.txt#2851822:24
gmannbut in final installed version in venv I always see 4.0.0 so not sure who & when it is installed/upgraded22:24
melwittI get confused by how it installs and uninstalls 4.0.0 repeatedly 22:24
melwittvenv installdeps: -c/opt/stack/old/requirements/upper-constraints.txt, -r/opt/stack/old/tempest/requirements.txt, -r/opt/stack/old/tempest/doc/requirements.txt22:25
gmannas it fallback to latest bcz u-c not matched, we should use the compatible constraint while we cut the tempest 26.0.0 instead of stable/stein by default.22:32
gmannat least that is tested combination tempest we released tempest 26.0.022:37
melwittwhat does it mean u-c didn't match?22:38
gmanntempest 26.0.0 requirement has jsonschema>=3.2.0  and u-c jsonschema== 2.6.0 - https://github.com/openstack/tempest/blob/26.0.0/requirements.txt#L622:40
melwittohhh I see. ok22:40
gmannthat is why it try to go for latest jsonschema 22:40
gmanncomplex thing here is to make tempest venv work on single (non-master) constraints, we have to take care in many place otherwise tox will recreate the tempest venv. many place I mean in devstack, run-tempest role, tox.ini etc22:41
melwittI see now. I didn't know it would ignore u-c if the requirement was higher than it ... I thought it would have failed like "can't install the tempest that you want"22:41
clarkbmelwitt: it should always use the constraint22:42
clarkbor fail I guess, but ya if it doesn't do that I would consider that a bug in pip22:42
gmannit actuall try to lowerdown the version as per -c but we have verify-config script from tempest running tempest in between so it fail 22:42
gmannotherwise the final version could be as per u-c only22:43
melwitthm O.o22:43
gmannlike it happen in master testing, it install 3.2.0 as per u-c not latest22:43
melwittsorry I'm getting even more confused. it's the verify-config script from tempest that is installing > u-c?22:44
gmannmelwitt: no in between somehow latest jsonschema is installed and verify-config run fail. why it install latest jsonschema and not failing on version conflict might be bug as clarkb mentioned22:45
gmannbasically in both case either failed with conflict or latest jsonschema, our constraint mismatch is issue22:46
melwittyeah. ok22:46
clarkbLooking at the log pip says "tempest 26.0.0 has requirement jsonschema>=3.2.0, but you'll have jsonschema 2.6.0 which is incompatible." then it installs jsonschema 2.6.022:47
clarkbI think constraitns are working properly as a result22:47
clarkb(that was my understanding of how they work, constraints always wins)22:47
gmannwe have two way to solve it 1. use tempest tag (<26.0.0) which is compatible with stable/stein constraints 2. use compatible constraints (higher than of stable/stein) with tempest 26.0.022:47
clarkbyour requirements and constraints are at odds with each other22:47
gmannyeah22:47
melwittyeah, that's why I wondered if https://github.com/openstack/tempest/blob/5d7e46f5689040ddaff798662f7a44fc71758d2e/tox.ini#L14 is doing something wrong, the log says that "tempest full" is what installed 4.0.022:48
gmannrequirement is from tempest 26.0.0 which is cut at the time of stable/vicrotia 22:48
gmannclarkb: but it does not say who installed 4.0.0 but we see that version as final version in installed version in venv22:49
clarkbare you sure 4.0.0 is the final version?22:50
clarkbhttps://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_08e/791807/5/check/neutron-grenade-multinode/08e3749/controller/logs/old/devstacklog.txt shows it is failing because jsonschema.compat isn't present which I assume is in >=3.2.022:50
gmannclarkb: https://zuul.opendev.org/t/openstack/build/08e374906e2844ef865d4c698b3b78e5/log/job-output.txt#2851822:50
gmannthey seems removed in 4.0.0 that is why installing 4.0.0. end up started failing due to this constraints and requirement mismatch 22:51
gmannI checked before 4.0.0 release we were istalling latest and it was juts working because of no incompatible change there22:52
clarkbok I think I see it22:52
clarkbthere are two different venvs22:53
clarkb'venv' and 'venv-tempest22:53
clarkbthey both install jsonschema 4.0.0 using venv-tempest installdeps: -c/opt/stack/old/requirements/upper-constraints.txt, -r/opt/stack/old/tempest/requirements.txt and venv installdeps: -c/opt/stack/old/requirements/upper-constraints.txt, -r/opt/stack/old/tempest/requirements.txt, -r/opt/stack/old/tempest/doc/requirements.txt22:53
clarkbBut venv-tempest has an extra step where it does venv-tempest run-test: commands[0] | pip install -c /tmp/tempest_u_c_m.03mOFK3yxm -r requirements.txt22:54
clarkbIt is exceptionally odd to me to run pip in the run-test portion of a tox target22:54
clarkbbut there you have it22:54
clarkblooks like venv-tempest does command = {posargs} so I'm not sure what calls it with that to downgrade22:55
clarkbbut that modifies .tox/tempest and not .tox/venv22:56
clarkbthen you try ot run something in .tox/venv and it breaks due to the newer version of jsonschema22:56
melwittmy head is spinning 😆22:57
melwittbut I'm very glad to know what is going on. I'll need time to process it22:57
clarkbhttps://opendev.org/openstack/devstack/src/branch/master/lib/tempest#L627 that is where the pip install that puts jsonschema 2.6.0 into .tox/tempest via the venv-tempest target comes from22:58
clarkbmelwitt: my head is spinning too :) there is a lot of back and forth in here and I'm not really sure I understand why as much as now I at least understand how that exception arises22:58
melwittyeah... I hope there's a way to fix the root cause, having it be able to do this seems too confusing and error prone22:59
clarkbthen we run https://opendev.org/openstack/devstack/src/branch/master/lib/tempest#L649 and it explodes because the version is too new23:00
clarkbgmann: I think that means you need a newer version of tempest that works against newer jsonschema as constrained there?23:00
clarkbrather than older23:01
gmannolder23:01
clarkbhrm wait -c/opt/stack/old/requirements/upper-constraints.txt that should be using stable/stein requirements in old/ right?23:02
clarkbbecause this job ran against train23:02
clarkbstable/stein requirements u-c says jsonschema should be 2.6.023:02
melwittright23:03
clarkbthe job-output.txt for that build has made my browser very sad23:04
melwittmy browser has a sad as well23:04
gmannheh,  i opened three and it stuck23:06
gmannclarkb: melwitt https://review.opendev.org/c/openstack/devstack/+/81209223:06
gmannlet' see23:06
gmannI am going with 1st solution of lowering the tempest as per stable/stein constraints 23:06
clarkbgmann: if that fixes it it doesn't explain why old/requirements somehow became newer requirements23:07
clarkbI do see that old/requirements is initially checked out to 3a3ed8a7 which is correct23:07
gmannclarkb: did not get?23:07
clarkbgmann: requirements u-c for stable/stein has jsonschema===2.6.0 in it23:07
clarkbgmann: that means we should never have installed 4.0.023:07
gmanntempest 26.0.0 requirement has jsonschema>=3.2.0  and u-c jsonschema== 2.6.0 - https://github.com/openstack/tempest/blob/26.0.0/requirements.txt#L623:07
clarkbthat implies to me that the u-c file we are using is not for stable/stein23:08
clarkbgmann: yes but we install 4.0.023:08
clarkbwhich is from a newer u-c23:08
melwittyeah.. I don't know that there's a way to see the file23:08
melwittbc I was wondering the same thing earlier23:08
gmannit try to check 2.6.0  as per u-c23:08
gmann 4.0.0 is coming from somewhere, it is not yet in master u-c23:09
gmannmaster u-c is also 3.2.023:09
clarkbhrm23:09
gmannhow 4.0.0 is installed and u-c complain did not fail is not known to me23:10
clarkbearlier in the job we see Requirement already satisfied: jsonschema===2.6.0 in /usr/local/lib/python3.6/dist-packages (from -c /opt/stack/old/requirements/upper-constraints.txt (line 232))23:11
clarkbthat shows us that /opt/stack/old/requirements/upper-constraints.txt (line 232) is correct until that point23:11
melwittline 12300 is the first time I see jsonschema==4.0.023:13
melwittit does "lib/tempest:install_tempest:731:   set_tempest_venv_constraints /tmp/tempest_u_c_m.IxpNU7ab69" before that but afaict TEMPEST_VENV_UPPER_CONSTRAINTS=/opt/stack/old/requirements/upper-constraints.txt always23:16
clarkbmelwitt: ya and a little later it uses /tmp/tempest_u_c_m.IxpNU7ab69 in a pip install in that venv which downgrades jsonschema23:16
clarkbI wonder if this issue was known and that is why there is the explicit step after the fact of reinstalling with constraints23:17
melwittoh.... seems likely23:17
clarkbbasically for $some reason the initial tox setup doesn't do the right thing. So someone hacked in the extra pip install to devstack to fix things23:17
clarkbexcept we don't do the extra pip install for the .tox/venv venv target later and it breaks23:17
melwittthere's this note that I don't understand https://github.com/openstack/devstack/blob/57a868dd874922a0caed8ace0dc0426f29129277/lib/tempest#L71223:19
clarkbok I think I've got it23:19
clarkbthe tox venv setup happens in two passes. The first pass installs all requirements as listed in the requirements file with the constraints23:20
clarkbthen it pip install tempest23:20
clarkbThe expectation is that all of tempest's deps be previously installed properly but jsonschema isn't because tempest says it wants jsonschema>=3.2.023:20
clarkbgmann: ^ maybe this is what you were saying.23:20
clarkbI guess normally you don't have this mismatch because because tempest doesn't branch it gets weird23:21
melwittok so when it installs tempest it doesn't use u-c? every command I saw seemed to be passing a u-c file though, that's what I don't get23:21
clarkbmelwitt: right tox does a two step install. It installs everything listed in the deps directive. Then it installs the actual repo it is in23:22
clarkbThe second step install isn't suepr configurable iirc23:22
clarkbgmann: https://opendev.org/openstack/tempest/src/tag/24.0.0/requirements.txt#L6 is the newest tempest with jsonschema 2.6.023:22
gmannclarkb: yes, that is last tag with 2.6.023:24
gmannand on the tox step: yes and before u-c things setup the right version verify-config run make it fail23:25
gmannwhich is run directly with venv not 'going inside the venv and then run '23:25
gmann'directly with vnev' i mean it create venv first and then run before u-c things happen23:26
gmanntox -r --notest -efull is also very first creation of vnev but as it does not run anything so it just does not complain on 4.0.023:27
clarkbgmann: well full also fixes the constraints after the fact23:27
gmannyes after it fix but in verify-config case it run tempest things before constraints fixes. that is what i am suspecting. 'installing with req and then later at some step tox handle the constraints'23:28
gmannlike, tox installing all as per req -> running verify-config -> will take care of constraints(but it fail before verify-config itself)23:29
clarkbhttps://tox.wiki/en/latest/config.html#conf-install_command I think that can be used to make this better23:30
gmannthat is sequence I am suspecting which causing failure. thoguh we had bad compatiblity on req and constraint23:30
clarkbbasically create an install command that has -c /path/to/constraints/ then the same constraints application will be used on deps and the actual package23:30
gmannclarkb: yeah, we should do that way23:30
gmannclarkb: and it was like that before jsonschema 4.0.0 which could have been caught if installtion fail on req-constraints mismatch 23:33
clarkbwell constraints never cause a failure at install time. The constraint just wins always23:33
clarkbbut you get the warning about it at least23:33
gmannah right. 23:35
gmannclarkb: melwitt let's see if this work (it should) https://review.opendev.org/c/openstack/devstack/+/81209223:35
gmannand I will say we always use first compatible stable version  of tempest insetad of last and figure out the compatible newer constraints 23:36
gmannfor EM stable 23:36
clarkbgmann: you might try to use 24.0.0 instead23:36
clarkband then treat that as the last compatible version23:36
gmannclarkb: 24.0.0 might create issue in future if anything else newer comes  as it is not tested on stable/stein constraints23:36
gmannfor jsonschema might work23:37
gmannI was too optimistic  on using the last compatible(newer) tempest with old constraints and assumed it will work :)23:38
clarkbgmann: it will work if you use the tox install command thing. But I guess the ship has sailed for old tags23:39
clarkbbut if you update the tox.ini before the next tag it would be corrected for the future23:39
gmannclarkb: yes that I will do for next tag, agree on that23:40
gmannclarkb: and another things with constraints is, as we touch tempest venv using tox command in many place like running test in grenade/run-tempest role ect if constraints mismatch at any place it will re-create the tox which is another issue23:40
gmannso simple things for EM stable is use tested compatible version and constraints and do not assume the things :). 23:41
clarkbya if 20.0.0 is the most aligned with stein's constraints that seems like the one to use23:41
gmannyes, that is version released while openstack stein release. 23:42
gmannfor tox recreation things I was searching for any flag where we can stop tox to recreate and force-live with what is installed but  there is no flag seems23:43
gmannthat could have solved our problem with tempest venv testing case23:43
gmannclarkb: melwitt 20.0.0 seems working. https://zuul.openstack.org/stream/9234f33acf1247cdb995416ca9389240?logfile=console.log23:44
gmannlet me put nova train DNM patch also as grenade also toush tox env while running test23:45
melwittthank you gmann 23:47
opendevreviewGhanshyam proposed openstack/nova stable/train: DNM: testing nova grenade job  https://review.opendev.org/c/openstack/nova/+/81209523:47
gmann^^23:47
melwittand clarkb++ 23:47
gmannI will add note in devstack/tempest about it while pinning tempest and its constraints for future EM stable23:48
gmannand install-command thing23:48
melwittyes please \o/23:49
gmannmelwitt: sorry about issue, its tempest constraints things on EM stable always cause new issue over time. and honestly saying I am not 100% confident if that happen in future too :) but at least testing with version released duing that stable branch will make things simple 23:51
gmann* I am not 100% confident that it will not happen in future too :23:52
melwittgmann: I'm not complaining as I barely understand all this :) just happy you'll be able to do something to fix or make it less likely to happen in the future23:53
gmannsure, will do those doc things tomorrow if it works fine in grenade too. 23:54
gmannmelwitt: ah lower constraints seem broken on stable/train. is it new ? https://zuul.opendev.org/t/openstack/build/2cdc193e00974abcb67b58ffe566f37123:56
melwittgmann: no it's not. sec23:56
gmannmelwitt: it seems failing in other old patches too https://review.opendev.org/c/openstack/nova/+/81182423:56
melwittgmann: yeah. there's two options, one is make l-c non-voting https://review.opendev.org/c/openstack/nova/+/811762 and the other is pin setuptools https://review.opendev.org/c/openstack/nova/+/81046123:58
gmannah that one. i got it23:58
gmannI voted for first even remove testing l-c23:58
melwittit sounded like consensus favors the latter. I was just not sure if it needs an update before approving, based on discussion on the patch23:59
melwittah, heh. yeah. I am neutral about it23:59
melwittsince we have a fix, we can fix this time ... until next break :)23:59

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