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

Namespace and clustername must match in ClusterInstance

XMLWordPrintable

    • False
    • None
    • False
    • None

      The example here: https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.12/html-single/multicluster_engine_operator_with_red_hat_advanced_cluster_management/index#install-render-manifests

       

      Omits the required spec field:

       

        clusterName   <string> -required-
          ClusterName is the name of the cluster.
       

       

      This field must match the namespace.

       

      Otherwise the launched deployment will fail with:

       

      oc get clusterinstance sno-ibi -n sno-ibi -o yamlapiVersion: siteconfig.open-cluster-management.io/v1alpha1kind: ClusterInstancemetadata:  creationTimestamp: "2024-11-21T21:32:56Z"  finalizers:  - clusterinstance.siteconfig.open-cluster-management.io/finalizer  generation: 1  name: sno-ibi  namespace: sno-ibi  resourceVersion: "5739499"  uid: 392406b6-4b5f-4db2-b76b-15a2668f0020spec:  baseDomain: ibi.ptp.eng.rdu2.dc.redhat.com  caBundleRef:    name: ca-bundle  clusterImageSetNameRef: img4.17.5-x86-64-appsub  clusterName: sno  clusterNetwork:  - cidr: 10.128.0.0/14    hostPrefix: 23  cpuPartitioningMode: None  holdInstallation: false  machineNetwork:  - cidr: 192.168.1.0/24  networkType: OVNKubernetes  nodes:  - automatedCleaningMode: disabled    bmcAddress: redfish-virtualmedia://192.168.1.253:8000/redfish/v1/Systems/04b8a54b-f780-494d-b1a6-6181a56c249a    bmcCredentialsName:      name: sno-ibi-bmc-secret    bootMACAddress: 52:54:00:3f:92:9e    bootMode: UEFI    hostName: sno.ibi.ptp.eng.rdu2.dc.redhat.com    ironicInspect: disabled    nodeNetwork:      config:        dns-resolver:          config:            server:            - 192.168.1.254        interfaces:        - ipv4:            address:            - ip: 192.168.1.12              prefix-length: 24            dhcp: false            enabled: true          ipv6:            enabled: false          mac-address: 52:54:00:3f:92:9e          name: enp1s0          state: up          type: ethernet        routes:          config:          - destination: 0.0.0.0/0            next-hop-address: 192.168.1.254            next-hop-interface: enp1s0            table-id: 254      interfaces:      - macAddress: 52:54:00:3f:92:9e        name: enp1s0    role: master    rootDeviceHints:      deviceName: /dev/sda    templateRefs:    - name: ibi-node-templates-v1      namespace: open-cluster-management  pullSecretRef:    name: pull-secret  serviceNetwork:  - cidr: 172.30.0.0/16  sshPublicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCsBlgO/t95I+uOAK1nJRDCyRrRGbNXV8yQqClbo/AMWjICiUXo0CTzoxz7Vn47Qe1+M0IOT+5bnyBpjFhGw8NwP/APPpCQ65h6G+d2kBW1J1JMMIPFfInqDxflmBnkfOUA0OwtiVhkpneR9xIHQRivxsX6lQhcyZeAW5V4nsmWmXsqdHH8zMvHQO73pryWbyOH3Om9c3N/J5oyJtRMbDwbhmERoOZGMIH1isU9URKyMvS5CQDz3HigcU/zOLKSjr3x/tVbSfowQjEHuWkZFe4suUuCEHV5HaPoMKVNqUHCdUhl3jNBnJiBVWRluO8msK7WPDgXrTL01JPJyYN+oX25sMfVq7zgvhX1isNaekBIw/7PgHebHixsrkPqk47IDo+8OfDwo3zZDAqLo6SGwFUr/vESqkCQOc4p36G0PJ7Mkk3Wx/RcRCXie5tdGBnpYguyEcyt2KfaVfLNvnCte64aovlCvA5OoNzod9Mmv7AhPjm7pdeIcz7z1jM/o4vOx00=    kni@bastion.ptp.rdu2.eng.redhat.com  templateRefs:  - name: ibi-cluster-templates-v1    namespace: open-cluster-managementstatus:  conditions:  - lastTransitionTime: "2024-11-21T21:32:56Z"    message: Validation succeeded    reason: Completed    status: "True"    type: ClusterInstanceValidated  - lastTransitionTime: "2024-11-21T21:32:56Z"    message: Rendered templates successfully    reason: Completed    status: "True"    type: RenderedTemplates  - lastTransitionTime: "2024-11-21T21:32:56Z"    message: Rendered manifests failed dry-run validation    reason: Failed    status: "False"    type: RenderedTemplatesValidated  manifestsRendered:  - apiGroup: metal3.io/v1alpha1    kind: BareMetalHost    lastAppliedTime: "2024-11-21T21:32:56Z"    message: namespaces "sno" not found    name: sno.ibi.ptp.eng.rdu2.dc.redhat.com    namespace: sno    status: failed    syncWave: 1  - apiGroup: hive.openshift.io/v1    kind: ClusterDeployment    lastAppliedTime: "2024-11-21T21:32:56Z"    message: namespaces "sno" not found    name: sno    namespace: sno    status: failed    syncWave: 1  - apiGroup: extensions.hive.openshift.io/v1alpha1    kind: ImageClusterInstall    lastAppliedTime: "2024-11-21T21:32:56Z"    message: namespaces "sno" not found    name: sno    namespace: sno    status: failed    syncWave: 1  - apiGroup: v1    kind: Secret    lastAppliedTime: "2024-11-21T21:32:56Z"    message: namespaces "sno" not found    name: sno.ibi.ptp.eng.rdu2.dc.redhat.com    namespace: sno    status: failed    syncWave: 1  - apiGroup: agent.open-cluster-management.io/v1    kind: KlusterletAddonConfig    lastAppliedTime: "2024-11-21T21:32:56Z"    message: namespaces "sno" not found    name: sno    namespace: sno    status: failed    syncWave: 2  - apiGroup: cluster.open-cluster-management.io/v1    kind: ManagedCluster    lastAppliedTime: "2024-11-21T21:32:56Z"    name: sno    status: validated    syncWave: 2  observedGeneration: 1 

       

      Note the error:
      message: namespaces "sno" not found name: sno namespace: sno status: failed

              rhn-support-amolnar Alexandra Molnar
              achuzhoy@redhat.com Alexander Chuzhoy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: