#6294 TypeError in installer
Closed: Fixed Opened by mbasti.

Steps to reproduce:

  • ipa-server-install --ip-address 10.0.0.1 # non-resolvable address

    Traceback (most recent call last):
    File "/usr/lib64/python2.7/logging/init.py", line 861, in emit
    msg = self.format(record)
    File "/usr/lib64/python2.7/logging/init.py", line 734, in format
    return fmt.format(record)
    File "/usr/lib64/python2.7/logging/init.py", line 465, in format
    record.message = record.getMessage()
    File "/usr/lib64/python2.7/logging/init.py", line 329, in getMessage
    msg = msg % self.args
    TypeError: str returned non-string (type HostForwardLookupError)
    Logged from file admintool.py, line 291
    ipa.ipapython.install.cli.install_tool(Server): ERROR Unable to resolve host name, check /etc/hosts or DNS name resolution
    ipa.ipapython.install.cli.install_tool(Server): ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

Error is caused by this

    except BadHostError as e:
        raise ScriptError(e)

ScriptError implementation is wrong, should use inheritance and call super()

Bug caused by: 5776f1e90000ccfc24689c99951864248ed01045


master:

  • 00d43095da211f542189c95c88fc2e2c32e75565 Fix ScriptError to always return string from str

ipa-4-4:

  • 26175556b46bde9e83699abdd36c5644ec7512ba Fix ScriptError to always return string from str

The commit introduced a regression in LDAP updater code, reopening.

master:

  • 415600fe451fe806cce7dbe39ad1e9f3d676f2f9 ldapupdate: Use proper inheritance in BadSyntax exception

ipa-4-4:

  • f3ad90679773b2fd377ffac0a6eda1f674fc94a3 ldapupdate: Use proper inheritance in BadSyntax exception

Metadata Update from @mbasti:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.4.2

Metadata