Hyper-V: log warning on PortBindingFailed exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Claudiu Belu | ||
Queens |
Fix Committed
|
Medium
|
Matt Riedemann |
Bug Description
Description
===========
When spawning an Hyper-V instance with NICs having the vif_type "hyperv", neutron will fail to bind the port to the Hyper-V host if the neutron server doesn't have the "hyperv" mechanism driver installed and configured, resulting in a PortBindingFailed exception on the nova-compute side.
When this exception is encountered, the logs will say to check the neutron-server logs, but the problem and its solution are not obvious or clear, resulting in plenty of questions / reports, all having the same solution: install networking-hyperv and configure neutron-server to use the "hyperv" mechanism_driver.
Steps to reproduce
==================
1. Do not configure neutron-server with a "hyperv" mechanism_driver.
2. Spawn an instance having NICs with the vif_type "hyperv".
Expected result
===============
PortBindingFailed, and a clear explanation and / or solution for it.
After the execution of the steps above, what should have
happened if the issue wasn't present?
Actual result
=============
PortBindingFailed, telling users to check the neutron-server logs, which doesn't contain the obvious problem / solution.
Environment
===========
Hyper-V compute nodes, with neutron-
Any OpenStack version.
Logs & Configs
==============
tags: | added: hyper-v |
Changed in nova: | |
assignee: | nobody → Claudiu Belu (cbelu) |
Changed in nova: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/539584
Review: https:/