-
Bug
-
Resolution: Done
-
Normal
-
None
-
None
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
How reproducible: Always.
Description of problem:
When creating the Azure private cluster, the ‘baseDomainResourceGroupName: os4-common’ is optional and not required on the Installer side. So from the Hive side, we can follow this rule, otherwise, If a private cluster does not require baseDomainResourceGroupName, the case will fail.
$ ./openshift-install explain installconfig.platform.azure.baseDomainResourceGroupName
KIND: InstallConfig
…
BaseDomainResourceGroupName specifies the resource group where the Azure DNS zone for the base domain is found. This field is optional when creating a private cluster, otherwise required.
Steps to Reproduce:
1. Using hive create Azure private cluster without --azure-base-domain-resource-group-name=os4-common, successfully create the installation yaml file.
$ ./bin/hiveutil create-cluster --base-domain=qe.azure.devcluster.openshift.com --cloud=azure --release-image quay.io/openshift-release-dev/ocp-release:4.18.0-rc.1-x86_64 --region eastus --internal --ssh-public-key-file /home/hmx/.ssh/openshift-qe.pub --ssh-private-key-file /home/hmx/.ssh/openshift-qe.pem mihuang2674-bug1 -o yaml > mihuang2674-bug1.yaml DEBU[0000] Couldn't find install logs provider environment variable. Skipping. INFO[0000] Loading azure creds credsFilePath=/home/hmx/.azure/osServicePrincipal.json
2. Edit the installation yaml file, romove the install-config.platform.azure.baseDomainResourceGroupName [OK]
3. Edit the installation yaml file, romove the ClusterDeployment.spec.platform.azure.baseDomainResourceGroupName [OK]
4. Creste cluster, get error.
$ oc apply -f mihuang2674-bug1.yaml machinepool.hive.openshift.io/mihuang2674-bug1-worker created secret/mihuang2674-bug1-install-config created secret/mihuang2674-bug1-pull-secret created secret/mihuang2674-bug1-ssh-private-key created secret/mihuang2674-bug1-azure-creds created clusterimageset.hive.openshift.io/mihuang2674-bug1-imageset created The ClusterDeployment "mihuang2674-bug1" is invalid: spec.platform.azure.baseDomainResourceGroupName: Required value: must specify the Azure resource group for the base domain