octavia/octavia/db
Brian Haley 17ae2625da Handle listener not found during loadbalancer status update
If a call to update loadbalancer status cannot find the
specified listener, the API server will throw an exception:

"Error while updating the load balancer status: 'NoneType'
 object has no attribute 'update'"

Change ListenerRepository.update() to check the DB query
returned a record, and if not, raise a NotFound exception
back to the caller.

Change-Id: I6693be3e2d2f0e34f19f07f55b0429f8fda317b2
Task: 41108
Story: 2008254
2020-11-12 12:29:30 -05:00
..
migration Add SCTP support in API 2020-09-10 11:23:04 +00:00
__init__.py Add license for empty __init__.py 2018-03-14 07:02:56 +09:00
api.py Make health checks resilient to DB outages 2018-09-11 12:21:22 -06:00
base_models.py Availability Zone admin API 2019-11-22 09:49:17 -08:00
healthcheck.py Add oslo middleware healthcheck to Octavia API 2020-03-19 11:24:16 -07:00
models.py Refactoring amphora stats driver interface 2020-09-08 15:32:04 -07:00
prepare.py Add ALPN support for TLS-terminated HTTPS LBs 2020-08-27 13:19:52 +02:00
repositories.py Handle listener not found during loadbalancer status update 2020-11-12 12:29:30 -05:00