Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Microsoft.RedHatOpenShift/openShiftClusters resource group ID always return lower case #29562

Open
teowa opened this issue Jun 25, 2024 · 1 comment
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Mgmt This issue is related to a management-plane library.

Comments

@teowa
Copy link
Contributor

teowa commented Jun 25, 2024

API Spec link

"resourceGroupId": {
"description": "The ID of the cluster resource group.",
"type": "string"
},

API Spec version

2023-09-04

Describe the bug

resourceGroupId returns insensitive resource group ID
/subscriptions/12345678-1234-9876-4563-123456789012/resourcegroups/aro-aro-cpqhu.com

Expected behavior

/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/aro-aro-cpqhu.com

Actual behavior

resourcegroups is in lower case
/subscriptions/12345678-1234-9876-4563-123456789012/resourcegroups/aro-aro-cpqhu.com

Reproduction Steps

PUT /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.RedHatOpenShift/openShiftClusters/acctestaro240625012127397881?api-version=2023-09-04 HTTP/1.1
Host: management.azure.com
User-Agent: HashiCorp/go-azure-sdk (Go-http-Client/1.1 openshiftclusters/2023-09-04) HashiCorp Terraform/1.5.5 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/acc pid-222c6c49-1b0a-5959-a213-6608f9eb8820
Content-Length: 1363
Content-Type: application/json; charset=utf-8
X-Ms-Correlation-Request-Id: 76dcc039-ff7c-59d9-ce1e-6e3c457cba71
Accept-Encoding: gzip

{"location":"southeastasia","name":"acctestaro240625012127397881","properties":{"apiserverProfile":{"visibility":"Public"},"clusterProfile":{"domain":"aro-cpqhu.com","fipsValidatedModules":"Disabled","pullSecret":"","resourceGroupId":"/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/aro-aro-cpqhu.com","version":"4.13.23"},"ingressProfiles":[{"name":"default","visibility":"Public"}],"masterProfile":{"diskEncryptionSetId":"","encryptionAtHost":"Disabled","subnetId":"/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.Network/virtualNetworks/acctestvirtnet240625012127397881/subnets/main-subnet-240625012127397881","vmSize":"Standard_D8s_v3"},"networkProfile":{"outboundType":"Loadbalancer","podCidr":"10.128.0.0/14","serviceCidr":"172.30.0.0/16"},"servicePrincipalProfile":{"clientId":"12345678-1234-9876-4563-123456789012","clientSecret":"xxx"},"workerProfiles":[{"count":3,"diskEncryptionSetId":"","diskSizeGB":128,"encryptionAtHost":"Disabled","name":"worker","subnetId":"/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.Network/virtualNetworks/acctestvirtnet240625012127397881/subnets/worker-subnet-240625012127397881","vmSize":"Standard_D4s_v3"}]},"tags":null}
GET https://management.azure.com/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.RedHatOpenShift/openShiftClusters/acctestaro240625012127397881?api-version=2023-09-04
2024/06/25 02:07:16 [DEBUG] AzureRM Response for https://management.azure.com/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.RedHatOpenShift/openShiftClusters/acctestaro240625012127397881?api-version=2023-09-04: 
HTTP/2.0 200 OK
Content-Length: 4257
Cache-Control: no-cache
Content-Type: application/json
Date: Tue, 25 Jun 2024 02:07:16 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Cache: CONFIG_NOCACHE
X-Content-Type-Options: nosniff
X-Ms-Correlation-Request-Id: 76dcc039-ff7c-59d9-ce1e-6e3c457cba71
X-Ms-Ratelimit-Remaining-Subscription-Global-Reads: 3749
X-Ms-Ratelimit-Remaining-Subscription-Reads: 249
X-Ms-Request-Id: 24eb845b-11ce-4098-8627-3f7a253d1799
X-Ms-Routing-Request-Id: JAPANEAST:20240625T020716Z:8fd7ea66-25bb-44d6-878c-9aafe0f531b3
X-Msedge-Ref: Ref A: AE06F12A0486427195354303D04159E8 Ref B: TYO201151002029 Ref C: 2024-06-25T02:07:16Z

