if ((knet_h[i]->host_index[j]->status.reachable != 1) || (knet_h[i]->onwire_ver == knet_h[1]->onwire_max_ver)) {
knet_handle_stop_nodes(knet_h, TESTNODES);
flush_logs(logfds[0], stdout);
close_logpipes(logfds);
exit(FAIL);
}
}
}
flush_logs(logfds[0], stdout);
sleep(seconds);
flush_logs(logfds[0], stdout);
printf("Test onwire upgrade from %u to %u (all but one node - phase 2, node should be kicked out and remaining nodes should upgrade)\n", knet_h[1]->onwire_max_ver, knet_h[1]->onwire_max_ver + 1);
for (i = 1; i < TESTNODES; i++) {
if (upgrade_onwire_max_ver(knet_h[i], knet_h[i]->onwire_max_ver, knet_h[i]->onwire_max_ver + 1, seconds) < 0) {