Re: [ovirt-users] How to automate the ovirt host deployment?

2016-06-03 Thread Arman Khalatyan
Yes for sure, as you can see the options in foreman: 28. [\u2713] Configure
foreman_compute_ovirt



***

 Dr. Arman Khalatyan  eScience -SuperComputing
 Leibniz-Institut für Astrophysik Potsdam (AIP)
 An der Sternwarte 16, 14482 Potsdam, Germany

***

On Fri, Jun 3, 2016 at 9:33 AM, Barak Korren  wrote:

> >
> > You should be able to see the hosts from ovirt interface.
> > I was not able to add an auto-discovered hosts to ovirt it always trows
> an exception: Failed to add Host  (User: admin@internal).
> probably it is a bug.
>
> Did you add the oVirt provision plugin to Foreman? You probably need it
> for this to work.
> If you did then please submit a bug to oVirt bugzilla.
> >
> Thanks,
> Barak
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-06-03 Thread Barak Korren
>
> You should be able to see the hosts from ovirt interface.
> I was not able to add an auto-discovered hosts to ovirt it always trows
an exception: Failed to add Host  (User: admin@internal). probably
it is a bug.

Did you add the oVirt provision plugin to Foreman? You probably need it for
this to work.
If you did then please submit a bug to oVirt bugzilla.
>
Thanks,
Barak
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-06-02 Thread Arman Khalatyan
After few days playing with ovirt+foreman I can now deploy bare metal with
foreman and attach it to ovirt.
Over all it works, but there are some points to mention to beginners like
me:

a) To make a auto discovery ,ovirt and deployment working together one
should enable in "foreman-installer -i" following modules:
1. [\u2713] Configure foreman
2. [\u2713] Configure foreman_cli
3. [\u2713] Configure foreman_proxy
4. [\u2713] Configure puppet
6. [\u2713] Configure foreman_plugin_bootdisk
10. [\u2713] Configure foreman_plugin_dhcp_browser
12. [\u2713] Configure foreman_plugin_discovery
21. [\u2713] Configure foreman_plugin_setup
23. [\u2713] Configure foreman_plugin_templates
28. [\u2713] Configure foreman_compute_ovirt
33. [\u2713] Configure foreman_proxy_plugin_discovery

b) next follow the documentation:
http://www.ovirt.org/develop/release-management/features/foreman/foremanintegration/

You should be able to see the hosts from ovirt interface.
I was not able to add an auto-discovered hosts to ovirt it always trows an
exception: Failed to add Host  (User: admin@internal). probably it
is a bug.

In order to add the hosts: first I provisioned the auto-discovered hosts
with foreman to centos7 then over the gui in . Important here to add into
installation template the path to ovirt repository:

yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release36.rpm

If your provisioned host does not know the repository you cannot add the
foreman host from the ovirt gui.




***

 Dr. Arman Khalatyan  eScience -SuperComputing
 Leibniz-Institut für Astrophysik Potsdam (AIP)
 An der Sternwarte 16, 14482 Potsdam, Germany

***

On Tue, May 31, 2016 at 8:03 PM, Arman Khalatyan  wrote:

