Migrations fail due to case sensitive paths

Bug #1878579 reported by Lucian Petrut
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
compute-hyperv
Fix Released
Undecided
Lucian Petrut

Bug Description

A few case sensitive path comparisons can lead to migration failures. Windows paths are case insensitive and Hyper-V sometimes flips the path casing, affecting some of Nova's logic.

For example, when cold migrating instances between different CSVs, Nova will not update the VHD image paths if the casing is changed, later on failing to import the instance, leading to a migration failure: http://paste.openstack.org/raw/793566/.

In general, the Nova Hyper-V driver performs case insensitive checks. We'll have to fix all the case sensitive ones.

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to compute-hyperv (master)

Fix proposed to branch: master
Review: https://review.opendev.org/728003

Changed in compute-hyperv:
assignee: nobody → Lucian Petrut (petrutlucian94)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to compute-hyperv (master)

Reviewed: https://review.opendev.org/728003
Committed: https://git.openstack.org/cgit/openstack/compute-hyperv/commit/?id=d96fed4f3c5205b562865eefd4cffe1c1b151d4b
Submitter: Zuul
Branch: master

commit d96fed4f3c5205b562865eefd4cffe1c1b151d4b
Author: Lucian Petrut <email address hidden>
Date: Thu May 14 12:35:08 2020 +0300

    Fix case sensitive path comparisons

    Windows paths are case insensitive. Furthermore, Hyper-V even
    flips the casing in some cases.

    For that reason, we have to ensure that our path comparisons
    are case insensitive.

    Change-Id: I4cb059c6bdcb09f7e0c3217fe34654c8e197b67d
    Closes-Bug: #1878579

Changed in compute-hyperv:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to compute-hyperv (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/729123

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to compute-hyperv (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/729124

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to compute-hyperv (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/729125

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to compute-hyperv (stable/ussuri)

Reviewed: https://review.opendev.org/729124
Committed: https://git.openstack.org/cgit/openstack/compute-hyperv/commit/?id=4ad05407b199fc844ba4716f6e5e62f453374343
Submitter: Zuul
Branch: stable/ussuri

commit 4ad05407b199fc844ba4716f6e5e62f453374343
Author: Lucian Petrut <email address hidden>
Date: Thu May 14 12:35:08 2020 +0300

    Fix case sensitive path comparisons

    Windows paths are case insensitive. Furthermore, Hyper-V even
    flips the casing in some cases.

    For that reason, we have to ensure that our path comparisons
    are case insensitive.

    Change-Id: I4cb059c6bdcb09f7e0c3217fe34654c8e197b67d
    Closes-Bug: #1878579
    (cherry picked from commit d96fed4f3c5205b562865eefd4cffe1c1b151d4b)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to compute-hyperv (stable/train)

Reviewed: https://review.opendev.org/729123
Committed: https://git.openstack.org/cgit/openstack/compute-hyperv/commit/?id=2070a6c798a3eeea32de2751f4088e460f2e0f6a
Submitter: Zuul
Branch: stable/train

commit 2070a6c798a3eeea32de2751f4088e460f2e0f6a
Author: Lucian Petrut <email address hidden>
Date: Thu May 14 12:35:08 2020 +0300

    Fix case sensitive path comparisons

    Windows paths are case insensitive. Furthermore, Hyper-V even
    flips the casing in some cases.

    For that reason, we have to ensure that our path comparisons
    are case insensitive.

    Change-Id: I4cb059c6bdcb09f7e0c3217fe34654c8e197b67d
    Closes-Bug: #1878579
    (cherry picked from commit d96fed4f3c5205b562865eefd4cffe1c1b151d4b)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to compute-hyperv (stable/stein)

Reviewed: https://review.opendev.org/729125
Committed: https://git.openstack.org/cgit/openstack/compute-hyperv/commit/?id=ab9f85b3fbb960578e4926195038c318420839a2
Submitter: Zuul
Branch: stable/stein

commit ab9f85b3fbb960578e4926195038c318420839a2
Author: Lucian Petrut <email address hidden>
Date: Thu May 14 12:35:08 2020 +0300

    Fix case sensitive path comparisons

    Windows paths are case insensitive. Furthermore, Hyper-V even
    flips the casing in some cases.

    For that reason, we have to ensure that our path comparisons
    are case insensitive.

    Change-Id: I4cb059c6bdcb09f7e0c3217fe34654c8e197b67d
    Closes-Bug: #1878579
    (cherry picked from commit d96fed4f3c5205b562865eefd4cffe1c1b151d4b)

tags: added: in-stable-stein
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.