[INTDIST-22] Key input issue on Karaf Console after log:tail command Created: 19/Dec/14  Updated: 20/Oct/17  Resolved: 19/Nov/16

Status: Resolved
Project: integration-distribution
Component/s: Karaf
Affects Version/s: Helium
Fix Version/s: None

Type: Bug
Reporter: Kuldip Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2530

 Description   

After installing odl-nsf-all, odl-openflowplugin-all, odl-adsal-compatibility-all, and odl-vtn-manager-all executing a "log:tail" in the karaf cli yields to an error message/automatic disconnect from the karaf cli. A workaround is to add the Grep option and the error/disconnect will not occur "log:tail |grep vtn"

i.e.
opendaylight-user@root>log:tail
2014-11-07 11:13:18,049 | INFO | e ssh user karaf | FeaturesServiceImpl | 24 - org.apache.karaf.features.core - 3.0.1 | Installing feature odl-adsal-all 0.8.1-Helium
2014-11-07 11:13:18,049 | INFO | e ssh user karaf | FeaturesServiceImpl | 24 - org.apache.karaf.features.core - 3.0.1 | Installing feature odl-adsal-core 0.8.1-Helium
2014-11-07 11:13:18,049 | INFO | e ssh user karaf | FeaturesServiceImpl | 24 - org.apache.karaf.features.core - 3.0.1 | Installing feature odl-base-felix-dm 3.1.0
2014-11-07 11:13:18,054 | INFO | e ssh user karaf | FeaturesServiceImpl | 24 - org.apache.karaf.features.core - 3.0.1 | Installing feature odl-base-dummy-console 1.1.0-Helium
2014-11-07 11:13:18,055 | INFO | e ssh user karaf | FeaturesServiceImpl | 24 - org.apache.karaf.features.core - 3.0.1 | Installing feature odl-adsal-thirdparty 0.8.1-Helium

<-----truncated output ------->

tionTask.call(DOMDataCommitCoordinatorImpl.java:127)[222:org.opendaylight.controller.sal-broker-impl:1.1.0.Helium]
at org.opendaylight.yangtools.util.concurrent.DeadlockDetectingListeningExecutorService$2.call(DeadlockDetectingListeningExecutorService.java:192)[143:org.opendaylight.yangtools.util:0.6.2.Helium]
at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_67]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
Disconnecting: Corrupted MAC on input.
admin@turtleOC.extremenetworks.com:~$



 Comments   
Comment by Hideyuki Tai [ 19/Dec/14 ]

After I execute "log:tail" command on Karaf Console, key input on Karaf Console gets weird.
After that, I have to type my character multiple times for the keyboard input keys to show.

For example, to input "bundle:list" on Karaf Console, I have to type "bbuunnddllee::lliisstt" on my keyboard.

It happens even when I don't install any features.

I've observed that it happens on Helium-SR1.
And, I've faced this issue since September 21st.

Comment by Ed Warnicke [ 19/Dec/14 ]

I just tried this on master by:

1) Building the integration/distributions/extra/karaf
2) cd target/assembly/bin
3) ./karaf
4) feature:install odl-nsf-all odl-openflowplugin-all odl-adsal-compatibility-all odl-vtn-manager-all
5) log:tail
6) ^C
7) start typing feature:install

I don't see any character repeat or lag. Is this only seen on Helium-SR1?

Comment by Hideyuki Tai [ 23/Dec/14 ]

(In reply to Ed Warnicke from comment #2)
> I just tried this on master by:
>
> 1) Building the integration/distributions/extra/karaf
> 2) cd target/assembly/bin
> 3) ./karaf
> 4) feature:install odl-nsf-all odl-openflowplugin-all
> odl-adsal-compatibility-all odl-vtn-manager-all
> 5) log:tail
> 6) ^C
> 7) start typing feature:install
>
> I don't see any character repeat or lag. Is this only seen on Helium-SR1?

I've faced this issue since September 21st.
I can see this issue on both Helium and Helium-SR1.

Comment by Dave Neary [ 23/Dec/14 ]

I have had the same issue after interrupting log:tail too.

Dave.

Comment by Hideyuki Tai [ 23/Dec/14 ]

After I execute "log:tail" command, it occurs with a probability of about 40%.
Therefore, I think if you execute the "log"tail" command three times, you may face the issue.

I tried the following three kinds of terminals.
But, the result doesn't change.

1. GNOME Terminal (3.8.4)
2. PuTTY
3. TeraTerm

Here is the output of "stty -a" on my CentOS7 in which I run ODL controller.

$ stty -a
speed 9600 baud; rows 53; columns 207; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff -iuclc -ixany imaxbel -iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

Comment by Mathieu Lemay [ 09/Jan/15 ]

Is it possible to have more information about the environments? At least Shell being used and JVM version? I also tried it and it works fine but it might be environment specific.

Moreover, can you try logging in via SSH ( ssh -p 8101 karaf@localhost ) and see if it is terminal related or not?

Thanks!

Comment by Dave Neary [ 09/Jan/15 ]

For me:

  • CentOS 7, running in a VM
  • bash - whatever comes with CentOS 7
  • SSHing into the instance

Dave.

Comment by Luis Gomez [ 29/Jan/16 ]

This seems like a karaf issue. Is this still happening Hideyuki?

Comment by Hideyuki Tai [ 29/Jan/16 ]

(In reply to Luis Gomez from comment #8)
> This seems like a karaf issue. Is this still happening Hideyuki?

No, it does not happen now.

I tried to reproduce the issue with Beryllium SNAPSHOT artifacts which were built from the source code today, but the issue didn't occur.

I'm on +1 to close the bug.

Generated at Wed Feb 07 20:02:35 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.