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

Fix initialization of volume controller caches. #28108

Merged
merged 1 commit into from
Jun 27, 2016

Conversation

jsafrane
Copy link
Member

Fix PersistentVolumeController.initializeCaches() to pass pointers to volume or claim to storeObjectUpdate() and add extra functions to enforce that the right types are checked in the future.

Fixes #28076

Fix PersistentVolumeController.initializeCaches() to pass pointers to volume
or claim to storeObjectUpdate() and add extra functions to enforce that the
right types are checked in the future.


Fixes kubernetes#28076
@jsafrane jsafrane added release-note-none Denotes a PR that doesn't merit a release note. sig/storage Categorizes an issue or PR as relevant to SIG Storage. team/cluster and removed cla: yes labels Jun 27, 2016
@jsafrane
Copy link
Member Author

This should be cherry picked together with #28002

@jsafrane jsafrane added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Jun 27, 2016
@k8s-cherrypick-bot
Copy link

Removing label cherrypick-candidate because no release milestone was set. This is an invalid state and thus this PR is not being considered for cherry-pick to any release branch. Please add an appropriate release milestone and then re-add the label.

@k8s-github-robot k8s-github-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 27, 2016
@k8s-bot
Copy link

k8s-bot commented Jun 27, 2016

GCE e2e build/test passed for commit a8dfe7fde96fe0dc6fb2c87b49e124fe005cdbb5.

@jsafrane
Copy link
Member Author

cc @kubernetes/sig-storage @lavalamp @asalkeld

@k8s-bot
Copy link

k8s-bot commented Jun 27, 2016

GCE e2e build/test passed for commit 169076e.

@eparis eparis added this to the v1.3 milestone Jun 27, 2016
storeObjectUpdate(ctrl.volumes.store, volume, "volume")
clone, err := conversion.NewCloner().DeepCopy(&volume)
if err != nil {
glog.Errorf("error cloning volume %q: %v", volume.Name, err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you get this error, you continue to use clone right below?

@lavalamp
Copy link
Member

The added type checking makes me feel a LOT better about this code, thanks.

@saad-ali saad-ali assigned lavalamp and matchstick and unassigned saad-ali Jun 27, 2016
@timothysc
Copy link
Member

Umm this is effecting nearly every PR atm.

@j3ffml
Copy link
Contributor

j3ffml commented Jun 27, 2016

Anything we can do to accelerate this? PV controller unit test flake (#28076) is dominating cause of submit queue blockage.

@lavalamp
Copy link
Member

I'm ok with merging now and fixing my comments in a follow-up if this is blocking merges.

@j3ffml
Copy link
Contributor

j3ffml commented Jun 27, 2016

Yeah, the issue this (hopefully) fixes is blocking merges and causing pr builder flakes.

@lavalamp
Copy link
Member

LGTM

@lavalamp lavalamp added lgtm "Looks good to me", indicates that a PR is ready to be merged. retest-not-required labels Jun 27, 2016
@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit be68214 into kubernetes:master Jun 27, 2016
@erictune erictune added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Jun 27, 2016
jsafrane added a commit to jsafrane/kubernetes that referenced this pull request Jun 28, 2016
We should not use clone result When cloning fails. Fixes issues found in kubernetes#28108.
@jsafrane
Copy link
Member Author

Thanks for review, I filled #28108 with fixed error checks.

@eparis eparis mentioned this pull request Jun 28, 2016
@lavalamp
Copy link
Member

@jsafrane I think you meant #28147, which I just LGTMed and requested a cherry-pick for. Thanks!

k8s-github-robot pushed a commit that referenced this pull request Jun 28, 2016
Automatic merge from submit-queue

Fix error checks after cloning.

We should not use clone result When cloning fails. Fixes issues found in #28108.
eparis pushed a commit to eparis/kubernetes that referenced this pull request Jun 29, 2016
Automatic merge from submit-queue

Fix initialization of volume controller caches.

Fix `PersistentVolumeController.initializeCaches()` to pass pointers to volume or claim to  `storeObjectUpdate()` and add extra functions to enforce that the right types are checked in the future.

Fixes kubernetes#28076
(cherry picked from commit be68214)
eparis pushed a commit to eparis/kubernetes that referenced this pull request Jun 29, 2016
Automatic merge from submit-queue

Fix error checks after cloning.

We should not use clone result When cloning fails. Fixes issues found in kubernetes#28108.

(cherry picked from commit 8c5be72)
k8s-github-robot pushed a commit that referenced this pull request Jun 29, 2016
Automatic merge from submit-queue

Batch update for 1.3

#28030: Revert "Federation e2e supports aws"
#28026: Address outstanding review comments in #27999.
#28034: Adding lock files for kubeconfig updating
#28004: return nil from NewClientConfig instead of empty struct
#28032: Increase pod CPU/memory for fluentd, dns and kube-proxy.
#27208: Bump minimum API version for docker to 1.21
#28061: Remove extra double quotes in --federations.
#28060: rkt: Fix the 'privileged' check when stage1 annotation is provided.
#27996: Image GC logic should compensate for reserved blocks
#28044: rkt: Bump required rkt version to 1.9.1.
#28040: Tracked addition of federation, sed support in kube DNS
#28043: Set grace period to 0 when deleting namespaces after the test.
#28002: Fix startup type error in initializeCaches
#28087: Hotfix: Fixup the hyperkube dns manifest from a breaking federation PR
#28108: Fix initialization of volume controller caches.
#28056: Increase kube-dns requirements on CoreOS.
#28147: Fix error checks after cloning.
#28159: Use : as seccomp security option operator for Docker 1.10
#28165: Refactored, expanded and fixed federated-services e2e tests.
#28095: Kubelet should mark VolumeInUse before checking if it is Attached
#28172: Build: Add KUBE_GCS_RELEASE_BUCKET_MIRROR option to push-ci-build.sh
#28207: Bump cluster autoscaler to 0.2.2
#28160: Volume manager must verify containers terminated before deleting for ungracefully terminated pods
#28211: Fix federation e2e tests by correctly managing cluster clients
#27944: Fix pvc label selector validation error
#28186: federation: Upgrading the groupversion to v1beta1
@k8s-cherrypick-bot
Copy link

Commit found in the "release-1.3" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. release-note-none Denotes a PR that doesn't merit a release note. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.