[Engine-devel] ovirt node

2013-01-23 Thread David Michel (ODEC Ltd.)
hi 
  
i cannot add ovirt node to ovirt-engine 
ssh error occur although i can connect to the node using ssh from
engine machine 
please i need your help to solve this issue 

thanks 
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] ovirt node

2013-01-23 Thread Laszlo Hornyak
hi David,

Could you share your engine log and version?
Also, the users mailing list may be better for this thread.

Laszlo

- Original Message -
> From: "David Michel (ODEC Ltd.)" 
> To: engine-devel@ovirt.org
> Sent: Wednesday, January 23, 2013 12:31:41 PM
> Subject: [Engine-devel] ovirt node
> 
> 
> hi
> 
> i cannot add ovirt node to ovirt-engine
> ssh error occur although i can connect to the node using ssh from
> engine machine
> please i need your help to solve this issue
> 
> thanks
> ___
> Engine-devel mailing list
> Engine-devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
> 
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


[Engine-devel] ovirt engine sdk

2013-01-23 Thread navin p
Hi,
I've written the following python program after configuring ovirt.


from ovirtsdk.xml import params
from ovirtsdk.api import API



api=API(url='http://XYZ:80',username='ABC',password='123')

print "\n**VMS\n"

vmlist = api.vms.list()
hostlist = api.hosts.list()
evenlist = api.events.list();


for vm in vmlist:
print vm.name,vm.memory,vm.id,vm.os.kernel,vm.cluster.id,vm.start_time

print "\n**HOSTS \n"

for host in hostlist:
print host.name

#print "\n**EVENTS \n"

#for evt in evenlist:
 #   print evt.description

It prints the output as

*VMS

fedora18 2147483648 3e4634b7-82a9-4c4f-8599-0f9092a9258e None
99408929-82cf-4dc7-a532-9d998063fa95 None
testdtop1 536870912 c256a1d9-2e3f-42e8-9020-6d08d21d2d73 None
99408929-82cf-4dc7-a532-9d998063fa95 2013-01-23T09:59:36.726Z
testvm1 268435456 f6b2a97d-34b2-4a62-adae-ac0504b96558 None
99408929-82cf-4dc7-a532-9d998063fa95 2013-01-23T09:55:06.727Z
testvmfedora18 536870912 25c14ee6-65dd-4785-af0c-a8df3f87573f None
99408929-82cf-4dc7-a532-9d998063fa95 None

**HOSTS 

omwin.ind.hp.com

Now i want to get the statistics for each vm like the memory used and
memory installed etc in python. How do i go about getting them ? Do we have
something like a header file in C or C++ where i can see the member
variables and then get the statistics ?


Regards,
Navin
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] ovirt engine sdk

2013-01-23 Thread Michael Pasternak

Hi Navin,

On 01/23/2013 01:54 PM, navin p wrote:
> Hi,
> I've written the following python program after configuring ovirt.
> 
> 
> from ovirtsdk.xml import params
> from ovirtsdk.api import API
> 
> 
> 
> api=API(url='http://XYZ:80',username='ABC',password='123')
> 
> print "\n**VMS\n"
> 
> vmlist = api.vms.list()
> hostlist = api.hosts.list()
> evenlist = api.events.list();
> 
> 
> for vm in vmlist:
> print vm.name ,vm.memory,vm.id 
> ,vm.os.kernel,vm.cluster.id ,vm.start_time
>   
> print "\n**HOSTS \n"
> 
> for host in hostlist:
> print host.name 
> 
> #print "\n**EVENTS \n"
> 
> #for evt in evenlist:
>  #   print evt.description
> 
> It prints the output as 
> 
> *VMS
> 
> fedora18 2147483648 3e4634b7-82a9-4c4f-8599-0f9092a9258e None 
> 99408929-82cf-4dc7-a532-9d998063fa95 None
> testdtop1 536870912 c256a1d9-2e3f-42e8-9020-6d08d21d2d73 None 
> 99408929-82cf-4dc7-a532-9d998063fa95 2013-01-23T09:59:36.726Z
> testvm1 268435456 f6b2a97d-34b2-4a62-adae-ac0504b96558 None 
> 99408929-82cf-4dc7-a532-9d998063fa95 2013-01-23T09:55:06.727Z
> testvmfedora18 536870912 25c14ee6-65dd-4785-af0c-a8df3f87573f None 
> 99408929-82cf-4dc7-a532-9d998063fa95 None
> 
> **HOSTS 
> 
> omwin.ind.hp.com 
> 
> Now i want to get the statistics for each vm like the memory used and memory 
> installed etc in python. How do i go about getting them ? 

vm object has statistics sub-collection, you can access it by: 
vm.statistics.list(),

> Do we have something like a header
> file in C or C++ where i can see the member variables and then get the 
> statistics ?

in python, you can see object's attributes by accessing 
__dict__/__getattr__/dir(object)/etc.,
vm.__dict__ will do the job for you, however i'd suggest you using some IDE 
(i'm using Eclipse + PyDev plugin),
this way you'll be able accessing object attributes simply by Ctrl+SPACE 
auto-completion.

> 
> 
> Regards,
> Navin
> 
> 
> 
> ___
> Engine-devel mailing list
> Engine-devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] ovirt engine sdk

