[Ci-users] duffy node/get and inventory APIs returning FQDN hostnames

Wed Feb 24 13:10:12 UTC 2016
Fabian Arrotin <arrfab at centos.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24/02/16 10:57, Vishwanath Bhat wrote:
> 
> 
> On Wed, Feb 24, 2016 at 5:46 AM, Karanbir Singh
> <mail-lists at karan.org <mailto:mail-lists at karan.org>> wrote:
> 
> On 23/02/16 11:34, Vishwanath Bhat wrote:
> 
>> Right now duffy apis like node/get and inventory gives us the
>> hostnames and IP of the machines. But it gives short hostnames
>> and not the resolvable FQDNs. It is a simple workaround to make
>> it to FQDN. But still It would be good to have duffy return the
>> resolvable FQDNs.
> 
> have you looked at the cico client that David has been working on
> ( https://github.com/dmsimard/python-cicoclient ), that would
> abstract a lot of this away from your side.
> 
> 
> Yes, I am using cico already. It returns short hostnames as
> returned by duffy. Right now I have patched it to return FQDN.
> Perhaps I will send a PR for this.
> 
> 
> The /Inventory call, as its setup right now really needs a rethink 
> overall. But I'll take your point onboard and see if we can fix
> this in the interim ( without breaking any of the other stuff ).
> 
> 
> As I said, we have the simple workaround. But it would be good to
> have duffy itself return the resolvable hostname.
> 

Isn't that the case ? AFAIK (and as documented on
https://wiki.centos.org/QaWiki/CI/Duffy), duffy returns FQDNs and not
shortnames (for API /Node/get calls) so I guess you mean only for the
/Inventory part ?


- -- 
Fabian Arrotin
The CentOS Project | http://www.centos.org
gpg key: 56BEC54E | twitter: @arrfab
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlbNq7QACgkQnVkHo1a+xU5DswCeODCtsSIsGWkm8Qh+F2ERexEY
WGAAnA9Wr7EulRJYQAskDeJnFmnmPQwy
=myBr
-----END PGP SIGNATURE-----