-
Notifications
You must be signed in to change notification settings - Fork 194
Private cluster deployment fails - template error #175
Description
Describe the bug
Private cluster deployment fails when masterClusterType=private or routerClusterType=private (or both are private)
To Reproduce
- subnets and PrivateDNS are created in Azure
- run following command with latest template
az group deployment create --name MCPOCP-PrivCL-12-DEP --template-file C:\Users\mlacko\azure\azuredeploy.json --parameters C:\Users\mlacko\azure\azuredeploy.parameters.json --parameters _artifactsLocation=https://mcpocpcodeaqs.blob.core.windows.net/mcpocpocp430911 enableCNS=false masterInstanceCount=3 nodeInstanceCount=3 cnsInstanceCount=3 masterVmSize=Standard_D4s_v3 infraInstanceCount=3 infraVmSize=Standard_D4s_v3 nodeVmSize=Standard_D4s_v3 openshiftClusterPrefix=MCPOCP11CN keyVaultResourceGroup=MCPOCP-PrivCL-12-RG keyVaultName=MCPOCP-PrivCL-12-KV rhsmPoolId=some.server.com rhsmBrokerPoolId=some.server.com rhsmUsernameOrOrgId=1234 sshPublicKey=1234 storageKind=managed minorVersion=82 adminUsername=1234 keyVaultSubscriptionId=1234 aadClientId=1234 domainName=private.pokus.xyz virtualNetworkName=openshiftvnet masterSubnetName=mastersubnet infraSubnetName=infrasubnet nodeSubnetName=nodesubnet enableLogging=false enableMetrics=false existingMasterSubnetReference=/subscriptions//resourceGroups/MCPOCP-PrivCL-12-RG/providers/Microsoft.Network/virtualNetworks/PokusAzurePrivate/subnets/PokusAzurePrivateMasterSubnet existingInfraSubnetReference=/subscriptions//resourceGroups/MCPOCP-PrivCL-12-RG/providers/Microsoft.Network/virtualNetworks/PokusAzurePrivate/subnets/PokusAzurePrivateInfraSubnet existingNodeSubnetReference=/subscriptions//resourceGroups/MCPOCP-PrivCL-12-RG/providers/Microsoft.Network/virtualNetworks/PokusAzurePrivate/subnets/PokusAzurePrivateNodeSubnet existingCnsSubnetReference=/subscriptions//resourceGroups/MCPOCP-PrivCL-12-RG/providers/Microsoft.Network/virtualNetworks/PokusAzurePrivate/subnets/PokusAzurePrivateInfraSubnet masterPrivateClusterIp=10.10.1.200 masterClusterDns=console.private.pokus.xyz routerPrivateClusterIp=10.10.2.200 routingSubDomain=apps.private.pokus.xyz masterClusterType=private masterClusterDnsType=custom routerClusterType=private routingSubDomainType=custom --resource-group MCPOCP-PrivCL-12-RG --verbose --debug
Expected behavior
Private cluster is deployed
Screenshots
no
stdout
when routerClusterType=private and masterClusterType=public:
msrest.http_logger : {"error":{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The template resource 'Microsoft.Resources/deployments/OpenShiftDeployment' reference to 'Microsoft.Network/publicIPAddresses/infradnsqm25fqgo46jha' requires an API version. Please see https://aka.ms/arm-template for usage details.'.","additionalInfo":[{"type":"TemplateViolation","info":{"lineNumber":0,"positionNumber":0,"snippet":""}}]}}
msrest.exceptions : Unable to deserialize to object: type, KeyError: 'TypedErrorInfo'
msrest.exceptions : Operation failed with status: 'Bad Request'. Details: 400 Client Error: Bad Request for url: https://management.azure.com/subscriptions/****/resourcegroups/MCPOCP-PrivCL-12-RG/providers/Microsoft.Resources/deployments/MCPOCP-PrivCL-12-DEP?api-version=2018-05-01
when masterClusterType=private and/or routerClusterType=private :
msrest.http_logger : {"error":{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The template resource 'Microsoft.Resources/deployments/OpenShiftDeployment' reference to 'Microsoft.Network/publicIPAddresses/masterdnsreymdmx3c62m4' requires an API version. Please see https://aka.ms/arm-template for usage details.'.","additionalInfo":[{"type":"TemplateViolation","info":{"lineNumber":0,"positionNumber":0,"snippet":""}}]}}
msrest.exceptions : Unable to deserialize to object: type, KeyError: 'TypedErrorInfo'
msrest.exceptions : Operation failed with status: 'Bad Request'. Details: 400 Client Error: Bad Request for url: https://management.azure.com/subscriptions/****/resourcegroups/MCPOCP-PrivCL-12-RG/providers/Microsoft.Resources/deployments/MCPOCP-PrivCL-12-DEP?api-version=2018-05-01
Template Information (please complete the following information):
- OS: RedHat Linux
- Branch: master
Additional context
when both masterClusterType and routerClusterType are set to public (or not set) , deployment works