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

import cluster failure related to cluster curator

XMLWordPrintable

    • QE Sprint 2023-07, QE Sprint 2023-08, QE Sprint 2023-09
    • Critical
    • No

      Description of problem:

      import automation testcases are all failing for the same reason, related to the yaml editor:

      https://tests-jenkins-csb-rhacm.apps.ocp-c1.prod.psi.redhat.com/job/qe-acm-automation-poc/job/clc-e2e-pipeline/1287/console 

            cy:command ✔  find	div.lines-content
            cy:command ✔  wrap	apiVersion: cluster.open-cluster-management.io/v1
                          kind: ManagedCluster
                          metadata:
                            name: clc-roks-41-1x4eg-roks-kubeconfig
                            labels:
                              name: clc-roks-41-1x4eg-roks-kubeconfig
                              cloud: auto-detect
                              vendor: auto-detect
                              cluster.open-cluster-management.io/clusterset: clc-automation-imports
                              owner: acmqe-clc-auto
                            annotations: {}
                          spec:
                            hubAcceptsClient: true
                          ---
                          apiVersion: v1
                          kind: Secret
                          metadata:
                            name: auto-import-secret
                            namespace: clc-roks-41-1x4eg-roks-kubeconfig
                          stringData:
                            autoImportRetry: "2"
                            kubeconfig: "********************"
                          type: Opaque
                           
            cy:command ✘  get	@yamlInnerText
            cy:command ✘  assert	expected **'apiVersion: cluster.open-cluster-management.io/v1\nkind: ManagedCluster\nmetadata:\n  name: clc-roks-41-1x4eg-roks-kubeconfig\n  labels:\n    name: clc-roks-41-1x4eg-roks-kubeconfig\n    cloud: auto-detect\n    vendor: auto-detect\n    cluster.open-cluster-management.io/clusterset: clc-automation-imports\n    owner: acmqe-clc-auto\n  annotations: {}\nspec:\n  hubAcceptsClient: true\n---\napiVersion: v1\nkind: Secret\nmetadata:\n  name: auto-import-secret\n  namespace: clc-roks-41-1x4eg-roks-kubeconfig\nstringData:\n  autoImportRetry: "2"\n  kubeconfig: "********************"\ntype: Opaque\n '** to include **'kind: ClusterCurator'**
       

      When there is no template, there is no cluster curator CR, which is why this fails.

      The problem is this part of the code on managedCluster.js, line 962:

          fillAutomationDetailsforImport: () => {
              cy.get('#templateName-label > .pf-c-form__group-control > .pf-c-select > .pf-c-select__toggle').click()
              cy.get("body").then($body => {
                  if ($body.find(".pf-c-select__menu-item").length > 0) {     // select template from dropdown as there is currently no option to type it in
                      cy.get('.pf-c-select__menu-item').eq(0).click()
                      cy.toggleYamlEditor('#yaml-switch')
                      cy.getYamlEditorTextImport().then(() => {
                          cy.get('@yamlInnerText').should('contain', 'kind: ClusterCurator') // string contains no-break space character U+00A0
                          cy.get('@yamlInnerText').should('contain', 'towerAuthSecret: toweraccess-install')
                          cy.get('@yamlInnerText').should('contain', 'towerAuthSecret: toweraccess-upgrade')
                      })
                  }
              })
          }, 

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

      ACM 2.8.0-DOWNSTREAM-2023-05-05-11-48-38

      How reproducible:

      Steps to Reproduce:

      1.  
      2.  
      3. ...

      Actual results:

      Expected results:

      Additional info:

              nagbetra@redhat.com Napoco Agbetra (Inactive)
              rhn-support-dhuynh David Huynh
              ACM QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: