try {
pool = Pool.getByUuid(conn, _host.pool);
Pool.Record poolr = pool.getRecord(conn);
Host.Record hostr = poolr.master.getRecord(conn);
if (!_host.uuid.equals(hostr.uuid)) {
return new ClusterVMMetaDataSyncAnswer(cmd.getClusterId(), null);
}
} catch (Throwable e) {
s_logger.warn("Check for master failed, failing the Cluster sync VMMetaData command");
return new ClusterVMMetaDataSyncAnswer(cmd.getClusterId(), null);
}
HashMap<String, String> vmMetadatum = clusterVMMetaDataSync(conn);
return new ClusterVMMetaDataSyncAnswer(cmd.getClusterId(), vmMetadatum);
}