Hyper-V driver fails while creating instances on Windows / Hyper-V Server 2008 R2

Bug #1356884 reported by Claudiu Belu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Robert Tingirica

Bug Description

Creating an instance on a Hyper-V / Windows Server 2008 R2 compute node fails due to a WMI exception. This happens while creating creating and configuring the resources to be added to the VM.

The resources already have set default values for certain properties, while other properties have NULL. Trying to set a new value over the NULL causes the exception:
code:
drive = self._get_new_resource_setting_data(res_sub_type)
drive.Parent = ctrller_path

exception:
2014-08-13 09:57:07.507 2468 TRACE nova.compute.manager [instance: a30cd0c2-77ce-43d1-8399-5a876aa9a4f6] x_wmi: <x_wmi: Unexpected COM Error (-2147352567, 'Exception occurred.', (0, u'SWbemObjectEx', u'Provider is not capable of the attempted operation ', None, 0, -2147217372), None)>

Trace:
http://paste.openstack.org/show/94293/

Tags: hyper-v
Claudiu Belu (cbelu)
Changed in nova:
assignee: nobody → Claudiu Belu (cbelu)
tags: added: hyper-v
summary: Hyper-V agent fails while creating isntance on Windows / Hyper-V Server
- 2008
+ 2008 R2
summary: - Hyper-V agent fails while creating isntance on Windows / Hyper-V Server
+ Hyper-V agent fails while creating instances on Windows / Hyper-V Server
2008 R2
description: updated
Changed in nova:
status: New → Triaged
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/114251

Changed in nova:
status: Triaged → In Progress
summary: - Hyper-V agent fails while creating instances on Windows / Hyper-V Server
- 2008 R2
+ Hyper-V driver fails while creating instances on Windows / Hyper-V
+ Server 2008 R2
Changed in nova:
assignee: Claudiu Belu (cbelu) → Alessandro Pilotti (alexpilotti)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/116507

Changed in nova:
assignee: Alessandro Pilotti (alexpilotti) → Robert Tingirica (rtingirica)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Claudiu Belu (<email address hidden>) on branch: master
Review: https://review.openstack.org/114251

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit b208f249d94535381f05b261a5c38446d1daf8cb
Author: Alessandro Pilotti <email address hidden>
Date: Sun Aug 24 16:51:22 2014 +0300

    Fixes Hyper-V driver WMI issue on 2008 R2

    Trying to assign properties on default Hyper-V resource setting data
    WMI objects results in an exceptions before Hyper-V 2012.
    Cloning the objects before assigning them solves the issue.

    A similar approach was previous already implemented and has been
    incorrectly removed during a refactoring.

    Co-Authored-By: Robert Tingirica <email address hidden>
    Change-Id: If119154f8b4756be9f98c8acd376003c52eff44f
    Closes-Bug: #1356884

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-1 → 2015.1.0
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.