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

pkg/apis/core/validation TestValidatePersistentVolumeClaimUpdate 0.01s #17769

Closed
deads2k opened this issue Dec 13, 2017 · 11 comments · Fixed by #17876
Closed

pkg/apis/core/validation TestValidatePersistentVolumeClaimUpdate 0.01s #17769

deads2k opened this issue Dec 13, 2017 · 11 comments · Fixed by #17876
Assignees
Labels
kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1 sig/storage

Comments

@deads2k
Copy link
Contributor

deads2k commented Dec 13, 2017

https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/17749/test_pull_request_origin_unit/6887/

validation_test.go:1428: Unexpected failure for scenario: valid-size-update-resize-enabled - [spec: Forbidden: is immutable after creation except resources.requests for bound claims]

github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/apis/core/validation TestValidatePersistentVolumeClaimUpdate 0.01s

validation_test.go:1428: Unexpected failure for scenario: valid-size-update-resize-enabled - [spec: Forbidden: is immutable after creation except resources.requests for bound claims]

@openshift/sig-storage

@deads2k deads2k added the kind/test-flake Categorizes issue or PR as related to test flakes. label Dec 13, 2017
@deads2k
Copy link
Contributor Author

deads2k commented Dec 14, 2017

Well, this flakes because it is racing another test that is also twiddling global feature flags.

@gnufied
Copy link
Member

gnufied commented Dec 14, 2017

/assign

@deads2k
Copy link
Contributor Author

deads2k commented Dec 14, 2017

opened kubernetes/kubernetes#57199 to fix it upstream

@deads2k
Copy link
Contributor Author

deads2k commented Dec 14, 2017

@liggitt want kubernetes/kubernetes#57199 or want a giant lock for a pick?

@gnufied
Copy link
Member

gnufied commented Dec 14, 2017

@deads2k are you sure this is because of feature flag? it sounds like, the feature flag was turned on - https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/core/validation/validation.go#L1797 but the PVC had some other change other than storage size.

@gnufied
Copy link
Member

gnufied commented Dec 14, 2017

This is related to kubernetes/kubernetes#56395

@deads2k
Copy link
Contributor Author

deads2k commented Dec 14, 2017

This is related to kubernetes/kubernetes#56395

In a serially run for loop, how would that mutation flake?

@deads2k
Copy link
Contributor Author

deads2k commented Dec 14, 2017

This is related to kubernetes/kubernetes#56395

As an alternative theory, the global feature flag was switched before you entered the if and instead of tolerating some changes, you ran in the very tight "only allow X" block.

@liggitt
Copy link
Contributor

liggitt commented Dec 14, 2017

In a serially run for loop, how would that mutation flake?

testcases are iterating over a map, so order is random

@gnufied
Copy link
Member

gnufied commented Dec 14, 2017

As an alternative theory, the global feature flag was switched before you entered the if and instead of tolerating some changes, you ran in the very tight "only allow X" block.

I am not sure how will that happen. My theory is -ValidatePersistentVolumeClaimUpdate mutates the oldPVC at least in 2 places and each test case gets same copy of pvc (at least for old version). It is likely that one test case is using side-effect of another test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1 sig/storage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants