Comment 3 for bug 1570596

Revision history for this message
Brandon Logan (brandon-logan) wrote :

Error message looks correct, just wrong status code. Looking at the two modules here:

https://github.com/openstack/neutron-lbaas/blob/master/neutron_lbaas/db/loadbalancer/loadbalancer_dbv2.py#L155
https://github.com/openstack/neutron-lbaas/blob/master/neutron_lbaas/extensions/loadbalancerv2.py#L83

This should inherit from nexceptions.Conflict, not the base NeutronException. Conflict should give the appropriate status code.