Created attachment 1104209 [details] CLI debug logging Description of problem: Not able to apply patch(EAP 6.4.0-->EAP 6.4.4) to remote host controller using CLI command in non-interactive mode, it fails with exception. ~~~ [abhumbe@abhumbe bin]$ ./jboss-cli.sh --controller=10.10.10.10 --command="patch apply --host=slave /JBoss-EAP/EAP6.x.x/jboss-eap-6.4.4-patch.zip" patching exception ~~~ Similarly we are able to patch domain controller but not to the remote host controller. How reproducible: Domain controller with remote host controller. Steps to Reproduce: 1. start EAP 6.4 server in domain mode and connect with remote host controller. 2. Try to upgrade domain controller and remote host controller to 6.4.4 using patch apply command in non-interactive mode. 3. For domain controller its successful but not for remote host controller. Actual results: Not able to apply patch to remote host controller using CLI in non-interactive mode. Expected results: We should be able to patch remote host controller using CLI in non-interactive mode. Additional info: On first attempt outcome of the command is 'success', but patch is not applied to remote host controller. ============ [abhumbe@abhumbe bin]$ ./jboss-cli.sh --controller=10.10.10.10 --command="patch apply --host=slave /JBoss-EAP/EAP6.x.x/jboss-eap-6.4.4-patch.zip" { "outcome" : "success", "result" : {} } [domain.10.10:9999 /] patch info --host=slave { "outcome" : "success", "result" : { "cumulative-patch-id" : "base", "patches" : [], "version" : "6.4.0.GA", "addon" : null, "layer" : {"base" : { "cumulative-patch-id" : "base", "patches" : [] }} } } ============ On further attempt it fails with "patching exception". On enabled DEBUG logging for CLI, I cant see any exception in log file. Debug log file attached.
The workaround is to specify the option -c to enforce the connection to the server. This works for me: ./jboss-cli.sh -c --controller=10.10.10.10 --command="patch apply --host=slave /JBoss-EAP/EAP6.x.x/jboss-eap-6.4.4-patch.zip" This applies properly the patch. I'm still investigating why jboss-cli is bypassing the option --host if the option -c is not specified.
the problem is that CLI is allowing the --host option to be specified in offline mode. I proposed a fix to avoid this misleading situation: 6.4.z: https://github.com/jbossas/jboss-eap/pull/2694 7.0.0: https://github.com/jbossas/wildfly-core-eap/pull/141
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions
Jiri Pallich <jpallich> updated the status of jira JBEAP-2997 to Closed
Verified with EAP 6.4.11.CP.CR1. The --host option is no longer available in offline mode.
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.