mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Comment migration test after rollback to 2.2.1 etcd
This commit is contained in:
parent
279219ca89
commit
ccb61d86a4
@ -157,14 +157,15 @@ killApiServer
|
|||||||
# We always perform offline migration, so we need to stop etcd.
|
# We always perform offline migration, so we need to stop etcd.
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
||||||
kube::etcd::stop
|
# TODO: Uncomment once we support migration.
|
||||||
TARGET_STORAGE="etcd3" \
|
#kube::etcd::stop
|
||||||
DATA_DIRECTORY="${ETCD_DIR}" \
|
#TARGET_STORAGE="etcd3" \
|
||||||
ETCD=$(which etcd) \
|
# DATA_DIRECTORY="${ETCD_DIR}" \
|
||||||
ETCDCTL=$(which etcdctl) \
|
# ETCD=$(which etcd) \
|
||||||
ATTACHLEASE="${KUBE_OUTPUT_HOSTBIN}/attachlease" \
|
# ETCDCTL=$(which etcdctl) \
|
||||||
${KUBE_ROOT}/cluster/images/etcd/migrate-if-needed.sh
|
# ATTACHLEASE="${KUBE_OUTPUT_HOSTBIN}/attachlease" \
|
||||||
kube::etcd::start
|
# ${KUBE_ROOT}/cluster/images/etcd/migrate-if-needed.sh
|
||||||
|
#kube::etcd::start
|
||||||
|
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
@ -175,7 +176,8 @@ kube::etcd::start
|
|||||||
|
|
||||||
KUBE_API_VERSIONS="${KUBE_NEW_API_VERSION},${KUBE_OLD_API_VERSION}"
|
KUBE_API_VERSIONS="${KUBE_NEW_API_VERSION},${KUBE_OLD_API_VERSION}"
|
||||||
RUNTIME_CONFIG="api/all=false,api/${KUBE_OLD_API_VERSION}=true,api/${KUBE_NEW_API_VERSION}=true"
|
RUNTIME_CONFIG="api/all=false,api/${KUBE_OLD_API_VERSION}=true,api/${KUBE_NEW_API_VERSION}=true"
|
||||||
startApiServer ${STORAGE_BACKEND_ETCD3} ${KUBE_NEW_STORAGE_VERSIONS} ${KUBE_STORAGE_MEDIA_TYPE_JSON}
|
# TODO: Switch to STORAGE_BACKEND_ETCD3 once we support it.
|
||||||
|
startApiServer ${STORAGE_BACKEND_ETCD2} ${KUBE_NEW_STORAGE_VERSIONS} ${KUBE_STORAGE_MEDIA_TYPE_JSON}
|
||||||
|
|
||||||
# Update etcd objects, so that will now be stored in the new api version.
|
# Update etcd objects, so that will now be stored in the new api version.
|
||||||
kube::log::status "Updating storage versions in etcd"
|
kube::log::status "Updating storage versions in etcd"
|
||||||
@ -190,7 +192,7 @@ for test in ${tests[@]}; do
|
|||||||
new_storage_version=${test_data[5]}
|
new_storage_version=${test_data[5]}
|
||||||
|
|
||||||
kube::log::status "Verifying ${resource}/${namespace}/${name} has updated storage version ${new_storage_version} in etcd"
|
kube::log::status "Verifying ${resource}/${namespace}/${name} has updated storage version ${new_storage_version} in etcd"
|
||||||
ETCDCTL_API=3 ${ETCDCTL} --endpoints="${ETCD_HOST}:${ETCD_PORT}" get "/${ETCD_PREFIX}/${resource}/${namespace}/${name}" | grep ${new_storage_version}
|
${ETCDCTL} --endpoints="${ETCD_HOST}:${ETCD_PORT}" get "/${ETCD_PREFIX}/${resource}/${namespace}/${name}" | grep ${new_storage_version}
|
||||||
done
|
done
|
||||||
|
|
||||||
killApiServer
|
killApiServer
|
||||||
@ -206,7 +208,8 @@ RUNTIME_CONFIG="api/all=false,api/${KUBE_NEW_API_VERSION}=true"
|
|||||||
|
|
||||||
# This seems to reduce flakiness.
|
# This seems to reduce flakiness.
|
||||||
sleep 1
|
sleep 1
|
||||||
startApiServer ${STORAGE_BACKEND_ETCD3} ${KUBE_NEW_STORAGE_VERSIONS} ${KUBE_STORAGE_MEDIA_TYPE_PROTOBUF}
|
# TODO: Switch to STORAGE_BACKEND_ETCD3 once we support it.
|
||||||
|
startApiServer ${STORAGE_BACKEND_ETCD2} ${KUBE_NEW_STORAGE_VERSIONS} ${KUBE_STORAGE_MEDIA_TYPE_PROTOBUF}
|
||||||
|
|
||||||
for test in ${tests[@]}; do
|
for test in ${tests[@]}; do
|
||||||
IFS=',' read -ra test_data <<<"$test"
|
IFS=',' read -ra test_data <<<"$test"
|
||||||
|
Loading…
Reference in New Issue
Block a user