ClusterLabs / anvil

The Anvil! Intelligent Availability™ Platform, mark 3
5 stars 6 forks source link

Network->find_target_ip() breaks if the target is available only via a route #553

Open digimer opened 7 months ago

digimer commented 7 months ago

For example, if the local machine has 10.201.4.2/16 and it can ping 10.202.4.3/16, it won't match because the subnets don't match. A possible fix is to have a "ping_all" parameter that test pings the target, even when the subnets don't match.

digimer commented 2 months ago

For anvil-manage-dr (the main place this problem arises), perhaps use --use-network bcn1 to force a network? Alternatively, parse out the routes in nmcli.