Unrescue fails if the configdrive was not detached

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

Bug Description

If the rescue operation fails, the instance is attempted to be unrescued. If the original configdrive was not detached during the rescue operation, the unrescue operation will fail as it will attempt to attach an already attached disk.

summary: - unrescue fails if the configdrive was not detached
+ Unrescue fails if the configdrive was not detached
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to compute-hyperv (master)

Reviewed: https://review.openstack.org/224709
Committed: https://git.openstack.org/cgit/stackforge/compute-hyperv/commit/?id=4f29c9ff11fe505f0b31c12f443766b1cdd5c28d
Submitter: Jenkins
Branch: master

commit 4f29c9ff11fe505f0b31c12f443766b1cdd5c28d
Author: Lucian Petrut <email address hidden>
Date: Thu Sep 17 13:59:23 2015 +0300

    Fix unrescue operation in case of already mounted configdrive

    If the rescue operation fails, the instance is attempted to be
    unrescued.

    If the original configdrive was not detached during the
    rescue operation, the unrescue operation will fail as it
    will attempt to attach an already attached disk.

    This patch fixes the issue by checking if the configdrive is
    already mounted before attempting to reattach it.

    Closes-bug: #1496794

    Change-Id: I64884dad80d9594663c97c2afc9bdac3b26a2310

Changed in compute-hyperv:
status: New → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to compute-hyperv (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/228451

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

Reviewed: https://review.openstack.org/228451
Committed: https://git.openstack.org/cgit/stackforge/compute-hyperv/commit/?id=e777fe7b2bb25dac97c235c19fd8002bd96de248
Submitter: Jenkins
Branch: stable/kilo

commit e777fe7b2bb25dac97c235c19fd8002bd96de248
Author: Lucian Petrut <email address hidden>
Date: Thu Sep 17 13:59:23 2015 +0300

    Fix unrescue operation in case of already mounted configdrive

    If the rescue operation fails, the instance is attempted to be
    unrescued.

    If the original configdrive was not detached during the
    rescue operation, the unrescue operation will fail as it
    will attempt to attach an already attached disk.

    This patch fixes the issue by checking if the configdrive is
    already mounted before attempting to reattach it.

    Closes-bug: #1496794

    Change-Id: I64884dad80d9594663c97c2afc9bdac3b26a2310
    (cherry picked from commit 4f29c9ff11fe505f0b31c12f443766b1cdd5c28d)

tags: added: in-stable-kilo
Claudiu Belu (cbelu)
Changed in compute-hyperv:
importance: Undecided → Medium
assignee: nobody → Lucian Petrut (petrutlucian94)
Claudiu Belu (cbelu)
Changed in compute-hyperv:
status: Fix Committed → Fix Released
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.