gluster-swift-gen-builders behaviour changes
gluster-swift-gen-builders now changes directory to /etc/swift prior to creating ring files. It does display a message indicating the location of the ring files. BUG: 986458 https://bugzilla.redhat.com/show_bug.cgi?id=986458 Change-Id: Iea33c925d98c47c914e8a95d11faa3220967b4d6 Signed-off-by: Chetan Risbud <crisbud@redhat.com> Reviewed-on: http://review.gluster.org/5658 Reviewed-by: Luis Pabon <lpabon@redhat.com> Tested-by: Luis Pabon <lpabon@redhat.com> Signed-off-by: Chetan Risbud <crisbud@redhat.com> Reviewed-on: http://review.gluster.org/5667
This commit is contained in:
parent
9c667824f0
commit
6af843ed31
|
@ -28,14 +28,10 @@ if [ "$1x" = "x" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
cd /etc/swift
|
||||
|
||||
for builder_file in $builder_files
|
||||
do
|
||||
mkdir /etc/swift/backup_rings
|
||||
chmod +w /etc/swift/backup_rings
|
||||
cp /etc/swift/*.ring.gz /etc/swift/backup_rings
|
||||
|
||||
cd /etc/swift
|
||||
|
||||
create $builder_file
|
||||
|
||||
zone=1
|
||||
|
@ -48,3 +44,5 @@ do
|
|||
rebalance $builder_file
|
||||
build $builder_file
|
||||
done
|
||||
|
||||
echo "Ring files are prepared in /etc/swift"
|
||||
|
|
Loading…
Reference in New Issue