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

UPSTREAM: 46771 Allow pv-binder-controller to List Nodes/Zones Available in the Cluster #14415

Conversation

pospispa
Copy link

Cinder, AWS and GCE provisioners choose a zone from the list of zones available in the cluster in case no zone is specified in the corresponding Storage Class. However, currently the provisioner (pv-binder-controller) do not have right to get the list of nodes/zones available in the cluster.

That's why the pv-binder-controller is being given permission to list and watch nodes in the cluster.

IMPORTANT: this PR was NOT tested.

This PR should resolves this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1457092

This PR does not require any documentation changes.

@rootfs PTAL

@rootfs
Copy link
Member

rootfs commented May 31, 2017

LGTM

@childsb can you merge?

@childsb
Copy link
Contributor

childsb commented May 31, 2017

[test]

@pospispa pospispa force-pushed the bugzilla1457092-Dynamic-provisioning-failed-when-zone-is-not-specified-in-the-StorageClass-incorrect-scc-permissions-for-pv-controller branch 2 times, most recently from 208e80c to b885ed7 Compare June 1, 2017 11:27
@childsb
Copy link
Contributor

childsb commented Jun 1, 2017

[merge][severity:blocker]

@pospispa
Copy link
Author

pospispa commented Jun 2, 2017

flake #8502

@jsafrane
Copy link
Contributor

jsafrane commented Jun 2, 2017

[merge][severity:blocker]

@childsb
Copy link
Contributor

childsb commented Jun 2, 2017

you can do it rosie
[merge][severity:blocker]

@pospispa
Copy link
Author

pospispa commented Jun 2, 2017

flake #13271

@liggitt
Copy link
Contributor

liggitt commented Jun 2, 2017

permission changes to core controllers also need corresponding upstream PRs. there happened to be one for this already, but please tag @deads2k, @enj, and/or I if you need assistance with the upstream PR

@pospispa
Copy link
Author

pospispa commented Jun 2, 2017

flake #14460

@pospispa
Copy link
Author

pospispa commented Jun 2, 2017

@liggitt @childsb created corresponding upstream PR: kubernetes/kubernetes#46870

@liggitt
Copy link
Contributor

liggitt commented Jun 2, 2017

sorry I was unclear... there was already an upstream PR for this issue. in the future, if you need to make permission changes for upstream controllers, be sure to open corresponding PRs upstream. thanks.

@childsb
Copy link
Contributor

childsb commented Jun 2, 2017

@liggitt whats the existing PR?

@pospispa
Copy link
Author

pospispa commented Jun 2, 2017

The existing PR is kubernetes/kubernetes#46771

…able in the Cluster

Backport of K8s PR #46771.

Cinder provisioner chooses a zone from the list of zones available in the cluster in case no zone is specified in the corresponding Storage Class. However, currently the provisioner (pv-binder-controller) does not have right to get the list of nodes/zones available in the cluster.

That's why the pv-binder-controller is being given permission to list and watch nodes in the cluster.
@pospispa pospispa force-pushed the bugzilla1457092-Dynamic-provisioning-failed-when-zone-is-not-specified-in-the-StorageClass-incorrect-scc-permissions-for-pv-controller branch from b885ed7 to 54b994c Compare June 2, 2017 18:12
@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 54b994c

@childsb
Copy link
Contributor

childsb commented Jun 2, 2017

Per pospispa - Code is slightly different structure in openshift for same function.

@childsb
Copy link
Contributor

childsb commented Jun 2, 2017

[merge][severity:blocker]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 54b994c

@childsb childsb changed the title Allow pv-binder-controller to List Nodes/Zones Available in the Cluster UPSTREAM: 46771 Allow pv-binder-controller to List Nodes/Zones Available in the Cluster Jun 2, 2017
@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1914/) (Base Commit: 5f2f3f4)

@openshift-bot
Copy link
Contributor

openshift-bot commented Jun 3, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/888/) (Base Commit: 663ad03) (Extended Tests: blocker) (Image: devenv-rhel7_6296)

@openshift-bot openshift-bot merged commit 90592c5 into openshift:master Jun 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants