-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix upgrade.sh image setup #34468
Fix upgrade.sh image setup #34468
Conversation
The original fix (kubernetes#33147) sourced the correct `node-helper.sh` but set `node_os_distribution` instead of `NODE_OS_DISTRIBUTION`. The `set-node-image` function is imported indirectly via `source "${KUBE_ROOT}/cluster/kube-util.sh"`, which in turn (in the GCE case) sources `cluster/gce/util.sh`. Since the `set-node-image` function relies on the `NODE_OS_DISTRIBUTION` variable, the original fix did not have the entire intended effect. I have confirmed that cherry-picking kubernetes#33147 into the `release-1.4` branch and layering this commit on top of it make for a successful upgrade from a GCI based K8s 1.3 cluster to a GCI based K8s 1.4 cluster.
@vishh Just to be thorough, we should probably additionally check that |
Jenkins GKE smoke e2e failed for commit 263c54c. Full PR test history. The magic incantation to run this job again is |
@@ -179,8 +179,8 @@ function upgrade-nodes() { | |||
function setup-base-image() { | |||
if [[ "${env_os_distro}" == "false" ]]; then | |||
echo "== Ensuring that new Node base OS image matched the existing Node base OS image" | |||
node_os_distribution=$(get-node-os "${NODE_NAMES[0]}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was meant to be a local variable. I did not realize that it is actually necessary. Err......
@k8s-bot gke e2e test this github issue #IGNORE |
@k8s-bot gci gke e2e test this github issue #IGNORE |
@mtaufen get the tests to pass. |
@vishh I'll keep an eye on them and figure it out. |
Jenkins GCI GKE smoke e2e failed for commit 263c54c. Full PR test history. The magic incantation to run this job again is |
Seems failure is related to #34483, re-running tests |
@k8s-bot gci gke test this |
Automatic merge from submit-queue |
@mtaufen thanks will do |
Thanks :) |
#34468-#34416-#34010-origin-release-1.4 Automatic merge from submit-queue Automated cherry pick of #33147 #34468 #34416 #34010 origin release 1.4 Cherry pick of #33147 #34468 #34416 #34010 on release-1.4. #33147: fix base image pinning during upgrades via #34468: Fix upgrade.sh image setup #34416: hyperkube image: add cifs-utils #34010: Match GroupVersionKind against specific version
cherry-picked from #34628 |
…ck-of-#33147-kubernetes#34468-kubernetes#34416-kubernetes#34010-origin-release-1.4 Automatic merge from submit-queue Automated cherry pick of kubernetes#33147 kubernetes#34468 kubernetes#34416 kubernetes#34010 origin release 1.4 Cherry pick of kubernetes#33147 kubernetes#34468 kubernetes#34416 kubernetes#34010 on release-1.4. kubernetes#33147: fix base image pinning during upgrades via kubernetes#34468: Fix upgrade.sh image setup kubernetes#34416: hyperkube image: add cifs-utils kubernetes#34010: Match GroupVersionKind against specific version
The original fix (#33147) sourced the correct
node-helper.sh
but setnode_os_distribution
instead ofNODE_OS_DISTRIBUTION
. Theset-node-image
function is imported indirectly viasource "${KUBE_ROOT}/cluster/kube-util.sh"
, which in turn (in the GCE case)sources
cluster/gce/util.sh
. Since theset-node-image
functionrelies on the
NODE_OS_DISTRIBUTION
variable, the original fixdid not have the entire intended effect.
I have confirmed that cherry-picking #33147 into the
release-1.4
branch and layering this commit on top of it make for a successful
upgrade from a GCI based K8s 1.3 cluster to a GCI based K8s 1.4 cluster.
NOTE: This, along with #33147, should be cherry-picked into the
release-1.4
branch.This change is