Thursday, 2023-03-30

opendevreviewBui Doan Dang proposed openstack/heat master: handle senlin error msg  https://review.opendev.org/c/openstack/heat/+/87885701:03
opendevreviewBui Doan Dang proposed openstack/heat master: handle senlin error msg  https://review.opendev.org/c/openstack/heat/+/87885701:41
opendevreviewTakashi Kajinami proposed openstack/heat master: Clear implementations for neutron LBaaS v1  https://review.opendev.org/c/openstack/heat/+/87831802:26
opendevreviewBui Doan Dang proposed openstack/heat master: handle senlin error msg  https://review.opendev.org/c/openstack/heat/+/87885703:27
opendevreviewTakashi Kajinami proposed openstack/heat master: WIP: Add CentOS 9 Stream job  https://review.opendev.org/c/openstack/heat/+/87901104:06
opendevreviewMerged openstack/heat master: db: Remove unused util methods  https://review.opendev.org/c/openstack/heat/+/87832704:15
opendevreviewMerged openstack/heat master: db: Add initial alembic configuration  https://review.opendev.org/c/openstack/heat/+/87832804:18
opendevreviewMerged openstack/heat master: db: Wire up for auto-generation  https://review.opendev.org/c/openstack/heat/+/87832904:24
opendevreviewTakashi Kajinami proposed openstack/heat master: WIP: Add CentOS 9 Stream job  https://review.opendev.org/c/openstack/heat/+/87901105:05
opendevreviewTakashi Kajinami proposed openstack/heat master: DNM: Re-enable a few flaky tests  https://review.opendev.org/c/openstack/heat/+/87901405:37
opendevreviewTakashi Kajinami proposed openstack/heat master: Add Python 3.10 to supported runtime.  https://review.opendev.org/c/openstack/heat/+/87901505:42
opendevreviewTakashi Kajinami proposed openstack/python-heatclient master: Add Python 3.10 to supported runtime.  https://review.opendev.org/c/openstack/python-heatclient/+/87901605:42
opendevreviewTakashi Kajinami proposed openstack/heat-dashboard master: Add Python 3.10 to supported runtime.  https://review.opendev.org/c/openstack/heat-dashboard/+/87902005:55
opendevreviewBui Doan Dang proposed openstack/heat master: handle senlin error msg  https://review.opendev.org/c/openstack/heat/+/87885706:41
opendevreviewTakashi Kajinami proposed openstack/heat stable/xena: DNM: Pin tempest  https://review.opendev.org/c/openstack/heat/+/87861006:58
opendevreviewTakashi Kajinami proposed openstack/heat stable/xena: DNM: Pin tempest  https://review.opendev.org/c/openstack/heat/+/87861007:45
opendevreviewTakashi Kajinami proposed openstack/heat stable/xena: DNM: Pin tempest  https://review.opendev.org/c/openstack/heat/+/87861009:51
noonedeadpunkhey folks. I have a question regarding heat logic with regards to stack owners. I see in policies, that eventually actions, like stack update, should be allowed to any user in the project. At the same time I see a `username` in the tables. And I think that when that user is deleted, heat would update field to `null`. So eventually once the user, that has created stack is deleted, you can't perform stack operations anymore10:16
noonedeadpunkCan you either confirm or not this and any idea on how to recover operations on stack whose owner has been deleted, while there're other users in the project with member privileges?10:17
tkajinamnoonedeadpunk, which version are you using. I guess that is what we recently fixed in https://storyboard.openstack.org/#!/story/1752347 .12:21
noonedeadpunkit's somewhere on xena12:21
noonedeadpunkSo yeah... I think that's exactly it12:22
noonedeadpunkBut I can assume that stack in topic hes break before X - these are clusters back from 201812:23
tkajinamhmm. the fix was merged during wallaby so it should be fixed in xena12:24
tkajinamwhat's the value set to [DEFAULT] deferred_auth_method ?12:24
noonedeadpunkdeferred_auth_method = trusts12:25
noonedeadpunkBut would it affect clusters that are already "broken" by that?12:26
noonedeadpunkI've double checked and we do have https://review.opendev.org/c/openstack/heat/+/557337 in tree12:27
tkajinamit should regenerate the credential from the context of the new users updating the stack.12:27
tkajinamwe probably need actual heat-engine logs to find out how it is failing12:28
noonedeadpunkwell. We have this traceback in heat-api https://paste.openstack.org/show/bwGFPm3opDL8qRwYTDts/12:28
noonedeadpunkI'm not sure it's even reaching heat-engine12:29
tkajinamit should reach to heat-engine12:29
tkajinamI expec you can find the similar traceback in heat-engine side as well12:29
noonedeadpunkOk, let me try to find it12:29
tkajinamok so problem seems to be that it can't obtain the original context because the original user was deleted12:30
noonedeadpunkyes, exactly, original user does not exist anymore12:31
tkajinamit's failing at this point https://github.com/openstack/heat/blob/master/heat/engine/stack.py#L55312:31
noonedeadpunkyup12:31
tkajinamthe ugly hack to fix it immediately is to return True there12:31
noonedeadpunkAnd trustor_user_id in heat.user_creds does not exist12:32
tkajinamwhile we have to find out how we catch the error raised when the user no longer exists and force regenerating the trust12:32
tkajinamI mean, you can just comment out that line and do "return True"12:32
tkajinamthen heat should forcefully regenerate the trust12:32
noonedeadpunkSo... If I'll update heat.user_creds and set trustor_user_id to current user - should it re-generate trust as well?12:33
tkajinamI guess no, because then heat does not regenerate the trust12:33
tkajinamwhich is tied to that "deleted" user12:33
noonedeadpunkmhm, I see12:33
tkajinamIf you have any other "active" user in the project then you can use it but it's as tricky as modifying the code, IMO12:34
noonedeadpunkWell, I think we kind of need to sort out issue for 1 customer now, and we can see what can be done to evaluate this scenario for the future12:35
tkajinamnoonedeadpunk, do you mind creating a bug in storyboard if you've not yet created one ?12:35
noonedeadpunkNope, I haven't yet. Decided to ask first as might be it's smth stupid in my config or old shitty version12:36
noonedeadpunkYou're still in storyboard, right?12:36
tkajinamyeah I'm hoping we can switch back to lp but that means we've lost plenty of items there12:37
tkajinamhttps://storyboard.openstack.org/#!/project/openstack/heat12:37
noonedeadpunkwell, you will restore older ones :D12:37
noonedeadpunkI wonder how bad would be to import keystone.exceptions and catch Unauthorized, then return True12:39
tkajinamThat would be an option, but I'm hoping that we can catch more specific case12:41
tkajinamor trigger regeneration for any error12:41
noonedeadpunkcreated https://storyboard.openstack.org/#!/story/201067512:49
noonedeadpunkI'm more an operator then a dev, so my python kung-fu is quite limited unfortunatelly to help out with really proper fix of that12:50
tkajinamthx. I'll try to take some time to look into this because the scenario sounds quite general and issue would be legit.12:55

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