Snarl-admin should ping node

Description

When running snarl-admin immediatly after starting service (after service reports online but before all erlang processes have started), can command fails in a non graceful manner. A ping to the node first would be cleaner.

[root@54dd65eb-ac5b-4b2b-a117-96b2ceda012b ~]# svcs epmd snarl sniffle howl watchdog
STATE STIME FMRI
online 7:33:16 svc:/pkgsrc/epmd:default
online 7:33:19 svc:/network/howl:default
online 7:33:19 svc:/network/sniffle:default
online 7:33:19 svc:/network/snarl:default
online 7:33:20 svc:/network/watchdog:default
[root@54dd65eb-ac5b-4b2b-a117-96b2ceda012b ~]# snarl-admin init default MyOrg Users admin admin
RPC to 'snarl@172.16.2.50' failed: {'EXIT',
{noproc,
{gen_server,call,
[snarl_entity_read_fsm_sup,
{start_child,
[{1441524825223543725,
'snarl@172.16.2.50'},
{snarl_2i_vnode,snarl_2i},
get,<6991.270.0>,
{<<"default">>,
<<131,104,2,104,2,100,0,10,115,110,
97,114,108,95,117,115,101,114,100,
0,4,110,97,109,101,109,0,0,0,5,97,
100,109,105,110>>},
undefined,false]},
infinity]}}}

Environment

None

Status

Assignee

Heinz N. Gies

Reporter

Kevin Meziere

Labels

None

Components

Fix versions

Priority

High
Configure