]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: allow parallel creates 21489/head
authorTheofilos Mouratidis <t.mour@cern.ch>
Wed, 18 Apr 2018 08:02:37 +0000 (10:02 +0200)
committerTheofilos Mouratidis <t.mour@cern.ch>
Wed, 18 Apr 2018 08:02:37 +0000 (10:02 +0200)
commit201817f27ecfe195216284d9e4c344038cb654b6
tree139d8e4e3691124cac56d71963b92e30159fe1cb
parentfdbc1e6d7cff0a8e9e0c6dc42a077b4a9172e968
ceph-volume: allow parallel creates

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>
src/ceph-volume/ceph_volume/devices/lvm/prepare.py