[Ci-users] Introducing python-cicoclient: A library and CLI to admin.ci.centos.org

Thu Nov 19 23:31:27 UTC 2015
Ben Kero <bkero at redhat.com>

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.

One of my primary uses for the module would be to see if I have any nodes
that got stuck and need returned.

To do that I would like to see a 'user' column so that I can find the ones
that say 'openstack-puppet'. :)

Ben

On Sun, Nov 15, 2015 at 4:36 PM, David Moreau Simard <dms at redhat.com> wrote:

> Hey,
>
> I took a first stab at this, I think it makes sense ? It looks like it
> works on my end.
> The spec file is here:
>
> https://github.com/dmsimard/python-cicoclient/blob/master/python-cicoclient.spec
>
> I made it build through copr as well:
>
> https://copr.fedoraproject.org/coprs/dmsimard/python-cicoclient/build/139669/
>
>
> David Moreau Simard
> Senior Software Engineer | Openstack RDO
>
> dmsimard = [irc, github, twitter]
>
>
> On Sat, Nov 14, 2015 at 5:33 PM, David Moreau Simard <dms at redhat.com>
> wrote:
> > In the meantime you have the next best thing on PyPi but I do want to
> > package it as rpm eventually.
> >
> > Here, I just formalized it in the first-ever issue on github [1]
> >
> > Thanks for the feedback.
> >
> > [1]: https://github.com/dmsimard/python-cicoclient/issues/1
> >
> > David Moreau Simard
> > Senior Software Engineer | Openstack RDO
> >
> > dmsimard = [irc, github, twitter]
> >
> >
> > On Sat, Nov 14, 2015 at 5:06 AM, Fabian Arrotin <arrfab at centos.org>
> wrote:
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> On 13/11/15 21:19, David Moreau Simard wrote:
> >>> Heya,
> >>>
> >>> I read the docs, the mailing lists and glanced over the various
> >>> scripts out there and was convinced there had to be a better way
> >>> than using curl to communicate with admin.ci.centos.org.
> >>>
> >>> Introducing python-cicoclient: - Github:
> >>> https://github.com/dmsimard/python-cicoclient - PyPi:
> >>> https://pypi.python.org/pypi/python-cicoclient/ - Docs:
> >>> http://python-cicoclient.readthedocs.org/en/latest/
> >>>
> >>> I broke down this package in three main components: - client.py:
> >>> Abstracts the http stuff - wrapper.py: Uses client.py to wrap
> >>> around the available API calls and provide a consistent user
> >>> experience - shell.py/cli.py: Provide a CLI interface around
> >>> wrapper.py
> >>>
> >>> It can be used as both a CLI client with the provided 'cico'
> >>> binary but also as a library - you can easily import wrapper and
> >>> roll your own thing.
> >>>
> >>> Feel free to use it, contribute and provide feedback !
> >>>
> >>> Please note that as of right now, there is a problem with the
> >>> "node get" command due to an upstream bug, documented here:
> >>> https://bugs.centos.org/view.php?id=9748 Please do not use "node
> >>> get" until this bug is fixed :)
> >>>
> >>> David Moreau Simard Senior Software Engineer | Openstack RDO
> >>>
> >>> dmsimard = [irc, github, twitter]
> >>
> >> Looks very promising !
> >> Wondering if then we can have a .spec, and build/deploy it as rpm
> >> within the CI env, on the jenkins slave nodes, so that people would
> >> have an alternative.
> >>
> >>
> >> - --
> >> Fabian Arrotin
> >> The CentOS Project | http://www.centos.org
> >> gpg key: 56BEC54E | twitter: @arrfab
> >> -----BEGIN PGP SIGNATURE-----
> >> Version: GnuPG v2.0.22 (GNU/Linux)
> >>
> >> iEYEARECAAYFAlZHB5YACgkQnVkHo1a+xU7xoQCdH8CQynVnleWNZVGNa08uIRs3
> >> 05gAoITFkfK+TkaFJEPs7yoOCq34xU7D
> >> =Nmgd
> >> -----END PGP SIGNATURE-----
> >> _______________________________________________
> >> Ci-users mailing list
> >> Ci-users at centos.org
> >> https://lists.centos.org/mailman/listinfo/ci-users
> _______________________________________________
> Ci-users mailing list
> Ci-users at centos.org
> https://lists.centos.org/mailman/listinfo/ci-users
>



-- 
Ben Kero
RedHat, Engineer, OPM-CI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/ci-users/attachments/20151119/3dec7621/attachment-0003.html>