leap test --continue doesn't test all nodes
I'm expecting leap_cli to test all nodes, but it doesn't when I use the --continue
parameter:
--- git/bitmask ‹master› » leap list
SERVICES NODES
backup demodex, newt
couchdb clam
mx snail
openvpn snail
soledad clam
tor dotterel
webapp elephant
TAGS NODES
amsterdam clam, elephant, newt, snail
development clam, demodex, dotterel, elephant, newt, snail
hongkong dotterel
seattle demodex
NODES SERVICES TAGS
clam couchdb, soledad amsterdam, development
demodex backup development, seattle
dotterel tor development, hongkong
elephant webapp amsterdam, development
newt backup amsterdam, development
snail mx, openvpn amsterdam, development
--- git/bitmask ‹master› » leap test --continue
= [newt] PASS: Network > Can connect to internet?
= [newt] PASS: Network > Is stunnel running?
= [newt] PASS: Network > Is shorewall running?
= [newt] PASS: Network > Are server certificates valid?
= [newt] 4 tests: 4 passes, 0 skips, 0 warnings, 0 failures, 0 errors
= [elephant] PASS: Network > Can connect to internet?
= [elephant] PASS: Network > Is stunnel running?
= [elephant] PASS: Network > Is shorewall running?
= [elephant] PASS: Network > Are server certificates valid?
= [elephant] FAIL: Webapp > Can contact couchdb? [webapp.rb:13]:
= [elephant] Expected a response from GET http://webapp:REDACTED@localhost:4000, but got "Connection reset by peer" instead.
= [elephant] (via stunnel to clam.dev.bitmask.i:15984, aka 37.218.242.213)
= [elephant] PASS: Webapp > Are daemons running?
= [elephant] FAIL: Webapp > Can access webapp? [webapp.rb:30]:
= [elephant] Expected success code from GET https://dev.bitmask.net/, but got 500 instead.
= [elephant] <!DOCTYPE html>
= [elephant] <html>
= [elephant] <head>
= [elephant] <meta content='width=device-width, initial-scale=1.0' name='viewport'>
= [elephant] <title>dev.bitmask.net</title>
= [elephant] <meta content='Leap Web' name='description'>
= [elephant] <link rel="stylesheet" media="all" href="/assets/application-4c73147915035f0869ebf2a4462c88ad7e6e60018ddc5ad0001d89e4a9b30a77.css" />
= [elephant] <script src="/assets/application-b90847bc98a791b43c2a8061fd0cb7ae2c868d15bdf2fdb790b2eea9b6b45424.js"></script>
= [elephant] <meta name="csrf-param" content="authenticity_token" />
= [elephant] <meta name="csrf-token" content="JWfj1OPkpcHhd/rdW4M3Re3FpMTtu7FE6GDY9z9IdNqN2sDBwmY8cXF33bRA1KCIMuYFWWX0l8Cifj8xojyXaA==" />
= [elephant] </meta>
= [elephant] </meta>
= [elephant] </head>
= [elephant] <body>
= [elephant] <div id='wrap'>
= [elephant] <div id='masthead'>
= [elephant] <div class='title'>
= [elephant] <span class='sitename'>
= [elephant] <a href='/'>dev.bitmask.net</a>
= [elephant] </span>
= [elephant] </div>
= [elephant] </div>
= [elephant] <div id='main'>
= [elephant] <div class='container-fluid'>
= [elephant] <div class='row'>
= [elephant] <div class='col-md-12'>
= [elephant] <div id='messages'>
= [elephant] </div>
= [elephant] <div class='hero-unit'>
= [elephant] <h1>¡Ouch!</h1>
= [elephant] <h2>Nos topamos con un error de servidor.</h2>
= [elephant] <p class='lead'>El problema ha sido registrado y lo examinaremos.</p>
= [elephant] <a class='btn btn-primary btn-large' href='/'>
= [elephant] <span class="glyphicon glyphicon-home "></span>
= [elephant] Página principal
= [elephant] </a>
= [elephant] </div>
= [elephant] </div>
= [elephant] </div>
= [elephant] </div>
= [elephant] </div>
= [elephant] <div id='push'>
= [elephant] </div>
= [elephant] </div>
= [elephant] <div id='footer'>
= [elephant] <div class='locales row'></div>
= [elephant] <div class='links row'>
= [elephant] <div class='wrap-text'>
= [elephant] <a href="/"><span class="glyphicon glyphicon-home "></span>Página principal</a>
= [elephant] <a href="/privacy-policy"><span class="glyphicon glyphicon-eye-close "></span>Política de privacidad</a>
= [elephant] <a href="/terms-of-service"><span class="glyphicon glyphicon-file "></span>Condiciones del servicio</a>
= [elephant] </div>
= [elephant] </div>
= [elephant] </div>
= [elephant] </body>
= [elephant] </html>
= [elephant] FAIL: Webapp > Can create and authenticate and delete user via API? [webapp.rb:36]:
= [elephant] Expected success code from POST https://api.dev.bitmask.net:4430/1/users.json, but got 500 instead.
= [elephant] {
= [elephant] "error": "server failed",
= [elephant] "message": "Server Error"
= [elephant] }
= [elephant] FAIL: Webapp > Can sync Soledad? [webapp.rb:49]:
= [elephant] Expected success code from POST https://api.dev.bitmask.net:4430/1/users.json, but got 500 instead.
= [elephant] {
= [elephant] "error": "server failed",
= [elephant] "message": "Server Error"
= [elephant] }
= [elephant] 9 tests: 5 passes, 0 skips, 0 warnings, 4 failures, 0 errors
= error SSHKit::Runner::ExecuteError: Exception while executing as root@elephant.dev.bitmask.net: exit status: 2
stdout: PASS: Network > Can connect to internet?
PASS: Network > Is stunnel running?
PASS: Network > Is shorewall running?
PASS: Network > Are server certificates valid?
FAIL: Webapp > Can contact couchdb? [webapp.rb:13]:
Expected a response from GET http://webapp:REDACTED@localhost:4000, but got "Connection reset by peer" instead.
(via stunnel to clam.dev.bitmask.i:15984, aka 37.218.242.213)
PASS: Webapp > Are daemons running?
FAIL: Webapp > Can access webapp? [webapp.rb:30]:
Expected success code from GET https://dev.bitmask.net/, but got 500 instead.
<!DOCTYPE html>
<html>
<head>
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
<title>dev.bitmask.net</title>
<meta content='Leap Web' name='description'>
<link rel="stylesheet" media="all" href="/assets/application-4c73147915035f0869ebf2a4462c88ad7e6e60018ddc5ad0001d89e4a9b30a77.css" />
<script src="/assets/application-b90847bc98a791b43c2a8061fd0cb7ae2c868d15bdf2fdb790b2eea9b6b45424.js"></script>
<meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="JWfj1OPkpcHhd/rdW4M3Re3FpMTtu7FE6GDY9z9IdNqN2sDBwmY8cXF33bRA1KCIMuYFWWX0l8Cifj8xojyXaA==" />
</meta>
</meta>
</head>
<body>
<div id='wrap'>
<div id='masthead'>
<div class='title'>
<span class='sitename'>
<a href='/'>dev.bitmask.net</a>
</span>
</div>
</div>
<div id='main'>
<div class='container-fluid'>
<div class='row'>
<div class='col-md-12'>
<div id='messages'>
</div>
<div class='hero-unit'>
<h1>¡Ouch!</h1>
<h2>Nos topamos con un error de servidor.</h2>
<p class='lead'>El problema ha sido registrado y lo examinaremos.</p>
<a class='btn btn-primary btn-large' href='/'>
<span class="glyphicon glyphicon-home "></span>
Página principal
</a>
</div>
</div>
</div>
</div>
</div>
<div id='push'>
</div>
</div>
<div id='footer'>
<div class='locales row'></div>
<div class='links row'>
<div class='wrap-text'>
<a href="/"><span class="glyphicon glyphicon-home "></span>Página principal</a>
<a href="/privacy-policy"><span class="glyphicon glyphicon-eye-close "></span>Política de privacidad</a>
<a href="/terms-of-service"><span class="glyphicon glyphicon-file "></span>Condiciones del servicio</a>
</div>
</div>
</div>
</body>
</html>
FAIL: Webapp > Can create and authenticate and delete user via API? [webapp.rb:36]:
Expected success code from POST https://api.dev.bitmask.net:4430/1/users.json, but got 500 instead.
{
"error": "server failed",
"message": "Server Error"
}
FAIL: Webapp > Can sync Soledad? [webapp.rb:49]:
Expected success code from POST https://api.dev.bitmask.net:4430/1/users.json, but got 500 instead.
{
"error": "server failed",
"message": "Server Error"
}
9 tests: 5 passes, 0 skips, 0 warnings, 4 failures, 0 errors
stderr: Nothing written
--- git/bitmask ‹master› » leap --versions
leap 1.9, ruby 2.3.3
= leap command v1.9 (/home/varac/.rbenv/versions/2.3.3/gemsets/leap/gems/leap_cli-1.9)
= leap platform v0.10 (master 69b70494c96c7db97cf5b535e4a049606aeafa2b)
I left dev.bm in this state for investigation.
@elijah do you have an idea what's wrong ? In general, we should first check the couchdb node(s) and after it the webapp node(s).