HyperV destroy vm fails on Windows Server 2008R2

Bug #1467409 reported by Adelina Tuvenie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Adelina Tuvenie

Bug Description

Delete vm fails on Windows Server 2008R2 with the following error:

WindowsError: [Error 145] The directory is not empty: 'C:\\OpenStack\\Instances\\instance-00000003'

This is happening because on Windows 2008R2 it takes a while (1-2 sec. ) for Hyper-V to delete the instance specific files that it stores in the instance folder.

summary: - HyperV destroy vm fails on Windows Server 2008
+ HyperV destroy vm fails on Windows Server 2008R2
tags: added: hyper-v
Claudiu Belu (cbelu)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Changed in nova:
assignee: nobody → Adelina Tuvenie (atuvenie)
status: Confirmed → In Progress
Changed in nova:
importance: Medium → Low
status: In Progress → Triaged
Claudiu Belu (cbelu)
tags: added: kilo-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/194089
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=d2735ddb0666381bfbc5fa5f8d4b2157cceeabbb
Submitter: Jenkins
Branch: master

commit d2735ddb0666381bfbc5fa5f8d4b2157cceeabbb
Author: Adelina Tuvenie <email address hidden>
Date: Mon Jun 22 00:48:28 2015 -0700

    Fixes "Hyper-V destroy vm fails on Windows Server 2008R2"

    Delete vm fails on Windows Server 2008R2 with the following error:
    [Error 145] The directory is not empty: 'C:\\OpenStack\\Instances\\instance-00000003'

    This is happening because on Windows 2008R2 it takes a while (1-2 sec. )
    for Hyper-V to delete the instance specific files that it stores in the
    instance folder.

    This patch fixes this bug by adding a retry in the delete method if
    it gets that specific error: WindowsError 145

    Closes Bug: 1467409
    Change-Id: I8c194320dfa0c9a00ede3cd5bf38446f896156e3

Changed in nova:
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/kilo)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (stable/kilo)

Change abandoned by Claudiu Belu (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/212487
Reason: Abandoning this change in favor for https://review.openstack.org/#/c/214307/

Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-2 → 12.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Dave Walker (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/223290
Reason: Kilo is now approaching EOL. We are in freeze pending the final release and no freeze exception has been raised. Therefore I am abandoning this change, if it is required in the release - please restore and raise a request. Thanks

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.