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

ceph-volume: allow parallel creates #21489

Merged
merged 1 commit into from Apr 18, 2018

Conversation

thmour
Copy link

@thmour thmour commented Apr 18, 2018

Currently the create code decides the vg_name "ceph-$cluster_fsid" as
the primary vg_name and creates a new name if this already exists.

If this code is run N times in parallel, the script will try to
create N times the vg with the name "ceph-$cluster_fsid" and it
will fail to create the N osds successfully.

Creating vgs with names like "ceph-$uuid4" lets our scripts to run
in parallel without any problems.

Fixes: http://tracker.ceph.com/issues/23757

Signed-off-by: Theofilos Mouratidis t.mour@cern.ch

Currently the create code decides the vg_name "ceph-$cluster_fsid" as
the primary vg_name and creates a new name if this already exists.

If this code is run N times in parallel, the script will try to
create N times the vg with the name "ceph-$cluster_fsid" and it
will fail to create the N osds successfully.

Creating vgs with names like "ceph-$uuid4" lets our scripts to run
without any problems.

Signed-off-by: Theofilos Mouratidis <t.mour@cern.ch>
@thmour
Copy link
Author

thmour commented Apr 18, 2018

@alfredodeza can you review this?

@andrewschoen
Copy link
Contributor

jenkins test ceph-volume tox

@andrewschoen
Copy link
Contributor

@thmour would you please push this branch to https://github.com/ceph/ceph-ci so that we can get some repos to test against. Thanks!

@alfredodeza
Copy link
Contributor

@thmour thanks for this PR, I've taken your branch and pushed to ceph-ci.git so that we can get packages, will trigger some functional tests once those repos are ready

@alfredodeza alfredodeza merged commit b6344f3 into ceph:master Apr 18, 2018
@thmour thmour deleted the thmour_parallel_create branch April 19, 2018 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants