Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-14659

ClusterInstance missing status.condition type "RenderedTemplatesApplied" however cluster succeeded provisioning

XMLWordPrintable

    • False
    • None
    • False
    • Low
    • None

      Description of problem:

      While provisioning 297 SNOs via clusterinstances it seems some status.conditions could be missing in some clusterinstance objects for a cluster. The first example of this is cluster vm00022 is missing RenderedTemplatesApplied condition however the cluster appears to have provisioned successfully.

       

      # oc get clusterinstance -n vm00022
      NAME      PROVISIONSTATUS   PROVISIONDETAILS         AGE
      vm00022   Completed         Provisioning completed   30h
      # oc get imageclusterinstall -n vm00022
      NAME      REQUIREMENTSMET           COMPLETED                      CONFIGURATIONIMAGEURL   BAREMETALHOSTREF
      vm00022   HostValidationSucceeded   ClusterInstallationSucceeded                           vm00022
      # oc --kubeconfig /root/hv-vm/kc/vm00022/kubeconfig get clusterversion
      NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.17.0    True        False         2d      Cluster version is 4.17.0

      And the complete yaml output of the clusterinstance

       

      # oc get clusterinstance -n vm00022 vm00022 -o yaml
      apiVersion: siteconfig.open-cluster-management.io/v1alpha1
      kind: ClusterInstance
      metadata:
        annotations:
          kubectl.kubernetes.io/last-applied-configuration: |
            {"apiVersion":"siteconfig.open-cluster-management.io/v1alpha1","kind":"ClusterInstance","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"ztp-clusters-02"},"name":"vm00022","namespace":"vm00022"},"spec":{"additionalNTPSources":["fc00:1005::21"],"baseDomain":"rdu2.scalelab.redhat.com","clusterImageSetNameRef":"openshift-4.17.0","clusterName":"vm00022","clusterNetwork":[{"cidr":"fd01::/48","hostPrefix":64}],"clusterType":"SNO","extraLabels":{"ManagedCluster":{"common":"true","du-profile":"4.17","group-du-sno":"","name":"vm00022","observability":"enabled","sites":"vm00022","vendor":"OpenShift"}},"holdInstallation":false,"installConfigOverrides":"{\"capabilities\":{\"baselineCapabilitySet\": \"None\", \"additionalEnabledCapabilities\": [ \"OperatorLifecycleManager\", \"Ingress\", \"NodeTuning\" ] }}","machineNetwork":[{"cidr":"fc00:1005::/64"}],"networkType":"OVNKubernetes","nodes":[{"automatedCleaningMode":"disabled","bmcAddress":"redfish-virtualmedia+http://[fc00:1005::21]:9000/redfish/v1/Systems/a923c933-53db-56e7-bf80-6c1dc64cd992","bmcCredentialsName":{"name":"vm00022-bmc-secret"},"bootMACAddress":"52:54:00:00:00:16","bootMode":"UEFI","hostName":"vm00022","ironicInspect":"disabled","nodeNetwork":{"config":{"dns-resolver":{"config":{"server":["fc00:1005::21"]}},"interfaces":[{"identifier":"mac-address","ipv4":{"enabled":false},"ipv6":{"address":[{"ip":"fc00:1005::3fd","prefix-length":64}],"autoconf":false,"dhcp":false,"enabled":true},"mac-address":"52:54:00:00:00:16","name":"enp1s0","state":"up","type":"ethernet"}],"routes":{"config":[{"destination":"::/0","next-hop-address":"fc00:1005::1","next-hop-interface":"enp1s0"}]}},"interfaces":[{"macAddress":"52:54:00:00:00:16","name":"enp1s0"}]},"templateRefs":[{"name":"ibi-node-templates-v1","namespace":"open-cluster-management"}]}],"pullSecretRef":{"name":"ibi-pull-secret"},"serviceNetwork":[{"cidr":"fd02::/112"}],"sshPublicKey":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC6351YHGIvE6DZcAt0RXqodzKbglUeCNqxRyd7OOfcN+p88RaKZahg9/dL81IbdlGPbhPPG9ga7BdkLN8VbyYNCjE7kBIKM47JS1pbjeoJhI8bBrFjjp6LIJW/tWh1Pyl7Mk3DbPiZOkJ9HXvOgE/HRh44jJPtMLnzrZU5VNgNRgaEBWOG+j06pxdK9giMji1mFkJXSr43YUZYYgM3egNfNzxeTG0SshbZarRDEKeAlnDJkZ70rbP2krL2MgZJDv8vIK1PcMMFhjsJ/4Pp7F0Tl2Rm/qlZhTn4ptWagZmM0Z3N2WkNdX6Z9i2lZ5K+5jNHEFfjw/CPOFqpaFMMckpfFMsAJchbqnh+F5NvKJSFNB6L77iRCp5hbhGBbZncwc3UDO3FZ9ZuYZ8Ws+2ZyS5uVxd5ZUsvZFO+mWwySytFbsc0nUUcgkXlBiGKF/eFm9SQTURkyNzJkJfPm7awRwYoidaf8MTSp/kUCCyloAjpFIOJAa0SoVerhLp8uhQzfeU= root@e38-h01-000-r650.rdu2.scalelab.redhat.com","templateRefs":[{"name":"ibi-cluster-templates-v1","namespace":"open-cluster-management"}]}}
        creationTimestamp: "2024-10-01T14:05:10Z"
        finalizers:
        - clusterinstance.siteconfig.open-cluster-management.io/finalizer
        generation: 1
        labels:
          app.kubernetes.io/instance: ztp-clusters-02
        name: vm00022
        namespace: vm00022
        resourceVersion: "5122685"
        uid: 4cff5dd5-5b47-48f0-9377-5cbc2367858b
      spec:
        additionalNTPSources:
        - fc00:1005::21
        baseDomain: rdu2.scalelab.redhat.com
        clusterImageSetNameRef: openshift-4.17.0
        clusterName: vm00022
        clusterNetwork:
        - cidr: fd01::/48
          hostPrefix: 64
        clusterType: SNO
        cpuPartitioningMode: None
        extraLabels:
          ManagedCluster:
            common: "true"
            du-profile: "4.17"
            group-du-sno: ""
            name: vm00022
            observability: enabled
            sites: vm00022
            vendor: OpenShift
        holdInstallation: false
        installConfigOverrides: '{"capabilities":{"baselineCapabilitySet": "None", "additionalEnabledCapabilities":
          [ "OperatorLifecycleManager", "Ingress", "NodeTuning" ] }}'
        machineNetwork:
        - cidr: fc00:1005::/64
        networkType: OVNKubernetes
        nodes:
        - automatedCleaningMode: disabled
          bmcAddress: redfish-virtualmedia+http://[fc00:1005::21]:9000/redfish/v1/Systems/a923c933-53db-56e7-bf80-6c1dc64cd992
          bmcCredentialsName:
            name: vm00022-bmc-secret
          bootMACAddress: "52:54:00:00:00:16"
          bootMode: UEFI
          hostName: vm00022
          ironicInspect: disabled
          nodeNetwork:
            config:
              dns-resolver:
                config:
                  server:
                  - fc00:1005::21
              interfaces:
              - identifier: mac-address
                ipv4:
                  enabled: false
                ipv6:
                  address:
                  - ip: fc00:1005::3fd
                    prefix-length: 64
                  autoconf: false
                  dhcp: false
                  enabled: true
                mac-address: "52:54:00:00:00:16"
                name: enp1s0
                state: up
                type: ethernet
              routes:
                config:
                - destination: ::/0
                  next-hop-address: fc00:1005::1
                  next-hop-interface: enp1s0
            interfaces:
            - macAddress: "52:54:00:00:00:16"
              name: enp1s0
          role: master
          templateRefs:
          - name: ibi-node-templates-v1
            namespace: open-cluster-management
        pullSecretRef:
          name: ibi-pull-secret
        serviceNetwork:
        - cidr: fd02::/112
        sshPublicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC6351YHGIvE6DZcAt0RXqodzKbglUeCNqxRyd7OOfcN+p88RaKZahg9/dL81IbdlGPbhPPG9ga7BdkLN8VbyYNCjE7kBIKM47JS1pbjeoJhI8bBrFjjp6LIJW/tWh1Pyl7Mk3DbPiZOkJ9HXvOgE/HRh44jJPtMLnzrZU5VNgNRgaEBWOG+j06pxdK9giMji1mFkJXSr43YUZYYgM3egNfNzxeTG0SshbZarRDEKeAlnDJkZ70rbP2krL2MgZJDv8vIK1PcMMFhjsJ/4Pp7F0Tl2Rm/qlZhTn4ptWagZmM0Z3N2WkNdX6Z9i2lZ5K+5jNHEFfjw/CPOFqpaFMMckpfFMsAJchbqnh+F5NvKJSFNB6L77iRCp5hbhGBbZncwc3UDO3FZ9ZuYZ8Ws+2ZyS5uVxd5ZUsvZFO+mWwySytFbsc0nUUcgkXlBiGKF/eFm9SQTURkyNzJkJfPm7awRwYoidaf8MTSp/kUCCyloAjpFIOJAa0SoVerhLp8uhQzfeU=
          root@e38-h01-000-r650.rdu2.scalelab.redhat.com
        templateRefs:
        - name: ibi-cluster-templates-v1
          namespace: open-cluster-management
      status:
        clusterDeploymentRef:
          name: vm00022
        conditions:
        - lastTransitionTime: "2024-10-01T14:07:04Z"
          message: Validation succeeded
          reason: Completed
          status: "True"
          type: ClusterInstanceValidated
        - lastTransitionTime: "2024-10-01T14:07:04Z"
          message: Rendered templates successfully
          reason: Completed
          status: "True"
          type: RenderedTemplates
        - lastTransitionTime: "2024-10-01T14:07:05Z"
          message: Rendered templates validation succeeded
          reason: Completed
          status: "True"
          type: RenderedTemplatesValidated
        - lastTransitionTime: "2024-10-01T14:17:18Z"
          message: Provisioning completed
          reason: Completed
          status: "True"
          type: Provisioned
        deploymentConditions:
        - lastProbeTime: "2024-10-02T20:46:15Z"
          lastTransitionTime: "2024-10-01T14:07:05Z"
          message: BareMetalHost vm00022/vm00022, is externally provisioned, skipping hardware
            validation
          reason: HostValidationSucceeded
          status: "True"
          type: ClusterInstallRequirementsMet
        - lastProbeTime: "2024-10-02T20:46:15Z"
          lastTransitionTime: "2024-10-01T14:07:05Z"
          message: Cluster installation has succeeded
          reason: ClusterInstallationSucceeded
          status: "True"
          type: ClusterInstallCompleted
        - lastProbeTime: "2024-10-02T20:46:15Z"
          lastTransitionTime: "2024-10-01T14:07:05Z"
          message: Cluster installation has succeeded
          reason: ClusterInstallationSucceeded
          status: "False"
          type: ClusterInstallFailed
        - lastProbeTime: "2024-10-02T20:46:15Z"
          lastTransitionTime: "2024-10-01T14:07:05Z"
          message: Cluster installation has succeeded
          reason: ClusterInstallationSucceeded
          status: "True"
          type: ClusterInstallStopped
        manifestsRendered:
        - apiGroup: metal3.io/v1alpha1
          kind: BareMetalHost
          lastAppliedTime: "2024-10-01T14:07:05Z"
          name: vm00022
          namespace: vm00022
          status: rendered
          syncWave: 1
        - apiGroup: hive.openshift.io/v1
          kind: ClusterDeployment
          lastAppliedTime: "2024-10-01T14:07:05Z"
          name: vm00022
          namespace: vm00022
          status: rendered
          syncWave: 1
        - apiGroup: extensions.hive.openshift.io/v1alpha1
          kind: ImageClusterInstall
          lastAppliedTime: "2024-10-01T14:07:05Z"
          name: vm00022
          namespace: vm00022
          status: rendered
          syncWave: 1
        - apiGroup: v1
          kind: Secret
          lastAppliedTime: "2024-10-01T14:07:05Z"
          name: vm00022
          namespace: vm00022
          status: rendered
          syncWave: 1
        - apiGroup: agent.open-cluster-management.io/v1
          kind: KlusterletAddonConfig
          lastAppliedTime: "2024-10-01T14:07:05Z"
          name: vm00022
          namespace: vm00022
          status: rendered
          syncWave: 2
        - apiGroup: cluster.open-cluster-management.io/v1
          kind: ManagedCluster
          lastAppliedTime: "2024-10-01T14:07:05Z"
          name: vm00022
          status: rendered
          syncWave: 2
        observedGeneration: 1
      

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

      Hub and deployed clusters 4.17.0

      ACM - 2.12.0-DOWNSTREAM-2024-09-27-14-56-41

      How reproducible:

      Steps to Reproduce:

      1.  
      2.  
      3. ...

      Actual results:

      Expected results:

      Additional info:

              sakhoury@redhat.com Sharat Akhoury
              akrzos@redhat.com Alex Krzos
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: