mirror of
https://github.com/lephisto/crossover.git
synced 2025-12-06 04:09:20 +01:00
added: retrieve ceph versions for compatibility checks
This commit is contained in:
10
crossover
10
crossover
@@ -39,6 +39,8 @@ declare -A -g dvmids
|
||||
|
||||
declare -g scluster
|
||||
declare -g dcluster
|
||||
declare -g scephversion
|
||||
declare -g dcephversion
|
||||
|
||||
# global integers
|
||||
declare -g -i perf_freeze_ok=0
|
||||
@@ -423,6 +425,9 @@ function mirror() {
|
||||
log info "Start mirror $(date "+%F %T")"
|
||||
startjob=$(date +%s)
|
||||
|
||||
get_ceph_version
|
||||
log info "Local Ceph Version: $scephversion, Remote Ceph version: $dcephversion"
|
||||
|
||||
#create pid file
|
||||
local pid_file="/var/run/$PROGNAME.pid"
|
||||
if [[ -e "$pid_file" ]]; then
|
||||
@@ -883,6 +888,11 @@ function check_pool_exist() {
|
||||
echo $exists
|
||||
}
|
||||
|
||||
function get_ceph_version() {
|
||||
scephversion=$(ceph -v | cut -d " " -f 3)
|
||||
dcephversion=$(ssh $opt_destination ceph -v | cut -d " " -f 3)
|
||||
}
|
||||
|
||||
function main(){
|
||||
[ $# = 0 ] && usage;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user