<div dir="ltr"><div>Thanks guys. <br><br></div>For now I've just reverted the reported version while the install script runs. It seems to work OK.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 2, 2014 at 9:06 AM, Martin Kosek <span dir="ltr"><<a href="mailto:mkosek@redhat.com" target="_blank">mkosek@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 12/28/2013 06:50 PM, Rob Crittenden wrote:<br>
> Will Sheldon wrote:<br>
>><br>
>> Hello :)<br>
>><br>
>> I'm trying to setup a ubuntu 12.04.3 client running freeipa-client<br>
>> 3.2.0-0ubuntu1~precise1 form the apt repo at<br>
>> <a href="http://ppa.launchpad.net/freeipa/ppa/ubuntu" target="_blank">http://ppa.launchpad.net/freeipa/ppa/ubuntu</a><br>
>> The server is a (fully updated) centos 6.5 box running ipa-server.x86_64<br>
>> 3.0.0-37.el6<br>
>><br>
>> The script mostly works on a stock install, but there is an error<br>
>> uploading SSH keys, This appears to be called from the<br>
>> ipa-client-install script line 1436:<br>
>><br>
>>          result = api.Command['host_mod'](unicode(hostname),<br>
>><br>
>> Which generates the following output when run:<br>
>><br>
>> stderr=<br>
>> Caught fault 901 from server <a href="https://ipa." target="_blank">https://ipa.</a>[domain].com/ipa/xml: 2.58<br>
>> client incompatible with 2.49 server at u'<a href="https://ipa." target="_blank">https://ipa.</a>[domain].com/ipa/xml'<br>
>> host_mod: 2.58 client incompatible with 2.49 server at<br>
>> u'<a href="https://ipa." target="_blank">https://ipa.</a>[domain].com/ipa/xml'<br>
>> Failed to upload host SSH public keys.<br>
>><br>
>> I understand that this is not a critical failure and that I can manually<br>
>> upload the host keys if needed but the bit I don't understand is where<br>
>> the version numbers come from.<br>
><br>
> The API version is baked into the client and server. We generally provide a<br>
> backwards compatible server, but right now not the client (so a new client<br>
> can't always have 100% success talking to an old server). We are actually<br>
> working on this, especially for client enrollment, to make things work more<br>
> smoothly.<br>
><br>
>> How do I revert the api to version 2.49 to match the server?<br>
><br>
> You'd have to modify ipapython/version.py on each client before enrollment. For<br>
> enrollment I can't think of any side-effects, but if you ever tried the IPA<br>
> admin tool on such a client then some odd things could happen.<br>
><br>
>> What is best practice here, should I be using a different source for the<br>
>> client install script?<br>
><br>
> I don't know what is available for Debian/Ubuntu clients these days. It is<br>
> being worked on very hard though I think the focus is on the latest source<br>
> which explains the mismatch.<br>
><br>
>> Is there a copy of the correct client files stashed on the server somewhere?<br>
>> Would anyone be interested in helping with development of a yum and apt<br>
>> repo on the server to make all this easier?<br>
><br>
> The server being the IPA server, so it can distribute the client bits? An<br>
> interesting idea.<br>
><br>
> rob<br>
><br>
<br>
</div></div>Note that this issue was fixed in FreeIPA version 3.3.2 (upstream ticket<br>
<a href="https://fedorahosted.org/freeipa/ticket/3931" target="_blank">https://fedorahosted.org/freeipa/ticket/3931</a>).<br>
<br>
Thus, when using FreeIPA client 3.3.2 and later, ipa-client-install will upload<br>
the SSH keys even to the older SSH server. No other changes required.<br>
<br>
HTH,<br>
Martin<br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br>Kind regards,<br>
<br>
Will Sheldon<br>
+1.(778)-689-4144<br>
</div>
</div>