Bug 1169300

Summary: (6.4.0) The CLI freezes in phase of requesting username/password
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: CLIAssignee: Tomas Hofman <thofman>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: brian.stansberry, cdewolf, kkhan, thofman
Target Milestone: ER1   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1169864 (view as bug list) Environment:
Last Closed: 2019-08-19 12:40:33 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:
Bug Depends On: 1169858    
Bug Blocks: 1169864    

Description Petr Kremensky 2014-12-01 09:46:17 UTC
The CLI freezes in phase of requesting username/password in some cases.

Reproducer
==========
Run following command:

./jboss-cli.sh -c << EOF
/core-service=management/security-realm=ManagementRealm/authentication=local:remove
reload
EOF

Version-Release number of selected component (if applicable):
EAP 6.4.0.DR11

Additional info:
Follow up to BZ1149099

Comment 1 Tomas Hofman 2014-12-02 15:10:25 UTC
PR https://github.com/jbossas/jboss-eap/pull/2107

Comment 2 Petr Kremensky 2014-12-10 09:41:56 UTC
CLI still freezes (DR13):

./standalone.sh &
./add-user.sh master asdasd@2

a) use CLI interactively
./jboss-cli.sh -c
[standalone@localhost:9999 /] /core-service=management/security-realm=ManagementRealm/authentication=local:remove
[standalone@localhost:9999 /] reload
// server reload
Authenticating against security realm: ManagementRealm
Username: master
Password: 
[standalone@localhost:9999 /]

b) use command from description
./jboss-cli.sh -c << EOF
/core-service=management/security-realm=ManagementRealm/authentication=local:remove
reload
EOF

// server reload
Authenticating against security realm: ManagementRealm
Username: Failed to establish connection: JBAS012174: Could not connect to remote://localhost:9999. The connection failed: Authentication failed: the server presented no authentication mechanisms
[disconnected /] 
// cli process stuck, Ctrl+C is the only way out

I don't think this should be moved to ON_QA since BZ1169858 has still status NEW

Comment 3 Tomas Hofman 2014-12-10 12:10:13 UTC
Sure, the upgrade BZ was not yet merged.

Sorry for forgetting to mention that - this fix has two parts: 
- one is the PR mentioned here (already merged),
- second is the upgrade BZ 1169858 for AESH library to version 0.33.14, which was only released yesterday.

I'm switching to POST state so that the upgrade BZ can be completed.

Comment 6 Petr Kremensky 2015-01-13 06:22:55 UTC
Verified on EAP 6.4.0.ER1