> Nice! Finally no sad face anymore:)
> I am testing centos 7.2, with foreman 1.11
>
> Testing  now with unattended installations on multiple vms. Works like a
> charm:)
> Later will try on baremetals.
> I need to learn how to write templates.
>
>
> Den 30 maj 2016 22:22 skrev Arman Khalatyan :
> >
> > Sorry for the previous empty email.
> >
> > I was testing foreman plugins for ovirt deploy. They are some how
> broken. The foreman-install --enable-ovirt-provisioning-plugin breaks the
> foreman installation. I need to dig deeper:(
>
> Don't know what distribution you're using but setting all up manually
> showed me that Foreman needs to be at at least 11 for the plugin to work.
> Otherwise it behaved in the same way for me; all fine and well until the
> provision plugin was installed and then *sadface* :)
>
> Get Foreman up to version 11 and you'll be fine, is my guess.
>
> /K
> >
> > Am 28.05.2016 4:07 nachm. schrieb "Yaniv Kaul" :
> >>
> >> >
> >
> > >
> > >
> > > On Sat, May 28, 2016 at 12:50 PM, Arman Khalatyan 
> wrote:
> >>
> >> >>
> >
> > >> Thank you for the hint. I will try next week.
> > >> Foreman looks quite complex:)
> > >
> > >
> > > I think this is an excellent suggestion - Foreman, while may take a
> while to set up, will also be extremely useful to provision and manage not
> only hosts, but VMs later on!
> > >
> >>
> >> >> I would prefer simple Python script with 4 lines: add, install,
> setup networks and activate.
> >
> >
> > >
> > >
> > > You can look at ovirt-system-tests , the testing suite for oVirt, on
> Python code for the above.
> > > Y.
> > >
> >>
> >>
> > >>
> > >> Am 27.05.2016 6:51 nachm. schrieb "Karli Sjöberg" <
> karli.sjob...@slu.se>:
> >>
> >> >>>
> >
> > >>>
> > >>> Den 27 maj 2016 18:41 skrev Arman Khalatyan :
> > >>> >
> > >>> > Hi, I am looking some method to automate the host deployments in a
> cluster environment.
> > >>> > Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is
> it possible to automate installation with ovirt-sdk?
> > >>> > Are there some examples  ?
> > >>>
> > >>> You could do that, or look into full life cycle management with The
> Foreman.
> > >>>
> > >>> /K
> > >>>
> > >>> >
> > >>> > Thanks,
> > >>> > Arman.
> > >>
> > >>
> > >> ___
> > >> Users mailing list
> > >> Users@ovirt.org
> > >> http://lists.ovirt.org/mailman/listinfo/users
> > >>
> > >
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-05-31 Thread Arman Khalatyan
Nice! Finally no sad face anymore:)
I am testing centos 7.2, with foreman 1.11

Testing  now with unattended installations on multiple vms. Works like a
charm:)
Later will try on baremetals.
I need to learn how to write templates.


Den 30 maj 2016 22:22 skrev Arman Khalatyan :
>
> Sorry for the previous empty email.
>
> I was testing foreman plugins for ovirt deploy. They are some how broken.
The foreman-install --enable-ovirt-provisioning-plugin breaks the foreman
installation. I need to dig deeper:(

Don't know what distribution you're using but setting all up manually
showed me that Foreman needs to be at at least 11 for the plugin to work.
Otherwise it behaved in the same way for me; all fine and well until the
provision plugin was installed and then *sadface* :)

Get Foreman up to version 11 and you'll be fine, is my guess.

/K
>
> Am 28.05.2016 4:07 nachm. schrieb "Yaniv Kaul" :
>>
>> >
>
> >
> >
> > On Sat, May 28, 2016 at 12:50 PM, Arman Khalatyan 
wrote:
>>
>> >>
>
> >> Thank you for the hint. I will try next week.
> >> Foreman looks quite complex:)
> >
> >
> > I think this is an excellent suggestion - Foreman, while may take a
while to set up, will also be extremely useful to provision and manage not
only hosts, but VMs later on!
> >
>>
>> >> I would prefer simple Python script with 4 lines: add, install, setup
networks and activate.
>
>
> >
> >
> > You can look at ovirt-system-tests , the testing suite for oVirt, on
Python code for the above.
> > Y.
> >
>>
>>
> >>
> >> Am 27.05.2016 6:51 nachm. schrieb "Karli Sjöberg" :
>>
>> >>>
>
> >>>
> >>> Den 27 maj 2016 18:41 skrev Arman Khalatyan :
> >>> >
> >>> > Hi, I am looking some method to automate the host deployments in a
cluster environment.
> >>> > Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is it
possible to automate installation with ovirt-sdk?
> >>> > Are there some examples  ?
> >>>
> >>> You could do that, or look into full life cycle management with The
Foreman.
> >>>
> >>> /K
> >>>
> >>> >
> >>> > Thanks,
> >>> > Arman.
> >>
> >>
> >> ___
> >> Users mailing list
> >> Users@ovirt.org
> >> http://lists.ovirt.org/mailman/listinfo/users
> >>
> >
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-05-31 Thread Jiří Sléžka

