Cannot upgrade Juju - ERROR target prechecks failed: model named "controller" already exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Snap |
New
|
Undecided
|
Unassigned |
Bug Description
I'm pretty sure this is a well known limitation but let me file it here explicitly.
To be clear, it affects all scenarios in the tutorials (single-node, local multi-node, and MAAS) since something is always deployed in the controller model.
https:/
> A controller model cannot be migrated.
====
By following the (local) multi-node tutorial for example:
https:/
Juju cannot be upgraded even for a minor release update.
$ juju upgrade-model -m openstack --agent-version 3.5.1
ERROR cannot upgrade to a version "3.5.1" greater than that of the controller "3.4.3"
$ juju upgrade-controller --agent-version 3.5.1
ERROR cannot upgrade to "3.5.1" due to issues with these models:
"admin/controller":
- upgrading a controller to a newer major.minor version 3.5 not supported
$ juju controllers --refresh
Controller Model User Access Cloud/Region Models Nodes HA Version
sunbeam-controller admin/controller sunbeam-
sunbeam-
$ juju migrate sunbeam-
ERROR cannot initiate migration as the users granted access to the model do not exist
on the destination controller. To resolve this issue you can add the following
users to the destination controller or remove them from the current model:
- sunbeam-
- sunbeam-
- sunbeam-
$ juju add-user -c sunbeam-
$ juju add-user -c sunbeam-
$ juju add-user -c sunbeam-
$ juju migrate sunbeam-
ERROR target prechecks failed: model named "controller" already exists
$ juju models
Controller: sunbeam-controller
Model Cloud/Region Type Status Machines Cores Units Access Last connection
admin/controller* sunbeam/default manual available 3 48 13 admin just now
openstack sunbeam-
$ juju status -m admin/controller
Model Controller Cloud/Region Version SLA Timestamp
controller sunbeam-controller sunbeam/default 3.4.3 unsupported 14:03:43Z
SAAS Status Store URL
cert-distributor active local sunbeam-
certificate-
cinder-ceph waiting local sunbeam-
keystone active local sunbeam-
nova active local sunbeam-
ovn-relay active local sunbeam-
rabbitmq active local sunbeam-
App Version Status Scale Charm Channel Rev Exposed Message
controller active 1 juju-controller 3.4/stable 101 no
microceph active 3 microceph reef/edge 50 no
microk8s active 3 microk8s legacy/stable 121 no
openstack-
sunbeam-machine active 3 sunbeam-machine 2024.1/edge 22 no
Unit Workload Agent Machine Public address Ports Message
controller/0* active idle 0 192.168.123.11
microceph/0* active idle 0 192.168.123.11
microceph/1 active idle 1 192.168.123.12
microceph/2 active idle 2 192.168.123.13
microk8s/0* active idle 0 192.168.123.11 16443/tcp
microk8s/1 active idle 1 192.168.123.12 16443/tcp
microk8s/2 active idle 2 192.168.123.13 16443/tcp
openstack-
openstack-
openstack-
sunbeam-machine/0* active idle 0 192.168.123.11
sunbeam-machine/1 active idle 1 192.168.123.12
sunbeam-machine/2 active idle 2 192.168.123.13
Machine State Address Inst id Base AZ Message
0 started 192.168.123.11 manual: ubuntu@22.04 Manually provisioned machine
1 started 192.168.123.12 manual:
2 started 192.168.123.13 manual:
Offer Application Charm Rev Connected Endpoint Interface Role
microceph microceph microceph 50 2/2 ceph ceph-client provider