{
    "id": "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.RedHatOpenShift/openShiftClusters/acctestaro240625012127397881",
    "name": "acctestaro240625012127397881",
    "type": "Microsoft.RedHatOpenShift/openShiftClusters",
    "location": "southeastasia",
    "systemData": {
        "createdBy": "12345678-1234-9876-4563-123456789012",
        "createdByType": "Application",
        "createdAt": "2024-06-25T01:22:17.0051266Z",
        "lastModifiedBy": "12345678-1234-9876-4563-123456789012",
        "lastModifiedByType": "Application",
        "lastModifiedAt": "2024-06-25T01:22:17.0051266Z"
    },
    "properties": {
        "provisioningState": "Succeeded",
        "clusterProfile": {
            "domain": "aro-cpqhu.com",
            "version": "4.13.23",
            "resourceGroupId": "/subscriptions/12345678-1234-9876-4563-123456789012/resourcegroups/aro-aro-cpqhu.com",
            "fipsValidatedModules": "Disabled"
        },
        "consoleProfile": {
            "url": "https://console-openshift-console.apps.aro-cpqhu.com/"
        },
        "servicePrincipalProfile": {
            "clientId": "d6080a91-f9d6-4640-9607-4789638ac737"
        },
        "networkProfile": {
            "podCidr": "10.128.0.0/14",
            "serviceCidr": "172.30.0.0/16",
            "outboundType": "Loadbalancer",
            "preconfiguredNSG": "Disabled"
        },
        "masterProfile": {
            "vmSize": "Standard_D8s_v3",
            "subnetId": "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.Network/virtualNetworks/acctestvirtnet240625012127397881/subnets/main-subnet-240625012127397881",
            "encryptionAtHost": "Disabled"
        },
        "workerProfiles": [
            {
                "name": "worker",
                "vmSize": "Standard_D4s_v3",
                "diskSizeGB": 128,
                "subnetId": "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.Network/virtualNetworks/acctestvirtnet240625012127397881/subnets/worker-subnet-240625012127397881",
                "count": 3,
                "encryptionAtHost": "Disabled"
            }
        ],
        "workerProfilesStatus": [
            {
                "name": "acctestaro24062501212-swkn9-worker-southeastasia1",
                "vmSize": "Standard_D4s_v3",
                "diskSizeGB": 128,
                "subnetId": "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.Network/virtualNetworks/acctestvirtnet240625012127397881/subnets/worker-subnet-240625012127397881",
                "count": 1,
                "encryptionAtHost": "Disabled"
            },
            {
                "name": "acctestaro24062501212-swkn9-worker-southeastasia2",
                "vmSize": "Standard_D4s_v3",
                "diskSizeGB": 128,
                "subnetId": "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.Network/virtualNetworks/acctestvirtnet240625012127397881/subnets/worker-subnet-240625012127397881",
                "count": 1,
                "encryptionAtHost": "Disabled"
            },
            {
                "name": "acctestaro24062501212-swkn9-worker-southeastasia3",
                "vmSize": "Standard_D4s_v3",
                "diskSizeGB": 128,
                "subnetId": "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/acctestRG-aro-240625012127397881/providers/Microsoft.Network/virtualNetworks/acctestvirtnet240625012127397881/subnets/worker-subnet-240625012127397881",
                "count": 1,
                "encryptionAtHost": "Disabled"
            }
        ],
        "apiserverProfile": {
            "visibility": "Public",
            "url": "https://api.aro-cpqhu.com:6443/",
            "ip": "52.187.115.142"
        },
        "ingressProfiles": [
            {
                "name": "default",
                "visibility": "Public",
                "ip": "52.187.115.141"
            }
        ]
    }
}


Environment

No response

@teowa teowa added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 25, 2024
@teowa teowa changed the title [BUG] [BUG] Microsoft.RedHatOpenShift/openShiftClusters resource group ID always return lower case Jun 25, 2024
@v-jiaodi v-jiaodi added the Mgmt This issue is related to a management-plane library. label Jun 25, 2024
@v-jiaodi
Copy link
Member

@petrkotas Please help take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

No branches or pull requests

3 participants