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

Check claimRef UID when processing a recycled PV #23078

Merged
merged 1 commit into from Mar 25, 2016
Merged

Check claimRef UID when processing a recycled PV #23078

merged 1 commit into from Mar 25, 2016

Conversation

ghost
Copy link

@ghost ghost commented Mar 16, 2016

After a volume is recycled and it is in the pending state if a new PVC is created with the same name that the old PV was bound to, the newly recycled PV never gets to the Available state. This patch corrects that
@jsafrane WDYT ?

@k8s-github-robot
Copy link
Contributor

Labelling this PR as size/XS

@k8s-github-robot k8s-github-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 16, 2016
@k8s-bot
Copy link

k8s-bot commented Mar 16, 2016

GCE e2e build/test passed for commit b77abe5.

@jsafrane
Copy link
Member

Good catch, LGTM.

@childsb childsb added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 18, 2016
@k8s-github-robot
Copy link
Contributor

@k8s-bot test this

Tests are more than 48 hours old. Re-running tests.

@k8s-bot
Copy link

k8s-bot commented Mar 18, 2016

GCE e2e build/test passed for commit b77abe5.

@@ -238,7 +238,7 @@ func syncVolume(volumeIndex *persistentVolumeOrderedIndex, binderClient binderCl

if volume.Spec.ClaimRef != nil {
claim, err := binderClient.GetPersistentVolumeClaim(volume.Spec.ClaimRef.Namespace, volume.Spec.ClaimRef.Name)
if errors.IsNotFound(err) {
if errors.IsNotFound(err) || (claim != nil && claim.UID != volume.Spec.ClaimRef.UID) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: log this for debugging.

Copy link
Member

Choose a reason for hiding this comment

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

Can add in a follow up PR (I'm not going to remove LGTM).

@saad-ali
Copy link
Member

LGTM mod nit

@pmorie
Copy link
Member

pmorie commented Mar 24, 2016

@swagiaal tests failed

@k8s-github-robot
Copy link
Contributor

@ncdc
You must link to the test flake issue which caused you to request this manual re-test.
Re-test requests should be in the form of: k8s-bot test this issue: #<number>
Here is the list of open test flakes.

@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 24, 2016
@childsb childsb added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 24, 2016
@k8s-github-robot
Copy link
Contributor

@k8s-bot test this

Tests are more than 48 hours old. Re-running tests.

@k8s-bot
Copy link

k8s-bot commented Mar 24, 2016

GCE e2e build/test passed for commit b77abe5.

@k8s-github-robot
Copy link
Contributor

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Mar 25, 2016

GCE e2e build/test passed for commit b77abe5.

@k8s-github-robot
Copy link
Contributor

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit a577e16 into kubernetes:master Mar 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants