Hi,
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.
Best Regards, Vishwanath
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.
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 ).
regards
On Wed, Feb 24, 2016 at 5:46 AM, Karanbir Singh mail-lists@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.
Best Regards, Vishwanath
regards
-- Karanbir Singh +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh GnuPG Key : http://www.karan.org/publickey.asc _______________________________________________ Ci-users mailing list Ci-users@centos.org https://lists.centos.org/mailman/listinfo/ci-users
-----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@karan.org mailto:mail-lists@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
On Wed, Feb 24, 2016 at 6:40 PM, Fabian Arrotin arrfab@centos.org wrote:
-----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@karan.org mailto:mail-lists@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 ?
Ah, Yes. My mistake. I apologise.
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.
Best Regards, Vishwanath
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----- _______________________________________________ Ci-users mailing list Ci-users@centos.org https://lists.centos.org/mailman/listinfo/ci-users
On 23/02/16 11:34, Vishwanath Bhat wrote:
Hi,
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.
If I remember correctly, the domain is configured as a search domain on the slaves, so they should resolve.
On Wed, Feb 24, 2016 at 2:02 PM, Dominic Cleal dominic@cleal.org wrote:
On 23/02/16 11:34, Vishwanath Bhat wrote:
Hi,
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.
If I remember correctly, the domain is configured as a search domain on the slaves, so they should resolve.
I think, they were being resolved some time back (the short hostnames returned by duffy). But I'm not very sure of this :P
But right now they aren't being resolved. Did something change in between?
Best Regards, Vishwanath
-- Dominic Cleal dominic@cleal.org _______________________________________________ Ci-users mailing list Ci-users@centos.org https://lists.centos.org/mailman/listinfo/ci-users
On 24/02/16 10:02, Vishwanath Bhat wrote:
I think, they were being resolved some time back (the short hostnames returned by duffy). But I'm not very sure of this :P
But right now they aren't being resolved. Did something change in between?
Fabian is working to fix this, effectively the short names should be resolvable, from within the ci infra.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 24/02/16 13:51, Karanbir Singh wrote:
On 24/02/16 10:02, Vishwanath Bhat wrote:
I think, they were being resolved some time back (the short hostnames returned by duffy). But I'm not very sure of this :P
But right now they aren't being resolved. Did something change in between?
Fabian is working to fix this, effectively the short names should be resolvable, from within the ci infra.
So, just to clarify the DNS situation : When trying to use "shortnames" from machines like slave01.ci.centos.org, one could just use $node_name.$chassis as the search domain on that kind of node was ci.centos.org That wasn't true on the provisioned nodes (so Seamicro compute nodes) as NetworkManager added this : "search $chassis.ci.centos.org" in /etc/resolv.conf . I've pushed a fix in the kickstart templates used to provision all those compute nodes to have ci.centos.org as first search domain, while also keeping/having $chassis.ci.centos.org as secondary search domain. That change went "live" in the last minutes, but will only be reflected for nodes being provisioned now, (as Duffy has a preallocation pool , reason why it's fast to return a node to ci users)
- -- Fabian Arrotin The CentOS Project | http://www.centos.org gpg key: 56BEC54E | twitter: @arrfab
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.
Because this statement is causing some confusion - I just want to clarify that all host operations work with fqdn and return fqdn's - its only the inventory call that returns <node>.<pool/chassis/group> short form.
regards