Dne 30.5.2016 v 22:22 Arman Khalatyan napsal(a):

Sorry for the previous empty email.

I was testing foreman plugins for ovirt deploy. They are some how
broken. The foreman-install --enable-ovirt-provisioning-plugin breaks
the foreman installation. I need to dig deeper:(


hello,

I had similar problem but guys from foreman's irc channel told me that 
ovirt-provisioning-plugin is broken (has no active developers) but is 
not needed. All you need is ovirt compute node which works well and is 
supported.


cheers, Jiri



Am 28.05.2016 4:07 nachm. schrieb "Yaniv Kaul" >:

>




On Sat, May 28, 2016 at 12:50 PM, Arman Khalatyan > wrote:

>>


Thank you for the hint. I will try next week.
Foreman looks quite complex:)



I think this is an excellent suggestion - Foreman, while may take a

while to set up, will also be extremely useful to provision and manage
not only hosts, but VMs later on!




>> I would prefer simple Python script with 4 lines: add, install,
setup networks and activate.





You can look at ovirt-system-tests , the testing suite for oVirt, on

Python code for the above.

Y.






Am 27.05.2016 6:51 nachm. schrieb "Karli Sjöberg"

>:

>>>



Den 27 maj 2016 18:41 skrev Arman Khalatyan >:

>
> Hi, I am looking some method to automate the host deployments in a

cluster environment.

> Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is

it possible to automate installation with ovirt-sdk?

> Are there some examples  ?

You could do that, or look into full life cycle management with The

Foreman.


/K

>
> Thanks,
> Arman.



___
Users mailing list
Users@ovirt.org 
http://lists.ovirt.org/mailman/listinfo/users










___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



<>

smime.p7s
Description: Elektronicky podpis S/MIME
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-05-31 Thread Fabrice Bacchella

> Le 28 mai 2016 à 11:50, Arman Khalatyan  a écrit :
> 
> Thank you for the hint. I will try next week. 
> Foreman looks quite complex:)
> 
> I would prefer simple Python script with 4 lines: add, install, setup 
> networks and activate.
> 
You could have a look at my sample script:

https://github.com/fbacchella/ovirtcmd/blob/master/samples/noshared.py 


It use a custom library that wrap the official python sdk

It just expect that the engine have remote root ssh access on a new host, using 
public key.

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-05-30 Thread Karli Sjöberg

Den 30 maj 2016 22:22 skrev Arman Khalatyan :
>
> Sorry for the previous empty email.
>
> I was testing foreman plugins for ovirt deploy. They are some how broken. The 
> foreman-install --enable-ovirt-provisioning-plugin breaks the foreman 
> installation. I need to dig deeper:(

Don't know what distribution you're using but setting all up manually showed me 
that Foreman needs to be at at least 11 for the plugin to work. Otherwise it 
behaved in the same way for me; all fine and well until the provision plugin 
was installed and then *sadface* :)

Get Foreman up to version 11 and you'll be fine, is my guess.

/K
>
> Am 28.05.2016 4:07 nachm. schrieb "Yaniv Kaul" :
>>
>> >
>
> >
> >
> > On Sat, May 28, 2016 at 12:50 PM, Arman Khalatyan  wrote:
>>
>> >>
>
> >> Thank you for the hint. I will try next week.
> >> Foreman looks quite complex:)
> >
> >
> > I think this is an excellent suggestion - Foreman, while may take a while 
> > to set up, will also be extremely useful to provision and manage not only 
> > hosts, but VMs later on!
> >
>>
>> >> I would prefer simple Python script with 4 lines: add, install, setup 
>> >> networks and activate.
>
>
> >
> >
> > You can look at ovirt-system-tests , the testing suite for oVirt, on Python 
> > code for the above.
> > Y.
> >
>>
>>
> >>
> >> Am 27.05.2016 6:51 nachm. schrieb "Karli Sjöberg" :
>>
>> >>>
>
> >>>
> >>> Den 27 maj 2016 18:41 skrev Arman Khalatyan :
> >>> >
> >>> > Hi, I am looking some method to automate the host deployments in a 
> >>> > cluster environment.
> >>> > Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is it 
> >>> > possible to automate installation with ovirt-sdk?
> >>> > Are there some examples  ?
> >>>
> >>> You could do that, or look into full life cycle management with The 
> >>> Foreman.
> >>>
> >>> /K
> >>>
> >>> >
> >>> > Thanks,
> >>> > Arman.
> >>
> >>
> >> ___
> >> Users mailing list
> >> Users@ovirt.org
> >> http://lists.ovirt.org/mailman/listinfo/users
> >>
> >
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-05-30 Thread Arman Khalatyan
Sorry for the previous empty email.

I was testing foreman plugins for ovirt deploy. They are some how broken.
The foreman-install --enable-ovirt-provisioning-plugin breaks the foreman
installation. I need to dig deeper:(

Am 28.05.2016 4:07 nachm. schrieb "Yaniv Kaul" :

>

>
>
> On Sat, May 28, 2016 at 12:50 PM, Arman Khalatyan 
wrote:

>>

>> Thank you for the hint. I will try next week.
>> Foreman looks quite complex:)
>
>
> I think this is an excellent suggestion - Foreman, while may take a while
to set up, will also be extremely useful to provision and manage not only
hosts, but VMs later on!
>

>> I would prefer simple Python script with 4 lines: add, install, setup
networks and activate.


>
>
> You can look at ovirt-system-tests , the testing suite for oVirt, on
Python code for the above.
> Y.
>


>>
>> Am 27.05.2016 6:51 nachm. schrieb "Karli Sjöberg" :

>>>

>>>
>>> Den 27 maj 2016 18:41 skrev Arman Khalatyan :
>>> >
>>> > Hi, I am looking some method to automate the host deployments in a
cluster environment.
>>> > Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is it
possible to automate installation with ovirt-sdk?
>>> > Are there some examples  ?
>>>
>>> You could do that, or look into full life cycle management with The
Foreman.
>>>
>>> /K
>>>
>>> >
>>> > Thanks,
>>> > Arman.
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org 
>> http://lists.ovirt.org/mailman/listinfo/users

>>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-05-30 Thread Arman Khalatyan
Am 28.05.2016 4:07 nachm. schrieb "Yaniv Kaul" :

>

>
>
> On Sat, May 28, 2016 at 12:50 PM, Arman Khalatyan 
wrote:

>>

>> Thank you for the hint. I will try next week.
>> Foreman looks quite complex:)
>
>
> I think this is an excellent suggestion - Foreman, while may take a while
to set up, will also be extremely useful to provision and manage not only
hosts, but VMs later on!
>

>> I would prefer simple Python script with 4 lines: add, install, setup
networks and activate.


>
>
> You can look at ovirt-system-tests , the testing suite for oVirt, on
Python code for the above.
> Y.
>


>>
>> Am 27.05.2016 6:51 nachm. schrieb "Karli Sjöberg" :

>>>

>>>
>>> Den 27 maj 2016 18:41 skrev Arman Khalatyan :
>>> >
>>> > Hi, I am looking some method to automate the host deployments in a
cluster environment.
>>> > Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is it
possible to automate installation with ovirt-sdk?
>>> > Are there some examples  ?
>>>
>>> You could do that, or look into full life cycle management with The
Foreman.
>>>
>>> /K
>>>
>>> >
>>> > Thanks,
>>> > Arman.
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org 
>> http://lists.ovirt.org/mailman/listinfo/users

