+ msg '==============================================================================\nLog is: /p4/sdp_upgrade.20211116-223504.log'
+ echo -e '==============================================================================\nLog is: /p4/sdp_upgrade.20211116-223504.log'
==============================================================================
Log is: /p4/sdp_upgrade.20211116-223504.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:35:04 UTC with this command line:\n./sdp_upgrade.sh -p -D'
+ echo -e 'sdp_upgrade.sh v1.5.0 Starting SDP upgrade as perforce@siab-prod-commit at Tue 2021-11-16 22:35:04 UTC with this command line:\n./sdp_upgrade.sh -p -D'
sdp_upgrade.sh v1.5.0 Starting SDP upgrade as perforce@siab-prod-commit at Tue 2021-11-16 22:35:04 UTC with this command line:
./sdp_upgrade.sh -p -D
+ 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
++ awk '{print $2}'
++ tail -1
+ 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.WGITYBv8KM
+ 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
++ tail -1
++ cut -d = -f 2
+ 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.WGITYBv8KM
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.NfcdPDHmNQ
+ 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-223356.log =~ ^(common|sdp|ssl)$ ]]
+ [[ -L sdp_upgrade.20211116-223356.log ]]
+ [[ -d sdp_upgrade.20211116-223356.log ]]
+ for e in '*'
+ [[ sdp_upgrade.20211116-223504.log =~ ^(common|sdp|ssl)$ ]]
+ [[ -L sdp_upgrade.20211116-223504.log ]]
+ [[ -d sdp_upgrade.20211116-223504.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.NfcdPDHmNQ
+ dbg 'CALL check_instance_cfg_file(/p4/common/config/p4_1.vars /tmp/tmp.NfcdPDHmNQ)'
+ [[ 1 -ne 0 ]]
+ msg 'CALL check_instance_cfg_file(/p4/common/config/p4_1.vars /tmp/tmp.NfcdPDHmNQ)'
+ echo -e 'CALL check_instance_cfg_file(/p4/common/config/p4_1.vars /tmp/tmp.NfcdPDHmNQ)'
CALL check_instance_cfg_file(/p4/common/config/p4_1.vars /tmp/tmp.NfcdPDHmNQ)
+ local instanceCfgFile=/p4/common/config/p4_1.vars
+ local instanceCfgFileNew=/tmp/tmp.NfcdPDHmNQ
+ 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
++ tail -1
++ cut -d = -f 2
+ 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
++ tail -1
++ cut -d = -f 2
+ 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
++ cut -d = -f 2
++ tail -1
+ 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
++ cut -d = -f 2
++ tail -1
+ 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
++ cut -d = -f 2
++ head -1
+ 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
++ cut -d = -f 2
++ head -1
+ 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
++ cut -d = -f 2
++ tail -1
+ 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.NfcdPDHmNQ
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-upgrade-Alerts-1CCDAWXMNZFPT --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-upgrade-Alerts-1CCDAWXMNZFPT"
<
+ 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.
+ [[ 1 -eq 1 ]]
+ msg '\nExiting early after successful preflight checks due to '\''-p'\''.'
+ echo -e '\nExiting early after successful preflight checks due to '\''-p'\''.'
Exiting early after successful preflight checks due to '-p'.
+ exit 0
+ terminate
+ trap - EXIT SIGINT SIGTERM
+ [[ /p4/sdp_upgrade.20211116-223504.log == \o\f\f ]]
+ msg '\nLog is: /p4/sdp_upgrade.20211116-223504.log\n==============================================================================\n'
+ echo -e '\nLog is: /p4/sdp_upgrade.20211116-223504.log\n==============================================================================\n'
Log is: /p4/sdp_upgrade.20211116-223504.log
==============================================================================
+ exit 0
# |
Change |
User |
Description |
Committed |
|
#1
|
28309 |
swarm-user |
Added: //.swarm/attachments/0000000096-pre-flight-checks-debug.log |
|
|