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

MAPI2CAPI: Watch Filters on MachineSync assume InfraMachine shares name with CAPI Machine

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • CLOUD Sprint 277, CLOUD Sprint 278
    • 2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      We set up watches for the machine sync controller to rewrite reconciles  for an InfraMachine to be for a MAPI machine with the same name. 
      
      This assumes that the infra machine and CAPI machine (therefore MAPI machine) share the same name.
      
      If the CAPI machine is created from a MAPI one, this assumption holds. However, if we onboard an existing CAPI machine, it may not hold as there is no requirement that the CAPI Infra Machine share a name with the CAPI Machine.
      
      We should update the watches to resolve by owner reference (which are in place as part of the CAPI contract), to missing reconciles and this being an issue.

      How reproducible:

          Always

      Steps to Reproduce:

          1. Create CAPI Machine, with infra machine of different name.
          2. Create MAPI Machine with spec.AuthoritativeAPI of CAPI (onboard the CAPI Machine)
             

              rh-ee-tbarberb Theo Barber-Bany
              rh-ee-tbarberb Theo Barber-Bany
              None
              None
              Zhaohua Sun Zhaohua Sun
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: