Services: Rollback openstack resources in case of annotation failure
Upon K8S service creation the LBaaS handler creates all LB resources
at neutron (LB,Listener,Pool,etc) and store them at K8S resource
using annotation.
When K8S service is deleted, the LBaaS handler retrieves LB
resources details from annotation and release them at neutron.
This patch handles the case in which K8S service resource was deleted
before LBaaS handler stored openstack resource details.
Closes-Bug: 1748890
Change-Id: Iea806d32c99cd3cf51a832b576ff4054fc522bd3
(cherry picked from commit 2e6c7eaae7a198cc169f060351b54e9c0586de11)
Reviewed: https:/ /review. openstack. org/553207 /git.openstack. org/cgit/ openstack/ kuryr-kubernete s/commit/ ?id=2b1b53f49a0 cbe2212d62df58e d66afe259ca042
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 2b1b53f49a0cbe2 212d62df58ed66a fe259ca042
Author: Yossi Boaron <email address hidden>
Date: Wed Feb 21 23:54:52 2018 +0200
Services: Rollback openstack resources in case of annotation failure
Upon K8S service creation the LBaaS handler creates all LB resources Pool,etc) and store them at K8S resource
at neutron (LB,Listener,
using annotation.
When K8S service is deleted, the LBaaS handler retrieves LB
resources details from annotation and release them at neutron.
This patch handles the case in which K8S service resource was deleted
before LBaaS handler stored openstack resource details.
Closes-Bug: 1748890
Change-Id: Iea806d32c99cd3 cf51a832b576ff4 054fc522bd3 c169f060351b54e 9c0586de11)
(cherry picked from commit 2e6c7eaae7a198c