Update glusterfs version

glusterfs-8 is EOL, 11 is the latest
available version.

Also add systemctl enable/disable to
ensure glusterd is running after restarts
and log the status of the daemon after
starting it.

Change-Id: I7ad3d5068021097f33958a28c0a49eed362f6379
This commit is contained in:
Goutham Pacha Ravi 2023-09-16 15:07:53 -04:00
parent 1fcbee9c6f
commit 1db996ae01
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,7 @@ function install_glusterfs {
if [[ ${DISTRO} =~ rhel7 ]] && [[ ! -f /etc/yum.repos.d/glusterfs-epel.repo ]]; then
sudo wget $GLUSTERFS_CENTOS_REPO -O /etc/yum.repos.d/glusterfs-epel.repo
elif is_ubuntu; then
sudo add-apt-repository ppa:gluster/glusterfs-8 -y
sudo add-apt-repository ppa:gluster/glusterfs-11 -y
NO_UPDATE_REPOS=False
REPOS_UPDATED=False
fi
@ -25,12 +25,15 @@ function install_glusterfs {
# Start gluster service
function _start_glusterfs {
sudo systemctl start glusterd
sudo systemctl enable glusterd
sudo systemctl status glusterd
}
# Stop running gluster service
# Triggered from devstack/plugin.sh as part of devstack "unstack"
function stop_glusterfs {
sudo systemctl stop glusterd
sudo systemctl disable glusterd
}
# Clean Shares