2013-01-23 Thread navin p
Hi Michael,

Thanks for your help.

On Wed, Jan 23, 2013 at 6:15 PM, Michael Pasternak wrote:

>
>
> in python, you can see object's attributes by accessing
> __dict__/__getattr__/dir(object)/etc.,
> vm.__dict__ will do the job for you, however i'd suggest you using some
> IDE (i'm using Eclipse + PyDev plugin),
> this way you'll be able accessing object attributes simply by Ctrl+SPACE
> auto-completion.
>
>   Do i have import something for Ctrl+SPACE to work ? It doesn't work for
me atleast for list attributes.

for vm in vmlist:
print vm.name,vm.memory,vm.id,vm.os.kernel,vm.cluster.id,vm.start_time
#print help(vm.statistics.list())
vmslist = vm.statistics.list()
for i in vmslist:
   print i.get_name()

prints

memory.installed
memory.used
cpu.current.guest
cpu.current.hypervisor
cpu.current.total

but i need the values of memory.installed and memory.used .

Also where do i get the Java SDK and jars ? I looked at maven but it was
1.0 version of SDK.


Regards,
Navin
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] ovirt engine sdk

2013-01-23 Thread Michael Pasternak
On 01/23/2013 03:53 PM, navin p wrote:
> Hi Michael,
>  
> Thanks for your help.
> 
> On Wed, Jan 23, 2013 at 6:15 PM, Michael Pasternak  > wrote:
> 
> 
> 
> in python, you can see object's attributes by accessing 
> __dict__/__getattr__/dir(object)/etc.,
> vm.__dict__ will do the job for you, however i'd suggest you using some 
> IDE (i'm using Eclipse + PyDev plugin),
> this way you'll be able accessing object attributes simply by Ctrl+SPACE 
> auto-completion.
> 
>   Do i have import something for Ctrl+SPACE to work ? It doesn't work for me 
> atleast for list attributes.
> 
> for vm in vmlist:
> print vm.name ,vm.memory,vm.id 
> ,vm.os.kernel,vm.cluster.id ,vm.start_time
> #print help(vm.statistics.list())
> vmslist = vm.statistics.list()
> for i in vmslist:
>print i.get_name()
> 
> prints
> 
> memory.installed
> memory.used
> cpu.current.guest
> cpu.current.hypervisor
> cpu.current.total
> 
> but i need the values of memory.installed and memory.used .

statistic holders are complex types, you can fetch data by:

i.unit // the unit of the holder data
i.values.value[0].datum // actual data


> 
> Also where do i get the Java SDK and jars ? I looked at maven but it was 1.0 
> version of SDK.

central repo has 1.0.0.2-1, see [1], deployment details can be found at [2], 
wiki at [3].

[1] http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.ovirt.engine.sdk%22
[2] http://www.ovirt.org/Java-sdk#Maven_deployment
[3] http://www.ovirt.org/Java-sdk

> 
> 
> Regards,
> Navin 


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


[Engine-devel] default Vm memory size

2013-01-23 Thread Laszlo Hornyak
Hi,

The default Vm size is 512 MB now. I think A bit more could be useful, e.g. a 
fedora installer won't start with 512 MB.
What about 1024 MB?

thx,
Laszlo
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] default Vm memory size

2013-01-23 Thread Roy Golan

On 01/23/2013 04:34 PM, Laszlo Hornyak wrote:

Hi,

The default Vm size is 512 MB now. I think A bit more could be useful, e.g. a 
fedora installer won't start with 512 MB.
What about 1024 MB?
Upcoming "Instance Types" would be the means to handle that rather than 
the "Blank" template.
Also there's work around integrating libosinfo for validating for 
minimum RAM per guest OS.


thx,
Laszlo
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] default Vm memory size

2013-01-23 Thread Itamar Heim

On 23/01/2013 07:00, Roy Golan wrote:

On 01/23/2013 04:34 PM, Laszlo Hornyak wrote:

Hi,

The default Vm size is 512 MB now. I think A bit more could be useful,
e.g. a fedora installer won't start with 512 MB.
What about 1024 MB?

Upcoming "Instance Types" would be the means to handle that rather than
the "Blank" template.
Also there's work around integrating libosinfo for validating for
minimum RAM per guest OS.


but until then, why not change the default to 1GB which i hope is a one 
liner?

___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


[Engine-devel] 3.2 features for release notes

2013-01-23 Thread Cheryn Tan
Hi all,

I'm preparing the oVirt 3.2 release notes, starting with the features listed 
here: http://www.ovirt.org/OVirt_3.2_release-management#Features

Can you please go through the list, and reply to this thread if:
a) There are features being released for 3.2 which should be documented, but 
are not on the list; or
b) Some of the planned features on this list are not being released for 3.2; or
c) Some of the features on this list are being released for 3.2, but should not 
be documented.

For features which aren't on the wiki, please send a short description or 
Bugzilla numbers of each feature.

Please reply no later than Jan 28.

Thank you very much for your help!
Cheryn
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel