Fixes wrong entries on a running environment < 1.25.2
Go
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
main.go
run-fix-1459033

README.md

WARNING: Do not use this if you are not fully aware of the context.

This is a script for fixing LP: #1459033 on environments prior to 1.25.2

Usage:

$ juju ssh 0
machine-0 $ wget https://github.com/niedbalski/fix-1459033/blob/master/run-fix-1459033 
machine-0 $ sudo chmod 0755 ./run-fix-1459033 && ./run-fix-1450933

Expected Output:

2016-04-21 15:55:51 DEBUG juju.agent agent.go:482 read agent config, format "1.18"
2016-04-21 15:55:51 INFO juju.state open.go:51 opening state, mongo addresses: ["127.0.0.1:37017"]; entity machine-0
2016-04-21 15:55:51 DEBUG juju.state open.go:52 dialing mongo
2016-04-21 15:55:51 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2016-04-21 15:55:51 DEBUG juju.state open.go:57 connection established
2016-04-21 15:55:51 INFO juju.mongo open.go:125 dialled mongo successfully on address "10.5.1.84:37017"
2016-04-21 15:55:51 DEBUG juju.state open.go:64 mongodb login successful
2016-04-21 15:55:51 INFO juju.state state.go:195 creating lease client as machine-0
2016-04-21 15:55:51 INFO juju.state state.go:208 starting leadership manager
2016-04-21 15:55:51 INFO juju.state state.go:219 creating cloud image metadata storage
2016-04-21 15:55:51 INFO juju.state state.go:222 starting presence watcher
2016-04-21 15:55:51 DEBUG juju.state.leadership manager.go:214 waking to check leases at 2016-04-21 15:56:24.016547094 +0000 UTC
2016-04-21 15:55:51 INFO juju.mongo open.go:125 dialled mongo successfully on address "10.5.1.84:37017"

2016-04-21 15:55:51 DEBUG juju.state.toolstorage tools.go:193 invalid tools version: {'\x02' "\x10\x00\x00\x001.25.3.1--amd64\x00"}

2016-04-21 15:55:51 INFO juju.mongo open.go:125 dialled mongo successfully on address "127.0.0.1:37017"
2016-04-21 15:55:51 INFO juju.mongo open.go:125 dialled mongo successfully on address "10.5.1.84:37017"
2016-04-21 15:55:51 DEBUG juju.state open.go:306 closed state without error