[AAA-189] Unable to execute karaf CLI command twice Created: 31/Oct/19  Updated: 09/Jul/20  Resolved: 09/Jul/20

Status: Resolved
Project: aaa
Component/s: None
Affects Version/s: None
Fix Version/s: Aluminium

Type: Bug Priority: Medium
Reporter: Venkatrangan Govindarajan Assignee: Venkatrangan Govindarajan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Executing the same aaa:cli command twice is resultung in an error. We need to open the karaf session again.

 

opendaylight-user@root>                                                                                                                                                                                     
opendaylight-user@root>aaa:get-odl-cert
Enter Keystore Password:
EQuldKmNVSvo
-----BEGIN CERTIFICATE-----
MIICKjCCAZOgAwIBAgIFAMHDOYQwDQYJKoZIhvcNAQEFBQAwWTEMMAoGA1UEAwwDT0RMMQwwCgYDVQQLDANEZXYxGDAWBgNVBAoMD0xpbnV4Rm91bmRhdGlvbjEUMBIGA1UEBwwLUUMgTW9udHJlYWwxCzAJBgNVBAYTAkNBMB4XDTE5MTAzMDE3MTA0NVoXDTIwMTAyOTE3MTA0NVowWTEMMAoGA1UEAwwDT0RMMQwwCgYDVQQLDANEZXYxGDAWBgNVBAoMD0xpbnV4Rm91bmRhdGlvbjEUMBIGA1UEBwwLUUMgTW9udHJlYWwxCzAJBgNVBAYTAkNBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrO3RKbAcKnnU9emVImXV0lCDb1kUICLRGMsJR49VDwikbzV3BgTSzOGYOxXSZZZa7baLqRaMnULUYrlOW1wZj6c504jKS1HwYvkihqqAEovEEmZsO2Kscpoyxt5L00YQzxF0tibQfuaTS/ufrD6r64l1qK1PY9R2a0myP5C+fGQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAKOWZGMoFY5DcMScDEnhEUwILuHG7vlTssz3FdSF5QXnWwomzGLf3mdRmZMyxj9xJlcak96Dp0BSK/MxR/amHWJbgM/2JJaXpFGyqYVCPw96l2pmnYhkIeTvo1yIS3stqYtYbC+wI8MDAt2FBVWwnnWSDY8knwDr/+b51Afs2gQD
-----END CERTIFICATE-----
opendaylight-user@root>aaa:get-odl-cert                                                                                                                                                                     
Enter Keystore Password:
Error executing command: java.nio.channels.ClosedChannelException
opendaylight-user@root>aaa:get-odl-cert                                                                                                                                                                     
Enter Keystore Password:
Error executing command: java.nio.channels.ClosedChannelException
opendaylight-user@root>                                                                                                                                                                                     
opendaylight-user@root>aaa:get-odl-cert                                                                                                                                                                     
Enter Keystore Password:
Error executing command: java.nio.channels.ClosedChannelException



 Comments   
Comment by Venkatrangan Govindarajan [ 01/Jun/20 ]

This failure is observed in all of karaf clients like an ssh to karaf, using bin/client. The get-users does not work from either bin/client or the ssh console.

Comment by Venkatrangan Govindarajan [ 01/Jun/20 ]

Also, When any AAA command is executed in bin/karaf issuing the username and password of AAA admin, the command works without any credentails from client and ssh for a while until the session expires.

Generated at Wed Feb 07 19:08:52 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.