ctdb-tests: Fix logic error in simple ctdb reloadips test
authorMartin Schwenke <martin@meltin.net>
Tue, 7 May 2019 05:42:49 +0000 (15:42 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 14 May 2019 07:25:37 +0000 (07:25 +0000)
commitdc89db8ca6aadd4a9f7e8a85843c53709d04587c
treec9ee34e82d0422ac9a1a2e4dd2de92cb3f672cc8
parent8be4ee1a28d5c037955832b6f827d40f28f02796
ctdb-tests: Fix logic error in simple ctdb reloadips test

There is a chance that restoring IP addresses to the test node will
result in different IP addresses being assigned to that node.
Removing a single IP address may then fail (or be a no-op) if it is
done after the restore.

So, swap the single IP address removal to happen first, then restore,
then remove all IP addresses.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13924

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/18_ctdb_reloadips.sh