Monday, 2025-09-08

*** mhen_ is now known as mhen02:00
*** trident- is now known as trident09:49
sean-k-mooneyatmark: we have never supproted detacting volume via cinder like that and it actully cause security problem if you do that10:38
sean-k-mooneyatmark: the only way to detach a volume form an instnace is via nova's api10:39
sean-k-mooneydepending on the relase of openstack we have two volume healing operations, in newer relase a hard reboot will regenerate teh bdms using cidner as the source of truth for what shoudl be attached, we also have a nova-manage command that predates it and uses the bdm as the souce of truth and will recreate the attachments10:41
opendevreviewTakashi Kajinami proposed openstack/nova stable/2024.1: hardware: Fix image_meta.id within get_mem_encryption_constraint  https://review.opendev.org/c/openstack/nova/+/96005013:26
opendevreviewTakashi Kajinami proposed openstack/nova stable/2024.1: libvirt: Disable VMCoreInfo device for SEV-encrypted instances  https://review.opendev.org/c/openstack/nova/+/95991413:27
opendevreviewMerged openstack/python-novaclient master: Update master for stable/2025.2  https://review.opendev.org/c/openstack/python-novaclient/+/95974913:38
opendevreviewTakashi Kajinami proposed openstack/nova stable/2025.1: libvirt: Disable VMCoreInfo device for SEV-encrypted instances  https://review.opendev.org/c/openstack/nova/+/95887413:40
opendevreviewTakashi Kajinami proposed openstack/nova stable/2024.2: libvirt: Disable VMCoreInfo device for SEV-encrypted instances  https://review.opendev.org/c/openstack/nova/+/95991313:41
dansmithI'm sick of autopep8 reformatting my code instead of suggesting it when I run `tox -epep8`14:45
dansmithsurely there's some way I can locally prefer not to do that right?14:45
dansmithbauzas: Uggla ?14:45
dansmithnot sure when the team agreed to do this, but man it's annoying14:45
bauzasdansmith: pre-commit is already doing that :(14:47
dansmithI know14:47
dansmithI want to turn it off14:47
bauzasapart finding another agreement, I don't see what we can do 14:47
bauzasthe agreement being that autopep8 is and should always be optional14:48
bauzasincluding in the tox target14:48
dansmithbauzas: +100014:48
bauzasalso, skipping pre-commit is unfair, as I need pre-commit for adding the gerrit change ID automatically, I can't just skip autopep814:48
bauzas(AFAIK, no way to only skip a subset of the multiple pre-commit hooks)14:49
Ugglahum it is the case for quite some time right ?14:49
dansmithUggla: it has been yes and I've hated it this whole time, but this morning it's really killing me and I want it to stop14:50
dansmithI also argued against it when it was even proposed before it was autopep8'ing14:50
dansmithIIRC it used to just show the suggestions but not force them on me14:51
opendevreviewBalazs Gibizer proposed openstack/nova master: Rally job for eventlet-removal  https://review.opendev.org/c/openstack/nova/+/96013014:59
Ugglait depends some changes are left to the author, but some basic reformatting are applied, if I'm not wrong.14:59
dansmithyes and I never ever want it to do that..14:59
opendevreviewBalazs Gibizer proposed openstack/nova master: Rally job for eventlet-removal  https://review.opendev.org/c/openstack/nova/+/96013015:00
dansmithif I have uncommitted changes and I run pep8, it will make a bunch of extra changes that I did not want that are all "opinions" of the tool and now I have more change queued15:00
dansmithright now it keeps forcing this on me: 315:01
dansmithhttps://paste.opendev.org/show/bjPrI7fQi2rx3TH1ndDB/15:01
dansmithwhich takes the code from readable to stupid for no effing reason15:02
ratailor__bauzas, melwitt can I get reviews on backports https://review.opendev.org/c/openstack/nova/+/958834 and https://review.opendev.org/q/project:openstack/nova+branch:stable/2024.2+owner:ratailor@redhat.com16:10
opendevreviewTakashi Kajinami proposed openstack/nova stable/2024.1: libvirt: Disable VMCoreInfo device for SEV-encrypted instances  https://review.opendev.org/c/openstack/nova/+/95991416:12
sean-k-mooneybauzas: the change-id hook is entirly seperate16:20
sean-k-mooneyyou can 1 not install pre-commit, 2 if you have it install do --no-verify to dsiabll all hooks other then the change id hook ro 3 use SKIP=list,of,hook.ids as some options16:21
bauzassean-k-mooney: sorry, I meant that --no-verify skips all the hooks16:21
sean-k-mooneyall the hooks form the pre-commit tool but i dont think it skips the change id hook16:21
sean-k-mooneydansmith: that may be a side effect of a change i did a while a go to make autopep8 fix more things16:22
sean-k-mooneywe coudl look at trunign that off16:22
dansmithplease please please turn it off16:23
bauzassean-k-mooney: the git help says that it also skims commit hooks, so the gerrit one16:23
sean-k-mooneyack16:23
bauzascommit-msg sorry16:23
sean-k-mooneylet me find the comit and pose a revert and see  if that help16:23
sean-k-mooneyi basically took some of the config form oslo/sdk and ported it a few monts ago16:24
dansmithfast8 also was broken, I assume by one of these changes a while ago which is also really frustrating16:25
dansmithI haven't tried fixing it yet, but it's really annoying because it's like "please try pre-commit instead!" with the implication of "so I can break your code for you"16:25
sean-k-mooneywell that was ment to bedeelted a while ago but i dont think that is related16:25
dansmithI dunno why it was "meant to be deleted" .. I assume that's just your opinion, but it's a huge time saver16:26
sean-k-mooneyso this https://github.com/openstack/nova/commit/ebd75760e1907bb4b1bc089ecf6f4405bf52e208 might be the issue16:27
sean-k-mooneydansmith: not just that it has not been maintaiend for a while an i otught it broke with some of the ohter seuptools change ectra16:27
sean-k-mooneyi dont reacall honestly because i have not used it in a few years16:27
dansmithI will propose the revert for that if you don't16:28
sean-k-mooneyaggressive = 3 is the actual change in behavior but when we did change it it dint really change mouch code16:29
sean-k-mooneybut sure  if tis cause issue swe can drop that16:29
* sean-k-mooney signed of by....16:30
sean-k-mooneyok i need to do that form the cli...16:31
tkajinamor you can just copy-paste the string16:33
tkajinamit does not require actual signing16:33
dansmithUggla: I'd really like to get wider team agreement on more things like this: https://review.opendev.org/c/openstack/nova/+/949292 before they merge16:33
sean-k-mooneytried that but i cant use my normal email if i do that16:33
tkajinamah, yeah16:34
sean-k-mooneyi could swap to my redhat one but it complain about the commit not matchign the sgined off by line since my redhat email is my gerrit default16:34
sean-k-mooneyit woudl be better if it allwoed any of them or allowed my to select like if im editing things in the ui16:34
tkajinamI remember I faced similar problems when I tried to rebase your change.16:34
opendevreviewBalazs Gibizer proposed openstack/nova master: Rally job for eventlet-removal  https://review.opendev.org/c/openstack/nova/+/96013016:34
tkajinamso yeah I agree with you16:35
opendevreviewBalazs Gibizer proposed openstack/nova master: Rally job for eventlet-removal  https://review.opendev.org/c/openstack/nova/+/96013016:35
opendevreviewDan Smith proposed openstack/nova master: Fix fast8 tox target  https://review.opendev.org/c/openstack/nova/+/96014916:36
dansmithbauzas: ^ can haz please to fix fast816:36
dansmithit's trivial16:36
opendevreviewsean mooney proposed openstack/nova master: Revert "Allow autopep8 to fix more things"  https://review.opendev.org/c/openstack/nova/+/96015016:36
dansmithbauzas: and also that ^16:37
sean-k-mooneydansmith: can you test that locally by remving the agressive=3 line16:37
sean-k-mooneythat actully the only thing it is really changing16:37
sean-k-mooneyi think the default is 0 or 116:38
dansmithI don't ever want in-place=True, assuming that's the permission to modify anything16:40
sean-k-mooneyyes that what that enables16:41
dansmithremoving aggressive=3 still modifies my file16:41
sean-k-mooneywhen invoked form per-commit it will do that by defualt adn recurse16:41
dansmithyeah -2 on that16:42
sean-k-mooneywell we have been doing that and agreed to do that for years16:42
sean-k-mooneythat was not part of this change16:42
sean-k-mooneyi jsut encoded the defaults we already had implictly16:42
dansmithwe have not "agreed to do that for years"16:42
sean-k-mooneywell it not new16:42
sean-k-mooneyit was not part of that change16:43
dansmithI do not agree with the fact that we're using pre-commit for this stuff, and you and others sold it as "dude it's totally optional if you just don't install this"16:44
dansmithwell this sort of modifying of my stuff while I'm working is not okay with me and it's been a nuisance this whole time but today it really blew up my whole morning16:45
sean-k-mooneywhen autopep8 was added it was entirly optional16:45
dansmithI do not think it's unreasonable to have a target you can run if you want to autopep8 your code16:45
dansmithI do not want that16:45
dansmithsean-k-mooney: right and now I can't even run the pep8 target (even with your revert applied) without it making changes to my code16:45
dansmithremoving the aggressive line makes those changes much less stupid, but it still does it16:46
sean-k-mooneyright becaus that was changed by https://github.com/openstack/nova/commit/2ffdf2e9173ca2ad0f95ac7f565da64b8b62691f16:46
sean-k-mooneywhen we swap to runign pep via per-commit we got precommits default of formatign the code by default16:46
sean-k-mooneythis has been the case since december 202316:47
dansmithwhat is your point?16:47
sean-k-mooney1 other want the changed behvior, 2 i didnt actully change it and 3 its not new16:47
sean-k-mooneyso please dont shot the messanger im jsut providing you the lines to the changes that modifed the behvior16:48
dansmithI understand this has been modifying my code against my will since end of 2023.. I'm saying I've been hating it since then and as of this morning I've been tolerating it because the changes have been minor16:48
dansmithI think it's very reasonable to have pre-commit and the pep8 target not modify anything but just warn, and if people want to run autopep8 on their code, we can have a tox target to do so16:50
sean-k-mooneyto be clear the fact this has signifcantly reduced the tiem we talk about formating has been a major quality of life improvment for me in general. we coudl revert to not using pre-commt in pep8 targe tbut that was also a sginficat performace win16:50
dansmithsean-k-mooney: I understand that you feel that way, but I do not16:51
dansmithyou asserting that we as a team agreed on something you wanted when it was merged five days before christmas when maaaany people are on PTO is a major quality of life non-improvement for me16:52
dansmithso it'd be helpful if you could stop doing that16:52
sean-k-mooneythe change was up for review for several months16:54
sean-k-mooneyim not assertign that because i wanted it16:54
sean-k-mooneyjust that it wen through our normal review process16:54
sean-k-mooneyanywya i dont think this is a useful confveration to have now but if you want to have it when more are aroudn thne do16:55
sean-k-mooneywe can alwasy bring it up in an irc meetign or at the ptg16:55
dansmithgibi: I know you're pro-formatting.. can you understand that I want to be able to pre-pep8 my code before submitting without autopep8 modifying my local index, especially given this morning it was breaking it pretty badly?16:58
dansmithat least enough to have two targets, one of which just runs without modifying?16:58
dansmithif more people want the default target to run modify mode then fine, but I want to be able to run a linter in read-only mode16:59
dansmithit kills me that I can't git rebase -x to check without it interrupting me16:59
sean-k-mooneythose are thigns we can likely improve and im currently testing your fast8 fix17:00
dansmitheven if I can just `touch .do-not-fuck-up-my-code` and have that drive the in-place flag, that's fine17:01
sean-k-mooneyi need to look into how we can do that but ill see if we can supprot somethign ideally via an env var set by tox for you17:02
sean-k-mooneyi have never seen it actully break code in my own experince by the way so im sorry you have encotered that17:03
sean-k-mooneydansmith: the fast8 fix works for me locally so i have approved it17:06
sean-k-mooneysylvain was already +217:06
gibidansmith: (with limited brain power left in me) you want to run pep8 locally but you dont want autopep8 to modify your code because you are in a middle of something. Still you are (not happily) accepting the fact that at the end before you push up the commit you will run autopep8 and let it do its things. If that is the case then totally supportive to your needs17:06
gibi* then I totally17:07
dansmithgibi: I do not ever want autopep8 to modify my stuff, even pre-push.. I want it to tell me what it objects to17:07
sean-k-mooneyfor what its worth pre-commit ignored unstaged files but obviously that woudl be a change in your workflow jsut lettign you know17:07
dansmithbut yes, the major complaint is when I'm  in the middle of a rebase or a complex change and it modifies my files and complicates my index so I have to manually revert things I don't want to change in the middle of a workflow17:08
sean-k-mooneydansmith: that how i orgianlly implented it for what its worth autopep8 in the pep8 target complaied but did nto modify17:08
sean-k-mooneyin its sepreate target it fixed things17:08
sean-k-mooneyand via pre-commit it fixed things17:08
dansmithsean-k-mooney: I know, that's what I want17:08
dansmithsince I'm not going to use pre-commit, that was fine.. and it was presented to us as fully optional because (a) it was a different tox target or (b) pre-commit was optional if you installed it17:09
dansmiththen, we moved to pep8 target using pre-commit and it's been complicating rebase workflows ever seince17:09
gibidansmith: yeah I should have be more specific. Either running autopep8 and let it do its things, or run autopep8 and fail if wants to modify something and you iterate manually until autopep8 is happy17:09
dansmithgibi: yes, thanks17:09
gibidansmith: I'm OK with this approach. I will rely on autopep8, you will satisfy autopep8 manually. We won't clash and in CI the end result is the same happy autopep8 run17:10
dansmithI had been working around this by using fast8 (which I usually use during a rebase anyway) and not complaining, but that broke recently as well hence the issue17:10
dansmithgibi: ++17:11
sean-k-mooneyim trying to think how to do that today and i htink i might know17:11
sean-k-mooneygive me a minute to test it17:11
sean-k-mooneythe applciation alwasy awa not actully intentional as part of stephens change. i.e. the removal of the opt out17:13
sean-k-mooneyill try fixign that quickly as i have 2 idea of how to do that cleanly17:13
opendevreviewBalazs Gibizer proposed openstack/nova master: Rally job for eventlet-removal  https://review.opendev.org/c/openstack/nova/+/96013017:21
sean-k-mooneyi need to chnage my testcase since it currently brakign the wrong hook but i think i have it working lcoally with a very minor change ill push it for review in 10 mins or so17:28
opendevreviewMerged openstack/nova master: Reproducer for bug 2114951  https://review.opendev.org/c/openstack/nova/+/95289417:48
opendevreviewBalazs Gibizer proposed openstack/nova master: Rally job for eventlet-removal  https://review.opendev.org/c/openstack/nova/+/96013017:53
opendevreviewsean mooney proposed openstack/nova master: refactor autopep8 pre-commit config  https://review.opendev.org/c/openstack/nova/+/96016718:11
sean-k-mooneyi need to test ^ a little more but i belive it keeps the bhavior gibi and i woudl like while also restorign the behavior dan desires18:13
sean-k-mooneyone of the things i need to confirm is that the exit code propagate form bash -c18:14
sean-k-mooneyi belive it should but we need that to ensure that tox -e pep8 fails if any of the other check fail18:14
sean-k-mooneythis is based on https://github.com/pre-commit/pre-commit/issues/208318:15
opendevreviewMerged openstack/nova master: Update compute rpc alias for epoxy  https://review.opendev.org/c/openstack/nova/+/95918119:17
opendevreviewMerged openstack/nova master: Fix fast8 tox target  https://review.opendev.org/c/openstack/nova/+/96014919:43
opendevreviewTobias Urdin proposed openstack/nova master: libvirt: update description for live_migration_completion_timeout  https://review.opendev.org/c/openstack/nova/+/87408320:36
opendevreviewsean mooney proposed openstack/nova master: refactor autopep8 pre-commit config  https://review.opendev.org/c/openstack/nova/+/96016721:22

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