-
Notifications
You must be signed in to change notification settings - Fork 379
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
snapshot tests are failing on master #120
Comments
/kind bug |
I see the following failure in the logs. So this is because the rbac used by the tests don't have permissions to update PVC object. May 6 11:58:20.966: INFO: At 2019-05-06 11:53:20 +0000 UTC - event for snapshot-694nl: {csi-snapshotter csi-hostpath } SnapshotCreationFailed: Failed to create snapshot: snapshot controller failed to update pvc-8fjdj on API server: persistentvolumeclaims "pvc-8fjdj" is forbidden: User "system:serviceaccount:default:csi-snapshotter" cannot update resource "persistentvolumeclaims" in API group "" in the namespace "snapshotting-4340" The rbac has been updated in both e2e/testing-manifests and external-snapshotter repo. The one in external-snapshotter is used by csi-driver-host-path in e2e testing. So it looks like this failed test uses rbac file from a different location. https://github.com/kubernetes/kubernetes/blob/master/test/e2e/testing-manifests/storage-csi/external-snapshotter/rbac.yaml#L28 |
I see the following in the logs: kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v1.1.0/deploy/kubernetes/rbac.yaml So it reads rbac.yaml from v1.1.0. The change that requires an update PVC rbac permission is merged after the v1.1.0 release. |
Should I backport the rbac.yaml change to v1.1.0 branch? |
@pohly since this is a canary job, should it be using rbacs from master? |
That depends. One aspect of the "canary" jobs is to verify that the new images are still compatible with existing deployments, i.e. also with the RBAC rules used by those deployments. If that test fails, then we know that the next release has a breaking change and thus needs a major version bump. The deployment controls the RBAC rules, but there is already a knob for overriding that if needed. I've added a new commit to kubernetes/test-infra#12482 which changes that knob for the "on-master" jobs. Note that this will then also change the RBAC rules for the "canary-on-master" job, not just "alpha-canary-on-master". |
Alpha features can break so I think that is fine. If a stable sidecar required a new rbac rule for an existing feature, then the canary-on-1.13/1.14 jobs would break |
bc0504a Merge pull request kubernetes-csi#140 from jsafrane/remove-unused-k8s-libs 5b1de1a go-get-kubernetes.sh: remove unused k8s libs 49b4269 Merge pull request kubernetes-csi#120 from pohly/add-kubernetes-release a1e1127 Merge pull request kubernetes-csi#139 from pohly/kind-for-kubernetes-latest 1c0fb09 prow.sh: use KinD main for latest Kubernetes 1d77cfc Merge pull request kubernetes-csi#138 from pohly/kind-update-0.10 bff2fb7 prow.sh: KinD 0.10.0 95eac33 Merge pull request kubernetes-csi#137 from pohly/fix-go-version-check 437e431 verify-go-version.sh: fix check after removal of travis.yml 1748b16 Merge pull request kubernetes-csi#136 from pohly/go-1.16 ec844ea remove travis.yml, Go 1.16 df76aba Merge pull request kubernetes-csi#134 from andyzhangx/add-build-arg e314a56 add build-arg ARCH for building multi-arch images, e.g. ARG ARCH FROM k8s.gcr.io/build-image/debian-base-${ARCH}:v2.1.3 7bc70e5 Merge pull request kubernetes-csi#129 from pohly/squash-documentation e0b02e7 README.md: document usage of --squash 316cb95 Merge pull request kubernetes-csi#132 from yiyang5055/bugfix/boilerplate 26e2ab1 fix: default boilerplate path 1add8c1 Merge pull request kubernetes-csi#133 from pohly/kubernetes-1.20-tag 3e811d6 prow.sh: fix "on-master" prow jobs 1d60e77 Merge pull request kubernetes-csi#131 from pohly/kubernetes-1.20-tag 9f10459 prow.sh: support building Kubernetes for a specific version f7e7ee4 docs: steps for adding testing against new Kubernetes release fe1f284 Merge pull request kubernetes-csi#121 from kvaps/namespace-check 8fdf0f7 Merge pull request kubernetes-csi#128 from fengzixu/master 1c94220 fix: fix a bug of csi-sanity a4c41e6 Merge pull request kubernetes-csi#127 from pohly/fix-boilerplate ece0f50 check namespace for snapshot-controller dbd8967 verify-boilerplate.sh: fix path to script 9289fd1 Merge pull request kubernetes-csi#125 from sachinkumarsingh092/optional-spelling-boilerplate-checks ad29307 Make the spelling and boilerplate checks optional 5f06d02 Merge pull request kubernetes-csi#124 from sachinkumarsingh092/fix-spellcheck-boilerplate-tests 48186eb Fix spelling and boilerplate errors 71690af Merge pull request kubernetes-csi#122 from sachinkumarsingh092/include-spellcheck-boilerplate-tests 981be3f Adding spelling and boilerplate checks. 2bb7525 Merge pull request kubernetes-csi#117 from fengzixu/master 4ab8b15 use the tag to replace commit of csi-test 5d74e45 change the csi-test import path to v4 7dcd0a9 upgrade csi-test to v4.0.2 git-subtree-dir: release-tools git-subtree-split: bc0504a
docs: steps for adding testing against new Kubernetes release
https://k8s-testgrid.appspot.com/sig-storage-csi#alpha-canary-on-master
Latest failing run:
https://prow.k8s.io/view/gcs/kubernetes-jenkins/logs/ci-kubernetes-csi-alpha-canary-on-kubernetes-master/1125363941975789568
The text was updated successfully, but these errors were encountered: