<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 6:40 PM, Fabian Arrotin <span dir="ltr"><<a href="mailto:arrfab@centos.org" target="_blank">arrfab@centos.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<span class=""><br>
On 24/02/16 10:57, Vishwanath Bhat wrote:<br>
><br>
><br>
> On Wed, Feb 24, 2016 at 5:46 AM, Karanbir Singh<br>
</span><span class="">> <<a href="mailto:mail-lists@karan.org">mail-lists@karan.org</a> <mailto:<a href="mailto:mail-lists@karan.org">mail-lists@karan.org</a>>> wrote:<br>
><br>
> On 23/02/16 11:34, Vishwanath Bhat wrote:<br>
><br>
>> Right now duffy apis like node/get and inventory gives us the<br>
>> hostnames and IP of the machines. But it gives short hostnames<br>
>> and not the resolvable FQDNs. It is a simple workaround to make<br>
>> it to FQDN. But still It would be good to have duffy return the<br>
>> resolvable FQDNs.<br>
><br>
> have you looked at the cico client that David has been working on<br>
> ( <a href="https://github.com/dmsimard/python-cicoclient" rel="noreferrer" target="_blank">https://github.com/dmsimard/python-cicoclient</a> ), that would<br>
> abstract a lot of this away from your side.<br>
><br>
><br>
> Yes, I am using cico already. It returns short hostnames as<br>
> returned by duffy. Right now I have patched it to return FQDN.<br>
> Perhaps I will send a PR for this.<br>
><br>
><br>
> The /Inventory call, as its setup right now really needs a rethink<br>
> overall. But I'll take your point onboard and see if we can fix<br>
> this in the interim ( without breaking any of the other stuff ).<br>
><br>
><br>
> As I said, we have the simple workaround. But it would be good to<br>
> have duffy itself return the resolvable hostname.<br>
><br>
<br>
</span>Isn't that the case ? AFAIK (and as documented on<br>
<a href="https://wiki.centos.org/QaWiki/CI/Duffy" rel="noreferrer" target="_blank">https://wiki.centos.org/QaWiki/CI/Duffy</a>), duffy returns FQDNs and not<br>
shortnames (for API /Node/get calls) so I guess you mean only for the<br>
/Inventory part ?<br></blockquote><div><br></div><div>Ah, Yes. My mistake. I apologise.<br><br></div><div>I was using cico to get nodes which was dumping in yaml format. So it's the cico which dumps them in shortnames. But I just checked duffy Node/get API and it returns the proper FQDNs. Apologies for the confusion caused.<br><br></div><div>Best Regards,<br></div><div>Vishwanath<br><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
- --<br>
Fabian Arrotin<br>
The CentOS Project | <a href="http://www.centos.org" rel="noreferrer" target="_blank">http://www.centos.org</a><br>
gpg key: 56BEC54E | twitter: @arrfab<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.22 (GNU/Linux)<br>
<br>
iEYEARECAAYFAlbNq7QACgkQnVkHo1a+xU5DswCeODCtsSIsGWkm8Qh+F2ERexEY<br>
WGAAnA9Wr7EulRJYQAskDeJnFmnmPQwy<br>
=myBr<br>
-----END PGP SIGNATURE-----<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Ci-users mailing list<br>
<a href="mailto:Ci-users@centos.org">Ci-users@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/ci-users" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/ci-users</a><br>
</div></div></blockquote></div><br></div></div>