Skip to content

Commit

Permalink
Merge branch 'release/2.4.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
proura committed Nov 15, 2022
2 parents fc62978 + 9314a1b commit b390cf4
Show file tree
Hide file tree
Showing 28 changed files with 404 additions and 134 deletions.
17 changes: 17 additions & 0 deletions doc/drlm-release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,23 @@ DRLM are compatible with previous versions, unless otherwise noted.

The references pointing to fix #nr or issue #nr refer to our issues tracker

DRLM Version 2.4.7 (November 2022) - Release Notes
-------------------------------------------------
* Bugfix removing authorized keys

* Bugfix in installclient DRLM Proxy (hostname unreachable)

* Improved unsched client sql select

* Changed default QEMU_NBD_OPTIONS

* Mutex race solved in nbd assignment

* Improved network, client, backup and job lists

* Bugfix in DRLM PROXY ReaR URL generation


DRLM Version 2.4.6 (September 2022) - Release Notes
---------------------------------------------------
* Bugfix in deb package update
Expand Down
2 changes: 1 addition & 1 deletion etc/drlm/rsyncd/rsyncd.motd
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DRLM server 2.4.6
DRLM server 2.4.7
13 changes: 13 additions & 0 deletions packaging/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
drlm (2.4.7) stable release; urgency=high
* Bugfix removing authorized keys
* Bugfix in installclient DRLM Proxy (hostname unreachable)
* Improved unsched client sql select
* Changed default QEMU_NBD_OPTIONS
* Mutex race solved in nbd assignment
* Improved network, client, backup and job lists
* Bugfix in DRLM PROXY ReaR URL generation

-- Pau Roura <[email protected]> Mon, 14 Nov 2022 00:00:00 +0100

drlm (2.4.6) stable release; urgency=high
* Bugfix in deb package update

-- Pau Roura <[email protected]> Wed, 21 Sep 2022 00:00:00 +0100

-- Pau Roura <[email protected]> Wed, 21 Sep 2022 00:00:00 +0100

drlm (2.4.5) stable release; urgency=high
* NEW! Improved jobs list with status feedback
* NEW! Now is possible to enable and disable Jobs
Expand Down
2 changes: 1 addition & 1 deletion packaging/debian/drlm.dsc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Format: 1.0
Source: drlm
Version: 2.4.6
Version: 2.4.7
Binary: drlm
Maintainer: Pau Roura ([email protected])
Architecture: all
Expand Down
11 changes: 10 additions & 1 deletion packaging/rpm/drlm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Summary: DRLM
Name: drlm
Version: 2.4.6
Version: 2.4.7
Release: 1%{?rpmrelease}%{?dist}
License: GPLv3
Group: Applications/File
Expand Down Expand Up @@ -316,6 +316,15 @@ systemctl start drlm-tftpd.service

%changelog

* Mon Nov 14 2022 Pau Roura <[email protected]> 2.4.7
- Bugfix removing authorized keys.
- Bugfix in installclient DRLM Proxy (hostname unreachable).
- Improved unsched client sql select
- Changed default QEMU_NBD_OPTIONS
- Mutex race solved in nbd assignment
- Improved network, client, backup and job lists
- Bugfix in DRLM PROXY ReaR URL generation

* Wed Sep 21 2022 Pau Roura <[email protected]> 2.4.6
- Bugfix in deb package update

Expand Down
2 changes: 1 addition & 1 deletion usr/sbin/drlm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ readonly INITIAL_BASH_FLAGS_AND_OPTIONS_COMMANDS="$( get_bash_flags_and_options_
# Versioning
readonly PRODUCT="Disaster Recovery Linux Manager"
readonly PROGRAM=${0##*/}
readonly VERSION=2.4.6
readonly VERSION=2.4.7
readonly RELEASE_DATE="Git"

readonly STARTTIME=$SECONDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if [ -n "$BKP_SRC" ]; then
mkdir $TMP_MOUNTPOINT &> /dev/null
if [ $? -ne 0 ]; then Error "Error creating mountpoint directory $TMP_MOUNTPOINT"; fi
# Get a free NBD device
NBD_DEVICE="$(get_free_nbd)"
NBD_DEVICE="$(get_free_nbd $$)"
if [ $? -ne 0 ]; then Error "Error getting a free NBD"; fi

# Attach DR file to a NBD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ ! -d ${STORDIR}/${CLI_NAME}/${CLI_CFG} ]; then
fi

# Get next nbd device free
local NBD_DEVICE="$(get_free_nbd)"
local NBD_DEVICE="$(get_free_nbd $$)"

Log "Enabling DR Backup Store $STORDIR/$CLI_NAME/$CLI_CFG (rw)"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DR_FILE=$(get_backup_drfile_by_backup_id "$BKP_ID")
if [ -n "$DR_FILE" ]; then

# Get a free NBD device
NBD_DEVICE=$(get_free_nbd)
NBD_DEVICE=$(get_free_nbd $$)

# If disable = "yes" and we are here, means that we have to disable this snap but not enable
# for this reason SNAP_ID is set to empty value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fi
LogPrint "Enabling new DR store for client $CLI_NAME and $CLI_CFG"
# Create nbd
# Get next free nbd
NBD_DEVICE=$(get_free_nbd)
NBD_DEVICE=$(get_free_nbd $$)
NBD_DEVICE_PART="${NBD_DEVICE}p1"

# Attach DR file to a NBD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,18 @@ else
if [ $? -ne 0 ]; then
Error "ssh-copy-id failed!"
else
Log "Key succesfully copied to $CLI_NAME"
Log "Key succesfully copied to $CLI_NAME"
AddExitTask "ssh_remove_authorized_keys ${USER} ${CLI_NAME}"
fi
REMOVE_SSH_ID="true"
fi

# The execution of the ssh_dsend_drlm_hostname function has been advanced
# from de last stages of instclient to the firsts so that the hostname of
# the server is available in case packages have to be installed through
# the DRLM Proxy
if ssh_send_drlm_hostname ${USER} ${CLI_NAME} ${SRV_IP} ${SUDO}; then LogPrint "Success to update DRLM hostname info to ${CLI_NAME}"; else Error "Error updating DRLM hostname information, check logfile"; fi

DISTRO=$(ssh_get_distro $USER $CLI_NAME)
RELEASE=$(ssh_get_release $USER $CLI_NAME)
CLI_VERSION=$(echo $RELEASE | cut -d "." -f 1)
Expand Down
11 changes: 11 additions & 0 deletions usr/share/drlm/client/inst/default/359_install_client_soft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

if [ -z "$CONFIG_ONLY" ]; then

# Reevaluate URL_REAR variables if URL_REAR_BASE is defined in site.conf or local.conf
if grep "URL_REAR_BASE=" $CONFIG_DIR/site.conf > /dev/null 2>&1 || grep "URL_REAR_BASE=" $CONFIG_DIR/local.conf > /dev/null 2>&1; then
eval $(grep '="$URL_REAR_BASE' $SHARE_DIR/conf/default.conf)
if grep "^URL_REAR_" $CONFIG_DIR/site.conf > /dev/null 2>&1; then
eval $(grep "^URL_REAR_" $CONFIG_DIR/site.conf)
fi
if grep "^URL_REAR_" $CONFIG_DIR/local.conf > /dev/null 2>&1; then
eval $(grep "^URL_REAR_" $CONFIG_DIR/local.conf)
fi
fi

if [ "$ARCH" == "x86_64" ]; then
REP_ARCH="_64"
elif [ "$ARCH" == "i686" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ if make_ssl_capath ${USER} ${CLI_NAME} ${SUDO}; then LogPrint "SSL CApath succes

if send_ssl_cert ${USER} ${CLI_NAME} ${SUDO}; then LogPrint "SSL certificate successfully sent to ${CLI_NAME}"; else Error "Error sending certificate, check logfile"; fi

if [ -n "$SRV_IP" ]; then
if ssh_send_drlm_hostname ${USER} ${CLI_NAME} ${SRV_IP} ${SUDO}; then LogPrint "Success to update DRLM hostname info to ${CLI_NAME}"; else Error "Error updating DRLM hostname information, check logfile"; fi
fi

if ssh_create_drlm_var ${USER} ${CLI_NAME} ${SUDO}; then LogPrint "Creating /var/lib/drlm in $CLI_NAME"; else Error "Error creating /var/lib/drlm in $CLI_NAME, check logfile"; fi

PUBLIC_KEY=$(ssh_config_public_keys "${USER}" "${CLI_NAME}" "${SRV_IP}" "${SUDO}" )
Expand All @@ -27,7 +23,8 @@ if ssh_config_sudo ${USER} ${CLI_NAME} ${DRLM_USER} ${SUDO}; then LogPrint "Sudo
# Delete root from authorized keys if they were created in this workflow
if [ "$REMOVE_SSH_ID" == "true" ]; then
if ssh_remove_authorized_keys ${USER} ${CLI_NAME}; then
LogPrint "${USER} authorized_keys removed from client ${CLI_NAME}"
LogPrint "${USER} authorized_keys removed from client ${CLI_NAME}"
RemoveExitTask "ssh_remove_authorized_keys ${USER} ${CLI_NAME}"
else
Error "Error removing ${USER} authorized_keys from client ${CLI_NAME}"
fi
Expand Down
3 changes: 2 additions & 1 deletion usr/share/drlm/conf/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,10 @@ QCOW_VIRTUAL_SIZE="10T"

################ ---- QEMU-NBD OPTIONS
#
# QEMU_NBD_OPTIONS="--cache=none --aio=native"
########

QEMU_NBD_OPTIONS="--cache=none --aio=native"
QEMU_NBD_OPTIONS="--cache=none"


################ ---- DRLM DATA BACKEND TYPES
Expand Down
2 changes: 1 addition & 1 deletion usr/share/drlm/conf/samples/client_PXE.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# for more information. #
###############################################################################

# DRLM v2.4.6
# DRLM v2.4.7
#

# This configuration example does a PXE rescue system and a data backup of all
Expand Down
2 changes: 1 addition & 1 deletion usr/share/drlm/conf/samples/client_data_only.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# for more information. #
###############################################################################

# DRLM v2.4.6
# DRLM v2.4.7
#

# This configuration example does a data backup of /home directory of the
Expand Down
2 changes: 1 addition & 1 deletion usr/share/drlm/conf/samples/client_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# (Configuration examples in /usr/share/drlm/conf/samples/) #
###############################################################################

# DRLM v2.4.6
# DRLM v2.4.7
#

# DRLM automatically generates a ReaR configuration file in function of three
Expand Down
2 changes: 1 addition & 1 deletion usr/share/drlm/conf/samples/client_default.drlm.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# for more information. #
###############################################################################

# DRLM v2.4.6
# DRLM v2.4.7
#

# In client.drlm.cfg config file can be set DRLM client specific configurations
Expand Down
2 changes: 1 addition & 1 deletion usr/share/drlm/conf/samples/client_incremental.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# for more information. #
###############################################################################

# DRLM v2.4.6
# DRLM v2.4.7
#

# This configuration example does ISO rescue file and an incremental data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# for more information. #
###############################################################################

# DRLM v2.4.6
# DRLM v2.4.7
#

# This configuration example does a data backup of /home directory of the
Expand Down
6 changes: 3 additions & 3 deletions usr/share/drlm/job/list/default/059_list_registered_jobs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ if [ -z "$JOB_ID" ]; then
if [ -n "$CLI_NAME" ]; then
if ! exist_client_name "$CLI_NAME"; then
if [ "$CLI_NAME" == "all" ]; then
list_job_all
list_job
else
printf '%25s\n' "$(tput bold)$CLI_NAME$(tput sgr0) not found in database!!"
fi
else
CLI_ID=$(get_client_id_by_name $CLI_NAME)
list_job_all $CLI_ID
list_job $CLI_ID
fi
fi
else
if exist_job_id "$JOB_ID"; then
list_job $JOB_ID
list_job $JOB_ID "job"
else
printf '%25s\n' "$(tput bold)$JOB_ID$(tput sgr0) not found in database!!"
fi
Expand Down
Loading

0 comments on commit b390cf4

Please sign in to comment.