kuryrnet leftovers after kuryr-controller restart
Bug #1848761 reported by
Luis Tomas Bolivar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-kubernetes |
Fix Released
|
Undecided
|
Luis Tomas Bolivar |
Bug Description
When a namespace is deleted, kuryr-controller is in charge of
deleting its associated openstack resources (net, subnet and ports)
as well as the associated KuryrNet CRD.
As removing OpenStack resources may take some time, if the
kuryr-controller is restarted by any different reason during that
process, the resources are left behind as no new events for the
namespace (already deleted) happen after the restart.
Changed in kuryr-kubernetes: | |
assignee: | nobody → Luis Tomas Bolivar (ltomasbo) |
status: | New → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/689440 /git.openstack. org/cgit/ openstack/ kuryr-kubernete s/commit/ ?id=6d43ad4c787 a553e99ebaf5827 dbd70e385db14c
Committed: https:/
Submitter: Zuul
Branch: master
commit 6d43ad4c787a553 e99ebaf5827dbd7 0e385db14c
Author: Luis Tomas Bolivar <email address hidden>
Date: Fri Oct 18 14:26:45 2019 +0200
Remove namespace leftover upon kuryr-controller restart
When a namespace is deleted, kuryr-controller is in charge of
deleting its associated openstack resources (net, subnet and ports)
as well as the associated KuryrNet CRD.
As removing OpenStack resources may take some time, if the controller is restarted by any different reason during that
kuryr-
process, the resources will be left behind as no new events for the
namespace (already deleted) will happen after the restart. This
patch fixes this problem by ensuring upon reboot that there are no
orphan KuryrNet CRDs for unexisting namespaces, and deleting them
in case there are (including its associated OpenStack resources).
Closes-Bug: 1848761
Change-Id: I0c4852f5bb8167 56cc1bf536354da 20aa3948dc7