cannot deploy controller in Azure region Juju claims to accept

Bug #1823096 reported by Matthew Davis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Undecided
Unassigned

Bug Description

# Steps to reproduce

* Follow [these steps](https://docs.jujucharms.com/2.5/en/clouds-azure) to add Azure as a cloud
* `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/australiaeast...
ERROR creating instance failed, destroying: creating deployment "machine-0": resources.DeploymentsClient#CreateOrUpdate: Failure sendin
g request: StatusCode=400 -- Original Error: Code="InvalidTemplateDeployment" Message="The template deployment failed with error: 'The
resource with id: '/subscriptions/26051dd8-591a-459a-a58e-975907c8acb8/resourceGroups/juju-controller-model-0a985c83-50fb-422a-855d-26f
6790540ad/providers/Microsoft.Compute/virtualMachines/machine-0' failed validation with message: 'The requested size for resource '/sub
scriptions/26051dd8-591a-459a-a58e-975907c8acb8/resourceGroups/juju-controller-model-0a985c83-50fb-422a-855d-26f6790540ad/providers/Mic
rosoft.Compute/virtualMachines/machine-0' is currently not available in location 'australiaeast' zones '' for subscription '26051dd8-59
1a-459a-a58e-975907c8acb8'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable
 for details.'.'."
ERROR bootstrap failed, destroying model: cannot start bootstrap instance: creating virtual machine "machine-0": creating deployment "$
achine-0": resources.DeploymentsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidTemplat$
Deployment" Message="The template deployment failed with error: 'The resource with id: '/subscriptions/26051dd8-591a-459a-a58e-975907c$
acb8/resourceGroups/juju-controller-model-0a985c83-50fb-422a-855d-26f6790540ad/providers/Microsoft.Compute/virtualMachines/machine-0' $
ailed validation with message: 'The requested size for resource '/subscriptions/26051dd8-591a-459a-a58e-975907c8acb8/resourceGroups/ju$
u-controller-model-0a985c83-50fb-422a-855d-26f6790540ad/providers/Microsoft.Compute/virtualMachines/machine-0' is currently not availa$
le in location 'australiaeast' zones '' for subscription '26051dd8-591a-459a-a58e-975907c8acb8'. Please try another size or deploy to $
 different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."
ERROR failed to bootstrap model: cannot start bootstrap instance: creating virtual machine "machine-0": creating deployment "machine-0$
: resources.DeploymentsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidTemplateDeployme$
t" Message="The template deployment failed with error: 'The resource with id: '/subscriptions/26051dd8-591a-459a-a58e-975907c8acb8/res$
urceGroups/juju-controller-model-0a985c83-50fb-422a-855d-26f6790540ad/providers/Microsoft.Compute/virtualMachines/machine-0' failed va$
idation with message: 'The requested size for resource '/subscriptions/26051dd8-591a-459a-a58e-975907c8acb8/resourceGroups/juju-contro$
ler-model-0a985c83-50fb-422a-855d-26f6790540ad/providers/Microsoft.Compute/virtualMachines/machine-0' is currently not available in lo$
ation 'australiaeast' zones '' for subscription '26051dd8-591a-459a-a58e-975907c8acb8'. Please try another size or deploy to a differe$
t location or zones. See https://aka.ms/azureskunotavailable for details.'.'."

```

Revision history for this message
Joseph Phillips (manadart) wrote :

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:
"--bootstrap-constraints instance-type=<type>"

Or you can specify a lower memory constraint with:
"--bootstrap-constraints mem=1024M"

I will mark this as incomplete for now; we can re-open if further info is added to indicate a bug.

Changed in juju:
status: New → Incomplete
Revision history for this message
Matthew Davis (mdavistelstra) wrote :

I'm not aware of any limits on my account.

Can you tell me what azure size is used for the controller by default?
I can try to spin up a VM of that exact size in that region.

The options are: A2, D1, D1_v2, DS1, DS1_v2.

I was able to bootstrap to australiasoutheast without any extra arguments.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju because there has been no activity for 60 days.]

Changed in juju:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.