+ msg '==============================================================================\nLog is: /p4/sdp_upgrade.20211116-225433.log' + echo -e '==============================================================================\nLog is: /p4/sdp_upgrade.20211116-225433.log' ============================================================================== Log is: /p4/sdp_upgrade.20211116-225433.log ++ id -n -u + ThisUser=perforce ++ date '+%a %Y-%m-%d %H:%M:%S %Z' + msg 'sdp_upgrade.sh v1.5.0 Starting SDP upgrade as perforce@siab-prod-commit at Tue 2021-11-16 22:54:33 UTC with this command line:\n./sdp_upgrade.sh -D -y' + echo -e 'sdp_upgrade.sh v1.5.0 Starting SDP upgrade as perforce@siab-prod-commit at Tue 2021-11-16 22:54:33 UTC with this command line:\n./sdp_upgrade.sh -D -y' sdp_upgrade.sh v1.5.0 Starting SDP upgrade as perforce@siab-prod-commit at Tue 2021-11-16 22:54:33 UTC with this command line: ./sdp_upgrade.sh -D -y + msg '\nIf you have any questions about the output from this script, contact support@perforce.com.' + echo -e '\nIf you have any questions about the output from this script, contact support@perforce.com.' If you have any questions about the output from this script, contact support@perforce.com. + do_preflight_checks + dbg 'CALL do_preflight_checks()' + [[ 1 -ne 0 ]] + msg 'CALL do_preflight_checks()' + echo -e 'CALL do_preflight_checks()' CALL do_preflight_checks() + local oldSDPVersionFile=/p4/sdp/Version + local newSDPVersionFile=../../../../../Version + msg 'Preflight Check: Get Current SDP Version from: /p4/sdp/Version' + echo -e 'Preflight Check: Get Current SDP Version from: /p4/sdp/Version' Preflight Check: Get Current SDP Version from: /p4/sdp/Version + [[ -r /p4/sdp/Version ]] ++ cat /p4/sdp/Version + SDPOldVersionString='Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).' ++ get_sdp_version_from_string 'Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).' ++ dbg 'CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).)' ++ [[ 1 -ne 0 ]] ++ msg 'CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).)' ++ echo -e 'CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).)' ++ local 'versionString=Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).' ++ local version= ++ version='2020.1/27536 (2021/02/28).' ++ version=2020.1/27536 ++ version=2020.1.27536 ++ [[ 2020.1.27536 == \2\0 ]] ++ [[ 2020.1.27536 == \2\0\0 ]] ++ echo 2020.1.27536 + SDPOldVersion='CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).) 2020.1.27536' + [[ CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).) 2020.1.27536 == \U\n\k\n\o\w\n ]] + msg 'Preflight Check: Get New SDP Version from: ../../../../../Version' + echo -e 'Preflight Check: Get New SDP Version from: ../../../../../Version' Preflight Check: Get New SDP Version from: ../../../../../Version + [[ -r ../../../../../Version ]] ++ cat ../../../../../Version + SDPNewVersionString='Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).' ++ get_sdp_version_from_string 'Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).' ++ dbg 'CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).)' ++ [[ 1 -ne 0 ]] ++ msg 'CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).)' ++ echo -e 'CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).)' ++ local 'versionString=Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).' ++ local version= ++ version='2021.1/28261 (2021/11/13).' ++ version=2021.1/28261 ++ version=2021.1.28261 ++ [[ 2021.1.28261 == \2\0 ]] ++ [[ 2021.1.28261 == \2\0\0 ]] ++ echo 2021.1.28261 + SDPNewVersion='CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).) 2021.1.28261' + [[ CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).) 2021.1.28261 == \U\n\k\n\o\w\n ]] + [[ CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).) 2020.1.27536 > 2020.1 ]] + msg 'Verified: Current SDP Version [CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).) 2020.1.27536] is at least 2020.1.' + echo -e 'Verified: Current SDP Version [CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).) 2020.1.27536] is at least 2020.1.' Verified: Current SDP Version [CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).) 2020.1.27536] is at least 2020.1. + [[ CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).) 2021.1.28261 > CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).) 2020.1.27536 ]] + msg '\nThe SDP will be upgraded from CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).) 2020.1.27536 to CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).) 2021.1.28261.\n' + echo -e '\nThe SDP will be upgraded from CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).) 2020.1.27536 to CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).) 2021.1.28261.\n' The SDP will be upgraded from CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2020.1/27536 (2021/02/28).) 2020.1.27536 to CALL get_sdp_veresion_from_string(Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).) 2021.1.28261. + msg 'Preflight Check: cd /p4/common' + echo -e 'Preflight Check: cd /p4/common' Preflight Check: cd /p4/common + cd /p4/common + cd - + msg 'Verified: cd works to: /p4/common' + echo -e 'Verified: cd works to: /p4/common' Verified: cd works to: /p4/common + msg 'Preflight Check: Checking current user owns /p4/common' + echo -e 'Preflight Check: Checking current user owns /p4/common' Preflight Check: Checking current user owns /p4/common + [[ perforce == \p\e\r\f\o\r\c\e ]] + msg 'Verified: Current user [perforce] owns /p4/common' + echo -e 'Verified: Current user [perforce] owns /p4/common' Verified: Current user [perforce] owns /p4/common + [[ -n /hxdepots ]] + [[ -d /hxdepots ]] + msg 'HxDepots is: /hxdepots' + echo -e 'HxDepots is: /hxdepots' HxDepots is: /hxdepots + [[ -r /p4/common/bin/p4_vars ]] + DownloadsDir=/hxdepots/downloads + DownloadsDirNew=/hxdepots/downloads/new + SDPEnvFileTemplate=/hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/p4_vars.template + SDPInstanceCfgFileTemplate=/hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/instance_vars.template + [[ -r /hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/p4_vars.template ]] + [[ -r /hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/instance_vars.template ]] + grep -q '^SDP_P4_VARS_FORMAT=' /hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/p4_vars.template ++ grep '^SDP_P4_VARS_FORMAT=' /hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/p4_vars.template ++ tail -1 ++ cut -d = -f 2 + SDPEnvFileNewFormatVersion=1.1 + grep -q '^SDP_INSTANCE_VARS_FORMAT=' /hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/instance_vars.template ++ grep '^SDP_INSTANCE_VARS_FORMAT=' /hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/instance_vars.template ++ tail -1 ++ cut -d = -f 2 + SDPInstanceCfgFileNewFormatVersion=1.1 + msg 'Detected and Assigned Settings: HxDepots: /hxdepots DownloadsDir: /hxdepots/downloads DownloadsDirNew: /hxdepots/downloads/new SDPEnvFileNewFormatVersion: 1.1 SDPInstanceCfgFileNewFormatVersion: 1.1 ' + echo -e 'Detected and Assigned Settings: HxDepots: /hxdepots DownloadsDir: /hxdepots/downloads DownloadsDirNew: /hxdepots/downloads/new SDPEnvFileNewFormatVersion: 1.1 SDPInstanceCfgFileNewFormatVersion: 1.1 ' Detected and Assigned Settings: HxDepots: /hxdepots DownloadsDir: /hxdepots/downloads DownloadsDirNew: /hxdepots/downloads/new SDPEnvFileNewFormatVersion: 1.1 SDPInstanceCfgFileNewFormatVersion: 1.1 ++ grep umask /hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/instance_vars.template ++ tail -1 ++ awk '{print $2}' + SDPDefaultUmask=0026 + check_p4_vars_file + dbg 'CALL check_p4_vars_file()' + [[ 1 -ne 0 ]] + msg 'CALL check_p4_vars_file()' + echo -e 'CALL check_p4_vars_file()' CALL check_p4_vars_file() + local oldFileFormatVersion=1.0 + local -A cfgValues= + local -i allRequiredSettingsFound=1 ++ mktemp + SDPEnvFileNew=/tmp/tmp.zCIrE1517c + grep -q '^SDP_P4_VARS_FORMAT=' /p4/common/bin/p4_vars + msg 'Old p4_vars version set to: 1.0' + echo -e 'Old p4_vars version set to: 1.0' Old p4_vars version set to: 1.0 + msg 'Changing p4_vars file format from version 1.0 to 1.1.' + echo -e 'Changing p4_vars file format from version 1.0 to 1.1.' Changing p4_vars file format from version 1.0 to 1.1. + for var in KEEPLOGS KEEPCKPS KEEPJNLS + grepCmd='grep -qE '\''^\s*export KEEPLOGS='\'' /p4/common/bin/p4_vars' + eval 'grep -qE '\''^\s*export KEEPLOGS='\'' /p4/common/bin/p4_vars' ++ grep -qE '^\s*export KEEPLOGS=' /p4/common/bin/p4_vars + for var in KEEPLOGS KEEPCKPS KEEPJNLS + grepCmd='grep -qE '\''^\s*export KEEPCKPS='\'' /p4/common/bin/p4_vars' + eval 'grep -qE '\''^\s*export KEEPCKPS='\'' /p4/common/bin/p4_vars' ++ grep -qE '^\s*export KEEPCKPS=' /p4/common/bin/p4_vars + for var in KEEPLOGS KEEPCKPS KEEPJNLS + grepCmd='grep -qE '\''^\s*export KEEPJNLS='\'' /p4/common/bin/p4_vars' + eval 'grep -qE '\''^\s*export KEEPJNLS='\'' /p4/common/bin/p4_vars' ++ grep -qE '^\s*export KEEPJNLS=' /p4/common/bin/p4_vars + [[ 1 -eq 0 ]] + for var in KEEPLOGS KEEPCKPS KEEPJNLS ++ grep -E '^\s*export KEEPLOGS=' /p4/common/bin/p4_vars ++ tail -1 ++ cut -d = -f 2 + value=21 + cfgValues[$var]=21 + for var in KEEPLOGS KEEPCKPS KEEPJNLS ++ grep -E '^\s*export KEEPCKPS=' /p4/common/bin/p4_vars ++ tail -1 ++ cut -d = -f 2 + value=21 + cfgValues[$var]=21 + for var in KEEPLOGS KEEPCKPS KEEPJNLS ++ grep -E '^\s*export KEEPJNLS=' /p4/common/bin/p4_vars ++ cut -d = -f 2 ++ tail -1 + value=21 + cfgValues[$var]=21 + sed -e 's|REPL_OSUSER|perforce|g' -e 's|REPL_SDPVERSION|Rev. SDP/MultiArch/2021.1/28261 (2021/11/13).|g' -e 's|export KEEPLOGS=.*|export KEEPLOGS=21|g' -e 's|export KEEPCKPS=.*|export KEEPCKPS=21|g' -e 's|export KEEPJNLS=.*|export KEEPJNLS=21|g' /hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/p4_vars.template + msg 'Verified: /p4/common/bin/p4_vars can be generated.' + echo -e 'Verified: /p4/common/bin/p4_vars can be generated.' Verified: /p4/common/bin/p4_vars can be generated. + msg '\n------------------------------------------------------------------------------\nBEGIN Diffs for: p4_vars\n' + echo -e '\n------------------------------------------------------------------------------\nBEGIN Diffs for: p4_vars\n' ------------------------------------------------------------------------------ BEGIN Diffs for: p4_vars + diff /p4/common/bin/p4_vars /tmp/tmp.zCIrE1517c 10a11,14 > # This defines the version of the format of this file, used when the SDP is > # upgraded. > SDP_P4_VARS_FORMAT=1.1 > 14c18 < # for an instance named acme, do --- > # for an instance named acme, do: 25c29 < # If the instance paramter is omitted, an instance name o '1' (the digit one) --- > # If the instance parameter is omitted, an instance name of '1' (the digit one) 28c32 < # This file should not be modified. If site-specific overrides or addtional --- > # This file should not be modified. If site-specific overrides or additional 41c45 < # Trap unbound (undefined) varialbes, treating them as an error. --- > # Trap unbound (undefined) variables, treating them as an error. 45c49 < export SDP_VERSION="Rev. SDP/MultiArch/2020.1/27536 (2021/02/28)." --- > export SDP_VERSION="Rev. SDP/MultiArch/2021.1/28261 (2021/11/13)." 52c56 < export SDPMAIL='/bin/echo Simulated mail' --- > export SDPMAIL=mail 59c63 < export SDPMAIL='/bin/echo Simulated mail' --- > export SDPMAIL=mailx 199c203 < # 'set +u'. This is a workround to a Linux bug: --- > # 'set +u'. This is a workaround to a Linux bug: 206c210 < # Linux and more specificallyb bash, the tab command completion is broken --- > # Linux and more specifically bash, the tab command completion is broken 208c212 < # instead of getting completion, you get a hideous error. This workaroud --- > # instead of getting completion, you get a hideous error. This workaround + msg '\n------------------------------------------------------------------------------\nEND Diffs for: p4_vars\n' + echo -e '\n------------------------------------------------------------------------------\nEND Diffs for: p4_vars\n' ------------------------------------------------------------------------------ END Diffs for: p4_vars + return 0 + check_sdp_instances + dbg 'CALL check_sdp_instance()' + [[ 1 -ne 0 ]] + msg 'CALL check_sdp_instance()' + echo -e 'CALL check_sdp_instance()' CALL check_sdp_instance() + local e= + local instanceCfg= + local instanceBinDir= + SDPInstanceList= + cd /p4 + for e in '*' + [[ 1 =~ ^(common|sdp|ssl)$ ]] + [[ -L 1 ]] + [[ -d 1 ]] + instanceCfg=/p4/common/config/p4_1.vars + instanceBinDir=/p4/1/bin + [[ -r /p4/common/config/p4_1.vars ]] + SDPInstanceList+=' 1' + SDPInstanceCfgFiles[$SDPInstanceCfgFileCount]=/p4/common/config/p4_1.vars ++ mktemp + SDPInstanceCfgFilesNew[$SDPInstanceCfgFileCount]=/tmp/tmp.yElkngpFm8 + SDPInstanceCfgFileCount+=1 + for e in '*' + [[ common =~ ^(common|sdp|ssl)$ ]] + continue + for e in '*' + [[ _init.sh.txt =~ ^(common|sdp|ssl)$ ]] + [[ -L _init.sh.txt ]] + [[ -d _init.sh.txt ]] + for e in '*' + [[ sdp =~ ^(common|sdp|ssl)$ ]] + continue + for e in '*' + [[ sdp_upgrade.20211116-225433.log =~ ^(common|sdp|ssl)$ ]] + [[ -L sdp_upgrade.20211116-225433.log ]] + [[ -d sdp_upgrade.20211116-225433.log ]] + for e in '*' + [[ ssl =~ ^(common|sdp|ssl)$ ]] + continue + [[ 1 -ne 0 ]] + i=0 + [[ 0 -lt 1 ]] + check_instance_cfg_file /p4/common/config/p4_1.vars /tmp/tmp.yElkngpFm8 + dbg 'CALL check_instance_cfg_file(/p4/common/config/p4_1.vars /tmp/tmp.yElkngpFm8)' + [[ 1 -ne 0 ]] + msg 'CALL check_instance_cfg_file(/p4/common/config/p4_1.vars /tmp/tmp.yElkngpFm8)' + echo -e 'CALL check_instance_cfg_file(/p4/common/config/p4_1.vars /tmp/tmp.yElkngpFm8)' CALL check_instance_cfg_file(/p4/common/config/p4_1.vars /tmp/tmp.yElkngpFm8) + local instanceCfgFile=/p4/common/config/p4_1.vars + local instanceCfgFileNew=/tmp/tmp.yElkngpFm8 + local oldFileFormatVersion=1.0 + local -i allRequiredSettingsFound=1 + local -A instanceCfgValues= + local var= + local value= + grep -q '^SDP_INSTANCE_VARS_FORMAT=' /p4/common/config/p4_1.vars + msg 'Old Instance Vars version set to: 1.0' + echo -e 'Old Instance Vars version set to: 1.0' Old Instance Vars version set to: 1.0 + msg 'Changing /p4/common/config/p4_1.vars file format from version 1.0 to 1.1.' + echo -e 'Changing /p4/common/config/p4_1.vars file format from version 1.0 to 1.1.' Changing /p4/common/config/p4_1.vars file format from version 1.0 to 1.1. + [[ -r /p4/common/config/p4_1.vars ]] + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + grepCmd='grep -qE '\''^\s*export MAILTO='\'' /p4/common/config/p4_1.vars' + eval 'grep -qE '\''^\s*export MAILTO='\'' /p4/common/config/p4_1.vars' ++ grep -qE '^\s*export MAILTO=' /p4/common/config/p4_1.vars + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + grepCmd='grep -qE '\''^\s*export MAILFROM='\'' /p4/common/config/p4_1.vars' + eval 'grep -qE '\''^\s*export MAILFROM='\'' /p4/common/config/p4_1.vars' ++ grep -qE '^\s*export MAILFROM=' /p4/common/config/p4_1.vars + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + grepCmd='grep -qE '\''^\s*export P4USER='\'' /p4/common/config/p4_1.vars' + eval 'grep -qE '\''^\s*export P4USER='\'' /p4/common/config/p4_1.vars' ++ grep -qE '^\s*export P4USER=' /p4/common/config/p4_1.vars + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + grepCmd='grep -qE '\''^\s*export P4MASTER_ID='\'' /p4/common/config/p4_1.vars' + eval 'grep -qE '\''^\s*export P4MASTER_ID='\'' /p4/common/config/p4_1.vars' ++ grep -qE '^\s*export P4MASTER_ID=' /p4/common/config/p4_1.vars + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + grepCmd='grep -qE '\''^\s*export SSL_PREFIX='\'' /p4/common/config/p4_1.vars' + eval 'grep -qE '\''^\s*export SSL_PREFIX='\'' /p4/common/config/p4_1.vars' ++ grep -qE '^\s*export SSL_PREFIX=' /p4/common/config/p4_1.vars + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + grepCmd='grep -qE '\''^\s*export P4PORTNUM='\'' /p4/common/config/p4_1.vars' + eval 'grep -qE '\''^\s*export P4PORTNUM='\'' /p4/common/config/p4_1.vars' ++ grep -qE '^\s*export P4PORTNUM=' /p4/common/config/p4_1.vars + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + grepCmd='grep -qE '\''^\s*export P4BROKERPORTNUM='\'' /p4/common/config/p4_1.vars' + eval 'grep -qE '\''^\s*export P4BROKERPORTNUM='\'' /p4/common/config/p4_1.vars' ++ grep -qE '^\s*export P4BROKERPORTNUM=' /p4/common/config/p4_1.vars + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + grepCmd='grep -qE '\''^\s*export P4MASTERHOST='\'' /p4/common/config/p4_1.vars' + eval 'grep -qE '\''^\s*export P4MASTERHOST='\'' /p4/common/config/p4_1.vars' ++ grep -qE '^\s*export P4MASTERHOST=' /p4/common/config/p4_1.vars + [[ 1 -eq 0 ]] + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + [[ MAILTO == \P\4\M\A\S\T\E\R\H\O\S\T ]] ++ grep -E '^\s*export MAILTO=' /p4/common/config/p4_1.vars ++ cut -d = -f 2 ++ tail -1 + value=P4AdminList@p4demo.com + dbg 'VAR 1 [MAILTO] VALUE=[P4AdminList@p4demo.com]' + [[ 1 -ne 0 ]] + msg 'VAR 1 [MAILTO] VALUE=[P4AdminList@p4demo.com]' + echo -e 'VAR 1 [MAILTO] VALUE=[P4AdminList@p4demo.com]' VAR 1 [MAILTO] VALUE=[P4AdminList@p4demo.com] + instanceCfgValues[$var]=P4AdminList@p4demo.com + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + [[ MAILFROM == \P\4\M\A\S\T\E\R\H\O\S\T ]] ++ grep -E '^\s*export MAILFROM=' /p4/common/config/p4_1.vars ++ cut -d = -f 2 ++ tail -1 + value=P4Admin@p4demo.com + dbg 'VAR 1 [MAILFROM] VALUE=[P4Admin@p4demo.com]' + [[ 1 -ne 0 ]] + msg 'VAR 1 [MAILFROM] VALUE=[P4Admin@p4demo.com]' + echo -e 'VAR 1 [MAILFROM] VALUE=[P4Admin@p4demo.com]' VAR 1 [MAILFROM] VALUE=[P4Admin@p4demo.com] + instanceCfgValues[$var]=P4Admin@p4demo.com + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + [[ P4USER == \P\4\M\A\S\T\E\R\H\O\S\T ]] ++ grep -E '^\s*export P4USER=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=perforce + dbg 'VAR 1 [P4USER] VALUE=[perforce]' + [[ 1 -ne 0 ]] + msg 'VAR 1 [P4USER] VALUE=[perforce]' + echo -e 'VAR 1 [P4USER] VALUE=[perforce]' VAR 1 [P4USER] VALUE=[perforce] + instanceCfgValues[$var]=perforce + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + [[ P4MASTER_ID == \P\4\M\A\S\T\E\R\H\O\S\T ]] ++ grep -E '^\s*export P4MASTER_ID=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=master.1 + dbg 'VAR 1 [P4MASTER_ID] VALUE=[master.1]' + [[ 1 -ne 0 ]] + msg 'VAR 1 [P4MASTER_ID] VALUE=[master.1]' + echo -e 'VAR 1 [P4MASTER_ID] VALUE=[master.1]' VAR 1 [P4MASTER_ID] VALUE=[master.1] + instanceCfgValues[$var]=master.1 + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + [[ SSL_PREFIX == \P\4\M\A\S\T\E\R\H\O\S\T ]] ++ grep -E '^\s*export SSL_PREFIX=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=ssl: + dbg 'VAR 1 [SSL_PREFIX] VALUE=[ssl:]' + [[ 1 -ne 0 ]] + msg 'VAR 1 [SSL_PREFIX] VALUE=[ssl:]' + echo -e 'VAR 1 [SSL_PREFIX] VALUE=[ssl:]' VAR 1 [SSL_PREFIX] VALUE=[ssl:] + instanceCfgValues[$var]=ssl: + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + [[ P4PORTNUM == \P\4\M\A\S\T\E\R\H\O\S\T ]] ++ grep -E '^\s*export P4PORTNUM=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=1666 + dbg 'VAR 1 [P4PORTNUM] VALUE=[1666]' + [[ 1 -ne 0 ]] + msg 'VAR 1 [P4PORTNUM] VALUE=[1666]' + echo -e 'VAR 1 [P4PORTNUM] VALUE=[1666]' VAR 1 [P4PORTNUM] VALUE=[1666] + instanceCfgValues[$var]=1666 + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + [[ P4BROKERPORTNUM == \P\4\M\A\S\T\E\R\H\O\S\T ]] ++ grep -E '^\s*export P4BROKERPORTNUM=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=1999 + dbg 'VAR 1 [P4BROKERPORTNUM] VALUE=[1999]' + [[ 1 -ne 0 ]] + msg 'VAR 1 [P4BROKERPORTNUM] VALUE=[1999]' + echo -e 'VAR 1 [P4BROKERPORTNUM] VALUE=[1999]' VAR 1 [P4BROKERPORTNUM] VALUE=[1999] + instanceCfgValues[$var]=1999 + for var in MAILTO MAILFROM P4USER P4MASTER_ID SSL_PREFIX P4PORTNUM P4BROKERPORTNUM P4MASTERHOST + [[ P4MASTERHOST == \P\4\M\A\S\T\E\R\H\O\S\T ]] ++ grep -E '^\s*export P4MASTERHOST=' /p4/common/config/p4_1.vars ++ head -1 ++ cut -d = -f 2 + value=localhost + dbg 'VAR 1 [P4MASTERHOST] VALUE=[localhost]' + [[ 1 -ne 0 ]] + msg 'VAR 1 [P4MASTERHOST] VALUE=[localhost]' + echo -e 'VAR 1 [P4MASTERHOST] VALUE=[localhost]' VAR 1 [P4MASTERHOST] VALUE=[localhost] + instanceCfgValues[$var]=localhost + for var in P4DTG_CFG SNAPSHOT_SCRIPT VERIFY_SDP_SKIP_TEST_LIST SDP_ALWAYS_LOGIN SDP_MAX_START_DELAY_P4D SDP_MAX_START_DELAY_P4BROKER SDP_MAX_START_DELAY_P4P SDP_MAX_STOP_DELAY_P4BROKER SDP_MAX_STOP_DELAY_P4P SDP_AUTOMATION_USERS + [[ P4DTG_CFG == \S\N\A\P\S\H\O\T\_\S\C\R\I\P\T ]] ++ grep -E '^\s*export P4DTG_CFG=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value='$P4SERVER' + dbg 'VAR 2 [P4DTG_CFG] VALUE=[$P4SERVER]' + [[ 1 -ne 0 ]] + msg 'VAR 2 [P4DTG_CFG] VALUE=[$P4SERVER]' + echo -e 'VAR 2 [P4DTG_CFG] VALUE=[$P4SERVER]' VAR 2 [P4DTG_CFG] VALUE=[$P4SERVER] + instanceCfgValues[$var]='$P4SERVER' + for var in P4DTG_CFG SNAPSHOT_SCRIPT VERIFY_SDP_SKIP_TEST_LIST SDP_ALWAYS_LOGIN SDP_MAX_START_DELAY_P4D SDP_MAX_START_DELAY_P4BROKER SDP_MAX_START_DELAY_P4P SDP_MAX_STOP_DELAY_P4BROKER SDP_MAX_STOP_DELAY_P4P SDP_AUTOMATION_USERS + [[ SNAPSHOT_SCRIPT == \S\N\A\P\S\H\O\T\_\S\C\R\I\P\T ]] ++ grep -E '^\s*export SNAPSHOT_SCRIPT=' /p4/common/config/p4_1.vars ++ head -1 ++ cut -d = -f 2 + value= + dbg 'VAR 2 [SNAPSHOT_SCRIPT] VALUE=[]' + [[ 1 -ne 0 ]] + msg 'VAR 2 [SNAPSHOT_SCRIPT] VALUE=[]' + echo -e 'VAR 2 [SNAPSHOT_SCRIPT] VALUE=[]' VAR 2 [SNAPSHOT_SCRIPT] VALUE=[] + instanceCfgValues[$var]= + for var in P4DTG_CFG SNAPSHOT_SCRIPT VERIFY_SDP_SKIP_TEST_LIST SDP_ALWAYS_LOGIN SDP_MAX_START_DELAY_P4D SDP_MAX_START_DELAY_P4BROKER SDP_MAX_START_DELAY_P4P SDP_MAX_STOP_DELAY_P4BROKER SDP_MAX_STOP_DELAY_P4P SDP_AUTOMATION_USERS + [[ VERIFY_SDP_SKIP_TEST_LIST == \S\N\A\P\S\H\O\T\_\S\C\R\I\P\T ]] ++ grep -E '^\s*export VERIFY_SDP_SKIP_TEST_LIST=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value= + dbg 'VAR 2 [VERIFY_SDP_SKIP_TEST_LIST] VALUE=[]' + [[ 1 -ne 0 ]] + msg 'VAR 2 [VERIFY_SDP_SKIP_TEST_LIST] VALUE=[]' + echo -e 'VAR 2 [VERIFY_SDP_SKIP_TEST_LIST] VALUE=[]' VAR 2 [VERIFY_SDP_SKIP_TEST_LIST] VALUE=[] + instanceCfgValues[$var]= + for var in P4DTG_CFG SNAPSHOT_SCRIPT VERIFY_SDP_SKIP_TEST_LIST SDP_ALWAYS_LOGIN SDP_MAX_START_DELAY_P4D SDP_MAX_START_DELAY_P4BROKER SDP_MAX_START_DELAY_P4P SDP_MAX_STOP_DELAY_P4BROKER SDP_MAX_STOP_DELAY_P4P SDP_AUTOMATION_USERS + [[ SDP_ALWAYS_LOGIN == \S\N\A\P\S\H\O\T\_\S\C\R\I\P\T ]] ++ grep -E '^\s*export SDP_ALWAYS_LOGIN=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=0 + dbg 'VAR 2 [SDP_ALWAYS_LOGIN] VALUE=[0]' + [[ 1 -ne 0 ]] + msg 'VAR 2 [SDP_ALWAYS_LOGIN] VALUE=[0]' + echo -e 'VAR 2 [SDP_ALWAYS_LOGIN] VALUE=[0]' VAR 2 [SDP_ALWAYS_LOGIN] VALUE=[0] + instanceCfgValues[$var]=0 + for var in P4DTG_CFG SNAPSHOT_SCRIPT VERIFY_SDP_SKIP_TEST_LIST SDP_ALWAYS_LOGIN SDP_MAX_START_DELAY_P4D SDP_MAX_START_DELAY_P4BROKER SDP_MAX_START_DELAY_P4P SDP_MAX_STOP_DELAY_P4BROKER SDP_MAX_STOP_DELAY_P4P SDP_AUTOMATION_USERS + [[ SDP_MAX_START_DELAY_P4D == \S\N\A\P\S\H\O\T\_\S\C\R\I\P\T ]] ++ grep -E '^\s*export SDP_MAX_START_DELAY_P4D=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=120 + dbg 'VAR 2 [SDP_MAX_START_DELAY_P4D] VALUE=[120]' + [[ 1 -ne 0 ]] + msg 'VAR 2 [SDP_MAX_START_DELAY_P4D] VALUE=[120]' + echo -e 'VAR 2 [SDP_MAX_START_DELAY_P4D] VALUE=[120]' VAR 2 [SDP_MAX_START_DELAY_P4D] VALUE=[120] + instanceCfgValues[$var]=120 + for var in P4DTG_CFG SNAPSHOT_SCRIPT VERIFY_SDP_SKIP_TEST_LIST SDP_ALWAYS_LOGIN SDP_MAX_START_DELAY_P4D SDP_MAX_START_DELAY_P4BROKER SDP_MAX_START_DELAY_P4P SDP_MAX_STOP_DELAY_P4BROKER SDP_MAX_STOP_DELAY_P4P SDP_AUTOMATION_USERS + [[ SDP_MAX_START_DELAY_P4BROKER == \S\N\A\P\S\H\O\T\_\S\C\R\I\P\T ]] ++ grep -E '^\s*export SDP_MAX_START_DELAY_P4BROKER=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=60 + dbg 'VAR 2 [SDP_MAX_START_DELAY_P4BROKER] VALUE=[60]' + [[ 1 -ne 0 ]] + msg 'VAR 2 [SDP_MAX_START_DELAY_P4BROKER] VALUE=[60]' + echo -e 'VAR 2 [SDP_MAX_START_DELAY_P4BROKER] VALUE=[60]' VAR 2 [SDP_MAX_START_DELAY_P4BROKER] VALUE=[60] + instanceCfgValues[$var]=60 + for var in P4DTG_CFG SNAPSHOT_SCRIPT VERIFY_SDP_SKIP_TEST_LIST SDP_ALWAYS_LOGIN SDP_MAX_START_DELAY_P4D SDP_MAX_START_DELAY_P4BROKER SDP_MAX_START_DELAY_P4P SDP_MAX_STOP_DELAY_P4BROKER SDP_MAX_STOP_DELAY_P4P SDP_AUTOMATION_USERS + [[ SDP_MAX_START_DELAY_P4P == \S\N\A\P\S\H\O\T\_\S\C\R\I\P\T ]] ++ grep -E '^\s*export SDP_MAX_START_DELAY_P4P=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=60 + dbg 'VAR 2 [SDP_MAX_START_DELAY_P4P] VALUE=[60]' + [[ 1 -ne 0 ]] + msg 'VAR 2 [SDP_MAX_START_DELAY_P4P] VALUE=[60]' + echo -e 'VAR 2 [SDP_MAX_START_DELAY_P4P] VALUE=[60]' VAR 2 [SDP_MAX_START_DELAY_P4P] VALUE=[60] + instanceCfgValues[$var]=60 + for var in P4DTG_CFG SNAPSHOT_SCRIPT VERIFY_SDP_SKIP_TEST_LIST SDP_ALWAYS_LOGIN SDP_MAX_START_DELAY_P4D SDP_MAX_START_DELAY_P4BROKER SDP_MAX_START_DELAY_P4P SDP_MAX_STOP_DELAY_P4BROKER SDP_MAX_STOP_DELAY_P4P SDP_AUTOMATION_USERS + [[ SDP_MAX_STOP_DELAY_P4BROKER == \S\N\A\P\S\H\O\T\_\S\C\R\I\P\T ]] ++ grep -E '^\s*export SDP_MAX_STOP_DELAY_P4BROKER=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=600 + dbg 'VAR 2 [SDP_MAX_STOP_DELAY_P4BROKER] VALUE=[600]' + [[ 1 -ne 0 ]] + msg 'VAR 2 [SDP_MAX_STOP_DELAY_P4BROKER] VALUE=[600]' + echo -e 'VAR 2 [SDP_MAX_STOP_DELAY_P4BROKER] VALUE=[600]' VAR 2 [SDP_MAX_STOP_DELAY_P4BROKER] VALUE=[600] + instanceCfgValues[$var]=600 + for var in P4DTG_CFG SNAPSHOT_SCRIPT VERIFY_SDP_SKIP_TEST_LIST SDP_ALWAYS_LOGIN SDP_MAX_START_DELAY_P4D SDP_MAX_START_DELAY_P4BROKER SDP_MAX_START_DELAY_P4P SDP_MAX_STOP_DELAY_P4BROKER SDP_MAX_STOP_DELAY_P4P SDP_AUTOMATION_USERS + [[ SDP_MAX_STOP_DELAY_P4P == \S\N\A\P\S\H\O\T\_\S\C\R\I\P\T ]] ++ grep -E '^\s*export SDP_MAX_STOP_DELAY_P4P=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value=600 + dbg 'VAR 2 [SDP_MAX_STOP_DELAY_P4P] VALUE=[600]' + [[ 1 -ne 0 ]] + msg 'VAR 2 [SDP_MAX_STOP_DELAY_P4P] VALUE=[600]' + echo -e 'VAR 2 [SDP_MAX_STOP_DELAY_P4P] VALUE=[600]' VAR 2 [SDP_MAX_STOP_DELAY_P4P] VALUE=[600] + instanceCfgValues[$var]=600 + for var in P4DTG_CFG SNAPSHOT_SCRIPT VERIFY_SDP_SKIP_TEST_LIST SDP_ALWAYS_LOGIN SDP_MAX_START_DELAY_P4D SDP_MAX_START_DELAY_P4BROKER SDP_MAX_START_DELAY_P4P SDP_MAX_STOP_DELAY_P4BROKER SDP_MAX_STOP_DELAY_P4P SDP_AUTOMATION_USERS + [[ SDP_AUTOMATION_USERS == \S\N\A\P\S\H\O\T\_\S\C\R\I\P\T ]] ++ grep -E '^\s*export SDP_AUTOMATION_USERS=' /p4/common/config/p4_1.vars ++ tail -1 ++ cut -d = -f 2 + value='"swarm"' + dbg 'VAR 2 [SDP_AUTOMATION_USERS] VALUE=["swarm"]' + [[ 1 -ne 0 ]] + msg 'VAR 2 [SDP_AUTOMATION_USERS] VALUE=["swarm"]' + echo -e 'VAR 2 [SDP_AUTOMATION_USERS] VALUE=["swarm"]' VAR 2 [SDP_AUTOMATION_USERS] VALUE=["swarm"] + instanceCfgValues[$var]='"swarm"' + var=umask ++ grep '^umask' /p4/common/config/p4_1.vars ++ tail -1 ++ awk '{print $2}' + value=0026 + [[ -n 0026 ]] + dbg 'VAR 3 [umask] VALUE=[0026]' + [[ 1 -ne 0 ]] + msg 'VAR 3 [umask] VALUE=[0026]' + echo -e 'VAR 3 [umask] VALUE=[0026]' VAR 3 [umask] VALUE=[0026] + instanceCfgValues[$var]=0026 + dbg 'Substitution Values:' + [[ 1 -ne 0 ]] + msg 'Substitution Values:' + echo -e 'Substitution Values:' Substitution Values: + for var in '"${!instanceCfgValues[@]}"' + [[ SDP_MAX_START_DELAY_P4P == \0 ]] + msg ' [SDP_MAX_START_DELAY_P4P]=[60].' + echo -e ' [SDP_MAX_START_DELAY_P4P]=[60].' [SDP_MAX_START_DELAY_P4P]=[60]. + for var in '"${!instanceCfgValues[@]}"' + [[ SDP_MAX_STOP_DELAY_P4P == \0 ]] + msg ' [SDP_MAX_STOP_DELAY_P4P]=[600].' + echo -e ' [SDP_MAX_STOP_DELAY_P4P]=[600].' [SDP_MAX_STOP_DELAY_P4P]=[600]. + for var in '"${!instanceCfgValues[@]}"' + [[ MAILTO == \0 ]] + msg ' [MAILTO]=[P4AdminList@p4demo.com].' + echo -e ' [MAILTO]=[P4AdminList@p4demo.com].' [MAILTO]=[P4AdminList@p4demo.com]. + for var in '"${!instanceCfgValues[@]}"' + [[ SDP_MAX_START_DELAY_P4BROKER == \0 ]] + msg ' [SDP_MAX_START_DELAY_P4BROKER]=[60].' + echo -e ' [SDP_MAX_START_DELAY_P4BROKER]=[60].' [SDP_MAX_START_DELAY_P4BROKER]=[60]. + for var in '"${!instanceCfgValues[@]}"' + [[ SDP_MAX_STOP_DELAY_P4BROKER == \0 ]] + msg ' [SDP_MAX_STOP_DELAY_P4BROKER]=[600].' + echo -e ' [SDP_MAX_STOP_DELAY_P4BROKER]=[600].' [SDP_MAX_STOP_DELAY_P4BROKER]=[600]. + for var in '"${!instanceCfgValues[@]}"' + [[ SNAPSHOT_SCRIPT == \0 ]] + msg ' [SNAPSHOT_SCRIPT]=[].' + echo -e ' [SNAPSHOT_SCRIPT]=[].' [SNAPSHOT_SCRIPT]=[]. + for var in '"${!instanceCfgValues[@]}"' + [[ SDP_AUTOMATION_USERS == \0 ]] + msg ' [SDP_AUTOMATION_USERS]=["swarm"].' + echo -e ' [SDP_AUTOMATION_USERS]=["swarm"].' [SDP_AUTOMATION_USERS]=["swarm"]. + for var in '"${!instanceCfgValues[@]}"' + [[ SDP_MAX_START_DELAY_P4D == \0 ]] + msg ' [SDP_MAX_START_DELAY_P4D]=[120].' + echo -e ' [SDP_MAX_START_DELAY_P4D]=[120].' [SDP_MAX_START_DELAY_P4D]=[120]. + for var in '"${!instanceCfgValues[@]}"' + [[ SSL_PREFIX == \0 ]] + msg ' [SSL_PREFIX]=[ssl:].' + echo -e ' [SSL_PREFIX]=[ssl:].' [SSL_PREFIX]=[ssl:]. + for var in '"${!instanceCfgValues[@]}"' + [[ P4MASTER_ID == \0 ]] + msg ' [P4MASTER_ID]=[master.1].' + echo -e ' [P4MASTER_ID]=[master.1].' [P4MASTER_ID]=[master.1]. + for var in '"${!instanceCfgValues[@]}"' + [[ P4PORTNUM == \0 ]] + msg ' [P4PORTNUM]=[1666].' + echo -e ' [P4PORTNUM]=[1666].' [P4PORTNUM]=[1666]. + for var in '"${!instanceCfgValues[@]}"' + [[ P4BROKERPORTNUM == \0 ]] + msg ' [P4BROKERPORTNUM]=[1999].' + echo -e ' [P4BROKERPORTNUM]=[1999].' [P4BROKERPORTNUM]=[1999]. + for var in '"${!instanceCfgValues[@]}"' + [[ umask == \0 ]] + msg ' [umask]=[0026].' + echo -e ' [umask]=[0026].' [umask]=[0026]. + for var in '"${!instanceCfgValues[@]}"' + [[ VERIFY_SDP_SKIP_TEST_LIST == \0 ]] + msg ' [VERIFY_SDP_SKIP_TEST_LIST]=[].' + echo -e ' [VERIFY_SDP_SKIP_TEST_LIST]=[].' [VERIFY_SDP_SKIP_TEST_LIST]=[]. + for var in '"${!instanceCfgValues[@]}"' + [[ 0 == \0 ]] + continue + for var in '"${!instanceCfgValues[@]}"' + [[ P4USER == \0 ]] + msg ' [P4USER]=[perforce].' + echo -e ' [P4USER]=[perforce].' [P4USER]=[perforce]. + for var in '"${!instanceCfgValues[@]}"' + [[ P4DTG_CFG == \0 ]] + msg ' [P4DTG_CFG]=[$P4SERVER].' + echo -e ' [P4DTG_CFG]=[$P4SERVER].' [P4DTG_CFG]=[$P4SERVER]. + for var in '"${!instanceCfgValues[@]}"' + [[ MAILFROM == \0 ]] + msg ' [MAILFROM]=[P4Admin@p4demo.com].' + echo -e ' [MAILFROM]=[P4Admin@p4demo.com].' [MAILFROM]=[P4Admin@p4demo.com]. + for var in '"${!instanceCfgValues[@]}"' + [[ SDP_ALWAYS_LOGIN == \0 ]] + msg ' [SDP_ALWAYS_LOGIN]=[0].' + echo -e ' [SDP_ALWAYS_LOGIN]=[0].' [SDP_ALWAYS_LOGIN]=[0]. + for var in '"${!instanceCfgValues[@]}"' + [[ P4MASTERHOST == \0 ]] + msg ' [P4MASTERHOST]=[localhost].' + echo -e ' [P4MASTERHOST]=[localhost].' [P4MASTERHOST]=[localhost]. + sed -e 's|=REPL_MAILTO|=P4AdminList@p4demo.com|g' -e 's|=REPL_MAILFROM|=P4Admin@p4demo.com|g' -e 's|=REPL_ADMINUSER|=perforce|g' -e 's|=REPL_MASTER_ID|=master.1|g' -e 's|=REPL_SSLPREFIX|=ssl:|g' -e 's|=REPL_P4PORT|=1666|g' -e 's|=REPL_P4BROKERPORT|=1999|g' -e 's|=REPL_P4MASTERHOST|=localhost|g' -e 's|export P4DTG_CFG=.*|export P4DTG_CFG=$P4SERVER|g' -e 's|export SNAPSHOT_SCRIPT=.*|export SNAPSHOT_SCRIPT=|g' -e 's|export VERIFY_SDP_SKIP_TEST_LIST=.*|export VERIFY_SDP_SKIP_TEST_LIST=|g' -e 's|export SDP_ALWAYS_LOGIN=.*|export SDP_ALWAYS_LOGIN=0|g' -e 's|export SDP_MAX_START_DELAY_P4D=.*|export SDP_MAX_START_DELAY_P4D=120|g' -e 's|export SDP_MAX_START_DELAY_P4BROKER=.*|export SDP_MAX_START_DELAY_P4BROKER=60|g' -e 's|export SDP_MAX_START_DELAY_P4P=.*|export SDP_MAX_START_DELAY_P4P=60|g' -e 's|export SDP_MAX_STOP_DELAY_P4BROKER=.*|export SDP_MAX_STOP_DELAY_P4BROKER=600|g' -e 's|export SDP_MAX_STOP_DELAY_P4P=.*|export SDP_MAX_STOP_DELAY_P4P=600|g' -e 's|export SDP_AUTOMATION_USERS=.*|export SDP_AUTOMATION_USERS="swarm"|g' -e 's|^umask .*|umask 0026|g' /hxdepots/downloads/new/sdp/Server/Unix/p4/common/config/instance_vars.template + msg '\nVerified: This instance config file can be ugpraded: /p4/common/config/p4_1.vars' + echo -e '\nVerified: This instance config file can be ugpraded: /p4/common/config/p4_1.vars' Verified: This instance config file can be ugpraded: /p4/common/config/p4_1.vars + msg '\n------------------------------------------------------------------------------\nBEGIN Diffs for: /p4/common/config/p4_1.vars' + echo -e '\n------------------------------------------------------------------------------\nBEGIN Diffs for: /p4/common/config/p4_1.vars' ------------------------------------------------------------------------------ BEGIN Diffs for: /p4/common/config/p4_1.vars + diff /p4/common/config/p4_1.vars /tmp/tmp.yElkngpFm8 9a10,13 > # This defines the version of the format of this file, used when the SDP is > # upgraded. > SDP_INSTANCE_VARS_FORMAT=1.1 > 21c25 < # Specify the email adddress from which emails are sent in $MAILFROM. --- > # Specify the email address from which emails are sent in $MAILFROM. 47c51,58 < # This is the DNS name of the master server --- > > # P4MASTERHOST=DNS Name (or IP address) of master FOR THIS INSTANCE. > # A DNS Name is much easier to manage for failover purposes. > # Examples: > # - edge server: set this to DNS for commit-server > # - replica: set this to DNS for parent server > # - HA replica for commit: set this to DNS for commit-server > # - HA replica for edge: set this to DNS for edge-server 48a60 > 60c72 < # Use egrep becuase it works where we need it to. Shellcheck suggests --- > # Use egrep because it works where we need it to. Shellcheck suggests 65c77 < # Use 'echo' w/o quotes to remove leading/trailing whitepsace. --- > # Use 'echo' w/o quotes to remove leading/trailing whitespace. 86c98 < # Use 'echo' w/o quotes to remove leading/trailing whitepsace. --- > # Use 'echo' w/o quotes to remove leading/trailing whitespace. 105,107c117,126 < # script, daily_checkpoint.sh will call the referenced script to < # perform a snapshot. The following sample enable snapshots on the < # AWS master server only --- > # script, daily_checkpoint.sh will call the referenced scrip after > # checkpoints are created. It is expected that the called custom script > # will create a snapshot or perform some other backup activity. > > # The logic below allows for the called SNAPSHOT_SCRIPT to run only > # on the master server. > # > # A sample script to enable snapshots on an AWS master > # server is provided as: /p4/common/cloud/aws/bin/snapshot.sh > # 108a128 > # This snapshot script is exectued only on the master server. 110d129 < ###export SNAPSHOT_SCRIPT=/p4/common/cloud/aws/bin/snapshot.sh 111a131 > # Leave this value empty. 120,121c140,142 < # For more info, run: verify_sdp.sh -man < ###export VERIFY_SDP_SKIP_TEST_LIST="crontab" --- > # > # The value is a comma-delimited list of tests to skip, as defined in the > # documentation for verify_sdp.sh. For more info, run: verify_sdp.sh -man 147d167 < ###export SDP_AUTOMATION_USERS= 158,170d177 < < # SNS Alert Configurations < # Two methods of authentication are supported: key pair (on prem, azure, etc) and IAM role (AWS deployment) < # In the case of IAM role the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables must not be set, not even empty strings < < # To test SNS delivery use the following command: aws sns publish --topic-arn arn:aws:sns:us-east-1:541621974560:Perforce-Notifications-test-Alerts-OYHFZ6SEWCMJ --subject test --message "this is a test" < < # export AWS_ACCESS_KEY_ID="" < # export AWS_SECRET_ACCESS_KEY="" < < export AWS_DEFAULT_REGION="us-east-1" < export SNS_ALERT_TOPIC_ARN="arn:aws:sns:us-east-1:541621974560:Perforce-Notifications-test-Alerts-OYHFZ6SEWCMJ" < + msg '\n------------------------------------------------------------------------------\nEND Diffs for: /p4/common/config/p4_1.vars\n' + echo -e '\n------------------------------------------------------------------------------\nEND Diffs for: /p4/common/config/p4_1.vars\n' ------------------------------------------------------------------------------ END Diffs for: /p4/common/config/p4_1.vars + return 0 + i+=1 + [[ 1 -lt 1 ]] + SDPInstanceList=1 + [[ -n 1 ]] + msg '\nList of valid SDP Instances: 1' + echo -e '\nList of valid SDP Instances: 1' List of valid SDP Instances: 1 + cd - + [[ -x /p4/common/site/upgrade/pre-sdp_upgrade.sh ]] + [[ -x /p4/common/site/upgrade/post-sdp_upgrade.sh ]] + return 0 + msg '\nAll preflight checks were successful.' + echo -e '\nAll preflight checks were successful.' All preflight checks were successful. + [[ 0 -eq 1 ]] + [[ 0 -eq 0 ]] + [[ -n '' ]] + msg '------------------------------------------------------------------------------\nSTEP 1: Backup /p4/common.' + echo -e '------------------------------------------------------------------------------\nSTEP 1: Backup /p4/common.' ------------------------------------------------------------------------------ STEP 1: Backup /p4/common. + cd /hxdepots/p4 ++ date +%Y%m%d-%H%M%S + SDPCommonBackup=common.bak.20211116-225433 + run 'rsync -a common/ common.bak.20211116-225433' 'Backing up /hxdepots/p4/common.' + local 'cmdAndArgs=rsync -a common/ common.bak.20211116-225433' + local 'desc=Backing up /hxdepots/p4/common.' + local -i honorNoOp=1 + local -i showOutput=1 + local -i exitCode= + local cmdLog= ++ mktemp run.XXXXXXXXXXX.log + cmdLog=run.Rhjniim51Cg.log + [[ -n Backing up /hxdepots/p4/common. ]] + msg 'Backing up /hxdepots/p4/common.' + echo -e 'Backing up /hxdepots/p4/common.' Backing up /hxdepots/p4/common. + msg 'Executing: rsync -a common/ common.bak.20211116-225433' + echo -e 'Executing: rsync -a common/ common.bak.20211116-225433' Executing: rsync -a common/ common.bak.20211116-225433 + [[ 0 -eq 0 ]] + eval 'rsync -a common/ common.bak.20211116-225433' + exitCode=0 + [[ 1 -eq 1 ]] + echo 'EXIT_CODE: 0' + cat run.Rhjniim51Cg.log ++ rsync -a common/ common.bak.20211116-225433 EXIT_CODE: 0 + /bin/rm -f run.Rhjniim51Cg.log + return 0 + msg 'Backup of /p4/common completed OK.' + echo -e 'Backup of /p4/common completed OK.' Backup of /p4/common completed OK. + msg '------------------------------------------------------------------------------\nSTEP 2: Backup /p4/sdp.' + echo -e '------------------------------------------------------------------------------\nSTEP 2: Backup /p4/sdp.' ------------------------------------------------------------------------------ STEP 2: Backup /p4/sdp. + cd /hxdepots ++ date +%Y%m%d-%H%M%S + SDPBackup=sdp.bak.20211116-225434 + run 'rsync -a sdp/ sdp.bak.20211116-225434' 'Backing up /hxdepots/sdp.' + local 'cmdAndArgs=rsync -a sdp/ sdp.bak.20211116-225434' + local 'desc=Backing up /hxdepots/sdp.' + local -i honorNoOp=1 + local -i showOutput=1 + local -i exitCode= + local cmdLog= ++ mktemp run.XXXXXXXXXXX.log + cmdLog=run.fTiBU9EfX0C.log + [[ -n Backing up /hxdepots/sdp. ]] + msg 'Backing up /hxdepots/sdp.' + echo -e 'Backing up /hxdepots/sdp.' Backing up /hxdepots/sdp. + msg 'Executing: rsync -a sdp/ sdp.bak.20211116-225434' + echo -e 'Executing: rsync -a sdp/ sdp.bak.20211116-225434' Executing: rsync -a sdp/ sdp.bak.20211116-225434 + [[ 0 -eq 0 ]] + eval 'rsync -a sdp/ sdp.bak.20211116-225434' + exitCode=0 + [[ 1 -eq 1 ]] + echo 'EXIT_CODE: 0' + cat run.fTiBU9EfX0C.log ++ rsync -a sdp/ sdp.bak.20211116-225434 EXIT_CODE: 0 + /bin/rm -f run.fTiBU9EfX0C.log + return 0 + msg 'Backup of /p4/sdp completed OK.' + echo -e 'Backup of /p4/sdp completed OK.' Backup of /p4/sdp completed OK. + msg '------------------------------------------------------------------------------\nSTEP 3: Update /p4/sdp.' + echo -e '------------------------------------------------------------------------------\nSTEP 3: Update /p4/sdp.' ------------------------------------------------------------------------------ STEP 3: Update /p4/sdp. + SDPUpdateCmd='rsync -nav /hxdepots/downloads/new/sdp/ /p4/sdp' + [[ 0 -eq 0 ]] + SDPUpdateCmd='rsync -av /hxdepots/downloads/new/sdp/ /p4/sdp' + run 'rsync -av /hxdepots/downloads/new/sdp/ /p4/sdp' 'Updating /p4/sdp.' 0 1 + local 'cmdAndArgs=rsync -av /hxdepots/downloads/new/sdp/ /p4/sdp' + local 'desc=Updating /p4/sdp.' + local -i honorNoOp=0 + local -i showOutput=1 + local -i exitCode= + local cmdLog= ++ mktemp run.XXXXXXXXXXX.log + cmdLog=run.U4fvETvvEt4.log + [[ -n Updating /p4/sdp. ]] + msg 'Updating /p4/sdp.' + echo -e 'Updating /p4/sdp.' Updating /p4/sdp. + msg 'Executing: rsync -av /hxdepots/downloads/new/sdp/ /p4/sdp' + echo -e 'Executing: rsync -av /hxdepots/downloads/new/sdp/ /p4/sdp' Executing: rsync -av /hxdepots/downloads/new/sdp/ /p4/sdp + [[ 0 -eq 0 ]] + eval 'rsync -av /hxdepots/downloads/new/sdp/ /p4/sdp' + exitCode=0 + [[ 1 -eq 1 ]] + echo 'EXIT_CODE: 0' + cat run.U4fvETvvEt4.log ++ rsync -av /hxdepots/downloads/new/sdp/ /p4/sdp sending incremental file list ./ Version Server/ Server/Unix/ Server/Unix/p4/ Server/Unix/p4/1/ Server/Unix/p4/1/bin/ Server/Unix/p4/common/ Server/Unix/p4/common/bin/ Server/Unix/p4/common/bin/backup_functions.sh Server/Unix/p4/common/bin/daily_checkpoint.sh Server/Unix/p4/common/bin/edge_vars Server/Unix/p4/common/bin/load_checkpoint.sh Server/Unix/p4/common/bin/mkrep.sh Server/Unix/p4/common/bin/p4d_base Server/Unix/p4/common/bin/p4dstate.sh Server/Unix/p4/common/bin/p4login Server/Unix/p4/common/bin/p4master_run Server/Unix/p4/common/bin/p4pcm.pl Server/Unix/p4/common/bin/p4review.py Server/Unix/p4/common/bin/p4review2.py Server/Unix/p4/common/bin/p4verify.sh Server/Unix/p4/common/bin/recover_edge.sh Server/Unix/p4/common/bin/replica_status.sh Server/Unix/p4/common/bin/request_replica_checkpoint.sh Server/Unix/p4/common/bin/upgrade.sh Server/Unix/p4/common/bin/verify_sdp.sh Server/Unix/p4/common/bin/templates/ Server/Unix/p4/common/bin/templates/template.sh Server/Unix/p4/common/bin/test/ Server/Unix/p4/common/bin/triggers/ Server/Unix/p4/common/bin/triggers/submit.sh Server/Unix/p4/common/cloud/ Server/Unix/p4/common/cloud/aws/ Server/Unix/p4/common/cloud/aws/bin/ Server/Unix/p4/common/cloud/aws/bin/snapshot.sh Server/Unix/p4/common/config/ Server/Unix/p4/common/config/SiteTags.cfg.sample Server/Unix/p4/common/config/TotalUsers.cfg.sample Server/Unix/p4/common/config/instance_vars.template Server/Unix/p4/common/config/mkrep.cfg.template Server/Unix/p4/common/config/p4_vars.template Server/Unix/p4/common/etc/ Server/Unix/p4/common/etc/cron.d/ Server/Unix/p4/common/etc/cron.d/ReadMe.md Server/Unix/p4/common/etc/init.d/ Server/Unix/p4/common/etc/init.d/p4dtg_instance_init.template Server/Unix/p4/common/etc/systemd/ Server/Unix/p4/common/etc/systemd/system/ Server/Unix/p4/common/lib/ Server/Unix/p4/common/lib/libcore.sh Server/Unix/p4/common/lib/p4u_env.sh Server/Unix/p4/common/sdp_upgrade/ Server/Unix/p4/common/sdp_upgrade/clear_depot_Map_fields.sh Server/Unix/p4/common/sdp_upgrade/deprecated_files.txt Server/Unix/p4/common/sdp_upgrade/sdp_upgrade.sh Server/Unix/p4/common/site/ Server/Unix/p4/common/site/bin/ Server/Unix/p4/ssl/ Server/Unix/setup/ Server/Unix/setup/mkdirs.cfg Server/Unix/setup/mkdirs.sh Server/Unix/setup/firewalld/ Server/Unix/setup/mail/ Server/Unix/setup/systemd/ Server/setup/ Server/setup/configure_new_server.bat Server/setup/configure_new_server.sh Server/test/ Server/test/test_SDP.py Server/test/test_Upgrade.py Unsupported/ Unsupported/Maintenance/ Unsupported/Maintenance/EvilTwinDetector.sh Unsupported/Maintenance/add_users.sh Unsupported/Maintenance/clean_protect.py Unsupported/Maintenance/createusers.py Unsupported/Maintenance/email_pending_client_deletes.py Unsupported/Maintenance/license_status_check.sh Unsupported/Maintenance/sdputils.py Unsupported/Samples/ Unsupported/Samples/bin/ Unsupported/Samples/bin/cache_purge.sh Unsupported/Samples/bin/mirror_ldap_groups.cfg Unsupported/Samples/bin/mirror_ldap_groups.pl Unsupported/Samples/bin/mirror_ldap_groups.pl.html Unsupported/Samples/bin/purge_revisions.sh Unsupported/Samples/bin/swarm_rename_users.py Unsupported/Samples/bin/test/ Unsupported/Samples/broker/ Unsupported/Samples/broker/one_per_user.sh Unsupported/Samples/triggers/ Unsupported/Samples/triggers/CheckCaseTrigger.py Unsupported/Samples/triggers/CheckFixes.yaml Unsupported/Samples/triggers/CheckFolderStructure.py Unsupported/Samples/triggers/ControlFetch.py Unsupported/Samples/triggers/JobIncrement.pl Unsupported/Samples/triggers/P4Triggers.py Unsupported/Samples/triggers/Workflow.yaml Unsupported/Samples/triggers/WorkflowTriggers.py Unsupported/Samples/triggers/externalcopy.txt Unsupported/Samples/triggers/tests/ Unsupported/Samples/triggers/tests/TestCheckCaseTrigger.py Unsupported/Samples/triggers/tests/TestCheckFixes.py Unsupported/Samples/triggers/tests/TestControlFetch.py Unsupported/Samples/triggers/tests/p4testutils.py Unsupported/doc/ Unsupported/doc/JobIncrement.html Unsupported/doc/Makefile Unsupported/doc/Unsupported_SDP.adoc Unsupported/doc/Unsupported_SDP.html Unsupported/doc/Unsupported_SDP.pdf Unsupported/doc/WorkflowEnforcementTriggers.adoc Unsupported/doc/WorkflowEnforcementTriggers.html Unsupported/doc/WorkflowEnforcementTriggers.pdf Unsupported/doc/themes/ Unsupported/setup/ Unsupported/setup/install_sdp_python.sh doc/ doc/Makefile doc/ReleaseNotes.adoc doc/ReleaseNotes.html doc/ReleaseNotes.pdf doc/SDP_Failover_Guide.adoc doc/SDP_Failover_Guide.html doc/SDP_Failover_Guide.pdf doc/SDP_Guide.Unix.adoc doc/SDP_Guide.Unix.html doc/SDP_Guide.Unix.pdf doc/SDP_Legacy_Upgrades.Unix.adoc doc/SDP_Legacy_Upgrades.Unix.html doc/SDP_Legacy_Upgrades.Unix.pdf doc/SDP_Training.Unix.pptx doc/gen/ doc/gen/clear_depot_Map_fields.sh.man.txt doc/gen/get_helix_binaries.sh.man.txt doc/gen/load_checkpoint.sh.man.txt doc/gen/mkdirs.sh.man.txt doc/gen/mkrep.sh.man.txt doc/gen/p4login.man.txt doc/gen/p4verify.sh.man.txt doc/gen/sdp_upgrade.sh.man.txt doc/gen/upgrade.sh.man.txt doc/gen/verify_sdp.sh.man.txt doc/media/ doc/themes/ doc/themes/basic-theme.yml helix_binaries/ helix_binaries/get_helix_binaries.sh test/ test/.p4ignore test/build_docker_image.sh test/env.sh test/run_docker_tests.sh test/docker/ test/docker/Dockerfile.centos6.base test/docker/Dockerfile.centos7.base test/docker/Dockerfile.rocky8.base test/docker/Dockerfile.rocky8.sdp test/docker/files/ test/docker/files/test_sdp.sh sent 9,383,829 bytes received 2,935 bytes 18,773,528.00 bytes/sec total size is 10,976,774 speedup is 1.17 EXIT_CODE: 0 + /bin/rm -f run.U4fvETvvEt4.log + return 0 + msg '------------------------------------------------------------------------------\nSTEP 4: Update /p4/common.' + echo -e '------------------------------------------------------------------------------\nSTEP 4: Update /p4/common.' ------------------------------------------------------------------------------ STEP 4: Update /p4/common. + CommonUpdateCmd='rsync -nav /hxdepots/downloads/new/sdp/Server/Unix/p4/common/ /p4/common' + [[ 0 -eq 0 ]] + CommonUpdateCmd='rsync -av /hxdepots/downloads/new/sdp/Server/Unix/p4/common/ /p4/common' + run 'rsync -av /hxdepots/downloads/new/sdp/Server/Unix/p4/common/ /p4/common' 'Updating /p4/common.' 0 1 + local 'cmdAndArgs=rsync -av /hxdepots/downloads/new/sdp/Server/Unix/p4/common/ /p4/common' + local 'desc=Updating /p4/common.' + local -i honorNoOp=0 + local -i showOutput=1 + local -i exitCode= + local cmdLog= ++ mktemp run.XXXXXXXXXXX.log + cmdLog=run.5UZVo9sW7Rm.log + [[ -n Updating /p4/common. ]] + msg 'Updating /p4/common.' + echo -e 'Updating /p4/common.' Updating /p4/common. + msg 'Executing: rsync -av /hxdepots/downloads/new/sdp/Server/Unix/p4/common/ /p4/common' + echo -e 'Executing: rsync -av /hxdepots/downloads/new/sdp/Server/Unix/p4/common/ /p4/common' Executing: rsync -av /hxdepots/downloads/new/sdp/Server/Unix/p4/common/ /p4/common + [[ 0 -eq 0 ]] + eval 'rsync -av /hxdepots/downloads/new/sdp/Server/Unix/p4/common/ /p4/common' + exitCode=0 + [[ 1 -eq 1 ]] + echo 'EXIT_CODE: 0' + cat run.5UZVo9sW7Rm.log ++ rsync -av /hxdepots/downloads/new/sdp/Server/Unix/p4/common/ /p4/common sending incremental file list ./ bin/ bin/backup_functions.sh bin/broker_rotate.sh bin/daily_checkpoint.sh bin/depot_verify_chunks.py bin/edge_dump.sh bin/edge_shelf_replicate.sh bin/edge_vars bin/gen_default_broker_cfg.sh bin/journal_watch.sh bin/kill_idle.sh bin/live_checkpoint.sh bin/load_checkpoint.sh bin/mkrep.sh bin/p4 bin/p4broker bin/p4broker_base bin/p4d bin/p4d_base bin/p4dstate.sh bin/p4ftpd_base bin/p4login bin/p4master_run bin/p4p bin/p4p_base bin/p4pcm.pl bin/p4review.py bin/p4review2.py bin/p4sanity_check.sh bin/p4verify.sh bin/ps_functions.sh bin/recover_edge.sh bin/recreate_offline_db.sh bin/refresh_P4ROOT_from_offline_db.sh bin/replica_cleanup.sh bin/replica_status.sh bin/request_replica_checkpoint.sh bin/rotate_journal.sh bin/run_if_edge.sh bin/run_if_master.sh bin/run_if_replica.sh bin/sync_replica.sh bin/update_limits.py bin/upgrade.sh bin/verify_sdp.sh bin/templates/ bin/templates/template.pl bin/templates/template.py bin/templates/template.py.cfg bin/templates/template.sh bin/test/ bin/test/test_depot_verify_chunks.py bin/triggers/ bin/triggers/SetWsOptions.py bin/triggers/SetWsOptionsAndView.py bin/triggers/pull.sh bin/triggers/pull_test.sh bin/triggers/submit.sh bin/triggers/submit_test.sh cloud/ cloud/aws/ cloud/aws/bin/ cloud/aws/bin/snapshot.sh config/ config/SiteTags.cfg.sample config/TotalUsers.cfg.sample config/instance_vars.template config/mkrep.cfg.template config/p4_vars.template config/p4review.cfg.template etc/ etc/cron.d/ etc/cron.d/ReadMe.md etc/init.d/ etc/init.d/p4dtg_instance_init.template etc/systemd/ etc/systemd/system/ lib/ lib/libcore.sh lib/p4u_env.sh sdp_upgrade/ sdp_upgrade/clear_depot_Map_fields.sh sdp_upgrade/deprecated_files.txt sdp_upgrade/sdp_upgrade.sh site/ site/bin/ sent 625,444 bytes received 1,460 bytes 1,253,808.00 bytes/sec total size is 629,009 speedup is 1.00 EXIT_CODE: 0 + /bin/rm -f run.5UZVo9sW7Rm.log + return 0 + msg '------------------------------------------------------------------------------\nSTEP 5: Replace SDP Environment File (p4_vars).' + echo -e '------------------------------------------------------------------------------\nSTEP 5: Replace SDP Environment File (p4_vars).' ------------------------------------------------------------------------------ STEP 5: Replace SDP Environment File (p4_vars). + run 'mv -f /tmp/tmp.zCIrE1517c /p4/common/bin/p4_vars' 'Deploying new p4_vars file.' + local 'cmdAndArgs=mv -f /tmp/tmp.zCIrE1517c /p4/common/bin/p4_vars' + local 'desc=Deploying new p4_vars file.' + local -i honorNoOp=1 + local -i showOutput=1 + local -i exitCode= + local cmdLog= ++ mktemp run.XXXXXXXXXXX.log + cmdLog=run.8ldMFbbTYMy.log + [[ -n Deploying new p4_vars file. ]] + msg 'Deploying new p4_vars file.' + echo -e 'Deploying new p4_vars file.' Deploying new p4_vars file. + msg 'Executing: mv -f /tmp/tmp.zCIrE1517c /p4/common/bin/p4_vars' + echo -e 'Executing: mv -f /tmp/tmp.zCIrE1517c /p4/common/bin/p4_vars' Executing: mv -f /tmp/tmp.zCIrE1517c /p4/common/bin/p4_vars + [[ 0 -eq 0 ]] + eval 'mv -f /tmp/tmp.zCIrE1517c /p4/common/bin/p4_vars' + exitCode=0 + [[ 1 -eq 1 ]] + echo 'EXIT_CODE: 0' + cat run.8ldMFbbTYMy.log ++ mv -f /tmp/tmp.zCIrE1517c /p4/common/bin/p4_vars EXIT_CODE: 0 + /bin/rm -f run.8ldMFbbTYMy.log + return 0 + rm -f /tmp/tmp.zCIrE1517c + msg '------------------------------------------------------------------------------\nSTEP 6: Replace SDP Instance Configuration Files.' + echo -e '------------------------------------------------------------------------------\nSTEP 6: Replace SDP Instance Configuration Files.' ------------------------------------------------------------------------------ STEP 6: Replace SDP Instance Configuration Files. + [[ 1 -ne 0 ]] + i=0 + [[ 0 -lt 1 ]] + run 'mv -f /tmp/tmp.yElkngpFm8 /p4/common/config/p4_1.vars' 'Deploying new file: /p4/common/config/p4_1.vars' + local 'cmdAndArgs=mv -f /tmp/tmp.yElkngpFm8 /p4/common/config/p4_1.vars' + local 'desc=Deploying new file: /p4/common/config/p4_1.vars' + local -i honorNoOp=1 + local -i showOutput=1 + local -i exitCode= + local cmdLog= ++ mktemp run.XXXXXXXXXXX.log + cmdLog=run.CTm9TLDfh78.log + [[ -n Deploying new file: /p4/common/config/p4_1.vars ]] + msg 'Deploying new file: /p4/common/config/p4_1.vars' + echo -e 'Deploying new file: /p4/common/config/p4_1.vars' Deploying new file: /p4/common/config/p4_1.vars + msg 'Executing: mv -f /tmp/tmp.yElkngpFm8 /p4/common/config/p4_1.vars' + echo -e 'Executing: mv -f /tmp/tmp.yElkngpFm8 /p4/common/config/p4_1.vars' Executing: mv -f /tmp/tmp.yElkngpFm8 /p4/common/config/p4_1.vars + [[ 0 -eq 0 ]] + eval 'mv -f /tmp/tmp.yElkngpFm8 /p4/common/config/p4_1.vars' + exitCode=0 + [[ 1 -eq 1 ]] + echo 'EXIT_CODE: 0' + cat run.CTm9TLDfh78.log ++ mv -f /tmp/tmp.yElkngpFm8 /p4/common/config/p4_1.vars EXIT_CODE: 0 + /bin/rm -f run.CTm9TLDfh78.log + return 0 + i+=1 + [[ 1 -lt 1 ]] + msg '------------------------------------------------------------------------------\nSTEP 7: Remove Deprecated Files.' + echo -e '------------------------------------------------------------------------------\nSTEP 7: Remove Deprecated Files.' ------------------------------------------------------------------------------ STEP 7: Remove Deprecated Files. + [[ -r /hxdepots/downloads/new/sdp/Server/Unix/p4/common/sdp_upgrade/deprecated_files.txt ]] + remove_deprecated_files /hxdepots/downloads/new/sdp/Server/Unix/p4/common/sdp_upgrade/deprecated_files.txt + local deprecatedFilesListFile=/hxdepots/downloads/new/sdp/Server/Unix/p4/common/sdp_upgrade/deprecated_files.txt + local fileRelPath= + local file= + local -i removalErrors=0 + [[ /hxdepots/downloads/new/sdp/Server/Unix/p4/common/sdp_upgrade/deprecated_files.txt == Unset ]] + msg '\nRemoving deprecated files listed in: /hxdepots/downloads/new/sdp/Server/Unix/p4/common/sdp_upgrade/deprecated_files.txt\n' + echo -e '\nRemoving deprecated files listed in: /hxdepots/downloads/new/sdp/Server/Unix/p4/common/sdp_upgrade/deprecated_files.txt\n' Removing deprecated files listed in: /hxdepots/downloads/new/sdp/Server/Unix/p4/common/sdp_upgrade/deprecated_files.txt + read -r fileRelPath + [[ -n # This file contains a list of files that existed in earlier versions of the ]] + [[ # This file contains a list of files that existed in earlier versions of the =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # SDP package that are obsolete in the current version and should be removed. ]] + [[ # SDP package that are obsolete in the current version and should be removed. =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # In some cases, files were moved to another location; for example ]] + [[ # In some cases, files were moved to another location; for example =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # p4_vars.template was moved from /p4/common/bin to /p4/common/config. This ]] + [[ # p4_vars.template was moved from /p4/common/bin to /p4/common/config. This =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # file handles only the removal; the sdp_ugprade.sh puts new version in place ]] + [[ # file handles only the removal; the sdp_ugprade.sh puts new version in place =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # in the correct location. ]] + [[ # in the correct location. =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n '' ]] + continue + read -r fileRelPath + [[ -n # In some cases, obsolete files are not listed here for removal. This applies ]] + [[ # In some cases, obsolete files are not listed here for removal. This applies =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # to files just might be needed in some environments. Generally, we err on ]] + [[ # to files just might be needed in some environments. Generally, we err on =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # the side of safey and lowest risk of impact. For example, while p4web_base ]] + [[ # the side of safey and lowest risk of impact. For example, while p4web_base =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # is no longer included in the modern SDP, it is not listed here for removal, ]] + [[ # is no longer included in the modern SDP, it is not listed here for removal, =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # so that environments that already have it from an older SDP can keep using ]] + [[ # so that environments that already have it from an older SDP can keep using =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # it (even though it is no longer supported nor recommended). Files listed ]] + [[ # it (even though it is no longer supported nor recommended). Files listed =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # in here are deemed safe to remove (and possibly unsafe to keep around). ]] + [[ # in here are deemed safe to remove (and possibly unsafe to keep around). =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n '' ]] + continue + read -r fileRelPath + [[ -n # Paths are listed relative to the /p4 directory, or more precisely, to the ]] + [[ # Paths are listed relative to the /p4 directory, or more precisely, to the =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n # SDPInstallRoot directory (which is always /p4 for a production deployment). ]] + [[ # SDPInstallRoot directory (which is always /p4 for a production deployment). =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n '' ]] + continue + read -r fileRelPath + [[ -n # Only individual files can be listed; wildcards (e.g. '*') are not supported. ]] + [[ # Only individual files can be listed; wildcards (e.g. '*') are not supported. =~ ^[ ]*# ]] + continue + read -r fileRelPath + [[ -n '' ]] + continue + read -r fileRelPath + [[ -n common/bin/2013.3_replica_upgrade.sh ]] + [[ common/bin/2013.3_replica_upgrade.sh =~ ^[ ]*# ]] + file=/p4/common/bin/2013.3_replica_upgrade.sh + [[ -e /p4/common/bin/2013.3_replica_upgrade.sh ]] + read -r fileRelPath + [[ -n common/bin/2013.3_upgrade.sh ]] + [[ common/bin/2013.3_upgrade.sh =~ ^[ ]*# ]] + file=/p4/common/bin/2013.3_upgrade.sh + [[ -e /p4/common/bin/2013.3_upgrade.sh ]] + read -r fileRelPath + [[ -n common/bin/daily_backup.sh ]] + [[ common/bin/daily_backup.sh =~ ^[ ]*# ]] + file=/p4/common/bin/daily_backup.sh + [[ -e /p4/common/bin/daily_backup.sh ]] + read -r fileRelPath + [[ -n common/bin/p4_vars.template ]] + [[ common/bin/p4_vars.template =~ ^[ ]*# ]] + file=/p4/common/bin/p4_vars.template + [[ -e /p4/common/bin/p4_vars.template ]] + read -r fileRelPath + [[ -n common/bin/p4admin_verify_client.txt ]] + [[ common/bin/p4admin_verify_client.txt =~ ^[ ]*# ]] + file=/p4/common/bin/p4admin_verify_client.txt + [[ -e /p4/common/bin/p4admin_verify_client.txt ]] + read -r fileRelPath + [[ -n common/bin/p4review.cfg.template ]] + [[ common/bin/p4review.cfg.template =~ ^[ ]*# ]] + file=/p4/common/bin/p4review.cfg.template + [[ -e /p4/common/bin/p4review.cfg.template ]] + read -r fileRelPath + [[ -n common/bin/recreate_db_checkpoint.sh ]] + [[ common/bin/recreate_db_checkpoint.sh =~ ^[ ]*# ]] + file=/p4/common/bin/recreate_db_checkpoint.sh + [[ -e /p4/common/bin/recreate_db_checkpoint.sh ]] + read -r fileRelPath + [[ -n common/bin/recreate_db_sync_replica.sh ]] + [[ common/bin/recreate_db_sync_replica.sh =~ ^[ ]*# ]] + file=/p4/common/bin/recreate_db_sync_replica.sh + [[ -e /p4/common/bin/recreate_db_sync_replica.sh ]] + read -r fileRelPath + [[ -n common/bin/svclogin.sh ]] + [[ common/bin/svclogin.sh =~ ^[ ]*# ]] + file=/p4/common/bin/svclogin.sh + [[ -e /p4/common/bin/svclogin.sh ]] + read -r fileRelPath + [[ -n common/bin/sync_shared_replica.sh ]] + [[ common/bin/sync_shared_replica.sh =~ ^[ ]*# ]] + file=/p4/common/bin/sync_shared_replica.sh + [[ -e /p4/common/bin/sync_shared_replica.sh ]] + read -r fileRelPath + [[ -n common/bin/template.sh ]] + [[ common/bin/template.sh =~ ^[ ]*# ]] + file=/p4/common/bin/template.sh + [[ -e /p4/common/bin/template.sh ]] + read -r fileRelPath + [[ -n common/bin/template.pl ]] + [[ common/bin/template.pl =~ ^[ ]*# ]] + file=/p4/common/bin/template.pl + [[ -e /p4/common/bin/template.pl ]] + read -r fileRelPath + [[ -n common/bin/template.py ]] + [[ common/bin/template.py =~ ^[ ]*# ]] + file=/p4/common/bin/template.py + [[ -e /p4/common/bin/template.py ]] + read -r fileRelPath + [[ -n common/bin/template.py.cfg ]] + [[ common/bin/template.py.cfg =~ ^[ ]*# ]] + file=/p4/common/bin/template.py.cfg + [[ -e /p4/common/bin/template.py.cfg ]] + read -r fileRelPath + [[ -n common/bin/validate_sdp.sh ]] + [[ common/bin/validate_sdp.sh =~ ^[ ]*# ]] + file=/p4/common/bin/validate_sdp.sh + [[ -e /p4/common/bin/validate_sdp.sh ]] + read -r fileRelPath + [[ -n common/bin/weekly_backup.sh ]] + [[ common/bin/weekly_backup.sh =~ ^[ ]*# ]] + file=/p4/common/bin/weekly_backup.sh + [[ -e /p4/common/bin/weekly_backup.sh ]] + read -r fileRelPath + [[ -n common/bin/weekly_sync_replica.sh ]] + [[ common/bin/weekly_sync_replica.sh =~ ^[ ]*# ]] + file=/p4/common/bin/weekly_sync_replica.sh + [[ -e /p4/common/bin/weekly_sync_replica.sh ]] + read -r fileRelPath + [[ -n common/bin/weekly_sync_shared_replica.sh ]] + [[ common/bin/weekly_sync_shared_replica.sh =~ ^[ ]*# ]] + file=/p4/common/bin/weekly_sync_shared_replica.sh + [[ -e /p4/common/bin/weekly_sync_shared_replica.sh ]] + read -r fileRelPath + [[ 0 -eq 0 ]] + msg '\nDeprecated file removal complete.' + echo -e '\nDeprecated file removal complete.' Deprecated file removal complete. + return 0 + msg '------------------------------------------------------------------------------\nSTEP 8: Update SDP crontabs.' + echo -e '------------------------------------------------------------------------------\nSTEP 8: Update SDP crontabs.' ------------------------------------------------------------------------------ STEP 8: Update SDP crontabs. + msg 'No SDP crontab updates are required for this upgrade.' + echo -e 'No SDP crontab updates are required for this upgrade.' No SDP crontab updates are required for this upgrade. + [[ 0 -eq 0 ]] + [[ 0 -eq 0 ]] + [[ 0 -eq 0 ]] + msg '\n==============================================================================\n\nSUCCESS: SDP Upgrade Completed OK.' + echo -e '\n==============================================================================\n\nSUCCESS: SDP Upgrade Completed OK.' ============================================================================== SUCCESS: SDP Upgrade Completed OK. + [[ -n '' ]] + exit 0 + terminate + trap - EXIT SIGINT SIGTERM + [[ /p4/sdp_upgrade.20211116-225433.log == \o\f\f ]] + msg '\nLog is: /p4/sdp_upgrade.20211116-225433.log\n==============================================================================\n' + echo -e '\nLog is: /p4/sdp_upgrade.20211116-225433.log\n==============================================================================\n' Log is: /p4/sdp_upgrade.20211116-225433.log ============================================================================== + exit 0