<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.emailquote, li.emailquote, div.emailquote
        {mso-style-name:emailquote;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:1.0pt;
        border:none;
        padding:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Times New Roman",serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">> > Hi IPA Gurus,<br>
> ><br>
> ><br>
> > I had a 3 site multi master IPA replication setup (1 office and 2<br>
> > datacentres) with 2 IPA servers at each site. Each server was<br>
> > replicating successfully to 3 other servers (the other local site<br>
> > server and one server at each of the two remote sites). Everything is<br>
> > running on the default packages from CentOS 7.2 and each server is a<br>
> > full replica (ipa-replica-install<br>
> > /var/lib/ipa/replica-info-id-myserver.fqdn.com.gpg  --setup-ca<br>
> > --setup-dns --mkhomedir --forwarder 8.8.8.8)<br>
> ><br>
> ><br>
> > Everything was ticking over nicely until we had notice that the office<br>
> > site was moving on short notice.<br>
> ><br>
> ><br>
> > I successfully created IPA servers at the new site, setup replication<br>
> > again between the new office and the two datacentres that were to<br>
> > remain online, tested and everything worked as expected -<br>
> > unfortunately in the rush I did not have time to properly retire the<br>
> > IPA servers in the old office.<br>
> ><br>
> ><br>
> > The problem this has caused is that I only ever created users in one<br>
> > of the IPA servers in the original office - so only those servers have<br>
> > a DNA range and I am now unable to create new users on the active<br>
> servers.<br>
> > The original office servers are still in the IPA replication and<br>
> > powered on but offline so potential split brain?<br>
> ><br>
> ><br>
> > I now have two things I would like to know before proceeding:<br>
> ><br>
> >   * Is the best fix here to force remove the original IPA servers and<br>
> >     manually add a new dna range significantly different from the<br>
> >     original to avoid overlaps?<br>
> >   * Is there anything else I should check? I can't see any issues<br>
> >     however did not notice the DNA range until I tried to create a user.<br>
> ><br>
> > Any pointers greatly appreciated.<br>
> ><br>
> ><br>
> > Thanks,<br>
> ><br>
> > Neal.<br>
> <br>
> Hi Neal,<br>
> <br>
> If you already disconnected/decomissioned the old masters then I thnk the<br>
> best you can do is option a, i.e. re-set DNA ranges on replicas to new values<br>
> while avioding overlap with old ranges.<br>
> <br>
> We have an upstream document[1] describing the procedure. Hope it helps.<br>
> <br>
> Also make sure that you migrated CA renewal and CRL master responsibilities<br>
> to the new replicas, otherwise you may get problems with expiring<br>
> certificates which are really hard to solve. See the following guide for details.<br>
> [2]<br>
> <br>
> [1] <a href="http://www.freeipa.org/page/V3/Recover_DNA_Ranges" target="_BLANK">
<span style="font-size:10.0pt">http://www.freeipa.org/page/V3/Recover_DNA_Ranges</span></a><br>
> [2]<br>
> <a href="http://www.freeipa.org/page/Howto/Promote_CA_to_Renewal_and_CRL_" target="_BLANK">
<span style="font-size:10.0pt">http://www.freeipa.org/page/Howto/Promote_CA_to_Renewal_and_CRL_</span></a><br>
> Master<br>
> <br>
> --<br>
<span style="font-size:10.0pt">> Martin^3 Babinsky<br>
<br>
Hi Martin & Rob,<br>
<br>
Thank you very much for the pointers. I have added a new range to a IPA server I used the top half of the previous range, I only had 30 ish ID’s used so far)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"># ipa-replica-manage dnarange-set office03.fqdn.com 310300000-310399999<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">and this has allowed me to add a user on that server. However when I try to add a user on a different server it still fails with "allocation of new value for range". I was expecting this to request a new range
 and halve the currently assigned range. Robs link included this command:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"># ldapsearch -x -D 'cn=Directory Manager' -W -b cn=posix-ids,cn=dna,cn=ipa,cn=etc,dc=int,dc=i-neda,dc=com<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">…Which seems to list all of the other servers, including office03.fqdn.com which it shows as having 99999 dnaRemainingValues (all the rest have 0) so the server that cannot add users can see office03 has 99999
 unused.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">However of more immediate concern now I can create user accounts is the CA replication which I seem to have completely messed up. Most CA replication went back to the (now offline) office and even what I have
 does not seem to work as expected. Eg on Office03:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"># ldapsearch -H ldap://$HOSTNAME -D 'cn=Directory Manager' -W -b 'cn=masters,cn=ipa,cn=etc,dc=example,dc=com' '(&(cn=CA)(ipaConfigString=caRenewalMaster))' dn<o:p></o:p></span></p>
<p class="MsoNormal"><<span style="font-size:10.0pt">SNIP><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">search result<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">search: 2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">result: 32 No such object<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Following the instructions to set the master seems to work at first (no errors) but the ldap search for renewal master still returns “result: 32 No Such Object”<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"># ipa-csreplica-manage set-renewal-master<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">ipa: WARNING: session memcached servers not running<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Directory Manager password: <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">office03.fqdn.com is now the renewal master<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">re running the set-renwal-master command reports that this server is already the renewal master.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">I think I need to reinitialize the CA replication and connect everything up in a redundant loop as I have with the main replication – however the LDAP query not returning the replication master does not seem
 right. I have not added any IPA servers since these network changes happened a week ago, is it reasonably safe to assume no certificates will have been created so all servers are effectively in sync?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Your help with this is greatly appreciated. On the plus side the systems we use this for are all dev, not live, so it is a good learning experience for me if nothing else!<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt">Best Regards,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt">Neal.<o:p></o:p></span></p>
</div>
</body>
</html>