Wednesday, 2021-07-14

opendevreviewMerged openstack/nova master: docs: Replace 'nova boot' with 'openstack server create'  https://review.opendev.org/c/openstack/nova/+/79400701:37
*** abhishekk is now known as akekane|home04:44
*** akekane|home is now known as abhishekk04:44
opendevreviewTakashi Kajinami proposed openstack/nova master: Clean up allocations left by evacuation when deleting service  https://review.opendev.org/c/openstack/nova/+/77869606:07
opendevreviewTakashi Kajinami proposed openstack/nova master: Clean up allocations left by evacuation when deleting service  https://review.opendev.org/c/openstack/nova/+/77869606:19
*** bhagyashris_ is now known as bhagyashris|ruck06:25
opendevreviewYongli He proposed openstack/nova master: Smartnic support - cyborg drive  https://review.opendev.org/c/openstack/nova/+/77136208:12
opendevreviewYongli He proposed openstack/nova master: smartnic support - new vnic type  https://review.opendev.org/c/openstack/nova/+/77136308:12
opendevreviewYongli He proposed openstack/nova master: smartnic support - create arqs  https://review.opendev.org/c/openstack/nova/+/75894408:12
opendevreviewYongli He proposed openstack/nova master: smartnic support - build instance with smartnic arqs  https://review.opendev.org/c/openstack/nova/+/79824908:12
opendevreviewYongli He proposed openstack/nova master: smartnic support - cleanup arqs  https://review.opendev.org/c/openstack/nova/+/79805408:12
opendevreviewYongli He proposed openstack/nova master: smartnic support - reject server move and suspend  https://review.opendev.org/c/openstack/nova/+/77991308:12
opendevreviewYongli He proposed openstack/nova master: smartnic support - functional tests  https://review.opendev.org/c/openstack/nova/+/78014708:12
gibistephenfin: can we get this in https://review.opendev.org/c/openstack/os-resource-classes/+/796591 I'd like to get a os-release-classes lib released as neutron also needs this08:42
opendevreviewMerged openstack/os-resource-classes master: Add packet rate related resource classes  https://review.opendev.org/c/openstack/os-resource-classes/+/79659109:34
opendevreviewStephen Finucane proposed openstack/nova master: Use neutronclient's port binding APIs  https://review.opendev.org/c/openstack/nova/+/70629510:21
opendevreviewStephen Finucane proposed openstack/nova master: fixtures: Raise HTTP 409 if binding is already active  https://review.opendev.org/c/openstack/nova/+/80076710:21
stephenfingibi: Respun that again (hopefully the last time) if you care to take a look ^10:21
gibion it10:23
stephenfinta10:23
gibidone10:26
gibithanks for fixig the todo I left in the fixture10:26
* gibi disappeares for 90 mins 10:26
opendevreviewTakashi Kajinami proposed openstack/nova master: Clean up allocations left by evacuation when deleting service  https://review.opendev.org/c/openstack/nova/+/77869610:28
opendevreviewTakashi Kajinami proposed openstack/nova master: Clean up allocations left by evacuation when deleting service  https://review.opendev.org/c/openstack/nova/+/77869610:33
opendevreviewTakashi Kajinami proposed openstack/nova master: Clean up allocations left by evacuation when deleting service  https://review.opendev.org/c/openstack/nova/+/77869610:36
opendevreviewBalazs Gibizer proposed openstack/placement master: Move placement specs from nova  https://review.opendev.org/c/openstack/placement/+/80076910:47
sean-k-mooneystephenfin: if the recheck fails on https://review.opendev.org/c/openstack/os-vif/+/798055 ill adress the remaining typos11:32
sean-k-mooneyotherwise ill fix them in a followup when i start working on the trunk bridge deletion bug.11:32
* gibi resurfaces12:00
opendevreviewBalazs Gibizer proposed openstack/nova-specs master: Move placement specs to placement repo  https://review.opendev.org/c/openstack/nova-specs/+/80077512:04
gibimelwitt: I think the best is to move the placement targeting specs to the placement repository. So I proposed a nova-specs and a placement patch to do so 12:05
gibimelwitt: https://review.opendev.org/c/openstack/nova-specs/+/80077512:05
gibimelwitt: https://review.opendev.org/c/openstack/placement/+/80076912:05
sean-k-mooneywas that motivated by my comment on melwitt's consumer types path12:09
sean-k-mooney*patch12:09
gibisean-k-mooney: I already detected my mistake when we merged my re-parent RP spec12:11
gibisean-k-mooney: just haven't had the time to do the move since12:12
gibi\12:46
*** hemna0 is now known as hemna12:53
opendevreviewStephen Finucane proposed openstack/nova master: db: Final cleanups  https://review.opendev.org/c/openstack/nova/+/80048413:03
gibisean-k-mooney: I looked through the cyborg smartnic impl. I do miss the part when the smartnic arq triggers a piece of domain xml generated to pass through a VF. The flavor based arqs are handled via the arq uuids passed to the libvirt driver but the smartnic impl does not pass the smartnic arqs this way. Does this xml generation happens becuase of the port has some pci info in the bindig profile?14:45
gibithe last bullet in the spec https://specs.openstack.org/openstack/nova-specs/specs/xena/approved/support-sriov-smartnic.html#nova seems to confirm my above guess14:48
melwittgibi: ack will review them, thanks for doing that15:26
gibimelwitt: thanks15:32
mnaserhmm, i ran into an interesting scenario.  i have 2 az in a cloud with cross_az_attach=False, everything works as expected, but for bfv, since a volume type is only available in a specific az, volumes go to 'error' right away15:46
mnaserwould this be a 'cinder' bug technically because nova is requesting a volume with no type included but az=<foobar> and it's going to the default that is not available in az=<foobar> ?15:47
mnaseryeah, i think that's more of a cinder thing now that i'm writing it out.. i'll take it there if anyone is curious15:48
opendevreviewBalazs Gibizer proposed openstack/placement master: Add support for RP re-parenting and orphaning  https://review.opendev.org/c/openstack/placement/+/78402015:56
gibisean-k-mooney: I fixed nits and replied to your comment in ^^15:56
NobodyCammorning Nova Folks.. I have a instance that is stuck in build state. it shows up with openstack server list. But I get "No server with a name or ID" when attempting to run a openstack server show.. would anyone be able to point me in the right direction to remove this failed instance15:56
melwittNobodyCam: you might have an orphaned build_requests record for the instance. if you have one of those records and no instance_mappings record for the instance, you will need to delete the build_requests record from the database manually15:59
melwittthese tables are both in the nova_api database16:00
NobodyCamahh Thank you melwitt !!16:00
NobodyCambeen looking at nova db. haven't even looked at the api side ;p16:01
melwittNobodyCam: yeah.. you likely don't have any trace of the instance in the nova db. usually the reason you can see the instance in the 'server list' but not the 'server show' is because 'server list' will count build_requests as instances as well in order to preserve the behavior where you can see an instance immediately after you request to boot it. but if there's no instance_mappings record, nova will think it can't find anything. it16:06
melwitt was this bug https://bugs.launchpad.net/nova/+bug/178409316:06
melwittare you running a version older than queens?16:06
NobodyCamactually in this region it is Queens, it's in process of migrating to ussuri but not complete yet16:09
melwitthm, ok. there might be another corner case but ^ was the most common one16:10
melwittreleased in 17.0.1116:11
NobodyCamInteresting not in build_requests but did find reference to the instance_id in instance_mappings table in nova_api DB16:20
melwittoh, so the inverse? hm16:24
NobodyCamI should not this region had a network outage, caused some strange things, I am attempting to recover16:25
NobodyCamsnot/note/16:25
melwittI need to go back through and look at all those again, there's some places where if one db write succeeds while another fails, you get these bad states16:26
NobodyCamSafe to just nuke the instance_mapping record? 16:26
melwittyeah, I'd make sure it's not in nova.instances and then delete nova_api.instance_mappings, nova_api.request_specs for the instance uuid16:27
NobodyCam: thumbs_up :16:27
NobodyCamThank you melwitt I think this will get things back on track for us!16:42
melwittnp, good luck16:43
gmanngibi: dansmith replied on these comment for 'project admin getting hypervisor uuid spec'  https://review.opendev.org/c/openstack/nova-specs/+/793011/3/specs/xena/approved/allow-project-admin-list-hypervisors.rst#4317:18
gmanngibi: dansmith https://review.opendev.org/c/openstack/nova-specs/+/793011/3/specs/xena/approved/allow-project-admin-list-hypervisors.rst#4917:18
gmanncan you please confirm/reply for those, accordingly I will update spec17:18
gmannsorry for responding late on this17:20
opendevreviewmelanie witt proposed openstack/nova stable/train: [CI] Fix gate by using zuulv3 live migration and grenade jobs  https://review.opendev.org/c/openstack/nova/+/79543517:31
opendevreviewStephen Finucane proposed openstack/nova master: nova-manage: Introduce bdm show, refresh, get_connector commands  https://review.opendev.org/c/openstack/nova/+/80063417:33
opendevreviewGhanshyam proposed openstack/nova-specs master: Allow project admin to list hypervisors  https://review.opendev.org/c/openstack/nova-specs/+/79301118:25
gmanndansmith: ^^ updated18:26
dansmithgmann: okay just to be clear, you're planning to accept the uuid as the hostname, in the same field, and without a microversion for that?18:28
gmanndansmith: yeah.18:28
dansmithokay I guess I dunno about the legitimacy of that.. because someone won't be able to know whether a nova is new enough to accept that behavior. it's not a structural change in the request/response, but it is a different behavior that they won't know if they can use or not, right?18:29
gmanndansmith: humm, behavior  wise yes it is changed..18:31
dansmithyeah, so I dunno, probably best to get someone else's opinion on the matter, but it sure seems like that should go hand-in-hand with the microversion to expose it18:32
gmannissue with microversion bump is then it would not be aligned with policy change which are without microversion.18:34
sean-k-mooneywhy are we over loading the filed 18:34
gmannI think booting server with uuid will end up with error ?18:35
sean-k-mooneyi can kid of understand at the osc level allowign --host18:35
gmanncurrently 18:35
sean-k-mooneyto be the uuid or hostname18:35
sean-k-mooneybut at the api that feels weird to me18:35
gmannhumm18:35
gmanntesting here https://review.opendev.org/c/openstack/tempest/+/79363218:35
sean-k-mooneywe have instance of this i think for instnace show or flavor show where you can pass the name or uuid18:36
sean-k-mooneybut i kind of assume we were goning to add a new filed for this18:37
sean-k-mooneyits that not we ment by https://review.opendev.org/c/openstack/nova-specs/+/793011/4/specs/xena/approved/allow-project-admin-list-hypervisors.rst#9718:38
gmannsean-k-mooney: for this case, we are thinking to allow in same field and that is why interop issue 18:38
sean-k-mooneywell we said we would accpet hypervisor-uuid now 18:38
sean-k-mooneyso that is a new field no?18:39
sean-k-mooneyi have not been following this closely sorry18:39
gmannsean-k-mooney: no, in same field like in 'availability_zone' az:noda:host host as uuid18:39
gmannif new field then sure we need microversion bump 18:40
sean-k-mooneyi kind of feel like this should be a micoverion bump18:41
sean-k-mooneyi mean its unlikely you are suing uuids for your hypervior host names but it would have been allowed before18:41
sean-k-mooneyactully dont we do that for ironic18:41
sean-k-mooneythe hypervior_hostname is the ironic node uuid18:42
dansmithbut that is the actual hostname we record,18:42
dansmithso it's different18:42
sean-k-mooneyso if we reuse the same filed dont we have the possibliyt of a uuid colission even thought that wont happen in reality18:43
opendevreviewMerged openstack/nova master: Use neutronclient's port binding APIs  https://review.opendev.org/c/openstack/nova/+/70629518:43
sean-k-mooneydansmith: well for ironic server the hypervior hostname for each server is the uuid right18:43
dansmithright, that's my point.. so it's not like there's prior art for making them interchangeable, it's that we actually record the uuid *as* the hostname in that case18:44
sean-k-mooneyyes18:44
sean-k-mooneydo we also make the compute node uuid match the host name for ironic?18:44
dansmithyeah, I think that changed at some point and now we do18:46
sean-k-mooneyyes https://github.com/openstack/nova/blob/master/nova/virt/ironic/driver.py#L354-L35518:46
sean-k-mooneyya i dont think it always was either but it is now18:46
sean-k-mooneyhttps://github.com/openstack/nova/commit/9f28727eb75e05e07bad51b6eecce667d09dfb6518:46
sean-k-mooneyto fix https://bugs.launchpad.net/nova/+bug/177180618:47
sean-k-mooneygmann: that tempest test https://review.opendev.org/c/openstack/tempest/+/793632/7/tempest/scenario/test_server_multinode.py is still using the old way to select hosts18:48
sean-k-mooneyusing the az hack no?18:48
gmannsean-k-mooney: adding host uuid there https://review.opendev.org/c/openstack/tempest/+/793632/7/tempest/scenario/test_server_multinode.py#6118:49
sean-k-mooneybut you are using host_name18:50
sean-k-mooneynot host or hypervisor_hostname18:51
sean-k-mooneyits still computing the az 18:51
sean-k-mooneyhttps://review.opendev.org/c/openstack/tempest/+/793632/7/tempest/scenario/test_server_multinode.py#8218:51
sean-k-mooneyits not useing https://specs.openstack.org/openstack/nova-specs/specs/train/implemented/add-host-and-hypervisor-hostname-flag-to-create-server.html18:52
gmannhost_name is what i changed to add uuid in L6118:52
gmannhost['host_name'] is uuid18:53
gmannI remember it failed with uuid but double checking 18:53
sean-k-mooneyso using the az as this test is is more or less deprecated18:53
sean-k-mooneywe can test this but we shoudl be testing with 5.7418:54
sean-k-mooneyand not seeting the az at all18:54
gmannsean-k-mooney: I am testing with AZ case for force host. 'host', 'hostname' which use sch I am not testing currently 18:54
gmannAZ way is not deprecated right?18:54
sean-k-mooneyits stognly discuaged18:55
gmanncreate server support both18:55
sean-k-mooneyits not deperecated and i dont think we want to extend its usage18:55
gmannyeah discuaged but not deprecated18:55
sean-k-mooneyi would like to deprecated it 18:55
gmannI am just checking compatibility of uuid case18:55
sean-k-mooneyits replacement has been avaiable since train18:55
sean-k-mooneygmann: well i gues my point is i dont think we should be supporting this the old way18:57
sean-k-mooneyim fine with project admins requesting a host using the info form the hypervior api to get the uuid18:57
sean-k-mooneybut im not sure they shoudl be able to force the host and bypass the schudler filters18:58
gmannsean-k-mooney: sure. but in current proposed change I am checking uuid compatibility. But if we want to disallow the bypass the schudler filters that is separate behavior change or we can say 'bypass the schudler filters stop working with new rbac'18:59
sean-k-mooneyno i dont think that is really valid.19:00
sean-k-mooneyits an iterup issue19:00
sean-k-mooneyi cant tell if you are using the new rbac or not19:00
gmannI think we can discuss this separately to deprecate/stop the 'bypass the schudler filters' case instead of mixing two19:00
sean-k-mooneywhich is why i have argrued that any policy change should be a micorover bump19:00
sean-k-mooneythe old az format can work without any nova code changes right19:01
sean-k-mooneywith the uuid becaue it accpeted both19:01
gmannyeah that is why I am kind of agree with dansmith concern of 'need of microversion bump' just testing also so that I am fully convinced on interop issue 19:01
gmannsean-k-mooney: let's see. i can add host way also in test19:02
sean-k-mooneygmann: can you add a new tempest test to test with the other way to request it with out bypassign the filter19:02
gmannsure19:02
sean-k-mooneycool19:02
sean-k-mooneyin which case we would expect the uuid to be in host? or hypervisor_hostname?19:03
sean-k-mooneyor in hypervisor_uuid19:03
sean-k-mooneywhich does not exsit today19:04
sean-k-mooneydansmith: was this what you were poking at^19:04
gmannif new field then we need microverion bump for sure19:05
sean-k-mooneyif feels a little odd to me to do openstack hypervisors list and get the uuid and put it in hypervisor_hostname19:05
sean-k-mooneyand using host would feel equially odd since that is the host on which the compute service runs so for ironic that is not the same thing19:06
sean-k-mooneyso for the newer way i think weee need a hypervisor_uuid filed on server create to use this19:07
dansmithI'm not so concerned about new field vs new behavior for existing field,19:07
dansmithbut it seems worthy of a microversion to me either way so we know if we can use it or not19:08
sean-k-mooneydansmith: well with a new field the old filed behavior would not change19:08
dansmithright but new field would mean microversion for sure19:08
gmannyeah, only way to avoid microversion is existing field but that also seems difficult/not right19:09
dansmithwell, I was saying I don't even think you can avoid it then, because we won't know when we can or can't use it19:10
gmannyeah..19:10
gmannnow we are back to same issue on how to solve this for new rbac19:10
sean-k-mooneyif it was a uuid we would basicaly have to always check if there was a hypervior_hostname with the value or hypverviour_uuid with that value19:11
sean-k-mooneyassuming it was one filed19:11
sean-k-mooneygmann: for new rbac i dont understant the problem19:11
sean-k-mooneyyou just use the new microverion how those that affect things?19:12
gmannsean-k-mooney: with project admin needs to know the hypervisor name to boot server on host19:12
sean-k-mooneyright which it cant get today without system_reader19:12
gmannwith new rbac and older microverison (than where we fix this), project admin would not be able to boot server on host specify 19:13
sean-k-mooneywe dont19:13
sean-k-mooneywe only support this form the new microverion on 19:13
sean-k-mooneyand if you want too supprot that for old microverion give them system_reader or create a custom policy role for hypervior list19:14
sean-k-mooneyso effectivly i belive we should just pretend that we are allowing proejct admins to spyify a host as a new feature in xena19:15
gmannyeah so for older microversion they would not have choice than updating the policy. which is what issue we have today19:16
gmannand with old rbac default they are able to do19:16
gmannI think we need to think more on this. I am not hurrying it for Xena at the last min.19:17
sean-k-mooneywell let take a step back19:18
sean-k-mooneythe old polices for hypervior was admin api and the new one is system reader19:18
sean-k-mooneycorrect19:18
sean-k-mooneyso up to now without custom policy you basically need to be an admin or have readonly admin right to list hostname via the hyperviors api19:19
sean-k-mooneyso even thoght project_admins could spefify a host https://github.com/openstack/nova/blob/master/nova/policies/servers.py#L177-L19619:20
sean-k-mooneyin pratice they did not know the name unless an admin told them19:21
sean-k-mooneyso in practice they could not use this capablity19:21
sean-k-mooneyand the same is true of the non az way https://github.com/openstack/nova/blob/master/nova/policies/servers.py#L177-L22519:21
gmannsean-k-mooney: legacy project_admins  can list hypervisor and specify host 19:22
sean-k-mooneygmann: there is no such thing a sa legacy project admin19:22
gmannlegacy admin19:22
sean-k-mooneythey are a fully admin19:23
gmannyeah the old admin can do both operation19:23
sean-k-mooneyright19:23
sean-k-mooneyso i dont see why we have to try and support this before xena19:24
sean-k-mooneywe may have typed PROJECT_ADMIN on those policies 19:24
sean-k-mooneybut in reality form an PROJECT_ADMIN point of view they could not use them19:24
gmannPROJECT_ADMIN  is new rbac policy19:24
sean-k-mooneyyes i know19:25
gmannif we think with old admin way then they were allowed to list hypervisor and boot server on that. but with new rbac whatever admin system or project could not do19:25
sean-k-mooneycorrect19:25
sean-k-mooneyalthgouh system admin woudl fail for other reason19:25
sean-k-mooneynamely becaue it does not have a project uuid19:26
sean-k-mooneyso what im proposing is se simple document to use requested_destination with a uuid you need a new microverion and add a new hypervior_uuid filed to server create19:27
sean-k-mooneyin addion to that we can allow listing the hyperviors uuid via os-hypervior with project admin19:27
sean-k-mooneythat is consitent with our microverion gudieline as we are adding a new feautre to the api. booting with a hypervior uuid as a target host19:28
gmannyeah we can do that always if we want to leave old microversion unsolved.  but as discussed in xena PTG or since starting , first we are trying "how we can solve this problem without microversion"19:28
sean-k-mooneyand it enable the use case with the new rbac19:29
sean-k-mooneygmann: right my anaser to "how we can solve this problem without microversion" is we should not19:29
sean-k-mooneyunless the resoltion is dont use RBAC with the old microverions19:30
gmannone way is going back and allow hypervisor name to list for project-admin. but again it violate our new rbac goal19:33
melwittdon't we already show real hypervisor hostname vs obfuscated one in the same field depending on whether admin or non today? how is allowing uuid as well any different?19:35
melwittthat is, I don't see the problem with showing a uuid there without a microversion19:35
opendevreviewMerged openstack/nova stable/ussuri: guestfs: With libguestfs >= v1.41.1 decode returned bytes to string  https://review.opendev.org/c/openstack/nova/+/78790219:36
sean-k-mooneymelwitt: no i dont think we do19:40
mnaseri know i'm not supposed to be mucking around with this, but besides request_specs in nova_api and instances.availiabiltiy_zone in nova.. is there anywhere else that leaves a reference to the az that an instance lives in?19:40
mnaseri'm doing some very bad(tm) things and updating az column in instances worked for some instances but did not for some other ones, the api still reports the old az 19:41
melwittsean-k-mooney: oh, you're right. there is a hostId field19:41
gmannmelwitt: showing uuid is fine but specifying that uuid in POST /servers leads to interop issue19:41
sean-k-mooneyyes we have hostId for normal users19:42
sean-k-mooneyand then OS-EXT-SRV-ATTR:hypervisor_hostname and OS-EXT-SRV-ATTR:host19:42
sean-k-mooneyfor admins19:42
gmannPOST /servers which accept hostname today and start accepting host uuid is soemthing need microversion19:42
sean-k-mooneymnaser: its in neutron and cinder also19:43
melwittoh, sorry, the details of this must have fallen out of my brain19:43
sean-k-mooneymnaser: we set the az in the device_owner field in the neutron port bindings and i think in the cinder volumlue attachments19:44
mnasersean-k-mooney: right.. in this case those are purposely non-bfv systems so no cinder attachments, now neutron is a good point19:44
mnaserbut still.. nova api reports old az still, not sure where to change19:44
mnaserlooks for instance_extra and instance_system_metadata19:45
sean-k-mooneyya one of those would be likely but maybe this is nin the api db somewhere19:45
sean-k-mooneywe had a list at onepoint19:45
mnaserbuild_requests has nothing, i already updated nova_api.request_specs.spec19:46
mnasermaybe its cached at this point19:46
melwittyeah, you might be getting https://github.com/openstack/nova/blob/master/nova/availability_zones.py#L195-L21119:48
mnaserahhh so it is cached19:48
sean-k-mooneydo you know where we block you removing host form az if it has instnaces19:49
sean-k-mooneythe commit that blocked that has a list of all the places where az are stored i think too19:49
mnaseryeah i think in my case it's more of the cache getting the host az to present via the api19:50
melwitthttps://github.com/openstack/nova/blob/master/nova/api/openstack/compute/services.py#L281-L28419:51
sean-k-mooneyhttps://github.com/openstack/nova/commit/8e19ef4173906da0b7c761da4de0728a2fd71e2419:52
sean-k-mooneythere we go ^19:52
mnaserok so melwitt theory that i'm hitting the case where the az for the compute node != az for instance record, and then its just getting the compute node one19:52
melwittmaybe. I didn't look deep into it19:53
sean-k-mooneymnaser: did you rename the az or move the compute node19:54
mnasersean-k-mooney: neither.. i am trying to cold migrate to another az :X19:54
sean-k-mooneyah ya that breaks things19:54
sean-k-mooneygibi: and bauzas were working on that recently19:54
mnaserin theory it all works but just the scheduler is not happy19:54
sean-k-mooneyone sec19:54
sean-k-mooneymnaser: well if the vm requeted an az in the first place you are nota llowed to migrate to another az19:55
mnasermelwitt: that was it, removing the compute node (that was disabled) out of the host aggregate that was setting the az made to go back to hte db value19:55
sean-k-mooneyif it did not yes it can work19:55
mnasersean-k-mooney: but what if you use default_schedule_zone=nova :)19:55
sean-k-mooneythen it will populate that in the request spec19:55
sean-k-mooneyand you cna migrate within that19:56
mnaserbut in my case, lets imagine it was set to default_schedule_zone=foobar and now we're trying to clean it up to be all inside `nova`19:56
sean-k-mooneymnaser: right that is not supported19:56
mnaserhence the bad things(tm)19:56
sean-k-mooneyso your in for pain19:56
sean-k-mooneyyep19:56
sean-k-mooneyoperator do tend to do that form time to time i have noticed19:57
mnaseri expect to be told collect the broken pieces on my own if it breaks :)19:57
sean-k-mooneyso maybe there should be a way to do that at some point19:57
mnaseri think its cause operator feel that az's are not very 'heavy' constraints19:57
mnaserand then many years go by and you're like oh wait this isn't straight forward...19:57
sean-k-mooneyright AZ are thigns you set up once and never touch as its user facing19:58
sean-k-mooneyhost aggrartes you can change to your hearts delight as they are not 19:58
sean-k-mooneyyou proably know as well as anyone that openstack AZ are not like aws AZ where each maps to a different datcenter/fault domain19:59
sean-k-mooneybut in terem of thinking about changing them you shoudl treat them that way20:00
mnaseryeah but im saying host aggregates seem flexible, az's are hard set20:01
mnaserthe mix of both probably gives the impression that one is just as flexible as the other20:01
sean-k-mooneyyep and the fact that an az is just a metadata tag on a hsot aggreate probly does not help20:01
sean-k-mooneyi never want to write this but i could see someine writing a nova manage command or something that would move a host or vms betwen azs but realticly that will better live out of tree 20:02
sean-k-mooneythere are far to many choices to make on what to do. do you jsut update the AZ in the db or do you move vm to other node in the az they requested if set and move the other or one that are in a specifed az to the new az20:04
mnaseryeah the combination of possible scenarios is .. a lot20:04
sean-k-mooneyand likely will be defferent for each operator/case20:06
sean-k-mooneywhich is why we have never stdardised a tool to do this in nova20:06
sean-k-mooneymnaser: https://review.opendev.org/c/openstack/nova/+/798145 for https://bugs.launchpad.net/nova/+bug/193477020:08
sean-k-mooneymnaser: that is proably of interset to you20:08
sean-k-mooneymnaser: your migrate issue might be similar20:09
sean-k-mooneymnaser: we could consider allowing cross az live/cold migrate explcitly in the api as a new fature at somepoint20:10
sean-k-mooneymnaser: that would allow you to move host between az by live migrating the vms to the new az and then when the host is empty just remove it form one and add it to the other20:11
sean-k-mooneyspcifying an az to live/cold migrate woudl have to update the request spec and other db filed with the new az but it could be done20:12
sean-k-mooneyalthogh not this cycle at this point20:12
sean-k-mooneyanyway i need to call it a day20:12
opendevreviewGhanshyam proposed openstack/nova master: DNM: testing  https://review.opendev.org/c/openstack/nova/+/79486323:01

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