[Freeipa-devel] [PATCH] 185-188 Let replicas install without DNS

Martin Kosek mkosek at redhat.com
Fri Jan 6 07:59:11 UTC 2012


On Thu, 2012-01-05 at 16:36 -0500, Rob Crittenden wrote:
> Martin Kosek wrote:
> > Patches 185-186 are needed to make ipa-replica-install run without
> > crashes.
> >
> > How to test:
> >
> > on server:
> > 1) install the server (ipa.example.com is not resolvable)
> > # ipa-server-install -p kokos123 -a kokos123 --no-host-dns
> > --hostname=ipa.example.com
> >
> > 2) Add a record for replica.example.com to /etc/hosts
> > 3) Prepare the replica (without 188 it refuses to create the replica
> > file)
> > # ipa-replica-prepare replica.example.com
> >
> > on replica:
> > 1) Add a record for ipa.example.com to /etc/hosts
> > 2) Install replica (replica.example.com is not resolvable)
> > # ipa-replica-install --no-host-dns --ip-address=IP_ADDRESS REPLICA_FILE
> >
> > The installer now use IP_ADDRESS to create a record /etc/hosts and make
> > the replica resolvable
> >
> > ----
> > Let ipa-replica-prepare and ipa-replica-install work without
> > proper DNS records as records in /etc/hosts are sufficient for
> > DS replication.
> >
> >    1) ipa-replica-prepare now just checks if the replica hostname
> >       is resolvable (DNS records are not required). It is now able
> >       to prepare a replica file even when the replica IP address is
> >       present in /etc/hosts only.
> >    2) ipa-replica-install is now able to proceed when the hostname
> >       is not resolvable. It uses an IP address passed in a new
> >       option --ip-address to create a record in /etc/hosts in the
> >       same way as ipa-server-install does.
> >
> > https://fedorahosted.org/freeipa/ticket/2139
> 
> NACK on patch 185. The exceptions need to be changed to catch 
> DuplicateEntry instead of ALREADY_EXISTS
> 
> Otherwise looks ok.
> 
> rob

Good catch, Rob! Attaching an updated set of patches.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mkosek-185-2-fix-ldap-add-calls-in-replication-module.patch
Type: text/x-patch
Size: 3472 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120106/6f80dce9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mkosek-186-prevent-service-restart-failures-in-ipa-replica-inst.patch
Type: text/x-patch
Size: 2765 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120106/6f80dce9/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mkosek-187-fix-ldap-updates-in-ipa-replica-install.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120106/6f80dce9/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mkosek-188-let-replicas-install-without-dns.patch
Type: text/x-patch
Size: 11983 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120106/6f80dce9/attachment-0003.bin>


More information about the Freeipa-devel mailing list