Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-2372

Duplicate addresses when the controller is restarted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 4.10.0
    • Networking / Metal LB
    • None
    • CNF Network Sprint 226
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

      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:

       

            fpaoline@redhat.com Federico Paolinelli
            fpaoline@redhat.com Federico Paolinelli
            Arti Sood Arti Sood
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: