Bug 1238609

Summary: Support for true non-interactive mode
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Libor Zoubek <lzoubek>
Component: CLIAssignee: Bartek Spyrko-Smietanko <bspyrkos>
Status: CLOSED NOTABUG QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.1CC: bbaranow, brian.stansberry, bspyrkos, darran.lofthouse, jboss-set, mkopecky, theute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-10 12:38:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Libor Zoubek 2015-07-02 09:33:48 UTC
Description of problem:
My server's management interfaces are secured with SSL certificate and I am trying to run

jboss-cli --connect --commands ":whoami" 

In case I did not permanently accept the certificate before nor configured it in jboss-cli.xml, process is blocked until I provide some input.

Version-Release number of selected component (if applicable):
all 6.x.x


Steps to Reproduce:
1. Secure native interface with SSL (and/or client certificate)
2. make sure $HOME/.jboss-cli.truststore does not exist
3. execute jboss-cli --connect --commands ":whoami"

Actual results:
In case I did not permanently accept the certificate before nor configured it in jboss-cli.xml, process is blocked until I provide some input.

Expected results:
I need to be able to run CLI with some special flag, so it terminates immediately in case client does not (yet) trust the server certificate. The use case is in RHQ Agent plugin, which can execute jboss-cli. If server's native interface is secured, our plugin get's blocked, because jboss-cli is waiting for input. We need to fix it, so the user at least knows, he has to properly configure jboss-cli.xml.

Additional info:

Comment 1 baranowb 2015-07-07 10:16:07 UTC
Flags + NACK. This seems like RFE.

Comment 2 Libor Zoubek 2015-07-07 10:32:40 UTC
I don't see it as RFE as this page https://developer.jboss.org/wiki/CLINon-interactiveMode describes how to run in non-interactive mode. This is broken by the fact, that server is secured and it's cert not trusted.

Comment 3 Bartek Spyrko-Smietanko 2015-08-06 11:00:18 UTC
Upstream issue: https://issues.jboss.org/browse/WFCORE-869
Upstream PR: https://github.com/wildfly/wildfly-core/pull/944

Comment 4 Darran Lofthouse 2015-08-06 11:10:53 UTC
+1 on this being classed as an RFE, the existing behaviour covers a set of valid use cases.

Changing the existing behaviour is not acceptable.

Comment 5 Bartek Spyrko-Smietanko 2015-08-10 12:38:40 UTC
Closing - the upstream RFE is https://issues.jboss.org/browse/WFCORE-869

Comment 6 JBoss JIRA Server 2015-09-14 13:02:39 UTC
Alexey Loubyansky <alex> updated the status of jira WFCORE-869 to Resolved

Comment 7 JBoss JIRA Server 2015-09-15 14:45:44 UTC
Alexey Loubyansky <alex> updated the status of jira WFCORE-869 to Reopened