#8979 Nightly test failure (rawhide) in test_trust.py::TestTrust::test_establish_forest_trust_with_shared_secret
Closed: fixed by frenaud. Opened by frenaud.

Issue

The nightly test test_trust.py::TestTrust::test_establish_forest_trust_with_shared_secret is failing in rawhide, see for instance PR #1150 with logs and report:

self = <ipatests.test_integration.test_trust.TestTrust object at 0x7fd8a5fc16c0>
    @skip_in_fips_mode_due_to_issue_8715
    def test_establish_forest_trust_with_shared_secret(self):
        tasks.configure_dns_for_trust(self.master, self.ad)
        tasks.configure_windows_dns_for_trust(self.ad, self.master)
        # this is a workaround for
        # https://bugzilla.redhat.com/show_bug.cgi?id=1711958
        self.master.run_command(
            ['ipa', 'dnsrecord-add', self.master.domain.name,
             self.srv_gc_record_name,
             '--srv-rec', self.srv_gc_record_value])
        # create windows side of trust using powershell bindings
        # to .Net functions
        ps_cmd = (
            '[System.DirectoryServices.ActiveDirectory.Forest]'
            '::getCurrentForest()'
            '.CreateLocalSideOfTrustRelationship("{}", 1, "{}")'.format(
                self.master.domain.name, self.shared_secret))
>       self.ad.run_command(['powershell', '-c', ps_cmd])

The test test_establish_forest_trust_with_shared_secret is failing when calling CreateLocalSideOfTrustRelationshipwith the output:

"A forest trust relationship exists between "ad.test" and "ipa.test"."

The error happens because the previous test test_remove_external_rootdomain_trust failed removing the trust but the error got undetected:

RUN ['rpcclient', '-k', 'ad-root.ad.test', '-c', 'deletetrustdom ipa.test']
WARNING: The option -k|--kerberos is deprecated!
Usage: rpcclient [OPTION...] BINDING-STRING|HOST
Options:
  -c, --command=COMMANDS                       Execute semicolon separated cmds
  -I, --dest-ip=IP                             Specify destination IP address
  -p, --port=PORT                              Specify port number
Help options:
  -?, --help                                   Show this help message
      --usage                                  Display brief usage message
Common Samba options:
  -d, --debuglevel=DEBUGLEVEL                  Set debug level
      --debug-stdout                           Send debug output to standard
                                               output
  -s, --configfile=CONFIGFILE                  Use alternative configuration
                                               file
      --option=name=value                      Set smb.conf option from
                                               command line
  -l, --log-basename=LOGFILEBASE               Basename for log/debug files
      --leak-report                            enable talloc leak reporting on
                                               exit
      --leak-report-full                       enable full talloc leak
                                               reporting on exit
Connection options:
  -R, --name-resolve=NAME-RESOLVE-ORDER        Use these name resolution
                                               services only
  -O, --socket-options=SOCKETOPTIONS           socket options to use
  -m, --maxprotocol=MAXPROTOCOL                Set max protocol level
  -n, --netbiosname=NETBIOSNAME                Primary netbios name
      --netbios-scope=SCOPE                    Use this Netbios scope
  -W, --workgroup=WORKGROUP                    Set the workgroup name
      --realm=REALM                            Set the realm name
Credential options:
  -U, --user=[DOMAIN/]USERNAME[%PASSWORD]      Set the network username
  -N, --no-pass                                Don't ask for a password
      --password=STRING                        Password
      --pw-nt-hash                             The supplied password is the NT
                                               hash
  -A, --authentication-file=FILE               Get the credentials from a file
  -P, --machine-pass                           Use stored machine account
                                               password
      --simple-bind-dn=DN                      DN to use for a simple bind
      --use-kerberos=desired|required|off      Use Kerberos authentication
      --use-krb5-ccache=CCACHE                 Credentials cache location for
                                               Kerberos
      --use-winbind-ccache                     Use the winbind ccache for
                                               authentication
      --client-protection=sign|encrypt|off     Configure used protection for
                                               client connections
Deprecated legcacy options:
  -k, --kerberos=STRING                        DEPRECATED: Migrate to
                                               --use-kerberos
Version options:
  -V, --version                                Print version
Exit code: 1

The call to rpcclient needs to be adapted and use --use-kerberos=required or --use-kerberos=desired instead of -k.


Metadata Update from @frenaud:
- Issue assigned to frenaud

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

master:

  • b18cd122fac00a48f0bc9641a7d503b0f42f1e69 ipatests: rpcclient now uses --use-kerberos=desired

ipa-4-9:

  • 395b0d26d0b042d5384bc8e7272f0121db0989ed ipatests: rpcclient now uses --use-kerberos=desired

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

Metadata