This is a follow up for Bug 924078.
This seems benign, but it is still an unexpected failure which does not crash ipa-replica-install only because of "except Exception" clause:
ipa-replica-install:
... with temporary_ldap2_connection( config.master_host_name, config.dirman_password): try: bind = bindinstance.BindInstance(dm_password=config.dirman_password) reverse_zone = bindinstance.find_reverse_zone(config.ip) bind.add_master_dns_records(config.host_name, config.ip_address, config.realm_name, config.domain_name, reverse_zone, options.conf_ntp, options.setup_ca) except errors.NotFound, e: root_logger.debug('Replica DNS records could not be added ' 'on master: %s', str(e)) # we should not fail here no matter what except Exception, e: root_logger.info('Replica DNS records could not be added ' 'on master: %s', str(e))
This is the traceback I retrieved:
Traceback (most recent call last): File "/sbin/ipa-replica-install", line 333, in install_dns_records options.setup_ca) File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 832, in add_master_dns_records self.__add_self() File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 679, in __add_self self.__add_master_records(self.fqdn, [self.ip_address]) File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 666, in __add_master_records add_zone(zone, self.zonemgr, dns_backup=self.dns_backup, AttributeError: 'BindInstance' object has no attribute 'zonemgr'
To reproduce: 1. Install IPA server DNS and with a custom domain and realm so that master does not belong to this domain (e.g. ipa.example.com with domain ipa.test) 2. Delete IPA server domain (the example.com one) 3. Prepare a replica file 4. Install a replica
You will then see this error in the log:
2014-02-21T08:16:38Z INFO Replica DNS records could not be added on master: 'BindInstance' object has no attribute 'zonemgr'
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1069722
Starting review
master:
ipa-3-3:
Metadata Update from @mkosek: - Issue assigned to abbra - Issue set to the milestone: FreeIPA 3.3.5 (bug fixing)
Login to comment on this ticket.