error deleting namespace resources due to a race with ports recycling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-kubernetes |
Fix Released
|
Critical
|
Luis Tomas Bolivar |
Bug Description
When a namespace is deleted all its associated resources (pods, svc, rc, ...) are deleted too. This creates a race when pooling is enabled as when pods are deleted its associated ports are marked to be reused and put into the recyclable_ports dict.
The problem arises as this dict of ports to be reused is checked periodically (15 second interval by default) and the function to remove all the ports associated to a given network can be executed at the same time, therefore calling function trigger_
In addition, if several namespaces are deleted concurrently, the handler will call delete_
Changed in kuryr-kubernetes: | |
assignee: | nobody → Luis Tomas Bolivar (ltomasbo) |
description: | updated |
Changed in kuryr-kubernetes: | |
importance: | Undecided → Critical |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. openstack. org/590739
Review: https:/