cannot deploy controller in Azure region Juju claims to accept
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Undecided
|
Unassigned |
Bug Description
# Steps to reproduce
* Follow [these steps](https:/
* `juju show-cloud azure | grep australiaeast`
* `juju set-default-region azure australiaeast`
* `juju bootstrap azure azure-controller`
# Expected behavior
A controller is installed in Azure's australiaeast region
# Actual behavior
The Juju installer fails. The error message says that you can't deploy a VM of that size in australiaeast.
I don't care what size the controller is.
I am able to manually deploy VMs in that region in Azure. So Juju should choose one of the sizes I can use in that region. (There are hundreds of options)
## Full error message
```
Creating Juju controller "azure-controller" on azure/australiaeast
Looking for packaged Juju agent version 2.5.4 for amd64
Launching controller instance(s) on azure/australia
ERROR creating instance failed, destroying: creating deployment "machine-0": resources.
g request: StatusCode=400 -- Original Error: Code="InvalidTe
resource with id: '/subscriptions
6790540ad/
scriptions/
rosoft.
1a-459a-
for details.'.'."
ERROR bootstrap failed, destroying model: cannot start bootstrap instance: creating virtual machine "machine-0": creating deployment "$
achine-0": resources.
Deployment" Message="The template deployment failed with error: 'The resource with id: '/subscriptions
acb8/resourceGr
ailed validation with message: 'The requested size for resource '/subscriptions
u-controller-
le in location 'australiaeast' zones '' for subscription '26051dd8-
different location or zones. See https:/
ERROR failed to bootstrap model: cannot start bootstrap instance: creating virtual machine "machine-0": creating deployment "machine-0$
: resources.
t" Message="The template deployment failed with error: 'The resource with id: '/subscriptions
urceGroups/
idation with message: 'The requested size for resource '/subscriptions
ler-model-
ation 'australiaeast' zones '' for subscription '26051dd8-
t location or zones. See https:/
```
Might this be a limit based on your account?
I was able to bootstrap to "australiaeast" without issue.
Juju has default controller constraints for memory (3.5GiB on Azure), but any specification of constraints for "instance-type", "mem", "cores" or "cpu-power" will override it.
If you know the instance type you want to use, you can supply: constraints instance- type=<type> "
"--bootstrap-
Or you can specify a lower memory constraint with: constraints mem=1024M"
"--bootstrap-
I will mark this as incomplete for now; we can re-open if further info is added to indicate a bug.