Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-36207

[CAPI Azure] missing user tags on some resources created by installer

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • No
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      Configure userTags in install-config
      ========================
      platform:
        azure:
          baseDomainResourceGroupName: os4-common
          cloudName: AzurePublicCloud
          outboundType: Loadbalancer
          region: southcentralus
          userTags:
            "ckey": "dvalue"
            "Bkey123": "avalue12345"
            "x-red-hat-clustertype": "installer"
            "adminContact": "installer-qe"
      
      create cluster by using CAPI, checked user tags on each resource after installation is completed.
      
      Following resource types are missing both userTags defined in install-config and system tags: "kubernetes.io_cluster.<cluster-infra-id>":"owned"
      - "Microsoft.Compute/galleries/images/versions"
      
      Following resource types are missing system tags: "kubernetes.io_cluster.<cluster-infra-id>":"owned"
      - "Microsoft.Network/virtualNetworks"
      - "Microsoft.Network/networkSecurityGroups"
      - "Microsoft.Network/loadBalancers"
      - "Microsoft.Network/privateDnsZones"
      - "Microsoft.Network/privateDnsZones/virtualNetworkLinks"
      - api dns record in public dns zone
      - api/api-int private dns records in private dns zone
      
      Following resource types have duplicated system tags
            "kubernetes.io_cluster.jimaaz01-jhxt7": "owned",
            "kubernetes.io_cluster_jimaaz01-jhxt7": "owned",
      - all master instances
      - all master instances disk
      - all master instances nic
          

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

          4.17.0-0.nightly-2024-06-23-145410

      How reproducible:

          Always

      Steps to Reproduce:

          1. Configure userTags in install-config
          2. Run cpai-based installation on azure platform
          3.
          

      Actual results:

          Some resources are missing user tags defined in install-config, or having duplicated system tags or missing both.

      Expected results:

          userTags and system tags should be attached to all resources created by installer or cluster, keep the same behavior with terraform-based installation.

      Additional info:

          

       

              jhixson_redhat John Hixson
              jinyunma Jinyun Ma
              None
              None
              Jinyun Ma Jinyun Ma
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: