JBoss ON apply-updates reports successful patch even if jboss-cli commands fail
Environment
- Red Hat JBoss Operations Network (JBoss ON) 3.3 Update 11 and earlier
- Running apply-updates command from JBoss ON Server Update archive
Issue
-
Incorrectly informed patch applied successfully even when some
jboss-clicommands fail -
update.logincludes the folowing error messages even thoughapply-updatesreported success:Unable to apply patch as [Server/cli interface] component(s) not yet running. Retrying...
Resolution
Beginning in JBoss ON 3.3 Update 12, the apply-updates command will now report a warning if any of the jboss-cli commands fail during the upgrade process.
Root Cause
Applying maintenance updates to a JBoss ON server may require changes to the underlying JBoss application server's configuration. In such cases the jboss-cli command is invoked to perform various configuration updates or checks. However, if these commands fail, the apply-updates command fails to inform the user of these failures. This could potentially leave the underlying application server's configuration in an inconsistent state with the expected maintenance update.
This issue was identified in This content is not included.Red Hat Bug 1636916.
Diagnostic Steps
-
After running
apply-updatesreview the update log for the following output:Unable to apply patch as [Server/cli interface] component(s) not yet running. Retrying...
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.