Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-55538

list cloud agent packages by architecture

    • No
    • Moderate
    • rhel-sst-system-roles
    • 13
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None

      The ha_cluster role lists cloud agent packages only by major version e.g. https://github.com/linux-system-roles/ha_cluster/blob/main/vars/CentOS_9.yml#L14

      __ha_cluster_cloud_agents_packages:
        - resource-agents-cloud
        - fence-agents-aliyun
        - fence-agents-aws
        - fence-agents-azure-arm
        - fence-agents-compute
        - fence-agents-gce
        - fence-agents-ibm-powervs
        - fence-agents-ibm-vpc
        - fence-agents-kubevirt
        - fence-agents-openstack
      

      The problem is that most of these agents are not available on non-x86_64 architectures. The ha_cluster role needs to have a different list of packages for different architectures.

      One way to do it would be like this:

      __ha_cluster_cloud_agents_packages:
        x86_64:
          - resource-agents-cloud
          - fence-agents-aliyun
          - fence-agents-aws
          - fence-agents-azure-arm
          - fence-agents-compute
          - fence-agents-gce
          - fence-agents-ibm-powervs
          - fence-agents-ibm-vpc
          - fence-agents-kubevirt
          - fence-agents-openstack
        s390x:
          - fence-agents-ibm-powervs
          - fence-agents-ibm-vpc
          - fence-agents-kubevirt
        aarch64:
          - fence-agents-ibm-powervs
          - fence-agents-ibm-vpc
          - fence-agents-kubevirt
        ppc64le:
          - fence-agents-ibm-powervs
          - fence-agents-ibm-vpc
          - fence-agents-kubevirt
      

      but there may be better ways to do this.

              tojeline@redhat.com Tomas Jelinek
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: