bootstrap detection stops too early

Bug #1212177 reported by John A Meinel
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Low
Unassigned

Bug Description

If you try to bootstrap and succeed in writing to the storage, but fail to actually start the instance, a follow up 'juju bootstrap' tells you that you're already bootstrapped, and you have to 'juju destroy-environment' to recover.

The specific case is from Michael Nelson. Everything seems to be working except when he tries to actually start the initial instance he gets a "BadRequest" failure.

It looks like we successfully write 'bootstrap-verify' and a 0-length provider-state file.

What would be better is to read provider-state and see that no actual instances have been started, and try again, rather than failing early with "already bootstrapped".

So I think the verification becomes "do we have bootstrap-verify, is it go-juju compatible, do we have provider--state; does it have a state server in it?"

Tags: bootstrap ui
Curtis Hovey (sinzui)
tags: added: bootstrap
Revision history for this message
Tom Haddon (mthaddon) wrote :

Got bitten by this when an instance goes into error state. This is particularly problematic for mojo as if we knew the instance was down we could detect and recover from it more easily, but in the current state it's reporting as both bootstrapped and not bootstrapped:

http://paste.ubuntu.com/6358869/

Changed in juju-core:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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