Juju 2.9.9 fails to bootstrap on AWS

Bug #1938019 reported by Simon Fels
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Ian Booth
2.9
Fix Released
Critical
Ian Booth

Bug Description

I am trying to bootstrap a new controller with 2.9.9 on AWS but always fail with

10:41:38 ERROR juju.cmd.juju.commands bootstrap.go:883 unable to contact api server after 1 attempts: unable to connect to API: dial tcp 172.31.40.101:17070: connect: network is unreachable

The client tries to connect the created controller instance on both it's public and private address but seems to directly fail on the first attempt. I attached the entire debug log of the `juju bootstrap` command.

I get this on two different AWS accounts so it doesn't seem to be related to the VPC setup within the account. In addition I also tried to bootstrap in a totally clean environment with Juju fresh installed, same problem happened.

Any idea what is wrong here?

Tags: aws
Revision history for this message
Simon Fels (morphis) wrote :
Revision history for this message
Ian Booth (wallyworld) wrote :

The issue is there's a whitelist of errors which are considered non fatal when polling the controller API address to validate that the controller agent is alive at the end of bootstrap. Any error not in this list is considered fatal. And "network is unreachable" is not currently in the list so the bootstrap process exits with an error. We normally see "i/o timeout" or "connection refused". We just need to add "network is unreachable" to the list.

Changed in juju:
milestone: none → 2.9.10
importance: Undecided → Critical
status: New → Triaged
milestone: 2.9.10 → 2.8.12
assignee: nobody → Ian Booth (wallyworld)
Revision history for this message
Ian Booth (wallyworld) wrote :

I can't reproduce locally as I never get that same underlying error but it should be a one line fix
https://github.com/juju/juju/pull/13196

Changed in juju:
status: Triaged → Fix Committed
Revision history for this message
Simon Fels (morphis) wrote :

Thanks Ian for the quick fix!

Should I be able to test this with the latest edge snap?

John A Meinel (jameinel)
tags: added: aws
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.8.12 → 2.8.13
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

Bug attachments

Remote bug watches

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