Copy mongo sessions before use so they don't get stale
Fix some collection names
Copy sessions in pinger
Cherry pick trunk rev a1b0ad5
Fix megawatcher inconsistency
Code review tweaks
Found another place where collection needs to copy session
Adds support for stripped-down Ubuntu images which may not have kvm-ok in their path.
Rename old statetxn imports
Fix login test deadlock
Merge pull request #376 from katco-/1-20-backport-lp-1342747-kvm

Backport: Adds support for stripped-down Ubuntu images which may not have kvm-ok in their path.
Merge pull request #382 from wallyworld/login-test-deadlock-1.20

Fix login test deadlock

One of the login tests could deadlock. Change the test to start all N+1 attempts together, rather than N and then 1.

Fixes lp:1347939
Merge branch '1.20' into copy-session-1.20
Fix old legacy conn tests
Fix jujutxn dependency. Precreate txns collection when connecting to mongo first up
worker/apiaddressupdater: clarify docs
worker/peergrouper: don't call SetAPIHostPorts unless changed

We're spamming the transaction log with SetAPIHostPorts
transactions even when the addresses have not changed.
This change stops that from happening.

Fixes https://bugs.launchpad.net/bugs/1345832
Merge pull request #385 from wallyworld/copy-session-1.20

Copy mongo sessions

Backport from master.

Fixes lp:1307434 (hopefully)

Each time a mgo interaction is required, the session is copied to try and ensure the underlying socket is not stale.
Merge pull request #391 from axw/lp1345832-nochange-nosetapihostports-1.20

We're spamming the transaction log with SetAPIHostPorts transactions even

when the addresses have not changed. This change stops that from happening.

Drive-by improvement to apiaddressupdater doc comments, which
were wrong and unhelpful.

Fixes https://bugs.launchpad.net/bugs/1345832