-
Bug
-
Resolution: Done
-
Undefined
-
None
-
4.10.0
-
None
-
None
-
CNF Network Sprint 226
-
1
-
Rejected
-
False
-
Description of problem:
When restarting the controller we might get services with duplicated lb ip even without the annotation
Version-Release number of selected component (if applicable):
How reproducible:
There's a casual component which is the order in which the controller receives the services when it restarts
Steps to Reproduce:
1. Create an ipaddresspool (or an addresspool) 2. Create a service of type lb 3. Stop the controller 4. Create another service 5. Restart the controller
Actual results:
If the controller receives the service without the ip before the other one, it will assign the first ip from the pool, which is the same of the service that already has the IP. Then it receives the other, it errors but doesn't change the ip on the other service, so we have two services with the same IP.
Expected results:
We shouldn't have services with the same IP unless they have the allow-shared-ip annotation. In the above scenario, the controller should see that the ip of the second service is used and assign a new IP.
Additional info:
- links to