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

[CAPI Azure] Fail to create cluster by auth installer with managed identity from Azure VM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • None
    • 4.17
    • None
    • Critical
    • Yes
    • Approved
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • Done

      Description of problem:

      Created VM instances on Azure, and assign managed identity to it, then created cluster in this VM, installer got error as below:
      
      # ./openshift-install create cluster --dir ipi --log-level debug
      ...
      time="2024-07-01T00:52:43Z" level=info msg="Waiting up to 15m0s (until 1:07AM UTC) for network infrastructure to become ready..."
      ...
      time="2024-07-01T00:52:58Z" level=debug msg="I0701 00:52:58.528931    7149 recorder.go:104] \"failed to create scope: failed to configure azure settings and credentials for Identity: failed to create credential: secret can't be empty string\" logger=\"events\" type=\"Warning\" object={\"kind\":\"AzureCluster\",\"namespace\":\"openshift-cluster-api-guests\",\"name\":\"jima0701-hxtzd\",\"uid\":\"63aa5b17-9063-4b33-a471-1f58c146da8a\",\"apiVersion\":\"infrastructure.cluster.x-k8s.io/v1beta1\",\"resourceVersion\":\"1083\"} reason=\"CreateClusterScopeFailed\""
      

      Version-Release number of selected component (if applicable):

        4.17 nightly build  

      How reproducible:

        Always

      Steps to Reproduce:

          1. Created VM and assigned managed identity to it 
          2. Create cluster in this VM
          3.
          

      Actual results:

          cluster is created failed

      Expected results:

          cluster is installed successfully

      Additional info:

          

       

              jhixson_redhat John Hixson
              jinyunma Jinyun Ma
              Jinyun Ma Jinyun Ma
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: