Expose a safe/machine readable way to check if an environment is already bootstrapped

Bug #1252322 reported by Francesco Banconi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Medium
Unassigned
juju-quickstart
Triaged
High
Unassigned

Bug Description

The quickstart plugin needs to know if the environment is already bootstrapped, so that it can reuse an existing environment when called multiple time. To do that, it just executes the bootstrap (or bootstrap --debug) command and, if the subproces exits with an error, it parses the output for "environment is already bootstrapped" or similar. This is weak because we are relying on an error message intended to be read by humans. We need a reliable/machine readable way to make that check: perhaps a --format for the bootstrap output/error?

Tags: bootstrap
Changed in juju-quickstart:
status: New → Triaged
importance: Undecided → High
Curtis Hovey (sinzui)
tags: added: bootstrap
Revision history for this message
Curtis Hovey (sinzui) wrote :

This issue is the inverse/overpap of bug 1250219

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Curtis Hovey (sinzui)
Changed in juju-core:
importance: High → Medium
Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Francesco
In multi-model way, it is unclear whether you are after a check that controller is bootstrapped or model is ready and added.

Could you please open new bug against "juju" clarifying your requirements in Juju 2.x terms?

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.

Other bug subscribers

Remote bug watches

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