Monday, 2024-01-29

gmannbauzas: sean-k-mooney:dansmith: removing HyperV driver/APIs are up for review, please check https://review.opendev.org/q/topic:%22bp/remove-hyperv-driver%22 02:23
*** ministry is now known as __ministry05:14
opendevreviewAmit Uniyal proposed openstack/nova master: Allow swap resize from non-zero to zero  https://review.opendev.org/c/openstack/nova/+/85733906:45
gibielodilles: when you have time could you take a look https://review.opendev.org/q/topic:%22power-mgmt-fixups%22+branch:stable/2023.2 ?08:40
gibihold on, I was naively thought the master rever landed08:41
elodillesgibi: i'll have a look soon08:50
elodillesi mean just after master poatch has landed :D08:51
gibiI know the rules :)08:52
*** tosky_ is now known as tosky10:19
opendevreviewMerged openstack/python-novaclient master: Update hacking version in pre commit config  https://review.opendev.org/c/openstack/python-novaclient/+/90696410:49
sean-k-mooneygmann: thanks ill try and make my way through that series this week11:16
sean-k-mooneyskimming over it, the patches make sense11:17
gibibauzas: did you deploy the manila series in devstack? if so which backend you used nfs, or ceph?13:31
bauzasnope I just reviewed the code for the moment13:32
bauzasuntil we merge the API change, it's not a problem if we don't test it 13:32
gibibauzas: I just tested it with nfs backend and it worked for me 13:33
gibibauzas: so if you test it you can start with ceph to increase manual coverage :)13:33
gibiI'm reviewing the code now13:33
bauzasOK13:34
bauzasI needed to work last week on a lot of changes, but I can start13:34
bauzasI also need to test my own mdev live-migration series :)13:34
opendevreviewMerged openstack/nova master: Attach Manila shares via virtiofs (objects)  https://review.opendev.org/c/openstack/nova/+/83940115:43
bauzasUggla: now that patch is merged, a gentle reminder that I asked you a follow-up patch for https://review.opendev.org/c/openstack/nova/+/839401/36/nova/objects/share_mapping.py#9316:34
Uggla@bauzas, I'll do it no pb.16:35
opendevreviewzhouzhong proposed openstack/nova master: Validate flavor image min ram when resizing a volume-backend instance  https://review.opendev.org/c/openstack/nova/+/90681316:46
gibiUggla: I see a discrepancy between the spec and the impl17:43
gibiThe spec says17:43
gibiShare attachment/detachment can only be done if the VM state is ``STOPPED``17:43
gibior ``ERROR``.17:43
gibiThese are operations only on the database, and no RPC calls will be required17:43
gibito the compute API. This is an intentional design for this spec.17:43
gibiAs a result, this could lead to situation where the VM start operation fails17:43
gibias an underlying share attach fails.17:43
gibi--17:43
gibiBut I see that the actauly host attachment happens during the attach API call in my devstack17:43
gibiis it intentional?17:43
Uggla@gibi, if I'm not wrong this case is handled or I misunderstand something. If the share is in error it is "discarded" from the list and the VM should start.17:45
UgglaIf think it is in get_share_info17:45
gibimy point is the spec states that attaching a share via the REST API is a DB only operation. But in my devstack the host attachment happens during the attach REST API call.17:46
gibiI guess the original plan was to do the share attachment to the host during the VM start, but for some reason it is moved to the share attach call. 17:52
Ugglayes we discussed that, we moved from that because it made it more complex and causes some issue. But I do not remember well what were the issues.17:54
gibiThe current design means that all the share mounting logic and the retry loop waiting for the share access setup from manial is in a syncronous RPC call that holds up the share attach REST API response.17:54
Ugglayes. It was the intention to have it syncronous.17:55
gibiOK. If bauzas is OK with this then I can accept it, but we need to document for the share_apply_policy_timeout that it cannot be set over our RPC timeout as that will lead to strange errors.17:57
UgglaI remembered discussing that with @bauzas too. 17:57
bauzasI quickly looked17:57
gibiand we need to amend the spec17:57
bauzasI need to leave by now17:57
bauzasI obvisouly need to reload that context in my mind17:58
bauzasoh I remember17:58
Uggla@bauzas, I'm sure we discussed that synchronous etc stuff. But this is old discussion I don't remember well.17:58
bauzasthe fact is that you start making it asynchronous (which is OK with me) then you need to manage the states somewhere17:59
gibibauzas: the spec said that the share attach REST API is DB only so I assume the state is managed in the DB :)17:59
gibialso I understood from the spec that the host mount happens during the start_instance RPC18:00
bauzasbecause the instance has to be in stopped state, right?18:00
bauzas(as a precondition)18:01
gibiyes18:01
bauzasI'm a bit afraid of a blocking call, I may have missed it18:01
UgglaIf I remember well, doing it at power_on led to "large" change in the error handling of power_on / power_off and other actions.18:02
bauzasgibi: you only saw that behaviour by testing, right? I'm saying that because I haven't yet reviewed the API change18:02
bauzasand I guess the blocking call to the compute RPC API is made there18:02
gibibauzas: I saw that in testing, but I can probably dig up the RPC call from the API code18:02
bauzasno worries, I was just asking because I missed your very good point when reviewing 18:02
bauzasso it should have been done later in the API patch, or I am blind18:03
gibibauzas: https://review.opendev.org/c/openstack/nova/+/836830/42/nova/api/openstack/compute/server_shares.py#15018:03
bauzasUggla: I think that we more likely discussed on how to decouple the RPC call 18:03
bauzasbut not *when* we were calling it18:03
bauzas(*when* or *where* if you prefer)18:04
bauzasyeah, OK, I'm not blind, I just haven't went up to that point18:04
bauzasUggla: IIRC we discussed on decoupling two actions that were made in one lockstep 18:05
bauzasthe first one was to "allocate" the mapping18:05
bauzasthe other one was to "mount" it18:06
bauzasin your early patches, iirc you were doing all of them thru the compute manager and I asked you to provide RPC methods for differenciating both actions18:06
bauzasamirite?18:06
Ugglabauzas, we discussed the call /cast and yes all the previous code used the compute part, and we changed in that way. If I'm not wrong.18:11
UgglaI have the old code somewhere, I could check.18:11
bauzasok, that's then a good news18:11
bauzasI'm not yet forgetting everything18:11
bauzasso, now you decoupled both actions, 18:12
bauzasyou need to just ensure to issue those two actions in the right lifecycle we agreed18:12
bauzasmeaning that you should call the share mount only when the instance is starting18:12
bauzasget rid of that single line : https://review.opendev.org/c/openstack/nova/+/836830/42/nova/api/openstack/compute/server_shares.py#15018:13
bauzasand just call mount_share in the compute manager18:14
bauzaswhen the instance is starting18:14
bauzaslater you could call the RPC bus for that, but that would be for other actions18:14
Ugglanope we revert from that, to not mount in the compute part.18:15
Ugglathat was the "original" code.18:16
bauzasUggla: let's do a gmeet with gibi tomorrow18:19
bauzasthis is late for all of us :)18:19
Ugglaok yes and I'm cooking in // so I can not follow well.18:20
gibiack18:21

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