def ssh_reachable(self, tries=None, propagate_fail=True):
if not self.running():<EOL><INDENT>return False<EOL><DEDENT>try:<EOL><INDENT>ssh.get_ssh_client(<EOL>ip_addr=self.ip(),<EOL>host_name=self.name(),<EOL>ssh_tries=tries,<EOL>propagate_fail=propagate_fail,<EOL>ssh_key=self.virt_env.prefix.paths.ssh_id_rsa(),<EOL>username=self._spec.get('<STR_LIT>'),<EOL>password=self._spec.get('<STR_LIT>'),<EOL>)<EOL><DEDENT>except ssh.LagoSSHTimeoutException:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Check if the VM is reachable with ssh
Args:
    tries(int): Number of tries to try connecting to the host
    propagate_fail(bool): If set to true, this event will appear
    in the log and fail the outter stage. Otherwise, it will be
    discarded.
Returns:
    bool: True if the VM is reachable.