Refactoring

Create a new teuthology.provision module and move virtual machine
functions there. Move hostname manipulation functions to
teuthology.misc.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Fix PEP-8 issues

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Update lock_many(), update_lock(), and main()

Also remove lockstatus.send_request()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
keyscan_check(): don't require ctx to be passed

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Re-order functions in module

This is for readability.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Add new ssh_keyscan() method

This is just a cleaner implementation that will replace the existing
one(s).

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
No need to be passing ctx to update_lock()

... or update_keys() or scan_for_locks()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Use new ssh_keyscan() function

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Rewrite ssh public key updating

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Update to use new ssh-keyscan API

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Use /nodes/ as the lock server endpoint

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Change default lock server to paddles

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Remove old lock server

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Use consistent URI for lock server

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Properly query for multiple machine types

...in list_locks()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Optimize some list_locks() calls

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Make far less requests when simply locking

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
internal task
Add unlock_many() and use it when possible

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Use Remote.shortname instead of regex

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>