azure bootstrap failure on certain regions due to incorrect instance type being used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Hi all,
Customer is having trouble bootstrapping to certain Azure DC using the default commands, it seems to work with some of their Azure AZ but not all of them, specifically northeurope/
They managed to fix this with: juju bootstrap --constraints "instance-
My suggestion is to test bootstrapping on each AZ on Azure and AWS to ensure that the default bootstrap is working correctly as this is not so obvious to fix, you have to check the Azure error logs on the website. This should be automated and run per-release as to ensure it is easy to bootstrap to any of the AZ we support out of the box.
Default constraints may need to be changed for the default controller bootstrap depending on the AZ the customer picks.
tags: |
added: azure-provider removed: azure |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in juju: | |
milestone: | 2.8-beta1 → 2.8.1 |
Changed in juju: | |
milestone: | 2.8.1 → 2.8-next |
This still seems to be a problem on a lot of regions, and not limited to bootstrapping
Deploying to e.g. azure/ukwest works fine -
juju bootstrap azure/ukwest cdk1
Creating Juju controller "cdk1" on azure/ukwest
Looking for packaged Juju agent version 2.7.4 for amd64
Launching controller instance(s) on azure/ukwest...
- machine-0 (arch=amd64 mem=3.5G cores=1)
Installing Juju agent on bootstrap instance
Fetching Juju GUI 2.15.0
Waiting for address
Attempting to connect to 192.168.16.4:22
Attempting to connect to 51.11.120.37:22
Connected to 51.11.120.37
Running machine configuration script...
Bootstrap agent now started
Contacting Juju controller at 192.168.16.4 to verify accessibility...
Bootstrap complete, controller "cdk1" is now available
Controller machines are in the "controller" model
Initial model "default" added
N.B. This deploys a 'Standard_D1_v2" instance type
Trying the same on the default region (centralus) yields errors:
juju bootstrap azure cdk2
Creating Juju controller "cdk2" on azure/centralus DeploymentsClie nt#CreateOrUpda te: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidTe mplateDeploymen t" Message="The template deployment failed with error: 'The resource with id: '/subscriptions /bf4b9325- b972-4693- b28d-17b3226ab2 02/resourceGrou ps/juju- controller- model-4545acce- 5105-4207- 8566-07258b1464 04/providers/ Microsoft. Compute/ virtualMachines /machine- 0' failed validation with message: 'The requested size for resource '/subscriptions /bf4b9325- b972-4693- b28d-17b3226ab2 02/resourceGrou ps/juju- controller- model-4545acce- 5105-4207- 8566-07258b1464 04/providers/ Microsoft. Compute/ virtualMachines /machine- 0' is currently not available in location 'centralus' zones '' for subscription 'bf4b9325- b972-4693- b28d-17b3226ab2 02'. Please try another size or deploy to a different location or zones. See https:/ /aka.ms/ azureskunotavai lable for details.'.'." DeploymentsClie nt#CreateOrUpda te: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidTe mplateDeploymen t" Message="The template deployment failed with error: 'The resource with id: '/subscriptions /bf4b9325- b972-4693- b28d-17b3226ab2 02/resourceGrou ps/juju- controller- model-4545acce- 5105-4207- 8566-07258b1464 04/providers/ Microsoft. Compute/ virtualMachines /machine- 0' failed validation with message: 'The requested size for resource '/subscriptions /bf4b9325- b972-4693- b28d-17b3226ab2 02/resourceGrou ps/juju- controller- model-4545acce- 5105-4207- 8566-07258b1464 04/providers/ Microsoft. Compute/ virtualMachines /machine- 0' is currently not available in location 'centralus' zones '' for subscription 'bf4b9325- b972-4693- b28d-17b3226ab2 02'. Please try another size or deploy to a different location or zones. See https:/ /aka.ms/ azureskunotavai lable for details.'.'."
Looking for packaged Juju agent version 2.7.4 for amd64
Launching controller instance(s) on azure/centralus...
ERROR creating instance failed, destroying: creating deployment "machine-0": resources.
ERROR bootstrap failed, destroying model: cannot start bootstrap instance: creating virtual machine "machine-0": creating deployment "machine-0": resources.
^[[A^[[BERRO...