
This removes the reliance on coredns for APIserver discovery, allowing a simpler configuration that is compatible with corednx 1.0.x Change-Id: Ia3b7b5627c16ec47af6b0d6d5e8dee2674e9b1ee
26 lines
799 B
Bash
26 lines
799 B
Bash
validate_cluster() {
|
|
NAME=${1}
|
|
|
|
log Validating cluster via VM "${NAME}"
|
|
rsync_cmd "${TEMP_DIR}/scripts/validate-cluster.sh" "${NAME}:/root/promenade/"
|
|
ssh_cmd "${NAME}" /root/promenade/validate-cluster.sh
|
|
}
|
|
|
|
validate_etcd_membership() {
|
|
CLUSTER=${1}
|
|
VM=${2}
|
|
shift 2
|
|
EXPECTED_MEMBERS="${*}"
|
|
|
|
# NOTE(mark-burnett): Wait a moment for disks in test environment to settle.
|
|
sleep 10
|
|
log Validating "${CLUSTER}" etcd membership via "${VM}"
|
|
FOUND_MEMBERS=$(etcdctl_member_list "${CLUSTER}" "${VM}" | tr '\n' ' ' | sed 's/ $//')
|
|
|
|
if [[ "x${EXPECTED_MEMBERS}" != "x${FOUND_MEMBERS}" ]]; then
|
|
log Etcd membership check failed for cluster "${CLUSTER}"
|
|
log "Found \"${FOUND_MEMBERS}\", expected \"${EXPECTED_MEMBERS}\""
|
|
exit 1
|
|
fi
|
|
}
|