Use master as default for debian upgrade.

Make sure that uri is defined for debian upgrades.
Use master as default.

Added _get_uri_() which consolidates checking and assignment of
sha1, tags, and branch values.

Fixes: 7707
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Use binary flag for paramiko ChannelFiles

This works around http://tracker.ceph.com/issues/8313

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Force log lines to be interpreted as UTF-8

Any invalid UTF-8 byte will be replaced with a Unicode replacement
character: U+FFFD or '�'

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Merge pull request #254 from ceph/wip-7707-wusui

Use master as default for debian upgrade.
Allow .teuthology.yaml to set downburst path

If .teuthology.yaml defines downburst, _get_downburst_exec()
now returns that value as the path to the downburst executable.

Also cleaned up code in create_if_vm.  ctx.downburst_conf was
never defined, so the code that handled the AttributeError
was always being executed.

Fixes: 6921

Signed-off-by: Warren Usui <warren.usui@inktank.com>
Revert "Revert "Show hostname instead of IP in errors""

This reverts commit 10fee0e368750cf4cd953db5700df59c7f611119.

Conflicts:
	teuthology/orchestra/run.py
Use Unicode format strings

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Consolidate log file setup into shared function

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Use Remote.hostname in logs

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Add Remote.ensure_online()

If the connection is alive, do nothing. If not, reconnect. Allow any
exceptions to bubble up to the caller. This is intended to fix unhelpful
'Bad File Descriptor' errors we were seeing when VMs go down.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Use 'true' instead of 'echo online'

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Pass hostname to execute()

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

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Remote.hostname doesn't have to be a property

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Make Remote.shortname actually short

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Use Remote.shortname in logs

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Add Remote.user attribute

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

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Express hostnames as child logger names

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Catch any Unicode errors that manage to sneak in

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