Constraints 'cores=8 mem=32G' fails on azure/westus2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Incomplete
|
High
|
Jack Shaw |
Bug Description
I'm struggling to understand instance selection with Azure.
For example if I deploy my app with --constraints 'cores=8 mem=32G' on region azure/westus2, it tries to provision a Standard_DC8s_v3 but fails because it does not support Ubuntu 22.04_lts gen1: The selected VM size 'Standard_DC8s_v3' cannot boot Hypervisor Generation '1'. If this was a Create operation please check that the Hypervisor Generation of the Image matches the Hypervisor Generation of the selected VM Size. If this was an Update operation please select a Hypervisor Generation '1' VM Size. For more information, see https:/
By trying to create manually on Azure I can confirm that Standard_DC8s_v3 with 22.04_lts gen1 on westus2 can not be provisioned.
Also if I run with --constraints 'instance-
With --constraints 'cores=8 mem=32G' on region azure/francecentral works fine and provisions a Standard B2ls v2 BUT its running 22_04-lts gen1.
My goal is to be able to run --constraints 'cores=8 mem=32G' on any region and make it work everytime (I don't really care if it ends up being a gen1 or gen2). Thanks in advance 🙏
I am running with Juju 3.2.4 on both client and controller.
Changed in juju: | |
assignee: | nobody → Jack Shaw (jack-shaw) |
Changed in juju: | |
status: | Triaged → Incomplete |
This instance type can be run with a 22.04 base in the "centralus" region.
Based on a look through the logic, when we assemble the resources list, we make no use of `Locations` or `LocationInfo` in the `ResourceSKU` list that we get back.
This is from the SDK:
// READ-ONLY; A list of locations and availability zones in those locations where the SKU is available. ocationInfo `json:" locationInfo, omitempty" azure:"ro"`
LocationInfo []*ResourceSKUL
// READ-ONLY; The set of locations that the SKU is available. locations, omitempty" azure:"ro"`
Locations []*string `json:"
I believe we're missing a filter here.