#9137 test_replica_install_after_restore is performing reinit in the wrong direction
Closed: fixed by frenaud. Opened by frenaud.

The test test_integration/test_backup_and_restore.py::TestReplicaInstallAfterRestore::test_replica_install_after_restore is performing a topologysegment-reinitialize command in the wrong direction.

Test scenario:
- install server
- install replica
- backup server
- simulate crash (disable replication agreement, uninstall master)
- restore server from backup. The server is the source of truth.
- reinitialize replica

The test is currently doing ipa topologysegment-reinitialize server-to-replica domain --left but this means that the source is the replica, while the goal is to do the opposite.

The 2nd potential issue is that the topologysegment is hardcoded but it could be server-to-replica or replica-to-server as well


Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/6230

master:

  • 4514e8090ab288a3bddde56c04d8014735fe95d1 ipatests: fix the topologysegment-reinitialize command
  • 10046ffb33a0d8015fe8fcf06dd34666a2f0053c ipatests: extend find_segment with suffix param

ipa-4-9:

  • c3bd6908fa29b479fbd5e8e785c7237c477e29a2 ipatests: fix the topologysegment-reinitialize command
  • de1f4467fb1bd9be857b8c95b2b7398962656342 ipatests: extend find_segment with suffix param

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata