-
Bug
-
Resolution: Done-Errata
-
Undefined
-
None
-
4.14.0
-
None
-
No
-
CNF Network Sprint 239, CNF Network Sprint 240, CNF Network Sprint 241, CNF Network Sprint 242, CNF Network Sprint 244
-
5
-
False
-
-
-
Bug Fix
-
Done
Description of problem:
Regarding Metallb external IP allocation: When a service of type LB gets allocated a specific IP (via the metallb.universe.tf/loadBalancerIPs annotation), and there are other LB services in the cluster, and metallb's controller restarts, it will assign the specific IP to a different service. Thus the request for specific IP fails.
Steps to Reproduce:
1. Deploy latest metallb. 2. Apply the following yamls: apiVersion: metallb.io/v1beta1 kind: IPAddressPool metadata: name: ipaddresspool namespace: metallb-system spec: addresses: - 192.168.144.1/32 --- apiVersion: v1 kind: Service metadata: annotations: metallb.universe.tf/loadBalancerIPs: 192.168.144.1 name: nginx namespace: default spec: ports: - nodePort: 32725 port: 80 protocol: TCP targetPort: 80 type: LoadBalancer --- apiVersion: v1 kind: Service metadata: name: nginx1 namespace: default spec: ports: - nodePort: 32726 port: 80 protocol: TCP targetPort: 80 type: LoadBalancer --- apiVersion: v1 kind: Service metadata: name: nginx2 namespace: default spec: ports: - nodePort: 32727 port: 80 protocol: TCP targetPort: 80 type: LoadBalancer 3. See that the "nginx" service is assigned the address 192.168.144.1 4. Delete the controller pod. (may need to repeat more than once) 5. See that the address got assigned to a different service, leaving "nginx" pending.
Actual results:
The address 192.168.144.1 is assigned to a different service, and service "nginx" external-ip moved to pending.
Expected results:
The address 192.168.144.1 remains as the external ip of service "nginx"
Additional info:
Upstream issue: https://github.com/metallb/metallb/issues/1984
- depends on
-
OCPBUGS-19745 MetalLB controller doesn't preserve internal state after reboot
- Closed
- is depended on by
-
OCPBUGS-23160 [release-4.13] MetalLB controller doesn't preserve internal state after reboot
- Closed
- links to
-
RHBA-2023:6837 OpenShift Container Platform 4.14.z bug fix update