Re: [ovirt-devel] What does your oVirt development environment look like?

2014-08-25 Thread Adam Litke

On 21/08/14 09:17 -0400, Greg Sheremeta wrote:

Good idea.


Thanks, and thank you for sharing.



I work on the UI, so I don't have much of a need for a complex setup. I
have the two mini dells, and then I have two much more powerful personal
machines that I use for work -- machine 1 (dauntless) is my main development
machine, and machine 2 (starbase) is my main home server. I compile and run
engine on dauntless, and starbase serves NFS and SMB. I don't have iscsi setup,
although I probably should learn this. I use nested virt for all my hosts,


For a Friday afternoon project you might want to check out this easy
to follow guide for targetcli.  It's what I use for software iSCSI and
it works pretty well for me:

https://wiki.archlinux.org/index.php/ISCSI_Target


so mini dell 1 and mini dell 2 both run Fedora 20 and I basically just remote
to them to install vms via virt-manager.

I had cobbler running at one point, but I got frustrated with it one too many
times and gave up. Now I just have a giant collection of isos available via
NFS (and scattered on the desktops of the mini dells :)) I typically install
fresh hosts using the F20 network-install iso. It's a little slower, but
very reliable.


Yeah, I am wondering if this would be a better approach (though I
really do like the unattended PXE installations I can do with
cobbler).


I tend to not need more than one of two database instances at a time.

I gave up using my laptop for primary development because I need three monitors
on my dev rig, and my laptop supports two max. (I'm currently heartbroken at
the lack of USB3 video for linux. See [1].) I basically use my laptop as
a remote viewer to dauntless now when I'm working in bed or wanting to sit out
on the porch. (RealVNC encrypted mode -- I use an xrandr script to toggle off
two of dauntless's monitors, and then I full-screen VNC.)

Old pic of my desk: [2]


Wow,  I feel really low-tech with my single widescreen monitor here.


Dauntless, starbase, the dells, and all monitors are connected to a giant UPS.
Home network equipment is all connected to another UPS.

I've given some thought to building a distributed compile of ovirt (specifically
the GWT part -- maybe distribute each permutation to worker nodes), but I was
under the impression that most people just use their laptop for work. I think
a distributed compile would be pretty nice for me, but not sure how many people
would use it. ?


I try to compile engine as infrequently as possible.  Due to what it
does to my running system, I usually reboot afterwords too.

--
Adam Litke
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] What does your oVirt development environment look like?

2014-08-21 Thread Greg Sheremeta
- Original Message -
 From: Adam Litke ali...@redhat.com
 To: devel@ovirt.org
 Sent: Friday, August 15, 2014 9:32:55 AM
 Subject: [ovirt-devel] What does your oVirt development environment look  
 like?
 
 Ever since starting to work on oVirt around 3 years ago I've been
 striving for the perfect development and test environment.  I was
 inspired by Yaniv's recent deep dive on Foreman integration and
 thought I'd ask people to share their setups and any tips and tricks
 so we can all become better, more efficient developers.
 
 My setup consists of my main work laptop and two mini-Dell servers.  I
 run the engine on my laptop and I serve NFS and iSCSI (using
 targetcli) from this system as well.  I use the ethernet port on the
 laptop to connect it to a subnet with the two Dell systems.
 
 Some goals for my setup are:
  - Easy provisioning of the virt-hosts so I can quickly test on Fedora
and CentOS without spending lots of time reinstalling
  - Ability to test block and nfs storage
  - Automation of test scenarios involving engine and hosts
 
 To help me reach these goals I've deployed cobbler on my laptop and it
 does a pretty good job at managing PXE boot configurations for my
 hosts (and VMs) so they can be automatically intalled as needed.
 After viewing Yaniv's presentation, it seems that Forman/Puppet are
 the way of the future but it does seem a bit more involved to set up.
 I am definitely curious if others are using Foreman in their personal
 dev/test environment and can offer some insight on how that is working
 out.
 
 Thanks, and I look forward to reading about more of your setups!  If
 we get enough of these, maybe this could make a good section of the
 wiki.
 
 --
 Adam Litke
 ___
 Devel mailing list
 Devel@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/devel
 

Good idea.

I work on the UI, so I don't have much of a need for a complex setup. I
have the two mini dells, and then I have two much more powerful personal
machines that I use for work -- machine 1 (dauntless) is my main development
machine, and machine 2 (starbase) is my main home server. I compile and run
engine on dauntless, and starbase serves NFS and SMB. I don't have iscsi setup,
although I probably should learn this. I use nested virt for all my hosts,
so mini dell 1 and mini dell 2 both run Fedora 20 and I basically just remote
to them to install vms via virt-manager.

I had cobbler running at one point, but I got frustrated with it one too many
times and gave up. Now I just have a giant collection of isos available via
NFS (and scattered on the desktops of the mini dells :)) I typically install
fresh hosts using the F20 network-install iso. It's a little slower, but
very reliable.

I tend to not need more than one of two database instances at a time.

I gave up using my laptop for primary development because I need three monitors
on my dev rig, and my laptop supports two max. (I'm currently heartbroken at
the lack of USB3 video for linux. See [1].) I basically use my laptop as
a remote viewer to dauntless now when I'm working in bed or wanting to sit out
on the porch. (RealVNC encrypted mode -- I use an xrandr script to toggle off
two of dauntless's monitors, and then I full-screen VNC.)

Old pic of my desk: [2]

Dauntless, starbase, the dells, and all monitors are connected to a giant UPS.
Home network equipment is all connected to another UPS.

I've given some thought to building a distributed compile of ovirt (specifically
the GWT part -- maybe distribute each permutation to worker nodes), but I was
under the impression that most people just use their laptop for work. I think
a distributed compile would be pretty nice for me, but not sure how many people
would use it. ?

Greg

[1] http://www.change.org/p/displaylink-support-linux-with-dl-3000-series-chips
[2] http://i.imgur.com/jaMuU8Z.jpg

___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


[ovirt-devel] What does your oVirt development environment look like?

2014-08-15 Thread Adam Litke

Ever since starting to work on oVirt around 3 years ago I've been
striving for the perfect development and test environment.  I was
inspired by Yaniv's recent deep dive on Foreman integration and
thought I'd ask people to share their setups and any tips and tricks
so we can all become better, more efficient developers.

My setup consists of my main work laptop and two mini-Dell servers.  I
run the engine on my laptop and I serve NFS and iSCSI (using
targetcli) from this system as well.  I use the ethernet port on the
laptop to connect it to a subnet with the two Dell systems.

Some goals for my setup are:
- Easy provisioning of the virt-hosts so I can quickly test on Fedora
  and CentOS without spending lots of time reinstalling
- Ability to test block and nfs storage
- Automation of test scenarios involving engine and hosts

To help me reach these goals I've deployed cobbler on my laptop and it
does a pretty good job at managing PXE boot configurations for my
hosts (and VMs) so they can be automatically intalled as needed.
After viewing Yaniv's presentation, it seems that Forman/Puppet are
the way of the future but it does seem a bit more involved to set up.
I am definitely curious if others are using Foreman in their personal
dev/test environment and can offer some insight on how that is working
out.

Thanks, and I look forward to reading about more of your setups!  If
we get enough of these, maybe this could make a good section of the
wiki.

--
Adam Litke
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] What does your oVirt development environment look like?

2014-08-15 Thread ybronhei

On 08/15/2014 09:32 AM, Adam Litke wrote:

Ever since starting to work on oVirt around 3 years ago I've been
striving for the perfect development and test environment.  I was
inspired by Yaniv's recent deep dive on Foreman integration and
thought I'd ask people to share their setups and any tips and tricks
so we can all become better, more efficient developers.

My setup consists of my main work laptop and two mini-Dell servers.  I
run the engine on my laptop and I serve NFS and iSCSI (using
targetcli) from this system as well.  I use the ethernet port on the
laptop to connect it to a subnet with the two Dell systems.

Some goals for my setup are:
- Easy provisioning of the virt-hosts so I can quickly test on Fedora
   and CentOS without spending lots of time reinstalling
- Ability to test block and nfs storage
- Automation of test scenarios involving engine and hosts

To help me reach these goals I've deployed cobbler on my laptop and it
does a pretty good job at managing PXE boot configurations for my
hosts (and VMs) so they can be automatically intalled as needed.
After viewing Yaniv's presentation, it seems that Forman/Puppet are
the way of the future but it does seem a bit more involved to set up.
I am definitely curious if others are using Foreman in their personal
dev/test environment and can offer some insight on how that is working
out.

Thanks, and I look forward to reading about more of your setups!  If
we get enough of these, maybe this could make a good section of the
wiki.

Heppy to hear :) for those who missed - 
https://www.youtube.com/watch?v=gozX891kYAY


each one has its own needs and goals I guess, but if you say it might 
help, I'll never say no for sharing :P
I have 3 dells under my desk, I compile the engine a lot and its heavy 
for my laptop. So I clone my local working directory and build it on the 
strongest mini-dell using local jenkins server 
(http://www.ovirt.org/Local_Jenkins_For_The_People). The other 2 I use 
as hypervisor when needed. provision them is done by me manually :/.. 
cobbler pxe boot could help with already defined image..  Other then 
that, I have nfs mount for storage and few vms for compilation and small 
tests


sorry I can't help with your curiosity .. my env quite simple

Regards,
Yaniv Bronhaim.

___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] What does your oVirt development environment look like?

2014-08-15 Thread Yair Zaslavsky


- Original Message -
 From: ybronhei ybron...@redhat.com
 To: Adam Litke ali...@redhat.com, devel@ovirt.org
 Sent: Friday, August 15, 2014 7:36:23 PM
 Subject: Re: [ovirt-devel] What does your oVirt development environment look  
 like?
 
 On 08/15/2014 09:32 AM, Adam Litke wrote:
  Ever since starting to work on oVirt around 3 years ago I've been
  striving for the perfect development and test environment.  I was
  inspired by Yaniv's recent deep dive on Foreman integration and
  thought I'd ask people to share their setups and any tips and tricks
  so we can all become better, more efficient developers.
 
  My setup consists of my main work laptop and two mini-Dell servers.  I
  run the engine on my laptop and I serve NFS and iSCSI (using
  targetcli) from this system as well.  I use the ethernet port on the
  laptop to connect it to a subnet with the two Dell systems.
 
  Some goals for my setup are:
  - Easy provisioning of the virt-hosts so I can quickly test on Fedora
 and CentOS without spending lots of time reinstalling
  - Ability to test block and nfs storage
  - Automation of test scenarios involving engine and hosts
 
  To help me reach these goals I've deployed cobbler on my laptop and it
  does a pretty good job at managing PXE boot configurations for my
  hosts (and VMs) so they can be automatically intalled as needed.
  After viewing Yaniv's presentation, it seems that Forman/Puppet are
  the way of the future but it does seem a bit more involved to set up.
  I am definitely curious if others are using Foreman in their personal
  dev/test environment and can offer some insight on how that is working
  out.
 
  Thanks, and I look forward to reading about more of your setups!  If
  we get enough of these, maybe this could make a good section of the
  wiki.
 
 Heppy to hear :) for those who missed -
 https://www.youtube.com/watch?v=gozX891kYAY
 
 each one has its own needs and goals I guess, but if you say it might
 help, I'll never say no for sharing :P
 I have 3 dells under my desk, I compile the engine a lot and its heavy
 for my laptop. So I clone my local working directory and build it on the
 strongest mini-dell using local jenkins server
 (http://www.ovirt.org/Local_Jenkins_For_The_People). The other 2 I use
 as hypervisor when needed. provision them is done by me manually :/..
 cobbler pxe boot could help with already defined image..  Other then
 that, I have nfs mount for storage and few vms for compilation and small
 tests

Haven't used Jenkins for the people for quite some time, it's awesome though.
Yaniv, does your Jenkins build all your local branches? 
I don't have much to share, my environment is even simpler.
I am sure it's a common knowledge but still a reminder (even if a new developer 
can benefit from it, it will be good) -
you can create a database schema per each branch you work on, and if needed to 
switch between branches, you don't have to destroy your current database.
Quite helpful, I must say , for someone who works 100% on engine related stuff.

