mirror of
https://github.com/schoebel/mars
synced 2024-12-31 19:32:28 +00:00
marsadm: improve warning on activation problems
This commit is contained in:
parent
fdf1ce77a6
commit
8172f922e7
@ -2821,9 +2821,20 @@ sub _activate_resource {
|
|||||||
_push_check($peer, "", $resdir);
|
_push_check($peer, "", $resdir);
|
||||||
_push_check($peer, "", $active_path);
|
_push_check($peer, "", $active_path);
|
||||||
}
|
}
|
||||||
|
# check end-to-end
|
||||||
|
my $lnk = "$mars/resource-$res/actual-$peer/if-on";
|
||||||
|
my $val = get_link($lnk);
|
||||||
|
if ($val ne "") {
|
||||||
|
my $stamp = get_link_stamp($lnk, 2);
|
||||||
|
my $end_to_end = is_recent($stamp);
|
||||||
|
if ($end_to_end) {
|
||||||
lprint "Resource '$res' was already activated at '$peer'\n";
|
lprint "Resource '$res' was already activated at '$peer'\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
lwarn "Link '$lnk' has value '$val' as seen by '$real_host'\n";
|
||||||
|
}
|
||||||
|
lwarn "Resource '$res' at '$peer' appears as non-activated from the viewpoint of '$real_host'\n";
|
||||||
|
}
|
||||||
lprint "ENABLING resource '$res' at '$peer'\n";
|
lprint "ENABLING resource '$res' at '$peer'\n";
|
||||||
# Ensure guest communication: a faked device-$peer must exist
|
# Ensure guest communication: a faked device-$peer must exist
|
||||||
# for activation.
|
# for activation.
|
||||||
|
Loading…
Reference in New Issue
Block a user