Hyper-V: log warning on PortBindingFailed exception

Bug #1744032 reported by Claudiu Belu
6
This bug affects 1 person
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-hyperv-agent agent.
Any OpenStack version.

Logs & Configs
==============

Logs: http://paste.openstack.org/show/646888/

Tags: hyper-v
Claudiu Belu (cbelu)
tags: added: hyper-v
Changed in nova:
assignee: nobody → Claudiu Belu (cbelu)
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/539584

Changed in nova:
status: New → In Progress
Matt Riedemann (mriedem)
Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/539584
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b80c245ba529ab603910b5c0e2fa466bf0b6a146
Submitter: Zuul
Branch: master

commit b80c245ba529ab603910b5c0e2fa466bf0b6a146
Author: Claudiu Belu <email address hidden>
Date: Sat Jan 13 17:58:56 2018 -0800

    hyper-v: Logs tips on PortBindingFailed

    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: is there an L2 agent on the host alive and reporting to
    neutron, and if neutron Hyper-V agent is used, make sure to install
    networking-hyperv and configure neutron-server to use the "hyperv"
    mechanism_driver.

    Change-Id: Idceeb08e1452413e3b10ecd0a65f71d4d82866e0
    Closes-Bug: #1744032

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/550529

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

Reviewed: https://review.openstack.org/550529
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e2d08409f168aadef9223fae5fedfea27d74623d
Submitter: Zuul
Branch: stable/queens

commit e2d08409f168aadef9223fae5fedfea27d74623d
Author: Claudiu Belu <email address hidden>
Date: Sat Jan 13 17:58:56 2018 -0800

    hyper-v: Logs tips on PortBindingFailed

    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: is there an L2 agent on the host alive and reporting to
    neutron, and if neutron Hyper-V agent is used, make sure to install
    networking-hyperv and configure neutron-server to use the "hyperv"
    mechanism_driver.

    Change-Id: Idceeb08e1452413e3b10ecd0a65f71d4d82866e0
    Closes-Bug: #1744032
    (cherry picked from commit b80c245ba529ab603910b5c0e2fa466bf0b6a146)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 17.0.2

This issue was fixed in the openstack/nova 17.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 18.0.0.0b1

This issue was fixed in the openstack/nova 18.0.0.0b1 development milestone.

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.