← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1498352] Re: Traceback when neutron does not support port binding extension in admin screen

 

Reviewed:  https://review.openstack.org/505842
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=5d40431206352b1b0a0b989f4174a04dff11c992
Submitter: Zuul
Branch:    master

commit 5d40431206352b1b0a0b989f4174a04dff11c992
Author: Akihiro Motoki <amotoki@xxxxxxxxx>
Date:   Wed Sep 20 22:40:57 2017 +0000

    Handle binding__host_id conditionally
    
    binding__host_id (binding:host_id in the Neutron API) only exists
    when portbinding neutron extension is available. This extension is
    available in almost all cases as Nova depends on the extension,
    but it is better to check the availability in horizon side as
    we do so in other places in horizon.
    
    Change-Id: Id7fa8ebcdde09547fd64892a787834bc4c543acf
    Closes-Bug: #1498352


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1498352

Title:
  Traceback when neutron does not support port binding extension in
  admin screen

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Similar to https://bugs.launchpad.net/horizon/+bug/1477100

  In the admin's edit port view, binding:host_id is expected as part of the port object. This gives a traceback when plugins don't use the port binding extension.
  ...
  ....
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/networks/ports/views.py", line 99, in get_initial
  initial['binding__host_id'] = port['binding__host_id']
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/base.py", line 156, in __getitem__
  raise KeyError(e)
  KeyError: AttributeError("'Port' object has no attribute 'binding__host_id'",)

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1498352/+subscriptions


References