LbaaS agent scheduling error exposes implementation

Bug #1295214 reported by Eugene Nikanorov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Eugene Nikanorov

Bug Description

Right now when there is no active lbaas agent for HAProxy driver (or other agent-based driver), the following error is returned to the client:

"No eligible loadbalancer agent found for pool <pool_id>"

We need to return some more generic error to the user, skipping the notion of agent.

Also, pool will remain in PENDING_CREATE state, while it probably should move to an ERROR state.

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

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

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/81883
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=98b3f4a95104234e5106bc1ee58efd427da96c00
Submitter: Jenkins
Branch: master

commit 98b3f4a95104234e5106bc1ee58efd427da96c00
Author: Eugene Nikanorov <email address hidden>
Date: Thu Mar 20 18:43:18 2014 +0400

    Return meaningful error message on pool creation error

    Instead of returning exception specific to haproxy (agent-based),
    return more generic BackendNotFound exception.
    It also could be used later when binding to devices will be
    introduced. That exception will indicate scheduling failure, e.g.
    inability to find appropriate backend for the resource.
    Resource (pool) is then marked with ERROR state with corresponding
    error description.

    Change-Id: Ic18ff20102b4bb2b97e7b186fcf797133bd3ba3d
    Closes-Bug: #1295214

Changed in neutron:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in neutron:
milestone: none → icehouse-rc1
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-rc1 → 2014.1
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.