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

Update api url logic for Ansible inventory

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • ACM 2.13.0
    • ACM 2.13.0
    • Installer, QE
    • 3
    • False
    • None
    • False
    • None

      The issue we are facing is that our add inventory job from the e2e test stage is parsing the api url for the cluster name which adds hcp-rhov as the inventory
      however, when we run the mce tests or the acm tests, the inventory tries to look up us-west-1 as the inventory

      [WARNING]: Job type defined but prompt for job type on launch is not set in tower job
      Requesting tower to run job template mce-test-213
      ERROR: Unable to request job template invocation Unable to find inventory: Unable to get any results when looking up openshift-inventory-us-west-1

      I would take a look at the jenkinsfiles (vincent can provide where they are)
      and the https://github.com/thuyn-581/acmqe-ansible/blob/main/add-ocp-inventory.yml playbook to understand how the variables are being used

      From there, i would add logic to how you see fit to address the issue which seems to be that in our e2e tests, the add inventory adds hcp-rhov as the cluster name (which is correct) but the mce-instal-213 tries to look up us-west-1 instead of hcp-rhov https://github.com/stolostron/acmqe-autotest/blob/main/ci/jenkinsfiles/components/install/mce/Jenkinsfile#L75

              rh-ee-msmigiel Matthew Smigielski
              rh-ee-msmigiel Matthew Smigielski
              Kurtis Wang Kurtis Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: