Re: [libvirt] [libvit-jenkins-ci PATCH v2 00/16] Ansible all the things!

2017-10-10 Thread Martin Kletzander

On Fri, Oct 06, 2017 at 04:53:34PM +0200, Pavel Hrdina wrote:

On Fri, Oct 06, 2017 at 02:29:44PM +0100, Daniel P. Berrange wrote:

On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
> Changes from [v1]:
>
>   * drop support for building projects;
>   * reduce redundancy by using mappings;
>   * add FreeBSD 10 support.
>
> [v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html

BTW, what's your thoughts on what we should do with this once committed ?

Do you have plans to rebuild all our current CI VMs from scratch
using these recipes ? It would probably nice todo this so we get
them into a known good state, as well as helping us move the
Fedora vms onto current versions.


Yes, we are planning to do that, actually I'll be the one who will
rebuild all the VMs.  I'm also planning to prepare template kickstart
for Fedora to automate it even more.

Pavel


Actually, we've been also thinking to add a Vagrantfile into our libvirt
repository that would be able to create build VMs with various development
environments (FreeBSD, fedora, debian, etc.) and we could utilize these Ansible
scripts to provision those machines.  Newbies could easily try out libvirt
without changing their system and anyone who wants to test the hell out of their
changes would just do with circa 3 commands.


--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list




signature.asc
Description: Digital signature
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [libvit-jenkins-ci PATCH v2 00/16] Ansible all the things!

2017-10-09 Thread Daniel P. Berrange
On Mon, Oct 09, 2017 at 01:58:45PM +0200, Andrea Bolognani wrote:
> On Mon, 2017-10-09 at 11:39 +0100, Daniel P. Berrange wrote:
> > On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
> > > Changes from [v1]:
> > > 
> > >   * drop support for building projects;
> > >   * reduce redundancy by using mappings;
> > >   * add FreeBSD 10 support.
> > > 
> > > [v1] 
> > > https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
> > > 
> > > Andrea Bolognani (16):
> > >   ansible: Initial support
> > >   ansible: Add libosinfo project
> > >   ansible: Add libvirt project
> > >   ansible: Add libvirt-cim project
> > >   ansible: Add libvirt-glib project
> > >   ansible: Add libvirt-go project
> > >   ansible: Add libvirt-go-xml project
> > >   ansible: Add libvirt-perl project
> > >   ansible: Add libvirt-python project
> > >   ansible: Add libvirt-sandbox project
> > >   ansible: Add libvirt-tck project
> > >   ansible: Add osinfo-db project
> > >   ansible: Add osinfo-db-tools project
> > >   ansible: Add virt-manager project
> > >   ansible: Add virt-viewer project
> > >   ansible: Install and configure Jenkins agent
> > 
> > ACK to all patches on the basis that I don't know ansible but nothing
> > looks bad from a naive POV.
> 
> That's good enough for me. Pushed :)
> 
> > One thing the current builders have setup is a cron job to do a nightly
> > yum update (or equiv). I'm not sure whether this belongs in Ansible or
> > in prior kickstart file ?
> 
> Oh, I was not aware of that.
> 
> There are two ways we can approach this:
> 
>   a) have Ansible set up the necessary cron jobs;
>   b) run the Ansible playbook from the host instead.
> 
> I'd rather go with b) since the playbook already upgrades all
> installed packages as part of setting up the base system.

I dont mind as long as the packages get updated daily.

Regards,
Daniel
-- 
|: https://berrange.com  -o-https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o-https://fstop138.berrange.com :|
|: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] [libvit-jenkins-ci PATCH v2 00/16] Ansible all the things!

2017-10-09 Thread Andrea Bolognani
On Mon, 2017-10-09 at 11:39 +0100, Daniel P. Berrange wrote:
> On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
> > Changes from [v1]:
> > 
> >   * drop support for building projects;
> >   * reduce redundancy by using mappings;
> >   * add FreeBSD 10 support.
> > 
> > [v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
> > 
> > Andrea Bolognani (16):
> >   ansible: Initial support
> >   ansible: Add libosinfo project
> >   ansible: Add libvirt project
> >   ansible: Add libvirt-cim project
> >   ansible: Add libvirt-glib project
> >   ansible: Add libvirt-go project
> >   ansible: Add libvirt-go-xml project
> >   ansible: Add libvirt-perl project
> >   ansible: Add libvirt-python project
> >   ansible: Add libvirt-sandbox project
> >   ansible: Add libvirt-tck project
> >   ansible: Add osinfo-db project
> >   ansible: Add osinfo-db-tools project
> >   ansible: Add virt-manager project
> >   ansible: Add virt-viewer project
> >   ansible: Install and configure Jenkins agent
> 
> ACK to all patches on the basis that I don't know ansible but nothing
> looks bad from a naive POV.

That's good enough for me. Pushed :)

> One thing the current builders have setup is a cron job to do a nightly
> yum update (or equiv). I'm not sure whether this belongs in Ansible or
> in prior kickstart file ?

Oh, I was not aware of that.

There are two ways we can approach this:

  a) have Ansible set up the necessary cron jobs;
  b) run the Ansible playbook from the host instead.

