avinetworks / openstack-lbaasv2

Repository of Avi's Driver for OpenStack LBaaSv2
Apache License 2.0
0 stars 2 forks source link

Handle driver api errors #10

Closed anantpatil closed 4 years ago

anantpatil commented 4 years ago
  1. Don't raise exceptions from Contrail Driver methods Don't raise exception/errors in the Contrail Driver implementation methods for LBaaSv2 APIs. Raising an exception/error is causing contrail-svc-monitor process to crash.
  2. Handle not-found error in delete LB In Contrail Driver, when delete loadbalancer is invoked, we are checking the LB object in Cotrail Config DB. Because of asynchronous method of API handling in Contrail, object from config DB is sometimes deleted even before Driver can handle the method. The Driver will then fail to fetch the object from DB and get into null-pointer kind of error. Handle this error by relying on the data passed to the driver if the driver cannot find the object in DB. The data passed to driver has a copy of LB details that can be used to delete the objects from Avi.
anantpatil commented 4 years ago

Merged this to get early feed back from test suites.