bootstrap command against already-bootstrapped controller results in lost controller

Bug #1715668 reported by Ryan Beisner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Won't Fix
High
Eric Claude Jones

Bug Description

Juju 2.2.2 + MAAS 2.2.2: If a user has an existing controller and re-issues a bootstrap command against it, juju forgets about the existing controller.

The MAAS machine housing the Juju controller stays up, but the user can longer interact with the model or the controller using the Juju client.

This likely a high-impact with an unintended and dangerous outcome to users.

jenkins@juju-0d10ff-osci-3:~/temp/charm-test-infra⟫ juju bootstrap --bootstrap-constraints 'arch=ppc64el tags=uosci' --constraints 'arch=ppc64el tags=uosci' --auto-upgrade=false --model-default=juju-configs/model-default.yaml --config=juju-configs/controller-default.yaml --to node-huffman ruxton-maas auto-osci-lb00
Creating Juju controller "auto-osci-lb00" on ruxton-maas
Looking for packaged Juju agent version 2.2.2 for ppc64el
Launching controller instance(s) on ruxton-maas...
ERROR failed to bootstrap model: cannot start bootstrap instance: cannot run instances: cannot run instance: No available machine matches constraints: [('agent_name', ['72b6807d-184d-450a-8cfa-f44ed406b2ba']), ('tags', ['uosci']), ('mem', ['3584']), ('name', ['node-huffman']), ('arch', ['ppc64el'])] (resolved to "arch=ppc64el/generic mem=3584.0 name=node-huffman tags=uosci")
1 jenkins@juju-0d10ff-osci-3:~/temp/charm-test-infra⟫

...then:

ERROR No controllers registered.

Please either create a new controller using "juju bootstrap" or connect to
another controller that you have been given access to using "juju register".

Tags: papercut ui uosci
Ryan Beisner (1chb1n)
summary: - bootstrap command against already-bootstrapped controller
+ bootstrap command against already-bootstrapped controller results in
+ lost controller
Tim Penhey (thumper)
tags: added: papercut ui
Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.3-alpha1
Revision history for this message
Tim Penhey (thumper) wrote :

It seems that bootstrap needs a sanity check against the controller name already existing.

Changed in juju:
milestone: 2.3-beta1 → 2.3-beta2
Ian Booth (wallyworld)
Changed in juju:
assignee: nobody → Eric Claude Jones (ecjones)
Revision history for this message
Eric Claude Jones (ecjones) wrote :

Issuing a bootstrap command against an existing controller results in juju producing an error stating that the controller already exists. I cannot reproduce the issue. I've tried the issue with both maas and LXD providers.

Changed in juju:
status: Triaged → Incomplete
Changed in juju:
milestone: 2.3-beta2 → none
Revision history for this message
John A Meinel (jameinel) wrote :

This looks more like bootstrap failing to provision the machine is destroying the known controllers.yaml file. I'm wondering if they're doing something funny with JUJU_HOME/JUJU_DATA ?

I don't know if ppc64el has anything to do with this, but for now I don't think we can progress without more information.

Revision history for this message
Heather Lanigan (hmlanigan) wrote :

Looks like this has been resolved over the years:

$ juju bootstrap localhost monday
Creating Juju controller "monday" on localhost/localhost
Looking for packaged Juju agent version 2.9.17 for amd64
No packaged binary found, preparing local Juju agent binary
...
Bootstrap complete, controller "monday" is now available
Controller machines are in the "controller" model
Initial model "default" added
$ juju bootstrap localhost monday
ERROR controller "monday" already exists

Changed in juju:
status: Incomplete → 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.