]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Return meaningful error message on pool creation error
authorEugene Nikanorov <enikanorov@mirantis.com>
Thu, 20 Mar 2014 14:43:18 +0000 (18:43 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Fri, 21 Mar 2014 11:15:08 +0000 (15:15 +0400)
commit98b3f4a95104234e5106bc1ee58efd427da96c00
tree948f0331aedb8cef44f57f7747fa8b1a50a0f24a
parentfeb7d126d55a98bc5076f1437a91bb40479540ae
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
neutron/extensions/lbaas_agentscheduler.py
neutron/extensions/loadbalancer.py
neutron/services/loadbalancer/plugin.py
neutron/tests/unit/services/loadbalancer/test_agent_scheduler.py