changing the cloud URL on a live controller via cli
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Christopher Lee |
Bug Description
I recently upgraded MAAS as follows: 2.3.x -> 2.4.x -> 2.5.x and in that process the URL to access MAAS has changed (see lp:1804070).
After that a Juju controller (2.4.1) partially continued functioning (status worked but I could not ssh into any machine).
ubuntu@maas:~$ juju ssh neutron-
ERROR opening environment: could not connect to MAAS controller - check the endpoint is correct (not supported)
There doesn't seem to be a command to update an endpoint of an existing cloud (update-clouds only works for public clouds).
I did some database surgery which worked but I think the same needs to be supported via CLI.
# ssh to the controller
ssh ubuntu@192.0.2.60
root@controller
root@controller
root@controller
root@controller
root@controller
MongoDB shell version: 3.2.15
connecting to: 127.0.0.
2018-11-
2018-11-
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://
Questions? Try the support group
http://
Server has startup warnings:
2018-08-
2018-08-
2018-08-
2018-08-
juju:PRIMARY> use juju;
switched to db juju
juju:PRIMARY> db.clouds.
{ "_id" : "samaas", "name" : "samaas", "type" : "maas", "auth-types" : [ "oauth1" ], "endpoint" : "http://
juju:PRIMARY> db.clouds.
{ "_id" : "samaas", "name" : "samaas", "type" : "maas", "auth-types" : [ "oauth1" ], "endpoint" : "http://
Changed in juju: | |
milestone: | 2.5.1 → 2.5.2 |
Changed in juju: | |
assignee: | nobody → Christopher Lee (veebers) |
Changed in juju: | |
milestone: | 2.5.2 → 2.5.3 |
Changed in juju: | |
status: | Triaged → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
There's some existing work around allowing updating clouds/credentials that this would fall under. The biggest thing will be distributing changes to new users/etc. Will include this as a test case under that work.