Yair

 
 sorry I can't help with your curiosity .. my env quite simple
 
 Regards,
 Yaniv Bronhaim.
 
 ___
 Devel mailing list
 Devel@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/devel
 
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] What does your oVirt development environment look like?

2014-08-15 Thread Adam Litke

On 15/08/14 15:57 -0400, Yair Zaslavsky wrote:



- Original Message -

From: ybronhei ybron...@redhat.com
To: Adam Litke ali...@redhat.com, devel@ovirt.org
Sent: Friday, August 15, 2014 7:36:23 PM
Subject: Re: [ovirt-devel] What does your oVirt development environment look
like?

On 08/15/2014 09:32 AM, Adam Litke wrote:
 Ever since starting to work on oVirt around 3 years ago I've been
 striving for the perfect development and test environment.  I was
 inspired by Yaniv's recent deep dive on Foreman integration and
 thought I'd ask people to share their setups and any tips and tricks
 so we can all become better, more efficient developers.

 My setup consists of my main work laptop and two mini-Dell servers.  I
 run the engine on my laptop and I serve NFS and iSCSI (using
 targetcli) from this system as well.  I use the ethernet port on the
 laptop to connect it to a subnet with the two Dell systems.

 Some goals for my setup are:
 - Easy provisioning of the virt-hosts so I can quickly test on Fedora
and CentOS without spending lots of time reinstalling
 - Ability to test block and nfs storage
 - Automation of test scenarios involving engine and hosts

 To help me reach these goals I've deployed cobbler on my laptop and it
 does a pretty good job at managing PXE boot configurations for my
 hosts (and VMs) so they can be automatically intalled as needed.
 After viewing Yaniv's presentation, it seems that Forman/Puppet are
 the way of the future but it does seem a bit more involved to set up.
 I am definitely curious if others are using Foreman in their personal
 dev/test environment and can offer some insight on how that is working
 out.

 Thanks, and I look forward to reading about more of your setups!  If
 we get enough of these, maybe this could make a good section of the
 wiki.

Heppy to hear :) for those who missed -
https://www.youtube.com/watch?v=gozX891kYAY

each one has its own needs and goals I guess, but if you say it might
help, I'll never say no for sharing :P
I have 3 dells under my desk, I compile the engine a lot and its heavy
for my laptop. So I clone my local working directory and build it on the
strongest mini-dell using local jenkins server
(http://www.ovirt.org/Local_Jenkins_For_The_People). The other 2 I use
as hypervisor when needed. provision them is done by me manually :/..
cobbler pxe boot could help with already defined image..  Other then
that, I have nfs mount for storage and few vms for compilation and small
tests


Haven't used Jenkins for the people for quite some time, it's
awesome though.  Yaniv, does your Jenkins build all your local
branches?  I don't have much to share, my environment is even
simpler.  I am sure it's a common knowledge but still a reminder
(even if a new developer can benefit from it, it will be good) - you
can create a database schema per each branch you work on, and if
needed to switch between branches, you don't have to destroy your
current database.  Quite helpful, I must say , for someone who works
100% on engine related stuff.


Thanks for sharing... How do you manage your multiple db schemas?
Just with the engine-backup and engine-restore commands?


--
Adam Litke
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] What does your oVirt development environment look like?

