def _is_storage_shared_with(self, dest, inst_base):
    shared_storage = (dest == self.get_host_ip_addr())
    if (not shared_storage):
        tmp_file = (uuid.uuid4().hex + '.tmp')
        tmp_path = os.path.join(inst_base, tmp_file)
        try:
            utils.execute('ssh', dest, 'touch', tmp_path)
            if os.path.exists(tmp_path):
                shared_storage = True
                os.unlink(tmp_path)
            else:
                utils.execute('ssh', dest, 'rm', tmp_path)
        except Exception:
            pass
    return shared_storage
def _is_storage_shared_with(self, dest, inst_base):
    shared_storage = (dest == self.get_host_ip_addr())
    if (not shared_storage):
        tmp_file = (uuid.uuid4().hex + '.tmp')
        tmp_path = os.path.join(inst_base, tmp_file)
        try:
            utils.execute('ssh', dest, 'touch', tmp_path)
            if os.path.exists(tmp_path):
                shared_storage = True
                os.unlink(tmp_path)
            else:
                utils.execute('ssh', dest, 'rm', tmp_path)
        except Exception:
            pass
    return shared_storage