neutron_lbaas.tests.unit.drivers.common.test_agent_callbacks.TestLoadBalancerCallbacks fails due to new description field in subnet

Bug #1554076 reported by Ihar Hrachyshka
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
Ihar Hrachyshka

Bug Description

http://logs.openstack.org/97/288797/5/check/gate-neutron-lbaas-python27/55bdb21/testr_results.html.gz

Traceback (most recent call last):
  File "neutron_lbaas/tests/unit/drivers/common/test_agent_callbacks.py", line 150, in test_get_loadbalancer_active
    ctx, loadbalancer['loadbalancer']['id']
  File "neutron_lbaas/drivers/common/agent_callbacks.py", line 74, in get_loadbalancer
    subnet_dict))
  File "neutron_lbaas/services/loadbalancer/data_models.py", line 183, in from_dict
    return Subnet(**model_dict)
TypeError: __init__() got an unexpected keyword argument 'description'

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

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

Changed in neutron:
assignee: nobody → Ihar Hrachyshka (ihar-hrachyshka)
status: New → In Progress
Changed in neutron:
milestone: none → mitaka-rc1
tags: added: gate-failure
tags: added: lbaas
Changed in neutron:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lbaas (master)

Reviewed: https://review.openstack.org/289362
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=d3386d3e97fa7ff5cf1a0bbb25a6cfed88427d69
Submitter: Jenkins
Branch: master

commit d3386d3e97fa7ff5cf1a0bbb25a6cfed88427d69
Author: Ihar Hrachyshka <email address hidden>
Date: Mon Mar 7 15:36:38 2016 +0100

    Uncouple lbaas object models from neutron core plugin results

    Since I6e1ef53d7aae7d04a5485810cc1db0a8eb125953, subnets have
    'description' field. We should accommodate for it on lbaas side.

    Instead of introducing yet another field for lbaas object, make base
    class filter out unknown fields in from_dict() before passing them into
    __init__.

    Change-Id: Ib00f61cfbc13bf934c31eb476039728830e79e92
    Closes-Bug: #1554076

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron-lbaas 8.0.0.0rc1

This issue was fixed in the openstack/neutron-lbaas 8.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.