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
federation e2e tests failing consistently with gce/util.sh: line 1192: local: `replica-pd=jenkins-us-central1-b-master-pd': not a valid identifier #32997
Comments
@colhom Here are some example logs to aid debugging: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-federation/4332 |
@quinton-hoole I believe this to be the source of dysfunction: ERROR: (gcloud.compute.disks.create) Some requests did not succeed:
- The resource 'projects/k8s-jkns-e2e-gce-federation/zones/us-central1-a/disks/jenkins-us-central1-a-master-pd' already exists Which is turn caused by what you found, which causes the disk to not be cleaned up ahead of time: ./hack/e2e-internal/.../cluster/gce/util.sh: line 1192: local: `replica-pd=jenkins-us-central1-b-master-pd': not a valid identifier kubernetes/cluster/gce/util.sh Line 1194 in 87b4078
You can try this out in your local shell: [chom@hompad-work kubernetes]$ REPLICA_NAME="replica-pd=jenkins-us-central1-a-master"
[chom@hompad-work kubernetes]$ function set-replica-name { local -r replica-pd="${REPLICA_NAME:-${MASTER_NAME}}-pd"; }
[chom@hompad-work kubernetes]$ set-replica-name
-bash: local: `replica-pd=replica-pd=jenkins-us-central1-a-master-pd': not a valid identifier git blames leads us to this recent commit: 529818c9 \cc the author @jszczepkowski The root problem is unfortunatley very annoying: this is how bash tells you that variable names (in this case, $replica-pd) cannot contain dashes! |
@quinton-hoole fix is up in #33039 |
Awesome @colhom many thanks. I'll make sure it gets merged ASAP. |
Automatic merge from submit-queue gce/util: $replica-pd --> $replica_pd \cc @quinton-hoole @madhusudancs fixes #32997
./hack/e2e-internal/.../cluster/gce/util.sh: line 1192: local: `replica-pd=jenkins-us-central1-b-master-pd': not a valid identifier
@colhom @madhusudancs FYI - this looks related to your recent work? I don't see any obvious PR to blame, but I seem to remember you guys touching this part of the code recently?
BTW, I deleted a bunch of leaked resources in the relevant test project on Friday (9/16), assuming that the test scripts would re-create whatever they needed. It's possible (but unlikely) that this has anything to do with that.
The text was updated successfully, but these errors were encountered: