Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ func (c *FailoverReservationController) queryHypervisorsFromScheduler(ctx contex
// Schedule the reservation using the SchedulerClient.
// Note: We pass all hypervisors (from all AZs) in EligibleHosts. The scheduler pipeline's
// filter_correct_az filter will exclude hosts that are not in the VM's availability zone.
// FIXME: Using "create" intent as a workaround to avoid ERROR logs for missing
// _nova_check_type hint. Consider adding a dedicated intent during pipeline refactoring.
scheduleReq := reservations.ScheduleReservationRequest{
InstanceUUID: "failover-" + vm.UUID,
InstanceUUID: vm.UUID,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change intentional? Seems unrelated

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes but commit msg misleading changed

ProjectID: vm.ProjectID,
FlavorName: vm.FlavorName,
FlavorExtraSpecs: flavorExtraSpecs,
Expand All @@ -89,6 +91,7 @@ func (c *FailoverReservationController) queryHypervisorsFromScheduler(ctx contex
IgnoreHosts: ignoreHypervisors,
Pipeline: pipeline,
AvailabilityZone: vm.AvailabilityZone,
SchedulerHints: map[string]any{"_nova_check_type": "create"},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the CreateIntent const here? Or does that result in weird import cycles

}

logger.V(1).Info("scheduling failover reservation",
Expand Down
Loading