cannot start bootstrap instance (aws)

Bug #1972103 reported by Marcos Kobuchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

Hello all! I'm having some problems when trying to bootstrap a controller using aws cloud. This are the logs:

juju bootstrap aws controller
Creating Juju controller "controller" on aws/us-east-1
Looking for packaged Juju agent version 2.9.29 for arm64
Located Juju agent version 2.9.29-ubuntu-arm64 at https://juju-dist-aws.s3.amazonaws.com/agents/agent/2.9.29/juju-2.9.29-linux-arm64.tgz
Launching controller instance(s) on aws/us-east-1...
ERROR failed to bootstrap model: cannot start bootstrap instance: chosen architecture amd64 for image "ami-0c4f7023847b90238" not present in [arm64]
ERROR error cleaning up: destroying instances: operation error EC2: DescribeSecurityGroups, https response error StatusCode: 400, RequestID: 7f2de308-b610-405d-a929-c87cede42978, api error VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC.

Revision history for this message
Juan M. Tirado (tiradojm) wrote :

I've tried with version 2.9.29 and it worked for me. It seems that your deployment is not selecting the architecture correctly (ARM vs AMD). Could you please check again the config steps and retry? https://juju.is/docs/olm/amazon-aws#heading--awareness-of-regions-and-instance-types

Revision history for this message
Ian Booth (wallyworld) wrote :

The issue here is that it appears your Juju CLI client is an arm64 machine. If bootstrap is done without any constraints, Juju will use the arch of the client. It looks for an agent binary with arm64, but then when it does the instance selection, it looks like that arch is not used correctly to filter the chosen instance.

Until juju is fixed, you can work arounf by juju bootstrap --constraints "arch=arm64"
(or amd64 if that's what you want)

Changed in juju:
milestone: none → 2.9.30
importance: Undecided → High
status: New → Triaged
Ian Booth (wallyworld)
Changed in juju:
status: Triaged → In Progress
assignee: nobody → Ian Booth (wallyworld)
Revision history for this message
Ian Booth (wallyworld) wrote :
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
milestone: 2.9.30 → 2.9.31
Changed in juju:
status: Fix Committed → Fix Released
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.