Nova Hyper-V driver fails occasionally with a x_wmi_uninitialised_thread exception

Bug #1298034 reported by Alessandro Pilotti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
networking-hyperv
Invalid
Undecided
Unassigned

Bug Description

The Nova Hyper-V driver can fail occasionally with:

x_wmi_uninitialised_thread ("WMI returned a syntax error: you're probably running inside a thread without first calling pythoncom.CoInitialize[Ex]"

http://64.119.130.115/82904/14/Hyper-V_logs/hv-compute1/neutron-hyperv-agent.log.gz

Each thread that uses COM needs to initialize COM by calling pythoncom.CoInitialize or pythoncom.CoInitializeEx.

Error stack trace:

http://64.119.130.115/82904/14/Hyper-V_logs/hv-compute1/neutron-hyperv-agent.log.gz

tags: added: hyper-v
Changed in nova:
importance: Undecided → Low
Changed in nova:
status: New → Confirmed
importance: Low → High
assignee: nobody → Alessandro Pilotti (alexpilotti)
milestone: none → juno-1
Revision history for this message
John Garbutt (johngarbutt) wrote :

We use milestones only at the very end of the milestone to track bugs that should block the release of the milestone. Please use tags not milestones to track bugs, try things like: my_bug_topic_milestone_name

Changed in nova:
milestone: juno-1 → none
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/128136

Changed in nova:
status: Confirmed → In Progress
Changed in neutron:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
assignee: nobody → Alessandro Pilotti (alexpilotti)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Alessandro Pilotti (<email address hidden>) on branch: master
Review: https://review.openstack.org/128139
Reason: Wrong change Id

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

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

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

Change abandoned by Alessandro Pilotti (<email address hidden>) on branch: master
Review: https://review.openstack.org/128136

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Alessandro Pilotti (<email address hidden>) on branch: master
Review: https://review.openstack.org/128140

Revision history for this message
Joe Gordon (jogo) wrote :

patch was abandoned, not sure why though

Changed in nova:
status: In Progress → New
importance: High → Medium
Revision history for this message
Alessandro Pilotti (alexpilotti) wrote :

After some additional tests, since the driver uses green threads, the issue cannot be related to unitialized COM status on the main thread. Cases where this issue appeared proved to be unrelated, so further research in necessary.

Changed in nova:
importance: Medium → Undecided
status: New → Incomplete
Sean Dague (sdague)
Changed in nova:
assignee: Alessandro Pilotti (alexpilotti) → nobody
Changed in neutron:
assignee: Alessandro Pilotti (alexpilotti) → nobody
tags: removed: hyper-v
no longer affects: neutron
Revision history for this message
Claudiu Belu (cbelu) wrote :

Marked bug as invalid. The issue has not been observed in ~18 months. Plus, in the meantime, we've given up WMI in favor of PyMI, which is a lot more reliable.

Changed in networking-hyperv:
status: New → Invalid
Changed in nova:
status: Incomplete → Invalid
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.