#9218 Random failure in test-winsyncmigrate
Closed: fixed by frenaud. Opened by frenaud.

The test fedora-rawhide/test_winsyncmigrate randomly fails, see for instance PR #1929 with the following logs and report:

cls = <class 'ipatests.test_integration.test_winsyncmigrate.TestWinsyncMigrate'>
mh = <pytest_multihost.plugin.MultihostFixture object at 0x7f913b0ebed0>
    @classmethod
    def install(cls, mh):
        super(TestWinsyncMigrate, cls).install(mh)
        cls.ad = cls.ads[0]
        cls.trust_test_user = '%s@%s' % (cls.ad_user, cls.ad.domain.name)
        tasks.configure_dns_for_trust(cls.master, cls.ad)
        tasks.install_adtrust(cls.master)
        cls.create_test_objects()
>       establish_winsync_agreement(cls.master, cls.ad)
test_integration/test_winsyncmigrate.py:84: 

The issue is related to the change adding support for Boolean attributes.
The logs show that the creation of the winsync agreement fails trying to call lower() on a bool object:

DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557 Added CA certificate /tmp/tmp.R9KiIOJQoo to certificate database for master.ipa.test
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557 The user for the Windows PassSync service is uid=passsync,cn=sysaccounts,cn=etc,dc=ipa,dc=test
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557 Adding Windows PassSync system account
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557 Traceback (most recent call last):
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557   File "/usr/sbin/ipa-replica-manage", line 1616, in <module>
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557     main(options, args)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557   File "/usr/sbin/ipa-replica-manage", line 1573, in main
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557     add_link(realm, replica1, replica2, dirman_passwd, options)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557   File "/usr/sbin/ipa-replica-manage", line 1146, in add_link
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557     repl1.setup_winsync_replication(replica2,
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557   File "/usr/lib/python3.11/site-packages/ipaserver/install/replication.py", line 1356, in setup_winsync_replication
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557     self.wait_for_repl_update(self.conn, dn, 300)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557   File "/usr/lib/python3.11/site-packages/ipaserver/install/replication.py", line 1200, in wait_for_repl_update
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557     done, haserror, error_message = self.check_repl_update(conn, agmtdn)
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557   File "/usr/lib/python3.11/site-packages/ipaserver/install/replication.py", line 1155, in check_repl_update
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557     done = inprogress and inprogress.lower() == 'false' and start <= end
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557                           ^^^^^^^^^^^^^^^^
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557 AttributeError: 'bool' object has no attribute 'lower'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:557 Unexpected error: 'bool' object has no attribute 'lower'
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd95:transport.py:217 Exit code: 1

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

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=2116966

Issue linked to bug 2116966

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=2116966, https://bugzilla.redhat.com/show_bug.cgi?id=2117303 (was: https://bugzilla.redhat.com/show_bug.cgi?id=2116966)

master:

  • 8a415ff985b93dc1b9beccaa2e1b6793e2a6d854 check_repl_update: in progress is a boolean

ipa-4-9:

  • 05a298f56485222583cb7dd4f6a3a4c5c77fc8cf check_repl_update: in progress is a boolean

ipa-4-10:

  • 2003eb6b3d4a27a5de5eaa79418f115dd99886cd check_repl_update: in progress is a boolean

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

Metadata