Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Private cluster deployment fails - template error #175

@mlacko64

Description

@mlacko64

Describe the bug
Private cluster deployment fails when masterClusterType=private or routerClusterType=private (or both are private)

To Reproduce

  1. subnets and PrivateDNS are created in Azure
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions