#9970 Nightly test failure (f45+) in test_integration/test_smb.py::TestSMB::test_smb_access_for_ipa_user_at_ipa_client
Closed: fixed by frenaud. Opened by frenaud.

Issue

The test test_integration/test_smb.py::TestSMB::test_smb_access_for_ipa_user_at_ipa_client is failing in rawhide:

self = <ipatests.test_integration.test_smb.TestSMB object at 0x7fdd18559fd0>
    def test_smb_access_for_ipa_user_at_ipa_client(self):
        samba_share = {
            'name': 'homes',
            'server_path': '/home/{}'.format(self.ipa_user1),
            'unc': '//{}/homes'.format(self.smbserver.hostname)
        }
>       self.check_smb_access_at_ipa_client(
            self.ipa_user1, self.ipa_user1_password, samba_share)
samba_share = {'name': 'homes', 'server_path': '/home/user1', 'unc': '//client1.ufreeipa.test/homes'}
self       = <ipatests.test_integration.test_smb.TestSMB object at 0x7fdd18559fd0>
test_integration/test_smb.py:318: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_integration/test_smb.py:308: in check_smb_access_at_ipa_client
    self.smb_sanity_check(user, mount_point, samba_share)
        mount_point = '/mnt/smb'
        password   = 'SecretUser1'
        samba_share = {'name': 'homes', 'server_path': '/home/user1', 'unc': '//client1.ufreeipa.test/homes'}
        self       = <ipatests.test_integration.test_smb.TestSMB object at 0x7fdd18559fd0>
        user       = 'user1'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <ipatests.test_integration.test_smb.TestSMB object at 0x7fdd18559fd0>
user = 'user1', client_mountpoint = '/mnt/smb'
share = {'name': 'homes', 'server_path': '/home/user1', 'unc': '//client1.ufreeipa.test/homes'}
    def smb_sanity_check(self, user, client_mountpoint, share):
        test_dir = 'testdir_{}'.format(user)
        test_file = 'testfile_{}'.format(user)
        test_file_path = '{}/{}'.format(test_dir, test_file)
        test_string = 'Hello, world!'
        run_smb_client = partial(tasks.run_command_as_user, self.smbclient,
                                 user, cwd=client_mountpoint)
        run_smb_server = partial(self.smbserver.run_command,
                                 cwd=share['server_path'])
        try:
            # check creation of directory from client side
            run_smb_client(['mkdir', test_dir])
            # check dir properties at client side
            res = run_smb_client(['stat', '-c', '%n %U %G', test_dir])
>           assert res.stdout_text == '{0} {1} {1}\n'.format(test_dir, user)
E           AssertionError: assert 'Last login: ...user1 user1\n' == 'testdir_user1 user1 user1\n'
E             
E             + Last login: Sat Apr  4 20:08:49 UTC 2026
E               testdir_user1 user1 user1
client_mountpoint = '/mnt/smb'
res        = <pytest_multihost.transport.SSHCommand object at 0x7fdd188f7e70>
run_smb_client = functools.partial(<function run_command_as_user at 0x7fdd1870da60>, <ipatests.pytest_ipa.integration.host.Host client2.ufreeipa.test (client)>, 'user1', cwd='/mnt/smb')
run_smb_server = functools.partial(<bound method Host.run_command of <ipatests.pytest_ipa.integration.host.Host client1.ufreeipa.test (client)>>, cwd='/home/user1')
self       = <ipatests.test_integration.test_smb.TestSMB object at 0x7fdd18559fd0>
share      = {'name': 'homes', 'server_path': '/home/user1', 'unc': '//client1.ufreeipa.test/homes'}
test_dir   = 'testdir_user1'
test_file  = 'testfile_user1'
test_file_path = 'testdir_user1/testfile_user1'
test_string = 'Hello, world!'
user       = 'user1'
test_integration/test_smb.py:138: AssertionError

Steps to Reproduce

  1. install ipa server, enable mkhomedir with authselect enable-feature with-mkhomedir; systemctl enable --now oddjobd.service
  2. create a user idmuser
  3. su -l idmuser -c "kinit idmuser"
  4. su -l idmuser -c "kdestroy -A"
  5. su -l idmuser -c "kinit idmuser"

Actual behavior

An additional message is displayed in the output: Last login: ...

# su -l idmuser -c "kinit idmuser"
Last login: Tue Apr  7 05:06:02 EDT 2026 on pts/0
Password for idmuser@IPA.TEST:

Expected behavior

The test does not expect this line. It started being displayed with util-linux-2.42-7.fc45.x86_64

Version/Release/Distribution

Happens with util-linux-2.42-7.fc45.x86_64, does not happen with util-linux-2.41.3-12.fc44.x86_64

The test needs to be adapted and expect stdout to contain additional text.

Link to last green run: https://$SERVER/idm-ci/freeipa_upstream_nightly/Nightly-rawhide/master/2026-03-28_19-30/rawhide/test_smb/1/report.html?sort=result

Link to first red run: https://$SERVER/idm-ci/freeipa_upstream_nightly/Nightly-rawhide/master/2026-04-04_19-30/rawhide/test_smb/1/report.html?sort=result


master:

  • 3225c0601915608e54594046d01b5bc5a9a57f71 ipatests: adapt expected output for test_smb

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

ipa-4-13:

  • 49b4eb90bacaebeffb2b15cb6609af6b21ac5e3e ipatests: adapt expected output for test_smb

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

Metadata