Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4809

When master's IP address does not resolve to its name, ipa-replica-install fails

Details

    • Bug
    • Resolution: Unresolved
    • Normal
    • None
    • rhel-7.3, rhel-8.0.0
    • ipa
    • sst_idm_ipa
    • ssg_idm
    • False
    • Hide

      None

      Show
      None
    • If docs needed, set a value

    Description

      Description of problem:

      When IP address of master does not resolve to its hostname, ipa-replica-install fails.

      Version-Release number of selected component (if applicable):

      python2-ipaserver-4.4.0-4.el7.noarch

      How reproducible:

      Deterministic.

      Steps to Reproduce:
      1. Have setup where IP address of master as seen by replica does not match master's hostname.
      2. Run ipa-replica-install --server ipa.example.test --domain example.test

      Actual results:

      /etc/ssh/ssh_config not found, skipping configuration
      /etc/ssh/sshd_config not found, skipping configuration
      Configuring example.test as NIS domain.
      Client configuration complete.

      Unenrolling client from IPA server
      Removing Kerberos service principals from /etc/krb5.keytab
      Disabling client Kerberos and LDAP configurations
      Redundant SSSD configuration file /etc/sssd/sssd.conf was moved to /etc/sssd/sssd.conf.deleted
      Restoring client configuration files
      Unconfiguring the NIS domain.
      nscd daemon is not installed, skip configuration
      nslcd daemon is not installed, skip configuration
      Systemwide CA database updated.
      Client uninstall complete.
      ipa.ipapython.install.cli.install_tool(Replica): ERROR The host name ipa.example.test does not match the primary host name freeipa-server-container.freeipa-network. Please check /etc/hosts or DNS name resolution
      ipa.ipapython.install.cli.install_tool(Replica): ERROR The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information

      Removing client side components

      Your system may be partly configured.
      Run /usr/sbin/ipa-server-install --uninstall to clean up.

      The log ends with

      2016-08-04T13:29:08Z DEBUG Check if replica.example.test is a primary hostname for localhost
      2016-08-04T13:29:08Z DEBUG Primary hostname for localhost: replica.example.test
      2016-08-04T13:29:08Z DEBUG Search DNS for replica.example.test
      2016-08-04T13:29:08Z DEBUG Check if replica.example.test is not a CNAME
      2016-08-04T13:29:09Z DEBUG Check reverse address of 172.18.0.3
      2016-08-04T13:29:09Z DEBUG Found reverse name: replica.example.test
      2016-08-04T13:29:09Z DEBUG Check if ipa.example.test is a primary hostname for localhost
      2016-08-04T13:29:09Z DEBUG Primary hostname for localhost: freeipa-server-container.freeipa-network
      2016-08-04T13:29:09Z DEBUG Starting external process
      2016-08-04T13:29:09Z DEBUG args=/usr/sbin/ipa-client-install --unattended --uninstall
      2016-08-04T13:29:19Z DEBUG Process finished, return code=0
      2016-08-04T13:29:19Z DEBUG File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 171, in execute
      return_value = self.run()
      File "/usr/lib/python2.7/site-packages/ipapython/install/cli.py", line 318, in run
      cfgr.run()
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 308, in run
      self.validate()
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 317, in validate
      for nothing in self._validator():
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 372, in __runner
      self._handle_exception(exc_info)
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 394, in _handle_exception
      six.reraise(*exc_info)
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 362, in __runner
      step()
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 359, in <lambda>
      step = lambda: next(self.__gen)
      File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from
      six.reraise(*exc_info)
      File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from
      value = gen.send(prev_value)
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 564, in _configure
      next(validator)
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 372, in __runner
      self._handle_exception(exc_info)
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 449, in _handle_exception
      self.__parent._handle_exception(exc_info)
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 394, in _handle_exception
      six.reraise(*exc_info)
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 446, in _handle_exception
      super(ComponentBase, self)._handle_exception(exc_info)
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 394, in _handle_exception
      six.reraise(*exc_info)
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 362, in __runner
      step()
      File "/usr/lib/python2.7/site-packages/ipapython/install/core.py", line 359, in <lambda>
      step = lambda: next(self.__gen)
      File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from
      six.reraise(*exc_info)
      File "/usr/lib/python2.7/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from
      value = gen.send(prev_value)
      File "/usr/lib/python2.7/site-packages/ipapython/install/common.py", line 63, in _install
      for nothing in self._installer(self.parent):
      File "/usr/lib/python2.7/site-packages/ipaserver/install/server/replicainstall.py", line 1712, in main
      promote_check(self)
      File "/usr/lib/python2.7/site-packages/ipaserver/install/server/replicainstall.py", line 364, in decorated
      func(installer)
      File "/usr/lib/python2.7/site-packages/ipaserver/install/server/replicainstall.py", line 386, in decorated
      func(installer)
      File "/usr/lib/python2.7/site-packages/ipaserver/install/server/replicainstall.py", line 1108, in promote_check
      installutils.verify_fqdn(config.master_host_name, options.no_host_dns)
      File "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py", line 166, in verify_fqdn
      "Please check /etc/hosts or DNS name resolution" % (host_name, ex_name[0]))

      2016-08-04T13:29:19Z DEBUG The ipa-replica-install command failed, exception: HostLookupError: The host name ipa.example.test does not match the primary host name freeipa-server-container.freeipa-network. Please check /etc/hosts or DNS name resolution
      2016-08-04T13:29:19Z ERROR The host name ipa.example.test does not match the primary host name freeipa-server-container.freeipa-network. Please check /etc/hosts or DNS name resolution
      2016-08-04T13:29:19Z ERROR The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information

      Expected results:

      No error.

      Additional info:

      Attachments

        Activity

          People

            frenaud@redhat.com Florence Renaud
            rhn-engineering-jpazdziora Jan Pazdziora
            Florence Renaud Florence Renaud
            Kaleemullah Siddiqui Kaleemullah Siddiqui
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: