<p dir="ltr">Like Karan said, you can filter the hosts that inventory will return by setting your API key.</p>
<p dir="ltr">There's two things I discussed with the CI team that I would like to do eventually:<br>
1) See the "age" of the machines (time since deploy)<br>
2) Being able to set the comment field when requesting nodes instead of it being automatically set to the ssid. This would allow us to set, for example, the job name and build number as comment. This effectively requires adding a ssid field because the only place you can find it is in the comment field.</p>
<p dir="ltr">1 and 2 would help you achieve what you're looking for :)</p>
<p dir="ltr">David Moreau Simard<br>
Senior Software Engineer | Openstack RDO</p>
<p dir="ltr">dmsimard = [irc, github, twitter]</p>
<div class="gmail_quote">On Nov 19, 2015 6:31 PM, "Ben Kero" <<a href="mailto:bkero@redhat.com">bkero@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I just took a look at the 'cico inventory' output, and find it super useful. The one piece of information that I see as missing though is which user checked out a node.<br><br>One of my primary uses for the module would be to see if I have any nodes that got stuck and need returned.<br><br></div>To do that I would like to see a 'user' column so that I can find the ones that say 'openstack-puppet'. :)<br><br></div>Ben<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 15, 2015 at 4:36 PM, David Moreau Simard <span dir="ltr"><<a href="mailto:dms@redhat.com" target="_blank">dms@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
I took a first stab at this, I think it makes sense ? It looks like it<br>
works on my end.<br>
The spec file is here:<br>
<a href="https://github.com/dmsimard/python-cicoclient/blob/master/python-cicoclient.spec" rel="noreferrer" target="_blank">https://github.com/dmsimard/python-cicoclient/blob/master/python-cicoclient.spec</a><br>
<br>
I made it build through copr as well:<br>
<a href="https://copr.fedoraproject.org/coprs/dmsimard/python-cicoclient/build/139669/" rel="noreferrer" target="_blank">https://copr.fedoraproject.org/coprs/dmsimard/python-cicoclient/build/139669/</a><br>
<span><br>
<br>
David Moreau Simard<br>
Senior Software Engineer | Openstack RDO<br>
<br>
dmsimard = [irc, github, twitter]<br>
<br>
<br>
</span><div><div>On Sat, Nov 14, 2015 at 5:33 PM, David Moreau Simard <<a href="mailto:dms@redhat.com" target="_blank">dms@redhat.com</a>> wrote:<br>
> In the meantime you have the next best thing on PyPi but I do want to<br>
> package it as rpm eventually.<br>
><br>
> Here, I just formalized it in the first-ever issue on github [1]<br>
><br>
> Thanks for the feedback.<br>
><br>
> [1]: <a href="https://github.com/dmsimard/python-cicoclient/issues/1" rel="noreferrer" target="_blank">https://github.com/dmsimard/python-cicoclient/issues/1</a><br>
><br>
> David Moreau Simard<br>
> Senior Software Engineer | Openstack RDO<br>
><br>
> dmsimard = [irc, github, twitter]<br>
><br>
><br>
> On Sat, Nov 14, 2015 at 5:06 AM, Fabian Arrotin <<a href="mailto:arrfab@centos.org" target="_blank">arrfab@centos.org</a>> wrote:<br>
>> -----BEGIN PGP SIGNED MESSAGE-----<br>
>> Hash: SHA1<br>
>><br>
>> On 13/11/15 21:19, David Moreau Simard wrote:<br>
>>> Heya,<br>
>>><br>
>>> I read the docs, the mailing lists and glanced over the various<br>
>>> scripts out there and was convinced there had to be a better way<br>
>>> than using curl to communicate with <a href="http://admin.ci.centos.org" rel="noreferrer" target="_blank">admin.ci.centos.org</a>.<br>
>>><br>
>>> Introducing python-cicoclient: - Github:<br>
>>> <a href="https://github.com/dmsimard/python-cicoclient" rel="noreferrer" target="_blank">https://github.com/dmsimard/python-cicoclient</a> - PyPi:<br>
>>> <a href="https://pypi.python.org/pypi/python-cicoclient/" rel="noreferrer" target="_blank">https://pypi.python.org/pypi/python-cicoclient/</a> - Docs:<br>
>>> <a href="http://python-cicoclient.readthedocs.org/en/latest/" rel="noreferrer" target="_blank">http://python-cicoclient.readthedocs.org/en/latest/</a><br>
>>><br>
>>> I broke down this package in three main components: - client.py:<br>
>>> Abstracts the http stuff - wrapper.py: Uses client.py to wrap<br>
>>> around the available API calls and provide a consistent user<br>
>>> experience - <a href="http://shell.py/cli.py" rel="noreferrer" target="_blank">shell.py/cli.py</a>: Provide a CLI interface around<br>
>>> wrapper.py<br>
>>><br>
>>> It can be used as both a CLI client with the provided 'cico'<br>
>>> binary but also as a library - you can easily import wrapper and<br>
>>> roll your own thing.<br>
>>><br>
>>> Feel free to use it, contribute and provide feedback !<br>
>>><br>
>>> Please note that as of right now, there is a problem with the<br>
>>> "node get" command due to an upstream bug, documented here:<br>
>>> <a href="https://bugs.centos.org/view.php?id=9748" rel="noreferrer" target="_blank">https://bugs.centos.org/view.php?id=9748</a> Please do not use "node<br>
>>> get" until this bug is fixed :)<br>
>>><br>
>>> David Moreau Simard Senior Software Engineer | Openstack RDO<br>
>>><br>
>>> dmsimard = [irc, github, twitter]<br>
>><br>
>> Looks very promising !<br>
>> Wondering if then we can have a .spec, and build/deploy it as rpm<br>
>> within the CI env, on the jenkins slave nodes, so that people would<br>
>> have an alternative.<br>
>><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>
>> iEYEARECAAYFAlZHB5YACgkQnVkHo1a+xU7xoQCdH8CQynVnleWNZVGNa08uIRs3<br>
>> 05gAoITFkfK+TkaFJEPs7yoOCq34xU7D<br>
>> =Nmgd<br>
>> -----END PGP SIGNATURE-----<br>
>> _______________________________________________<br>
>> Ci-users mailing list<br>
>> <a href="mailto:Ci-users@centos.org" target="_blank">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>
_______________________________________________<br>
Ci-users mailing list<br>
<a href="mailto:Ci-users@centos.org" target="_blank">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><br clear="all"><br>-- <br><div><div dir="ltr"><div>Ben Kero<br></div>RedHat, Engineer, OPM-CI<br></div></div>
</div>
</blockquote></div>