Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 27a2ba9

Browse files
committed
Review comments addressed
1 parent 39dc94e commit 27a2ba9

File tree

5 files changed

+4
-21
lines changed

5 files changed

+4
-21
lines changed

src/pluginops/pluginops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def configure(virtual_source, snapshot, repository):
572572
std_err=result.stderr.strip()
573573
exit_code = result.exit_code
574574
if exit_code == 0:
575-
logger.debug("Pre-Snapshot/Restore_DB successful"+output)
575+
logger.debug("Pre-Snapshot/Restore_DB successful")
576576
else:
577577
err = utils.process_exit_codes(exit_code,"PROVISION",std_err)
578578
logger.debug("There was an error while provisioning.Check error.log for details.")

src/resources/provision.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,6 @@ outputJSON=$($DLPX_BIN_JQ ".baseDir = $(jqQuote "$CONFIG_BASEDIR")" <<< "$output
216216
outputJSON=$($DLPX_BIN_JQ ".dbName = $(jqQuote "$prettyName")" <<< "$outputJSON")
217217

218218
printf "$outputJSON" > "$DLPX_OUTPUT_FILE"
219-
#log "Output: $outputJSON"
220219
echo "${prettyName}"
221-
#log "Environment: "
222-
#export DLPX_LIBRARY_SOURCE=""
223-
#export REPLICATION_PASS=""
224-
#export SNAPSHOT_METADATA=""
225-
#export STAGINGPASS=""
226-
#env | sort >>$DEBUG_LOG
227220
log "End"
228221
exit 0

src/resources/restore_stage.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ masklog "Staging Connection: ${STAGINGCONN}"
109109
RESULTS=$( buildConnectionString "${STAGINGCONN}" "${TMP_PWD}" "${STAGINGPORT}" "${STAGINGHOSTIP}" )
110110
STAGING_CONN=`echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"`
111111
masklog "Staging Connection: ${STAGING_CONN}"
112-
log "Creation Results: ${RESULTS}"
113112

114113
############################################################
115114
log "Creating Staging Directories on NFS Mounted Path from Delphix"
@@ -584,6 +583,6 @@ export DLPX_LIBRARY_SOURCE=""
584583
export REPLICATION_PASS=""
585584
export STAGINGPASS=""
586585
export SOURCEPASS=""
587-
env | sort >>$DEBUG_LOG
586+
env | grep -v 'SOURCEPASS' | sort >>$DEBUG_LOG
588587
log " <<<End"
589588
exit 0

src/resources/restore_stage_bi.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ log "${MYSQLD}/mysqld --initialize --user=mysql --datadir=${NEW_DATA_DIR} --log-
7373
${MYSQLD}/mysqld --initialize --user=mysql --datadir=${NEW_DATA_DIR} --log-error=${NEW_DATA_DIR}/mysqld.log 1>>${DEBUG_LOG} 2>&1
7474

7575
PWD_LINE=`cat ${NEW_DATA_DIR}/mysqld.log | grep 'temporary password'`
76-
# sudo grep 'temporary password' ${NEW_DATA_DIR}/mysqld.log`
77-
# log "init temporary password: ${PWD_LINE}"
7876
TMP_PWD=`echo "${PWD_LINE}" | ${AWK} -F": " '{print $2}' | xargs`
7977

8078
# These temporary passwords contain special characters so need to wrap in single / literal quotes ...
@@ -83,7 +81,6 @@ masklog "Staging Connection: ${STAGINGCONN}"
8381
RESULTS=$( buildConnectionString "${STAGINGCONN}" "${TMP_PWD}" "${STAGINGPORT}" "${STAGINGHOSTIP}" )
8482
STAGING_CONN=`echo "${RESULTS}" | $DLPX_BIN_JQ --raw-output ".string"`
8583
masklog "Staging Connection: ${STAGING_CONN}"
86-
masklog "Creation Results: ${RESULTS}"
8784

8885
############################################################
8986
##
@@ -361,7 +358,6 @@ masklog "Granting privileges command: ${CMD}"
361358
return_msg=$(eval ${CMD} 2>&1 1>&2 > /dev/null)
362359
return_code=$?
363360
log "Return Status: ${return_code}"
364-
log "Return message:${return_msg}"
365361
if [ $return_code != 0 ]; then
366362
errorlog "Unable to grant required permissions to delphix database user. This may have to be done manually"
367363
fi
@@ -471,7 +467,7 @@ command_runner "${CMD}" 11
471467
log "Environment:"
472468
export DLPX_LIBRARY_SOURCE=""
473469
export STAGINGPASS=""
474-
env | sort >>$DEBUG_LOG
470+
env | grep -v 'STAGINGPASS' | sort >>$DEBUG_LOG
475471
log "End"
476472
echo "Staging Started"
477473
exit 0

src/resources/restore_stage_si.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,13 @@ ${MYSQLD}/mysqld --initialize --user=mysql --datadir=${NEW_DATA_DIR} --log-error
9292
PWD_LINE=`cat ${NEW_DATA_DIR}/mysqld.log | grep 'temporary password'`
9393
# sudo grep 'temporary password' ${NEW_DATA_DIR}/mysqld.log`
9494
# 2019-04-11T14:40:34.032576Z 1 [Note] A temporary password is generated for root@localhost: L0qXNZ8?C3Us
95-
log "init temporary password: ${PWD_LINE}"
9695

9796
TMP_PWD=`echo "${PWD_LINE}" | ${AWK} -F": " '{print $2}' | xargs`
9897
#
9998
# These temporary passwords contain special characters so need to wrap in single / literal quotes ...
10099
#
101100
TMP_PWD=`echo "'"$TMP_PWD"'"`
102-
log "Temporary Password: ${TMP_PWD}"
103101

104-
##log "Creation Results: ${RESULTS}"
105102

106103
log "Staging Connection: ${STAGINGCONN}"
107104
RESULTS=$( buildConnectionString "${STAGINGCONN}" "${TMP_PWD}" "${STAGINGPORT}" )
@@ -264,8 +261,6 @@ eval ${CMD} 1>>${DEBUG_LOG} 2>&1
264261

265262
log "Environment: "
266263
export DLPX_LIBRARY_SOURCE=""
267-
#export REPLICATION_PASS=""
268-
#export STAGINGPASS=""
269-
env | sort >>$DEBUG_LOG
264+
env | grep -v 'STAGINGPASS' | sort >>$DEBUG_LOG
270265
log "------------------------- End"
271266
exit 0

0 commit comments

Comments
 (0)