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 unmap #197

Merged
merged 4 commits into from
Mar 19, 2016
Merged

Fix unmap #197

merged 4 commits into from
Mar 19, 2016

Conversation

erikh
Copy link
Contributor

@erikh erikh commented Mar 18, 2016

This creates a number of fixes for potential and infrequent failures in the mount/unmount process in volplugin. It also exposes a bug in docker via moby/moby#21015 which is required to fix the issue for multiple atttempts at unmounting the same mountpoint on the same host.

Signed-off-by: Erik Hollensbe <erik+github@hollensbe.org>
Signed-off-by: Erik Hollensbe <erik+github@hollensbe.org>
… the same host would trump each other.

Signed-off-by: Erik Hollensbe <erik+github@hollensbe.org>
…t bugs

Signed-off-by: Erik Hollensbe <erik+github@hollensbe.org>
@mapuri
Copy link
Contributor

mapuri commented Mar 19, 2016

LGTM, I guess we need this as ceph won't allow mounting same volume more than once, right?

Just to understand the docker issue and the fix well, basically docker will continue to send unmount but has added an ID to mount and unmount request that volplugin can use to disregard unmount requests that don't have corresponding successful mount? Do we need to worry about these ID's being global v/s host local, looks like not becasue swarm will anyways create a volume on every host. Is that correct?

@erikh
Copy link
Contributor Author

erikh commented Mar 19, 2016

It's just not safe to do, ceph will let it happen though. There is a facility in ceph itself to make/remove these locks, but it hasn't proven very reliable to me yet.

@mapuri
Copy link
Contributor

mapuri commented Mar 19, 2016

ah..ok, yeah I remember we had tried ceph locks before in volplugin.

@erikh
Copy link
Contributor Author

erikh commented Mar 19, 2016

Just to understand the docker issue and the fix well, basically docker will continue to send unmount but has added an ID to mount and unmount request that volplugin can use to disregard unmount requests that don't have corresponding successful mount? Do we need to worry about these ID's being global v/s host local, looks like not becasue swarm will anyways create a volume on every host. Is that correct?

To answer this, yes, that is the exact scenario we are hitting.

@erikh
Copy link
Contributor Author

erikh commented Mar 19, 2016

global vs. host local: these ids are generated locally and are per-mount, not per-volume, well at least once they arrive that is.

erikh pushed a commit that referenced this pull request Mar 19, 2016
@erikh erikh merged commit 79f80b5 into contiv-experimental:master Mar 19, 2016
@erikh erikh deleted the fix-unmap branch April 9, 2016 09:29
erikh added a commit to erikh/volplugin that referenced this pull request May 19, 2016
b9e9302 Merge pull request contiv-experimental#197 from mapuri/docker
8ce63b8 bump up versions of contiv services
a4ce37f Add support for installing Docker CS engine
641fef9 Merge pull request contiv-experimental#196 from vvb/ovs_fix
135dfdb using the latest openvswitch rpm as in openstak-kilo repo

git-subtree-dir: ansible
git-subtree-split: b9e930270ae327e27fa66f2325f0fded4844f10b
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.

2 participants