>>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-05-28 Thread Yaniv Kaul
On Sat, May 28, 2016 at 12:50 PM, Arman Khalatyan  wrote:

> Thank you for the hint. I will try next week.
> Foreman looks quite complex:)
>

I think this is an excellent suggestion - Foreman, while may take a while
to set up, will also be extremely useful to provision and manage not only
hosts, but VMs later on!

I would prefer simple Python script with 4 lines: add, install, setup
> networks and activate.
>

You can look at ovirt-system-tests , the testing suite for oVirt, on Python
code for the above.
Y.


> Am 27.05.2016 6:51 nachm. schrieb "Karli Sjöberg" :
>
>>
>> Den 27 maj 2016 18:41 skrev Arman Khalatyan :
>> >
>> > Hi, I am looking some method to automate the host deployments in a
>> cluster environment.
>> > Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is it
>> possible to automate installation with ovirt-sdk?
>> > Are there some examples  ?
>>
>> You could do that, or look into full life cycle management with The
>> Foreman.
>>
>> /K
>>
>> >
>> > Thanks,
>> > Arman.
>>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-05-28 Thread Karli Sjöberg

Den 28 maj 2016 11:50 skrev Arman Khalatyan :
>
> Thank you for the hint. I will try next week.
> Foreman looks quite complex:)

Well, yeah, it takes a while to get into. But once you're there, you'll notice 
there's a lot of stuff already been done for deploying new hosts[*], as well as 
boatloads more to make your life a lot easier! If anything, just for the 
"documentation" you get for using it that you don't have to write afterwards:)

/K

[*]: http://youtu.be/gozX891kYAY

>
> I would prefer simple Python script with 4 lines: add, install, setup 
> networks and activate.
>
> Am 27.05.2016 6:51 nachm. schrieb "Karli Sjöberg" :
>>
>>
>> Den 27 maj 2016 18:41 skrev Arman Khalatyan :
>> >
>> > Hi, I am looking some method to automate the host deployments in a cluster 
>> > environment.
>> > Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is it 
>> > possible to automate installation with ovirt-sdk?
>> > Are there some examples  ?
>>
>> You could do that, or look into full life cycle management with The Foreman.
>>
>> /K
>>
>> >
>> > Thanks,
>> > Arman.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-05-28 Thread Arman Khalatyan
Thank you for the hint. I will try next week.
Foreman looks quite complex:)

I would prefer simple Python script with 4 lines: add, install, setup
networks and activate.
Am 27.05.2016 6:51 nachm. schrieb "Karli Sjöberg" :

>
> Den 27 maj 2016 18:41 skrev Arman Khalatyan :
> >
> > Hi, I am looking some method to automate the host deployments in a
> cluster environment.
> > Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is it
> possible to automate installation with ovirt-sdk?
> > Are there some examples  ?
>
> You could do that, or look into full life cycle management with The
> Foreman.
>
> /K
>
> >
> > Thanks,
> > Arman.
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to automate the ovirt host deployment?

2016-05-27 Thread Karli Sjöberg

Den 27 maj 2016 18:41 skrev Arman Khalatyan :
>
> Hi, I am looking some method to automate the host deployments in a cluster 
> environment.
> Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is it possible 
> to automate installation with ovirt-sdk?
> Are there some examples  ?

You could do that, or look into full life cycle management with The Foreman.

/K

>
> Thanks,
> Arman.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] How to automate the ovirt host deployment?

2016-05-27 Thread Arman Khalatyan
Hi, I am looking some method to automate the host deployments in a cluster
environment.
Assuming we have 20 nodes with centos 7 eth0/eth1 configured. Is it
possible to automate installation with ovirt-sdk?
Are there some examples  ?

Thanks,
Arman.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users