Traceback with neutron plugins which do not support the port binding extension

Bug #1477100 reported by Yves-Gwenael Bourhis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Yves-Gwenael Bourhis

Bug Description

If a Neutron plugin does not support the port binding extension, a::

  KeyError: AttributeError("'Port' object has no attribute 'binding__vnic_type'",)

is issued when trying to edit a port:

summary: - Traceback with neutron pluguns which do not support the port binding
+ Traceback with neutron plugins which do not support the port binding
extension
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
assignee: nobody → Yves-Gwenael Bourhis (yves-gwenael-bourhis)
status: New → In Progress
Changed in horizon:
importance: Undecided → Medium
milestone: none → liberty-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/204561
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=2c2cf962c2cc8c9facc1e578b35f4616a4f65ca5
Submitter: Jenkins
Branch: master

commit 2c2cf962c2cc8c9facc1e578b35f4616a4f65ca5
Author: Yves-Gwenael Bourhis <email address hidden>
Date: Wed Jul 22 13:41:43 2015 +0200

    Handling vnic type as optional

    Currently there is no way to check vnci_type is supported or not from the
    outside of neutron. If it's not supported, when trying to "edit port" a
    Traceback was issued.
    This patch checks if there is a vnci_type before accessing it in the
    "edit port" view.

    Change-Id: Ia3b75cb300832f01efbc933c3d5784af9b93f308
    Closes-bug: #1477100

Changed in horizon:
status: In Progress → Fix Committed
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-2 → 8.0.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.