#6294 TypeError in installer
Closed: Fixed None Opened 5 years ago 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: 5776f1e


master:

  • 00d4309 Fix ScriptError to always return string from str

ipa-4-4:

  • 2617555 Fix ScriptError to always return string from str

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

master:

  • 415600f ldapupdate: Use proper inheritance in BadSyntax exception

ipa-4-4:

  • f3ad906 ldapupdate: Use proper inheritance in BadSyntax exception

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

5 years ago

Login to comment on this ticket.

Metadata