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>
This commit is contained in:
parent
bd84d69e0d
commit
4023c7277f
@ -28,14 +28,12 @@ if [ "$1x" = "x" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Save the current directory and then cd to /etc/swift
|
||||||
|
temp_dir=$PWD
|
||||||
|
cd /etc/swift
|
||||||
|
|
||||||
for builder_file in $builder_files
|
for builder_file in $builder_files
|
||||||
do
|
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
|
create $builder_file
|
||||||
|
|
||||||
zone=1
|
zone=1
|
||||||
@ -48,3 +46,6 @@ do
|
|||||||
rebalance $builder_file
|
rebalance $builder_file
|
||||||
build $builder_file
|
build $builder_file
|
||||||
done
|
done
|
||||||
|
|
||||||
|
cd $temp_dir
|
||||||
|
echo "Ring files are prepared in /etc/swift"
|
||||||
|
Loading…
Reference in New Issue
Block a user