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>
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>
f pep-8
don't use name
use name in exc
use for stdout
stderr not stdout
stdout and stderr