print"Error connecting to host, sleeping 30: {0}".format(e)
# If this was an ssh failure, provide the user with hints.
ife.returncode==255:
raiseUsageError("Failed to SSH to remote host {0}.\nPlease check that you have provided the correct --identity-file and --key-pair parameters and try again.".format(host))
else:
raisee
print>>stderr,"Error executing remote command, retrying after 30 seconds: {0}".format(e)