2014-08-15 Thread Adam Litke

On 15/08/14 16:20 -0400, Alon Bar-Lev wrote:



- Original Message -

From: Adam Litke ali...@redhat.com
To: Yair Zaslavsky yzasl...@redhat.com
Cc: devel@ovirt.org
Sent: Friday, August 15, 2014 11:17:05 PM
Subject: Re: [ovirt-devel] What does your oVirt development environment look 
like?

On 15/08/14 15:57 -0400, Yair Zaslavsky wrote:


- Original Message -
 From: ybronhei ybron...@redhat.com
 To: Adam Litke ali...@redhat.com, devel@ovirt.org
 Sent: Friday, August 15, 2014 7:36:23 PM
 Subject: Re: [ovirt-devel] What does your oVirt development environment
 look   like?

 On 08/15/2014 09:32 AM, Adam Litke wrote:
  Ever since starting to work on oVirt around 3 years ago I've been
  striving for the perfect development and test environment.  I was
  inspired by Yaniv's recent deep dive on Foreman integration and
  thought I'd ask people to share their setups and any tips and tricks
  so we can all become better, more efficient developers.
 
  My setup consists of my main work laptop and two mini-Dell servers.  I
  run the engine on my laptop and I serve NFS and iSCSI (using
  targetcli) from this system as well.  I use the ethernet port on the
  laptop to connect it to a subnet with the two Dell systems.
 
  Some goals for my setup are:
  - Easy provisioning of the virt-hosts so I can quickly test on Fedora
 and CentOS without spending lots of time reinstalling
  - Ability to test block and nfs storage
  - Automation of test scenarios involving engine and hosts
 
  To help me reach these goals I've deployed cobbler on my laptop and it
  does a pretty good job at managing PXE boot configurations for my
  hosts (and VMs) so they can be automatically intalled as needed.
  After viewing Yaniv's presentation, it seems that Forman/Puppet are
  the way of the future but it does seem a bit more involved to set up.
  I am definitely curious if others are using Foreman in their personal
  dev/test environment and can offer some insight on how that is working
  out.
 
  Thanks, and I look forward to reading about more of your setups!  If
  we get enough of these, maybe this could make a good section of the
  wiki.
 
 Heppy to hear :) for those who missed -
 https://www.youtube.com/watch?v=gozX891kYAY

 each one has its own needs and goals I guess, but if you say it might
 help, I'll never say no for sharing :P
 I have 3 dells under my desk, I compile the engine a lot and its heavy
 for my laptop. So I clone my local working directory and build it on the
 strongest mini-dell using local jenkins server
 (http://www.ovirt.org/Local_Jenkins_For_The_People). The other 2 I use
 as hypervisor when needed. provision them is done by me manually :/..
 cobbler pxe boot could help with already defined image..  Other then
 that, I have nfs mount for storage and few vms for compilation and small
 tests

Haven't used Jenkins for the people for quite some time, it's
awesome though.  Yaniv, does your Jenkins build all your local
branches?  I don't have much to share, my environment is even
simpler.  I am sure it's a common knowledge but still a reminder
(even if a new developer can benefit from it, it will be good) - you
can create a database schema per each branch you work on, and if
needed to switch between branches, you don't have to destroy your
current database.  Quite helpful, I must say , for someone who works
100% on engine related stuff.

Thanks for sharing... How do you manage your multiple db schemas?
Just with the engine-backup and engine-restore commands?


just create N empty databases, install each environment to different PREFIX and 
when running engine-setup select one for each environment.


Even better.  Thank you!


refer to README.developer at engine repo.

BTW: with proper listen ports customization, you can even have N engine 
instances running at same machine at same time.

Alon


--
Adam Litke
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel