Wednesday, 2026-11-11

opendevreviewAlfredo Moralejo proposed openstack/watcher master: Add support to update status_message in update_audit_state  https://review.opendev.org/c/openstack/watcher/+/101434208:42
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Version the parameters spec of strategies  https://review.opendev.org/c/openstack/watcher/+/101456908:42
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Add update_parameters() to BaseStrategy  https://review.opendev.org/c/openstack/watcher/+/101457008:42
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Update goals and strategies in-place in the Syncer  https://review.opendev.org/c/openstack/watcher/+/101457108:42
opendevreviewAlfredo Moralejo proposed openstack/watcher stable/2026.1: Fix duplicate workload stabilization migrations  https://review.opendev.org/c/openstack/watcher/+/101501809:11
dviroelsean-k-mooney: amoralej__ thanks for the spec review - going through the comments and update a new version today - i will drop questions here if needed.11:24
amoralej__sure11:25
amoralej__good to discuss here and agree on the open questions11:25
*** amoralej__ is now known as amoralej11:29
sean-k-mooneydviroel: cool12:13
dviroelsean-k-mooney: so IIUC, pinning to default availability zone may return an error in a near future12:14
dviroelbut there is no way to know that from nova api12:15
dviroelso we would  need a config option for that12:15
sean-k-mooneyso there kind of is12:16
sean-k-mooneybut you have too syntasize it form 2 diffen tinputs12:16
sean-k-mooneyyou can list teh avialablity zones and you can list the compute service and check what zones they report12:17
sean-k-mooneyif there is an addtional zone in the compute service view 12:18
sean-k-mooneythen that is the fake defautl zone12:18
sean-k-mooneybut that kind of a pain and ineffeicent12:18
sean-k-mooneyso horizon and other just mirror the config option that nova has for its name12:18
sean-k-mooneyand set it to the saem default value `nova`12:18
sean-k-mooneywell sort of i think that is what dan is propsoing in his bug fix12:20
sean-k-mooneyhttps://docs.openstack.org/api-ref/compute/#id29012:20
sean-k-mooneythe current example respocne show the nova zone12:21
sean-k-mooneyi think dan was considering not reportign that any more and only reporting the real AZs form that api12:21
sean-k-mooneybut i need to actully read there patch to confirm that12:21
sean-k-mooneyhttps://review.opendev.org/c/openstack/nova/+/101477212:22
sean-k-mooneyhttps://review.opendev.org/c/openstack/nova/+/1014772/1/api-ref/source/os-availability-zone.inc12:24
sean-k-mooneyagaisn i need to read the patch for the details but that srongly implying that the defautl nova zone would nolnger be in the az list12:24
sean-k-mooneywhich form a watcher point of view would mean that in the future if we have an audit that refences an az that is not in the list we coudl treat that as an error12:25
sean-k-mooneybut it does mean we woudl not be able to manged vms in the default zone if we did that by zone12:25
sean-k-mooneyi.e. we coudl not express move all vms form the default zone to prod-112:25
sean-k-mooneyso we need to decied if watcher will only support real zones12:26
sean-k-mooneyor the implicit default one as well12:26
dviroelwatcher today build the zone list from compute service list API12:27
dviroelI believe that this will still continue listing the default one?12:27
sean-k-mooneyit would yes i think12:28
dviroelI also think that we should support draining from the default one, and may reject the default as a destination12:29
sean-k-mooneythat would be a reasonable appproch12:29
dviroelwe could validate that in the API, if we include the config option12:29
dviroel"please operator, create a real AZ to drain your workloads to" :) 12:31
sean-k-mooneythe other thing is we may want to expess a request to move the vms to ANY az in the future12:31
dviroelright12:32
sean-k-mooneywe woudl do that by disabling the souce az nodes, unpinnning the vm and then aksing for a migration without passing a host or az12:32
sean-k-mooneythen the schduler woudl choose form the online hosts12:32
dviroelack, interesting12:32
* dviroel can't open https://bugs.launchpad.net/nova/+bug/2173771 - network issue on my side or launchpad is down?12:34
amoraleji can't open it either12:36
sean-k-mooneyya lachpad is down12:37
dviroelso we have the options: 1) do not pin to default_availability_zone (skips the pin after migrating) and 2) deny draining to the default AZ (dest_az)12:43
dviroelthe 1) can live in Migrate option, for any other strategy to use it12:44
dviroelwe can have both in the end, using an additional config option in watcher12:44
dviroel[nova] default_availability_zone12:44
sean-k-mooneyya so im not conviced that dans propsoed bug fix is valid and im saying so now12:46
amoralejdviroel, so that case is to drain to default_availability_zone from a different az12:55
amoralejright?12:55
amoralejdrain prod-az to nova i.e.12:56
amoraleji have a doubt, from Nova pov, if a non-default az is created, the default one can still have compute services? i thought the default one was only for the case where no other AZ exists12:57
sean-k-mooneyamoralej: so in my spec that would work with dans bugfix that woudl be a 400 error13:02
sean-k-mooneyi belive there would be no way to reust the host are are not part of a real az other hten by there hostname13:02
dviroelamoralej: yes, "drain prod-az to nova"  would be invalid. Also pin to default zone can be at Action level13:04
sean-k-mooneyamoralej: no the default az is what a compute service is in13:04
sean-k-mooneyunless you add it to a az explcitly13:04
sean-k-mooneythere is no host-aggreage assocatied with teh default az13:04
sean-k-mooneyand no aggreate metadata as a result13:05
sean-k-mooneythat also menas the default az is not modeled in placement13:05
sean-k-mooneyits litrally the set of host that are not grouped by an admin explcitly inot an az. all newly added comptue are part of it when you scale out implictly untill you use teh rest api to assign it to a real az13:06
sean-k-mooneypsi didnt bother with AZs really which is why in horizon if you booted a vm it booted into the "nova" az13:07
dviroelso, in the end we need: 1) do not pin to default_availability_zone (skips the pin after migrating) a13:56
dviroelright?13:56
sean-k-mooneyi think that woudl be for the best14:30
sean-k-mooneyin the spec i also suggested havaing a pining policy at the stragey level14:30
sean-k-mooneyso i think we may want to allow an operator to say drain this az but done pin any vms14:30
sean-k-mooneythey may also want to say drain the node and preserve the existing pinned or unpinned state or force the pinning of the moved vms14:31
sean-k-mooneyi dont think we need to do that per vm14:31
sean-k-mooneybut i think that high level policy shoudl apply per audit14:31
dviroelso currently we have the 'skip_az_pinned_instances' proposal. which skipps the pinned ones. All pinned instances would be repinned in case a dest_az != src_az14:58
dviroelyou are also suggesting a new parameter to allow op to choose when pinned instances should or not be pinned to the dest_az14:59
dviroel'repin_az_pinned_instances' ? if true, it pins instance after migration, otherwise it just unpin the one pinned.15:06
dviroel'skip_az_pinned_instances' would default to True, as also repin_az_pinned_instances (true by default) - it will work only for the ones that are already pinned.15:20
dviroelskip_az_pinned_instances=False + skip_az_pinned_instances=False would just unpin instances.15:20
amoralejso, the use case for that would be. "As a cloud admin I want to drain all my VMs from AZ1, including the pinned ones, to AZ2 but do not pin the VMS which were pinned before"15:23
amoralejthat's what you are suggesting?15:23
dviroelthat's what I understood from sean's comment. But the spec does not cover that today. 15:49
dviroelsean-k-mooney: is that it?15:50
dviroelI think that doesn't add too much to the implementation today15:50
dviroeljust more scenarios to test15:50
opendevreviewAlfredo Moralejo proposed openstack/watcher-specs master: Update goals and strategies in-place to prevent Audit cancellation on upgrades  https://review.opendev.org/c/openstack/watcher-specs/+/101269615:53
dviroelavailability_zone_pinning_policy = [repin, unpin_only, auto]  is another suggestion from sean. It makes easier to extend. But that was a suggestion for the Migrate action only? Or we would propose also as end user configuration?16:00
dviroelskip_az_pinned_instances + availability_zone_pinning_policy?16:00
dviroelnote that 'availability_zone_pinning_policy' in audit parameter would be only a bypass to Migrate Action in the end, which will hold the pin/unpin logic16:01
dviroelthis thing about skipping instances feels more like Audit Scope duty. If we add the exclude_az_pinned_instances into the scope, it could mark all instances as watcher_excluded in the ed.16:03
dviroelend16:03
sean-k-mooneysorry reading back16:18
sean-k-mooneydviroel: the policy woud apply to all moved instnaces 16:20
sean-k-mooneybasically in the review16:20
sean-k-mooneyi suggested 3 policies, unpin pin and auto16:21
sean-k-mooneythat spereate form if we shoudl include the instnace to be moved16:21
sean-k-mooneyauto means pin if it was pinned and dont pin if not pinned before the move16:22
dviroelright, so user would have the two options: skip pinned instances (boolen) and define the pin/unpin policy. I understood that would apply to all instances within an audit.16:56
sean-k-mooneyya i mean we coudl make a differnet design chocice as these are all trade off in complexity17:05
sean-k-mooneybut to me those are two diffent chocies adn i feel liek we shoudl expose both17:05
sean-k-mooneyand to be conservitive i think we shoudl excplude instnace that are pinned by defualt to make it safe for public clouds17:06
sean-k-mooneywhere changign an az by accinded could be condier a breach of the cloud sla17:06
sean-k-mooneybut we coudl also incldue them by defautl17:06
sean-k-mooneywe jed nteeed to docuemnt this well17:07
sean-k-mooneymy bigger concern is with project like octaiva that scdhule loadbalncer isntance to diffent AZs via there api policy or k8s cloud-provider-openstack17:08
sean-k-mooneywhere the az of a k8s  worker node is used by the k8s schduler when doing pod placement17:08
sean-k-mooneythose workload likely wont be happy fi there vms are moved across az17:08
sean-k-mooneybut if they are dependign on the az internally they shoudl be pinning to the az17:09
sean-k-mooneyif the vm is floating watcher and an admin is free to assuem it can be moved across azs as they see fit17:09
dviroeli think that the pinning policy makes sense, since there are different use cases for this17:30
dviroelwe can be conservative and set the skip to True also17:30
dviroelby setting to False, users don't need to worry about the policy one. While setting to False, they will likely know the choices that they have around pin/unpinnin17:32
dviroelthat said, we could rename it to "include_az_pinned_instances: false/true" with "false" being the default.17:34
dviroelso the default is to be off17:34
dviroeland user would need to opt for enabling it17:34
opendevreviewWinicius Allan Bezerra da Silva proposed openstack/watcher-specs master: Add Preemptible Instances spec for 2027.1 cycle  https://review.opendev.org/c/openstack/watcher-specs/+/101425217:54
sean-k-mooneyyep19:30
sean-k-mooneyi think i suggested include_az_pinned_instances in the spec to avodi the double negitive of skip false19:31
dviroelyeah, I am updating the spec, lets see if alfredo and joan also agree with these changes..20:21
opendevreviewDouglas Viroel proposed openstack/watcher-specs master: Add spec for availability zone drain  https://review.opendev.org/c/openstack/watcher-specs/+/100785322:09

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