1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00
Files
installer/upi/azurestack/02_storage.json
Rafael Fonseca cb94a4aede OCPBUGS-5234: azurestack: upi: fix compute scale up
Scaling up a compute machineset will fail in AzureStack UPI with:

```
Message:               failed to create vm $clusterID-worker-mtcazs-2gjsl: failure sending request for machine $clusterID-worker-mtcazs-2gjsl: cannot create vm: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=404 -- Original Error: Code="NotFound" Message="The Availability Set '/subscriptions/$subID/resourceGroups/$clusterID-rg/providers/Microsoft.Compute/availabilitySets/$clusterID-cluster' cannot be found."
```

because machinesets follow the IPI pattern of using "$clusterID-cluster"
as the availabilitySet's name, whereas UPI uses "$clusterID-avset". So
let's change UPI to be consistent with IPI.

Another inconsistence is the RHCOS image name: UPI appends "-image" to
the name whereas IPI just uses the "$clusterID".
2023-01-04 10:29:07 +01:00

42 lines
1.1 KiB
JSON

{
"$schema" : "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion" : "1.0.0.0",
"parameters" : {
"baseName" : {
"type" : "string",
"minLength" : 1,
"metadata" : {
"description" : "Base name to be used in resource names (usually the cluster's Infra ID)"
}
},
"vhdBlobURL" : {
"type" : "string",
"metadata" : {
"description" : "URL pointing to the blob where the VHD to be used to create master and worker machines is located"
}
}
},
"variables" : {
"location" : "[resourceGroup().location]",
"imageName" : "[parameters('baseName')]"
},
"resources" : [
{
"apiVersion" : "2017-12-01",
"type": "Microsoft.Compute/images",
"name": "[variables('imageName')]",
"location" : "[variables('location')]",
"properties": {
"storageProfile": {
"osDisk": {
"osType": "Linux",
"osState": "Generalized",
"blobUri": "[parameters('vhdBlobURL')]",
"storageAccountType": "Standard_LRS"
}
}
}
}
]
}