I'd rather go with b) since the playbook already upgrades all
installed packages as part of setting up the base system.

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] [libvit-jenkins-ci PATCH v2 00/16] Ansible all the things!

2017-10-09 Thread Daniel P. Berrange
On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
> Changes from [v1]:
> 
>   * drop support for building projects;
>   * reduce redundancy by using mappings;
>   * add FreeBSD 10 support.
> 
> [v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
> 
> Andrea Bolognani (16):
>   ansible: Initial support
>   ansible: Add libosinfo project
>   ansible: Add libvirt project
>   ansible: Add libvirt-cim project
>   ansible: Add libvirt-glib project
>   ansible: Add libvirt-go project
>   ansible: Add libvirt-go-xml project
>   ansible: Add libvirt-perl project
>   ansible: Add libvirt-python project
>   ansible: Add libvirt-sandbox project
>   ansible: Add libvirt-tck project
>   ansible: Add osinfo-db project
>   ansible: Add osinfo-db-tools project
>   ansible: Add virt-manager project
>   ansible: Add virt-viewer project
>   ansible: Install and configure Jenkins agent

ACK to all patches on the basis that I don't know ansible but nothing
looks bad from a naive POV.

One thing the current builders have setup is a cron job to do a nightly
yum update (or equiv). I'm not sure whether this belongs in Ansible or
in prior kickstart file ?

Regards,
Daniel
-- 
|: https://berrange.com  -o-https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o-https://fstop138.berrange.com :|
|: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] [libvit-jenkins-ci PATCH v2 00/16] Ansible all the things!

2017-10-06 Thread Pavel Hrdina
On Fri, Oct 06, 2017 at 02:29:44PM +0100, Daniel P. Berrange wrote:
> On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
> > Changes from [v1]:
> > 
> >   * drop support for building projects;
> >   * reduce redundancy by using mappings;
> >   * add FreeBSD 10 support.
> > 
> > [v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
> 
> BTW, what's your thoughts on what we should do with this once committed ?
> 
> Do you have plans to rebuild all our current CI VMs from scratch
> using these recipes ? It would probably nice todo this so we get
> them into a known good state, as well as helping us move the
> Fedora vms onto current versions.

Yes, we are planning to do that, actually I'll be the one who will
rebuild all the VMs.  I'm also planning to prepare template kickstart
for Fedora to automate it even more.

Pavel


signature.asc
Description: PGP signature
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [libvit-jenkins-ci PATCH v2 00/16] Ansible all the things!

2017-10-06 Thread Andrea Bolognani
On Fri, 2017-10-06 at 14:29 +0100, Daniel P. Berrange wrote:
> On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
> > Changes from [v1]:
> > 
> >   * drop support for building projects;
> >   * reduce redundancy by using mappings;
> >   * add FreeBSD 10 support.
> > 
> > [v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
> 
> BTW, what's your thoughts on what we should do with this once committed ?
> 
> Do you have plans to rebuild all our current CI VMs from scratch
> using these recipes ? It would probably nice todo this so we get
> them into a known good state, as well as helping us move the
> Fedora vms onto current versions.

Definitely.

The idea would be to build a Fedora 26 worker, set it up using the
Ansible automation and add it to the Jenkins setup; there might be
some minor kinks to iron out before all jobs can run successfully.

Once that's done, we can start replacing existing workers one by
one, and finally expand the test matrix to its fullest potential.

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] [libvit-jenkins-ci PATCH v2 00/16] Ansible all the things!

2017-10-06 Thread Daniel P. Berrange
On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
> Changes from [v1]:
> 
>   * drop support for building projects;
>   * reduce redundancy by using mappings;
>   * add FreeBSD 10 support.
> 
> [v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html

BTW, what's your thoughts on what we should do with this once committed ?

Do you have plans to rebuild all our current CI VMs from scratch
using these recipes ? It would probably nice todo this so we get
them into a known good state, as well as helping us move the
Fedora vms onto current versions.


Regards,
Daniel
-- 
|: https://berrange.com  -o-https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o-https://fstop138.berrange.com :|
|: https://entangle-photo.org-o-https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list