@@ -79,7 +79,7 @@ func (c *FailoverReservationController) queryHypervisorsFromScheduler(ctx contex
7979 // Note: We pass all hypervisors (from all AZs) in EligibleHosts. The scheduler pipeline's
8080 // filter_correct_az filter will exclude hosts that are not in the VM's availability zone.
8181 scheduleReq := reservations.ScheduleReservationRequest {
82- InstanceUUID : "failover-" + vm .UUID ,
82+ InstanceUUID : vm .UUID ,
8383 ProjectID : vm .ProjectID ,
8484 FlavorName : vm .FlavorName ,
8585 FlavorExtraSpecs : flavorExtraSpecs ,
@@ -89,6 +89,7 @@ func (c *FailoverReservationController) queryHypervisorsFromScheduler(ctx contex
8989 IgnoreHosts : ignoreHypervisors ,
9090 Pipeline : pipeline ,
9191 AvailabilityZone : vm .AvailabilityZone ,
92+ SchedulerHints : map [string ]any {"_nova_check_type" : string (api .ReserveForFailoverIntent )},
9293 }
9394
9495 logger .V (1 ).Info ("scheduling failover reservation" ,
@@ -218,7 +219,7 @@ func (c *FailoverReservationController) validateVMViaSchedulerEvacuation(
218219 IgnoreHosts : []string {vm .CurrentHypervisor },
219220 Pipeline : PipelineAcknowledgeFailoverReservation ,
220221 AvailabilityZone : vm .AvailabilityZone ,
221- SchedulerHints : map [string ]any {"_nova_check_type" : "evacuate" },
222+ SchedulerHints : map [string ]any {"_nova_check_type" : string ( api . EvacuateIntent ) },
222223 }
223224
224225 logger .V (1 ).Info ("validating VM via scheduler evacuation" ,
0 commit comments