Skip to content

Instantly share code, notes, and snippets.

@KenG98
Created February 4, 2020 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KenG98/c3878387938b343d32fa58a0800469e5 to your computer and use it in GitHub Desktop.
Save KenG98/c3878387938b343d32fa58a0800469e5 to your computer and use it in GitHub Desktop.
[ RUN ] CliTest.writeMultipleTimesAllExecute
I0204 20:29:01.236227 1 magma_logging.h:28] Setting verbosity to 4
I0204 20:29:01.265228 1 Engine.cpp:40] SSH already initialized
I0204 20:29:01.266278 1 Engine.cpp:55] Logging already initialized
I0204 20:29:01.267364 1 Engine.cpp:86] Cli engine started with concurrency set to 8
I0204 20:29:01.269641 1 Ssh.cpp:66] Opening server: 0.0.0.0:9999
I0204 20:29:01.273094 366 Ssh.cpp:95] Waiting for session on: 0.0.0.0:9999
I0204 20:29:01.784387 367 ReconnectingCli.cpp:125] [localhost-test-device] Recreating cli stack
I0204 20:29:01.785070 1 KeepaliveCli.cpp:64] [localhost-test-device] initialized
I0204 20:29:01.786698 1 KeepaliveCli.cpp:98] [localhost-test-device] ([7763] ) triggerSendKeepAliveCommand created new command
I0204 20:29:01.823467 368 IoConfigurationBuilder.cpp:160] Creating CLI ssh device for localhost-test-device (localhost:9999)
I0204 20:29:01.824779 368 IoConfigurationBuilder.cpp:168] [localhost-test-device] Opening shell
I0204 20:29:01.851150 369 KeepaliveCli.cpp:105] [localhost-test-device] ([7763] ) triggerSendKeepAliveCommand executing keepalive command
I0204 20:29:01.883761 370 SshSession.cpp:58] [localhost-test-device] Connecting to host: localhost port: 9999
I0204 20:29:01.932126 369 KeepaliveCli.cpp:131] [localhost-test-device] ([7763] ) Got error running keepalive, backing off devmand::channels::cli::DisconnectedException: Not connected
I0204 20:29:01.934871 370 SshSession.cpp:110] [localhost-test-device] Error in SSH connection to host: localhost port: 9999 with error: Connection refused
I0204 20:29:01.975358 370 SshSessionAsync.cpp:114] [localhost-test-device] ~SshSessionAsync started
I0204 20:29:01.975800 370 SshSessionAsync.cpp:52] [localhost-test-device] destroy: started
I0204 20:29:01.976629 370 SshSessionAsync.cpp:66] [localhost-test-device] destroy: starting async cleanup
I0204 20:29:01.977499 373 SshSessionAsync.cpp:71] [localhost-test-device] destroy: closing session
I0204 20:29:02.016593 374 SshSessionAsync.cpp:76] [localhost-test-device] destroy: setReadingFlag
I0204 20:29:02.017402 374 SshSessionAsync.cpp:84] [localhost-test-device] destroy: finished
I0204 20:29:02.018275 370 SshSessionAsync.cpp:117] [localhost-test-device] ~SshSessionAsync finished
I0204 20:29:02.020450 367 ReconnectingCli.cpp:177] [localhost-test-device] triggerReconnect started quiet period, got error : devmand::channels::cli::CliException: Error with SSH: Connection refused
I0204 20:29:06.936399 369 KeepaliveCli.cpp:142] [localhost-test-device] ([7763] ) Woke up after backing off
I0204 20:29:06.938866 369 KeepaliveCli.cpp:98] [localhost-test-device] ([7770] ) triggerSendKeepAliveCommand created new command
I0204 20:29:06.940510 369 KeepaliveCli.cpp:105] [localhost-test-device] ([7770] ) triggerSendKeepAliveCommand executing keepalive command
I0204 20:29:06.943260 369 KeepaliveCli.cpp:131] [localhost-test-device] ([7770] ) Got error running keepalive, backing off devmand::channels::cli::DisconnectedException: Not connected
I0204 20:29:07.026607 368 ReconnectingCli.cpp:195] [localhost-test-device] triggerReconnect reconnecting after quiet period
I0204 20:29:07.066747 367 ReconnectingCli.cpp:125] [localhost-test-device] Recreating cli stack
I0204 20:29:07.068197 375 IoConfigurationBuilder.cpp:160] Creating CLI ssh device for localhost-test-device (localhost:9999)
I0204 20:29:07.102249 375 IoConfigurationBuilder.cpp:168] [localhost-test-device] Opening shell
I0204 20:29:07.103591 370 SshSession.cpp:58] [localhost-test-device] Connecting to host: localhost port: 9999
I0204 20:29:07.105907 370 SshSession.cpp:110] [localhost-test-device] Error in SSH connection to host: localhost port: 9999 with error: Connection refused
I0204 20:29:07.107198 370 SshSessionAsync.cpp:114] [localhost-test-device] ~SshSessionAsync started
I0204 20:29:07.107872 370 SshSessionAsync.cpp:52] [localhost-test-device] destroy: started
I0204 20:29:07.108258 370 SshSessionAsync.cpp:66] [localhost-test-device] destroy: starting async cleanup
I0204 20:29:07.109540 374 SshSessionAsync.cpp:71] [localhost-test-device] destroy: closing session
I0204 20:29:07.110450 374 SshSessionAsync.cpp:76] [localhost-test-device] destroy: setReadingFlag
I0204 20:29:07.111241 374 SshSessionAsync.cpp:84] [localhost-test-device] destroy: finished
I0204 20:29:07.112018 370 SshSessionAsync.cpp:117] [localhost-test-device] ~SshSessionAsync finished
I0204 20:29:07.114003 367 ReconnectingCli.cpp:177] [localhost-test-device] triggerReconnect started quiet period, got error : devmand::channels::cli::CliException: Error with SSH: Connection refused
/cache/devmand/repo/src/devmand/test/cli/CliTest.cpp:81: Failure
Value of: connectionTest()
Actual: false
Expected: true
I0204 20:29:11.889415 1 KeepaliveCli.cpp:85] [localhost-test-device] ~KeepaliveCli: started
I0204 20:29:11.889889 1 KeepaliveCli.cpp:70] [localhost-test-device] destroy: started
I0204 20:29:11.890532 1 ReconnectingCli.cpp:77] [localhost-test-device] destroy: started
I0204 20:29:11.892141 376 ReconnectingCli.cpp:64] [localhost-test-device] setReconnecting: sleeping
I0204 20:29:11.894099 1 KeepaliveCli.cpp:79] [localhost-test-device] destroy: done
I0204 20:29:11.893026 367 ReconnectingCli.cpp:195] [localhost-test-device] triggerReconnect reconnecting after quiet period
I0204 20:29:11.896806 367 ReconnectingCli.cpp:117] [localhost-test-device] triggerReconnect shutting down
I0204 20:29:12.898874 367 ReconnectingCli.cpp:95] [localhost-test-device] destroy: finished
I0204 20:29:12.900768 1 KeepaliveCli.cpp:88] [localhost-test-device] ~KeepaliveCli: started
I0204 20:29:12.902587 1 ReconnectingCli.cpp:102] [localhost-test-device] ~ReconnectingCli: started
I0204 20:29:12.903666 1 ReconnectingCli.cpp:111] [localhost-test-device] ~ReconnectingCli: done
I0204 20:29:12.904917 1 IoConfigurationBuilder.cpp:65] ~IoConfigurationBuilder
unknown file: Failure
C++ exception with description "Not connected" thrown in the test body.
I0204 20:29:12.912477 1 Ssh.h:53] Closing server: 0.0.0.0:9999
I0204 20:29:12.914391 366 Ssh.cpp:100] Cannot accept connection on server: 0.0.0.0:9999
I0204 20:29:12.916604 1 Engine.cpp:92] Cli engine closed
[ FAILED ] CliTest.writeMultipleTimesAllExecute (11925 ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment