I've logged in and edited the mongodb with: db.clouds.updateOne({"_id":"prod-lxd"},{$set: {"endpoint":"https://192.168.0.107:8443", "regions": { "default" : { "endpoint" : "https://192.168.0.107:8443" } }}}) { "acknowledged" : true, "matchedCount" : 1, "modifiedCount" : 1 } juju:PRIMARY> db.clouds.find({"_id": "prod-lxd"})
However now I'm getting a 'not authorized' error.
juju ssh --debug -vvv salt-master/0 10:55:18 INFO juju.cmd supercommand.go:57 running juju [2.6.6 gc go1.10.4] 10:55:18 DEBUG juju.cmd supercommand.go:58 args: []string{"/snap/juju/8594/bin/juju", "ssh", "--debug", "-vvv", "salt-master/0"} 10:55:18 INFO juju.juju api.go:67 connecting to API addresses: [192.168.1.242:17070] 10:55:18 DEBUG juju.api apiclient.go:1092 successfully dialed "wss://192.168.1.242:17070/model/ea27db4d-1292-4108-831d-ae64cb5815ea/api" 10:55:18 INFO juju.api apiclient.go:624 connection established to "wss://192.168.1.242:17070/model/ea27db4d-1292-4108-831d-ae64cb5815ea/api" 10:55:19 DEBUG juju.cmd.juju.commands ssh_common.go:260 proxy-ssh is false 10:55:19 DEBUG juju.cmd.juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) 10:55:19 DEBUG juju.cmd.juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) 10:55:20 DEBUG juju.cmd.juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) 10:55:20 DEBUG juju.cmd.juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) 10:55:21 DEBUG juju.cmd.juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) 10:55:22 DEBUG juju.cmd.juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) 10:55:22 DEBUG juju.cmd.juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) 10:55:23 DEBUG juju.cmd.juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) 10:55:23 DEBUG juju.cmd.juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) 10:55:24 DEBUG juju.cmd.juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) 10:55:24 DEBUG juju.api monitor.go:35 RPC connection died ERROR opening environment: not authorized 10:55:24 DEBUG cmd supercommand.go:496 error stack: opening environment: not authorized /build/juju/parts/juju/go/src/github.com/juju/juju/rpc/client.go:178: /build/juju/parts/juju/go/src/github.com/juju/juju/api/apiclient.go:1187: /build/juju/parts/juju/go/src/github.com/juju/juju/api/sshclient/facade.go:52: /build/juju/parts/juju/go/src/github.com/juju/juju/cmd/juju/commands/ssh_common.go:405: /build/juju/parts/juju/go/src/github.com/juju/juju/cmd/juju/commands/ssh_common.go:385:
I've logged in and edited the mongodb with: updateOne( {"_id": "prod-lxd" },{$set: {"endpoint":"https:/ /192.168. 0.107:8443", "regions": { "default" : { "endpoint" : "https:/ /192.168. 0.107:8443" } }}}) find({" _id": "prod-lxd"})
db.clouds.
{ "acknowledged" : true, "matchedCount" : 1, "modifiedCount" : 1 }
juju:PRIMARY> db.clouds.
However now I'm getting a 'not authorized' error.
juju ssh --debug -vvv salt-master/0 "/snap/ juju/8594/ bin/juju" , "ssh", "--debug", "-vvv", "salt-master/0"} 1.242:17070] 192.168. 1.242:17070/ model/ea27db4d- 1292-4108- 831d-ae64cb5815 ea/api" 192.168. 1.242:17070/ model/ea27db4d- 1292-4108- 831d-ae64cb5815 ea/api" juju.commands ssh_common.go:260 proxy-ssh is false juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) juju.commands ssh_common.go:377 getting target "salt-master/0" address(es) failed: opening environment: not authorized (retrying) juju/parts/ juju/go/ src/github. com/juju/ juju/rpc/ client. go:178: juju/parts/ juju/go/ src/github. com/juju/ juju/api/ apiclient. go:1187: juju/parts/ juju/go/ src/github. com/juju/ juju/api/ sshclient/ facade. go:52: juju/parts/ juju/go/ src/github. com/juju/ juju/cmd/ juju/commands/ ssh_common. go:405: juju/parts/ juju/go/ src/github. com/juju/ juju/cmd/ juju/commands/ ssh_common. go:385:
10:55:18 INFO juju.cmd supercommand.go:57 running juju [2.6.6 gc go1.10.4]
10:55:18 DEBUG juju.cmd supercommand.go:58 args: []string{
10:55:18 INFO juju.juju api.go:67 connecting to API addresses: [192.168.
10:55:18 DEBUG juju.api apiclient.go:1092 successfully dialed "wss://
10:55:18 INFO juju.api apiclient.go:624 connection established to "wss://
10:55:19 DEBUG juju.cmd.
10:55:19 DEBUG juju.cmd.
10:55:19 DEBUG juju.cmd.
10:55:20 DEBUG juju.cmd.
10:55:20 DEBUG juju.cmd.
10:55:21 DEBUG juju.cmd.
10:55:22 DEBUG juju.cmd.
10:55:22 DEBUG juju.cmd.
10:55:23 DEBUG juju.cmd.
10:55:23 DEBUG juju.cmd.
10:55:24 DEBUG juju.cmd.
10:55:24 DEBUG juju.api monitor.go:35 RPC connection died
ERROR opening environment: not authorized
10:55:24 DEBUG cmd supercommand.go:496 error stack:
opening environment: not authorized
/build/
/build/
/build/
/build/
/build/