#7931 test_integration/test_server_del.py fails due to inability to use command line option --ignore-topology-diconnect
Closed: fixed 4 years ago by sorlov. Opened 4 years ago by sorlov.

In ipa-4-6 branch test_integration/test_server_del.py fails in test_ignore_topology_disconnect_replica1 at step tasks.uninstall_master ( https://pagure.io/freeipa/blob/master/f/ipatests/test_integration/test_server_del.py#_183)

This happens because:
1. ipa-server-install --uninstall must be called with --ignore-topology-disconnect, similar to previous execution of "ipa server del"
2. tasks.uninstall_master adds this option only if domain level is 1
3. tasks.uninstall_master calls domainlevel() which executes "ipa domainlevel-get"
4. this command fails in our case as records for all services have been removed from ldap and ipa command fails to authorize at kerberos
5. domainlevel() returns default value in this case. In master and ipa-4-7 it is 1 after commit 13000e2 (https://pagure.io/freeipa/issue/7669). This patch has not been backported to ipa-4-6, so domainlevel() returns 0, --ignore-topology-disconnect option is not used, unintsallation stops and the test fails.


Metadata Update from @sorlov:
- Issue set to the milestone: FreeIPA 4.6.6

4 years ago

ipa-4-6:

  • ed91e8d ipatests: fix replica uninstallation in test_integration/test_server_del.py

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

4 years ago

Login to comment on this ticket.

Metadata