Consensys / quorum-tools

Tools for running Quorum clusters and integration tests
Other
51 stars 33 forks source link

Geth has not been killed #5

Open bailantaotao opened 7 years ago

bailantaotao commented 7 years ago

Hi,

I have integrated quorum-tools into docker container. The container image is based on linux system.

When i run the command sudo whoami && stack test, get the following messages.

root@a245f480570c:~/work/src/github.com/jpmorganchase/quorum-tools# sudo whoami && stack test
root
quorum-tools-0.0.1: test (suite: raft)

cycle test
06:40:49.842578994000: waiting for initial nodes to assume raft roles
06:40:51.662187857000: starting test with a pause
06:40:53.696133840000: waiting before adding node 4
06:40:55.698998260000: adding node 4
06:40:55.727437355000: waiting before removing node 1
06:40:57.729767134000: removing node 1
06:40:59.789193341000: waiting before adding node 5
06:41:01.794225441000: adding node 5
06:41:01.823628799000: waiting before removing node 2
06:41:03.824775479000: removing node 2
06:41:05.885224356000: waiting before adding node 6
06:41:07.886479015000: adding node 6
06:41:07.913457644000: waiting before removing node 3
06:41:09.914485094000: removing node 3
Right ()

leader partition test
test #0
raft: unable to extract enode ID
CallStack (from HasCallStack):
  error, called at src/QuorumTools/Cluster.hs:262:31 in quorum-tools-0.0.1-HjMHLOYZT7a4zVVpjibxss:QuorumTools.Cluster

Test suite failure for package quorum-tools-0.0.1
    raft:  exited with: ExitFailure 1
Logs printed to console

Run again sudo whoami && stack test

root@a245f480570c:~/work/src/github.com/jpmorganchase/quorum-tools# sudo whoami && stack test
root
quorum-tools-0.0.1: test (suite: raft)

cycle test
raft: unable to extract enode ID
CallStack (from HasCallStack):
  error, called at src/QuorumTools/Cluster.hs:262:31 in quorum-tools-0.0.1-HjMHLOYZT7a4zVVpjibxss:QuorumTools.Cluster

Test suite failure for package quorum-tools-0.0.1
    raft:  exited with: ExitFailure 1
Logs printed to console

Then using top to see the processes

root@a245f480570c:~/work/src/github.com/jpmorganchase/quorum-tools# top

top - 06:38:56 up 40 min,  0 users,  load average: 0.65, 0.56, 0.96
Tasks:  11 total,   1 running,  10 sleeping,   0 stopped,   0 zombie
%Cpu(s): 35.2 us,  5.2 sy,  0.1 ni, 55.4 id,  4.0 wa,  0.0 hi,  0.2 si,  0.0 st
KiB Mem:   7134584 total,  3550296 used,  3584288 free,   137496 buffers
KiB Swap:        0 total,        0 used,        0 free.  2299228 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                  
    1 root      20   0  1.000t 113872  91952 S   0.0  1.6   0:00.14 ghc                                                                                      
   11 root      20   0   22048   3716   3140 S   0.0  0.1   0:00.09 bash                                                                                     
  422 root      20   0  711664 331684  16460 S   0.0  4.6   0:01.58 geth                                                                                     
  424 root      20   0  655512  74816  15912 S   0.0  1.0   0:01.63 geth                                                                                     
  433 root      20   0  752624  62784  15952 S   0.0  0.9   0:01.62 geth                                                                                     
  434 root      20   0  786452  65352  16400 S   0.0  0.9   0:02.97 geth                                                                                     
  436 root      20   0  678900  97728  16124 S   0.0  1.4   0:02.62 geth                                                                                     
  446 root      20   0  613360  62352  16536 S   0.0  0.9   0:02.58 geth                                                                                     
  733 root      20   0   46452   2984   2604 S   0.0  0.0   0:00.00 su                                                                                       
  734 root      20   0   21952   3568   3076 S   0.0  0.1   0:00.00 bash                                                                                     
  955 root      20   0   23636   2608   2268 R   0.0  0.0   0:00.00 top  

I ensured that iptables, lsof have been installed.

Have you ever had the same situation?