Optimize Live Migration Scheduling by Preemptively Failing Non-Migratable PCI Requests

Bug #2103631 reported by Uggla
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Medium
Unassigned

Bug Description

Description:

Currently, if a boot request contains non-live-migratable PCI devices, the system proceeds with scheduling live migration before eventually failing. This leads to unnecessary resource consumption.

Expected Behavior:

The system should detect non-live-migratable PCI devices before scheduling the migration and fail immediately, preventing unnecessary scheduling attempts.

Actual Behavior:

The system schedules live migration before checking for non-migratable PCI devices, leading to wasted resources and delayed failure.

Steps to Reproduce:

    Submit a boot request containing non-live-migratable PCI devices.
    Observe that the system proceeds with scheduling live migration.
    Eventually, the migration fails due to the non-migratable PCI devices.

Proposed Fix:

Move the existing checks from the conductor earlier in the process, ideally before the scheduling part, so the request fails immediately.

Note:
This bug could be addressed as part of the refactoring of the migration code path, which currently consists of two separate code paths and should ideally be unified into one.

Revision history for this message
Uggla (rene-ribaud) wrote :

The code is working today, this is more an optimization of the migration process.

Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.