Skip to content
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

Closed
msau42 opened this issue May 6, 2019 · 7 comments · Fixed by kubernetes/test-infra#12482
Closed

snapshot tests are failing on master #120

msau42 opened this issue May 6, 2019 · 7 comments · Fixed by kubernetes/test-infra#12482
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects

Comments

@msau42
Copy link
Collaborator

msau42 commented May 6, 2019

@msau42
Copy link
Collaborator Author

msau42 commented May 6, 2019

/kind bug
/assign @xing-yang

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label May 6, 2019
@xing-yang
Copy link
Collaborator

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
https://github.com/kubernetes-csi/external-snapshotter/blob/master/deploy/kubernetes/rbac.yaml#L28
https://github.com/kubernetes-csi/csi-driver-host-path/blob/master/deploy/util/deploy-hostpath.sh#L80

@xing-yang
Copy link
Collaborator

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.

@xing-yang
Copy link
Collaborator

Should I backport the rbac.yaml change to v1.1.0 branch?

@msau42
Copy link
Collaborator Author

msau42 commented May 6, 2019

@pohly since this is a canary job, should it be using rbacs from master?

@pohly
Copy link
Contributor

pohly commented May 7, 2019

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".

@msau42
Copy link
Collaborator Author

msau42 commented May 7, 2019

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

K8s 1.15 automation moved this from To do to Done May 8, 2019
ggriffiths pushed a commit to ggriffiths/external-snapshotter that referenced this issue Apr 15, 2021
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
xing-yang pushed a commit to xing-yang/external-snapshotter that referenced this issue Jul 26, 2021
docs: steps for adding testing against new Kubernetes release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
No open projects
K8s 1.15
  
Done
Development

Successfully merging a pull request may close this issue.

4 participants