Skip to content

Commit

Permalink
Fix upgrade acceptance test.
Browse files Browse the repository at this point in the history
  • Loading branch information
maobaolong committed Aug 25, 2020
1 parent ac127fa commit 58c79ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hadoop-ozone/dist/src/main/compose/testlib.sh
Expand Up @@ -72,7 +72,7 @@ wait_for_safemode_exit(){
while [[ $SECONDS -lt 180 ]]; do

#This line checks the safemode status in scm
local command="ozone ${OZONE_ADMIN_COMMAND} safemode status --verbose"
local command="${OZONE_SAFEMODE_STATUS_COMMAND}"
if [[ "${SECURITY_ENABLED}" == 'true' ]]; then
status=$(docker-compose exec -T scm bash -c "kinit -k HTTP/scm@EXAMPLE.COM -t /etc/security/keytabs/HTTP.keytab && $command" || true)
else
Expand Down
Expand Up @@ -16,3 +16,4 @@
# limitations under the License.

export OZONE_ADMIN_COMMAND=scmcli
export OZONE_SAFEMODE_STATUS_COMMAND='ozone scmcli safemode status'
Expand Up @@ -16,3 +16,4 @@
# limitations under the License.

export OZONE_ADMIN_COMMAND=admin
export OZONE_SAFEMODE_STATUS_COMMAND='ozone admin safemode status --verbose'

0 comments on commit 58c79ea

Please sign in to comment.