Unused members are not removed from pool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-kubernetes |
Fix Released
|
Undecided
|
Maysa de Macedo Souza |
Bug Description
In the case when two ports with same targetport are created, if only one of the targetPorts is updated the unused member(s) from the respective pool is not removed and the new ones are added.
For example, if the following spec is applyed:
apiVersion: v1
kind: Service
metadata:
name: demo-test2
spec:
ports:
- port: 80
name: port-80
protocol: TCP
targetPort: 8080
- port: 443
name: port-443
protocol: TCP
targetPort: 8080
selector:
app: demo
type: ClusterIP
and then the target port of one of them is modified, the resulted members will be:
$ openstack loadbalancer member list 950464ff-
+------
| id | name | project_id | provisioning_status | address | protocol_port | operating_status | weight |
+------
| 73f07d84-
| 9a849eec-
| 642ceb73-
| d3dd8189-
+------
When should be:
$ openstack loadbalancer member list 950464ff-
+------
| id | name | project_id | provisioning_status | address | protocol_port | operating_status | weight |
+------
| 642ceb73-
| d3dd8189-
+------
If both targetPorts are updated with same value in the service spec the correct members are presented in the pool.
Changed in kuryr-kubernetes: | |
assignee: | nobody → Maysa de Macedo Souza (maysa) |
Fix proposed to branch: master /review. openstack. org/633995
Review: https:/