You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix missing return code for online update after refactoring
* rename function
* correct logic
* add return code to share.sh
* update documentation with new return code
* correct side effect after calling setServerGroups
* add doc and update script
* remove 101, 102 return code, no where is returning it
* Add online system tests
* remove unused test and increase start server time
* Remove fake network channel
Copy file name to clipboardExpand all lines: installer/src/main/bin/shared.cmd
+4-9Lines changed: 4 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -300,19 +300,14 @@ GOTO :EOF
300
300
301
301
SETRETURN_CODE=%1
302
302
303
-
IF"%RETURN_CODE%"=="103" (
303
+
IF"%RETURN_CODE%"=="104" (
304
304
ECHO.
305
-
ECHO%SCRIPT_NAME% completed successfully but the domain requires a restart for the changes to take effect^(exit code = %RETURN_CODE%^)
305
+
ECHO%SCRIPT_NAME% completed successfully but the domain changes have been rolled back because -rollback_if_require_restart is specified ^(exit code = %RETURN_CODE%^)
306
306
EXIT /B %RETURN_CODE%
307
307
)
308
-
IF"%RETURN_CODE%"=="102" (
309
-
ECHO.
310
-
ECHO%SCRIPT_NAME% completed successfully but the affected servers require a restart ^(exit code = %RETURN_CODE%^)
311
-
EXIT /B %RETURN_CODE%
312
-
)
313
-
IF"%RETURN_CODE%"=="101" (
308
+
IF"%RETURN_CODE%"=="103" (
314
309
ECHO.
315
-
ECHO%SCRIPT_NAME%was unable to complete due to configuration changes that require a domain restart. Please restart the domain and re-invoke the %SCRIPT_NAME% script with the same arguments^(exit code = %RETURN_CODE%^)
310
+
ECHO%SCRIPT_NAME%completed successfully but the domain requires a restart for the changes to take effect^(exit code = %RETURN_CODE%^)
Copy file name to clipboardExpand all lines: installer/src/main/bin/shared.sh
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -274,15 +274,12 @@ checkExitCode() {
274
274
275
275
returnCode=$1
276
276
277
-
if [ $returnCode-eq103 ];then
277
+
if [ $returnCode-eq104 ];then
278
278
echo""
279
-
echo"$scriptName completed successfully but the domain requires a restart for the changes to take effect (exit code = ${RETURN_CODE})"
280
-
elif [ $returnCode-eq 102 ];then
281
-
echo""
282
-
echo"$scriptName completed successfully but the affected servers require a restart (exit code = ${RETURN_CODE})"
283
-
elif [ $returnCode-eq 101 ];then
279
+
echo"$scriptName completed successfully but the domain changes have been rolled back because -rollback_if_require_restart is specified (exit code = ${RETURN_CODE})"
280
+
elif [ $returnCode-eq 103 ];then
284
281
echo""
285
-
echo"$scriptNamewas unable to complete due to configuration changes that require a domain restart. Please restart the domain and re-invoke the $scriptName script with the same arguments (exit code = ${RETURN_CODE})"
282
+
echo"$scriptNamecompleted successfully but the domain requires a restart for the changes to take effect (exit code = ${RETURN_CODE})"
Copy file name to clipboardExpand all lines: site/deploy.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,8 @@ As usual, the tool will prompt for the password (it can also be supplied by pipi
25
25
26
26
When running the tool in WLST online mode, the deploy operation may require server restarts or a domain restart to pick up the changes. The deploy operation can also encounter situations where it cannot complete its operation until the domain is restarted. To communicate these conditions to scripts that may be calling the Deploy Applications Tool, the shell scripts have three special, non-zero exit codes to communicate these states:
27
27
28
-
-`101` - The domain needs to be restarted and the Deploy Applications Tool needs to be re-invoked with the same arguments.
29
-
-`102` - The servers impacted by the deploy operation need to be restarted, in a rolling fashion, starting with the Administration Server, if applicable.
30
28
-`103` - The entire domain needs to be restarted.
29
+
-`104` - The domain changes have been rolled back because the changes in the model requires a domain restart and -rollback_if_require_restart is specified.
Copy file name to clipboardExpand all lines: site/update.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,8 @@ The Update Domain Tool will not attempt to recreate or add schemas for the RCU d
20
20
21
21
When running the tool in WLST online mode, the update operation may require server restarts or a domain restart to pick up the changes. The update operation can also encounter situations where it cannot complete its operation until the domain is restarted. To communicate these conditions to scripts that may be calling the Update Domain Tool, the shell scripts have three special, non-zero exit codes to communicate these states:
22
22
23
-
-`101` - The domain needs to be restarted and the Update Domain Tool needs to be re-invoked with the same arguments.
24
-
-`102` - The servers impacted by the update operation need to be restarted, in a rolling fashion, starting with the Administration Server, if applicable.
25
23
-`103` - The entire domain needs to be restarted.
24
+
-`104` - The domain changes have been rolled back because the changes in the model requires a domain restart and -rollback_if_require_restart is specified.
0 commit comments