Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue b75d423979 Merge pull request #51066 from vmware/MultiAttachVolumeIssueVsphere
Automatic merge from submit-queue

Allow attach of volumes to multiple nodes for vSphere

This is a fix for issue #50944 which doesn't allow a volume to be attached to a new node after the node is powered off where the volume was previously attached.

Current behaviour:
One of the cluster worker nodes was powered off in vCenter.
Pods running on this node have been rescheduled on different nodes but got stuck in ContainerCreating. It failed to attach the volume on the new node with error "Multi-Attach error for volume pvc-xxx, Volume is already exclusively attached to one node and can't be attached to another" and hence the application running in the pod has no data available because the volume is not attached to the new node. Since the volume is still attached to powered off node, any attempt to attach the volume on the new node failed with error "Multi-Attach error". It's stuck for 6 minutes until attach/detach controller forcefully tried to detach the volume on the powered off node. After the end of 6 minutes when volume is detached on powered off node, the volume is now successfully attached on the new node and application has now the data available.

What is expected to happen:
I would want the attach/detach controller to go ahead with the attach of the volume on new node where the pod got provisioned instead of waiting for the volume to be detached on the powered off node. It is ok to eventually delete the volume on the powered off node after 6 minutes. This way the application downtime is low and pods are up as soon as possible.

The current fix ignore, vSphere volumes/persistent volume to check for multi-attach scenario in attach/detach controller.

@jingxu97 @saad-ali : Can you please take a look at it.

@tusharnt @divyenpatel @rohitjogvmw @luomiao 

```release-note
Allow attach of volumes to multiple nodes for vSphere
```
2017-08-23 14:32:31 -07:00
.github
api Merge pull request #50257 from diegs/merge-fix 2017-08-23 02:35:03 -07:00
build Remove seemingly obsolete binaries 2017-08-18 21:01:19 -07:00
cluster Add some debug statements to logdump script 2017-08-23 11:51:58 +02:00
cmd Merge pull request #51085 from frobware/disclose-StartTestServerOrDie-error-message 2017-08-23 03:36:10 -07:00
docs Merge pull request #49935 from xiangpengzhao/remove-dep-alias 2017-08-22 19:45:34 -07:00
examples Merge pull request #50882 from zhangxiaoyu-zidif/patch-6 2017-08-19 00:38:01 -07:00
federation Merge pull request #50257 from diegs/merge-fix 2017-08-23 02:35:03 -07:00
Godeps Revert "Updated gRPC vendoring to support Keep Alive" 2017-08-22 15:16:52 +02:00
hack Merge pull request #46902 from thockin/remove-obsolete-bins 2017-08-22 23:13:59 -07:00
logo
pkg Merge pull request #51066 from vmware/MultiAttachVolumeIssueVsphere 2017-08-23 14:32:31 -07:00
plugin Merge pull request #51094 from xilabao/rbac-v1-in-bootstrappolicy 2017-08-23 08:41:10 -07:00
staging Merge pull request #50257 from diegs/merge-fix 2017-08-23 02:35:03 -07:00
test Merge pull request #50665 from xiangpengzhao/hardcode-to-const 2017-08-23 02:35:09 -07:00
third_party
translations
vendor Revert "Updated gRPC vendoring to support Keep Alive" 2017-08-22 15:16:52 +02:00
.bazelrc
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG.md Update CHANGELOG.md for v1.6.9. 2017-08-23 11:57:22 -07:00
code-of-conduct.md
CONTRIBUTING.md
labels.yaml
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES Merge pull request #50650 from resouer/reviewer 2017-08-16 22:12:14 -07:00
README.md
SUPPORT.md
Vagrantfile
WORKSPACE

Kubernetes

Submit Queue Widget GoDoc Widget


Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If you are a company that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who's involved and how Kubernetes plays a role, read the CNCF announcement.


To start using Kubernetes

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/kubernetes
$ make
You have a working Docker environment.
$ git clone https://github.com/kubernetes/kubernetes
$ cd kubernetes
$ make quick-release

If you are less impatient, head over to the developer's documentation.

Support

If you need support, start with the troubleshooting guide and work your way through the process that we've outlined.

That said, if you have questions, reach out to us one way or another.

Analytics