]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: allow parallel creates 21509/head
authorTheofilos Mouratidis <t.mour@cern.ch>
Wed, 18 Apr 2018 08:02:37 +0000 (10:02 +0200)
committerAlfredo Deza <adeza@redhat.com>
Wed, 18 Apr 2018 22:26:18 +0000 (18:26 -0400)
commitb98415890a0c9ad21833eb999b5c94c87ac0334b
tree85f67947d23a9701cbc1d0f9de756d66c0b1c3e0
parentebcbbfb2866af4e80217cf664373080d8864c207
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>
(cherry picked from commit 201817f27ecfe195216284d9e4c344038cb654b6)
src/ceph-volume/ceph_volume/devices/lvm/prepare.py