Skip to content

Commit

Permalink
UPSTREAM: 44798: Cinder: Automatically Generate Zone if Availability …
Browse files Browse the repository at this point in the history
…in Storage Class is not Configured

Backport of Kubernetes PR #44798 (kubernetes/kubernetes#44798).

In case the availability parameter is not configured in a cinder Storage Class the cinder volume is always provisioned in the nova availability zone. That is incorrect.

Now, the cinder volume is provisioned in a zone that is generated by an algorithm from the set of zone available in the cluster.

Positive side-effect: cinder volumes for individual pods in a StatefulSet are provisioned in unique zones. This increases the StatefulSet resilience.
  • Loading branch information
pospispa committed May 12, 2017
1 parent f24a57f commit 879fc71
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 37 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions vendor/k8s.io/kubernetes/pkg/volume/cinder/BUILD

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/k8s.io/kubernetes/pkg/volume/cinder/attacher_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/k8s.io/kubernetes/pkg/volume/cinder/cinder.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/k8s.io/kubernetes/pkg/volume/cinder/cinder_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 51 additions & 10 deletions vendor/k8s.io/kubernetes/pkg/volume/cinder/cinder_util.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 879fc71

Please sign in to comment.