[Engine-devel] 答复: ovirt-engine-sdk with C

2013-06-04 Thread wlbleaboy@126
Hi, Jarod. W:

Yes, I just want to use c to invoke ovirt engine RestAPI,

Just get vm’s id, host, port, secur-port, and ticket,

How can I use libcurl to connect https, could give me

a simple demo to connect https://{ovirt-engine}/api 
  with 

--cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt 
 

 

 

发件人: Jarod. w [mailto:work.iec23...@gmail.com] 
发送时间: 2013年5月14日 10:27
收件人: leaboy@126
抄送: engine-devel@ovirt.org
主题: Re: [Engine-devel] ovirt-engine-sdk with C

 

2013/5/13 leaboy@126 

Hi,All

 I felt oivrt-engine-sdk coded with Python is slowly to connect

ovirt-engine and console vm when a user have many vms, So, I just

want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk

with C to connect overt-engine and console vm, would anyone give 

me some suggestion.

Do you want to use c to invoke ovirt engine RestAPI, right?

If yes, you can use libcurl to do the thing, and it'll make you happy.

 

 

 Now, the problem is how can I connect to ovit-engine with C, and

how can I get some information of vms, and how ovirrt-engine can 

respond my action(start,stop, .eg)

Agree with Michael Pasternak.

You should parse your code into the mail list, or someone can't help

you.

 

 


Leaboy@beijing

 Thinks


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




-- 
---
Best Regards
Jarod.W

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


Re: [Engine-devel] Failed to configure management network on the host

2013-06-04 Thread Moti Asayag
On 06/04/2013 09:52 AM, Sahina Bose wrote:
> Hi Moti,
> 
> Not sure I understand your comment about host activation flow.
> commit bdd8966d97e1e02e775ee6f755d0a3637a668911  (engine: Remove mgmt
> network setup from host activation) is present in our code base, but we
> were not using the host activation flow.

Hi,

My fault, i had a different old thread in my mind.

The relevant part from the engine.log indicates that the host deployment
ended successfully, host was able to ping VDSM, but the first attempt to
run getVdsCaps on vdsm failed.

Could you add the relevant vdsm.log which contains the flow-ID 740c5292
which matches the same correlation-id from the engine.log ?


2013-06-03 20:06:49,638 INFO
[org.ovirt.engine.core.bll.InstallerMessages] (VdsDeploy) Installation
10.70.43.140: Stage: Termination
2013-06-03 20:06:49,881 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand]
(pool-4-thread-48) [740c5292] java.util.concurrent.ExecutionException:
java.lang.reflect.InvocationTargetException
2013-06-03 20:06:49,882 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand]
(pool-4-thread-48) [740c5292] Command PollVDS execution failed.
Exception: RuntimeException: java.util.concurrent.ExecutionException:
java.lang.reflect.InvocationTargetException
2013-06-03 20:06:50,382 INFO
[org.ovirt.engine.core.bll.network.NetworkConfigurator]
(pool-4-thread-48) [740c5292] Engine managed to communicate with VDSM
agent on host s2
2013-06-03 20:06:50,393 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand]
(pool-4-thread-48) [740c5292] Command CollectVdsNetworkDataVDS execution
failed. Exception: VDSNetworkException: java.net.ConnectException:
Connection refused

Thanks,
Moti

> 
> Here's what we tried to do.
> Add a host (with vdsm 4.10.2 installed) to engine (built from Jun 2
> upstream codebase).
> 
> The installation failed with "Failed to configure manamgent network on
> the host"
> 
> and the logs had this
> 
> 2013-06-03 19:49:03,390 INFO
> [org.ovirt.engine.core.bll.network.NetworkConfigurator]
> (pool-4-thread-50) [7bf46c88] Engine managed to communicate with VDSM
> agent on host s1
> 2013-06-03 19:49:03,412 ERROR
> [org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand]
> (pool-4-thread-50) [7bf46c88] Command CollectVdsNetworkDataVDS execution
> failed. Exception: VDSNetworkException: java.net.ConnectException:
> Connection refused
> 
> As Kanagaraj mentioned, reverting the Change Iaf82e104: engine:
> Allow engine to configure management network , fixed this issue.
> 
> From the flowchart on
> http://www.ovirt.org/Features/Normalized_ovirtmgmt_Initialization, it
> seems to fail on the "Configure Management Network (by setup networks)"
> action.
> 
> Any help on solving this would be appreciated.
> 
> thanks
> sahina
> 
> 
> 
> On 06/04/2013 11:53 AM, Moti Asayag wrote:
>> Hi,
>>
>> Same host activation flow should work on the master as well as the
>> management network will not be created as part of the host activation.
>> So reverted changes were already merged by commit
>> bdd8966d97e1e02e775ee6f755d0a3637a668911
>>
>> For more details about host installation see:
>> http://www.ovirt.org/Features/Normalized_ovirtmgmt_Initialization
>>
>> Thanks,
>> Moti
>>
>> See
>> On 06/04/2013 08:51 AM, Kanagaraj wrote:
>>> Host installation went through successfully after reverting the change
>>> eca95e192ebf3e1fe0e9440bb8fac694214ca8fd (Change Iaf82e104: engine:
>>> Allow engine to configure management network ).
>>>
>>> Thanks,
>>> Kanagaraj
>>>
>>> On 06/04/2013 12:23 AM, Dead Horse wrote:
 Seeing this as well but during host activation with latest master
 vdsm/engine.
 --> http://lists.ovirt.org/pipermail/engine-devel/2013-June/004752.html



 On Mon, Jun 3, 2013 at 9:45 AM, Kanagaraj >>> > wrote:

  Hi,

   After adding a host to a 3.2 cluster, bootstrap went through fine
  and in the end it failed with the following error.

  "Host s2 installation failed. Failed to configure manamgent
  network on the host."

  Attached engine.log and vdsm.log

  Vdsm rpms:
  vdsm-4.10.2-22.2.el6rhs.x86_64
  vdsm-python-4.10.2-22.2.el6rhs.x86_64
  vdsm-cli-4.10.2-22.2.el6rhs.noarch
  vdsm-gluster-4.10.2-22.2.el6rhs.noarch
  vdsm-xmlrpc-4.10.2-22.2.el6rhs.noarch

  Engine rpms: recent code from master

  Can someone please help in resolving this issue,

  Thanks,
  Kanagaraj

  ___
  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/eng

Re: [Engine-devel] ovirt-engine-sdk with C

2013-06-04 Thread David Jaša
Hi,

I'm not sure if it is applicable to your case, but there is incomplete
C/GObject implementation of oVirt SDK available here:
http://cgit.freedesktop.org/~teuf/govirt/
As far as I know, it's currently focused just on getting connection
details for VMs but I guess that more complete support for whole oVirt
API is just a matter of development...

David


leaboy@126 píše v Po 13. 05. 2013 v 18:17 +0800:
> Hi,All
> 
>  I felt oivrt-engine-sdk coded with Python is slowly to connect
> 
> ovirt-engine and console vm when a user have many vms, So, I just
> 
> want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk
> 
> with C to connect overt-engine and console vm, would anyone give 
> 
> me some suggestion.
> 
>  
> 
>  Now, the problem is how can I connect to ovit-engine with C, and
> 
> how can I get some information of vms, and how ovirrt-engine can 
> 
> respond my action(start,stop, .eg)
> 
>  
> 
> 
> Leaboy@beijing
> 
>  Thinks
> 
> ___
> Engine-devel mailing list
> Engine-devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel

-- 

David Jaša, RHCE

SPICE QE based in Brno
GPG Key: 22C33E24 
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24




smime.p7s
Description: S/MIME cryptographic signature
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Network Quality of Service 3.3 - Feature design

2013-06-04 Thread Livnat Peer
On 06/02/2013 09:58 AM, Ofri Masad wrote:
> Hi all,
> 
> A new Feature page for "Network Quality of Service" feature was published.
> 
> http://www.ovirt.org/Features/Design/Network_QoS
> 
> You are more than welcome to share you thoughts and insights.
> 


Hi Ofri,

Here is another suggestion for you to consider, this suggestion is
realted only to QoS on the VNIC level -

Introducing a new entity - VNIC Profile.
The VNIC profile would include all the properties of a VNIC:
 - network,
 - Qos,
 - Port mirroring,
 - custom properties

>From now on a user would choose a VNIC profile when he defines a VNIC
(instead of choosing a network and defining properties directly on the VNIC)

A network could have multiple profiles defined on it.

A User would need permissions to use a profile instead of the current
state that we require permission to use a network.

The benefits of this approach :

1. Limiting the user to a specific QoS on a network is easy you give the
user permission to use a specific profile.

2. A user can add a new VNIC but he would be limited to QoS defined on
the profile he is able to use (which eliminates the problem that a user
can add a VNIC to it's VM but won't get any bandwidth limitations).

3. An administrator does not add VNIC QoS properties on the network
entity (to serve as defaults) which are not relevant for non-VM network.

4. The network admin who creates the VNIC profile is also the one who
can configure the QoS to that Network.

5. The separation between user portal and admin portal is very clear, in
user portal we expose only the profile name and in the admin portal a
user can view the profile details.

6. We would leave custom properties also on the VNIC level not only the
profile level so a user can send VM specific data.

7.I can also describe upgrade path but maybe we should discuss the
general concept before diving into the details.


Livnat



> Thanks,
> Ofri.
> ___
> 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 with C

2013-06-04 Thread wlbleaboy@126
Hi Jarod.w :
Thanks very much, I'll try the codes.

And another thing about ovirt documents, I got a PDF doc from
http://www.ovirt.org/File:OVirt-API-CLI-SDK-2002.pdf , I want to
know is there any other documents about ovirt-engine VMSM ovirt-node
in website like  http://www.ovirt.org/File*** , sometimes , there con't
fint a link from ovirt.org webpage.

-邮件原件-
发件人: David Jaša [mailto:dj...@redhat.com] 
发送时间: 2013年6月4日 16:22
收件人: leaboy@126
抄送: engine-devel@ovirt.org
主题: Re: [Engine-devel] ovirt-engine-sdk with C

Hi,

I'm not sure if it is applicable to your case, but there is incomplete
C/GObject implementation of oVirt SDK available here:
http://cgit.freedesktop.org/~teuf/govirt/
As far as I know, it's currently focused just on getting connection
details for VMs but I guess that more complete support for whole oVirt
API is just a matter of development...

David


leaboy@126 píše v Po 13. 05. 2013 v 18:17 +0800:
> Hi,All
> 
>  I felt oivrt-engine-sdk coded with Python is slowly to connect
> 
> ovirt-engine and console vm when a user have many vms, So, I just
> 
> want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk
> 
> with C to connect overt-engine and console vm, would anyone give 
> 
> me some suggestion.
> 
>  
> 
>  Now, the problem is how can I connect to ovit-engine with C, and
> 
> how can I get some information of vms, and how ovirrt-engine can 
> 
> respond my action(start,stop, .eg)
> 
>  
> 
> 
> Leaboy@beijing
> 
>  Thinks
> 
> ___
> Engine-devel mailing list
> Engine-devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel

-- 

David Jaša, RHCE

SPICE QE based in Brno
GPG Key: 22C33E24 
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24




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


Re: [Engine-devel] 答复: ovirt-engine-sdk with C

2013-06-04 Thread Jarod. w
2013/6/4 wlbleaboy@126 

>  Hi, Jarod. W:
>
> Yes, I just want to use c to invoke ovirt engine RestAPI,
>
> Just get vm’s id, host, port, secur-port, and ticket,
>
> How can I use libcurl to connect https, could give me
>
> a simple demo to connect https://{ovirt-engine}/api with 
>
> --cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt
>
Please download the demo from the above url:
https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c


> 
>
> ** **
>
> ** **
>
> *发件人:* Jarod. w [mailto:work.iec23...@gmail.com]
> *发送时间:* 2013年5月14日 10:27
> *收件人:* leaboy@126
> *抄送:* engine-devel@ovirt.org
> *主题:* Re: [Engine-devel] ovirt-engine-sdk with C
>
> ** **
>
> 2013/5/13 leaboy@126 
>
>  Hi,All
>
>  I felt oivrt-engine-sdk coded with Python is slowly to connect***
> *
>
> ovirt-engine and console vm when a user have many vms, So, I just
>
> want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk
>
> with C to connect overt-engine and console vm, would anyone give 
>
> me some suggestion.
>
>  Do you want to use c to invoke ovirt engine RestAPI, right?
>
> If yes, you can use libcurl to do the thing, and it'll make you happy.
>
>  
>
>   
>
>  Now, the problem is how can I connect to ovit-engine with C, and*
> ***
>
> how can I get some information of vms, and how ovirrt-engine can 
>
> respond my action(start,stop, .eg)
>
> Agree with Michael Pasternak.
>
> You should parse your code into the mail list, or someone can't help
>
> you.
>
>  
>
>   
>
>
> Leaboy@beijing
>
>  Thinks***
> *
>
>
> ___
> Engine-devel mailing list
> Engine-devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
>
>
>
>
> --
> ---
> Best Regards
> Jarod.W
>



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


[Engine-devel] about govirt

2013-06-04 Thread wlbleaboy@126
Hi, cfergeau:

 Recently, I do something about ovirt-engine-sdk, I just want to 

console a vm via sdk, but I found the sdk implemented by python is

so slowly, so I want to build a simple sdk use C to do that,

 

 before I do it, I found the code govirt you worte, I felt luckly,
you 

had do that. So I got the code, but when I build it on ubuntu, it's failed

I used autogen.sh , but got the error message

like:

 configure: error: Package requirements (rest-0.7 >= 0.7.13) were
not met:

 

No package 'rest-0.7' found

 

 Because I didn't familiar with autogen and configure, such gnu
build tools,

 

 

 

 

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


Re: [Engine-devel] about govirt

2013-06-04 Thread David Jaša
wlbleaboy@126 píše v Út 04. 06. 2013 v 18:23 +0800:
> Hi, cfergeau:
> 
>  Recently, I do something about ovirt-engine-sdk, I just want to 
> 
> console a vm via sdk, but I found the sdk implemented by python is
> 
> so slowly, so I want to build a simple sdk use C to do that,
> 
>  
> 
>  before I do it, I found the code govirt you worte, I felt luckly,
> you 
> 
> had do that. So I got the code, but when I build it on ubuntu, it's failed
> 
> I used autogen.sh , but got the error message
> 
> like:
> 
>  configure: error: Package requirements (rest-0.7 >= 0.7.13) were
> not met:

IMO you should install librest-dev package on the development machine.

David

> 
>  
> 
> No package 'rest-0.7' found
> 
>  
> 
>  Because I didn't familiar with autogen and configure, such gnu
> build tools,
> 
>  
> 
> 
> 
> 
> 
> 
> 
> ___
> Engine-devel mailing list
> Engine-devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel

-- 

David Jaša, RHCE

SPICE QE based in Brno
GPG Key: 22C33E24 
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24




smime.p7s
Description: S/MIME cryptographic signature
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


[Engine-devel] Performance and scalability

2013-06-04 Thread Liran Zelkha
Hi all,

I've added a new feature page for Performance and Scalability. Please review 
and add your ideas... 
http://www.ovirt.org/Features/Performance_And_Scalability
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


[Engine-devel] ovirt-engine-sdk-java 1.0.0.7-1 released

2013-06-04 Thread Michael Pasternak

- updated storagedomain add()/update() docs
- updated tag update() docs
- enabled correct generation of Boolean getters/setters
  to enable Bean Introspection apis (bollean getters will
  be prefixed with getX())
- fixed docs for GlusterBricks add|update
- fixed docs for add|update Tag
- added [network.usages.usage] to ClusterNetworks
- in add TemplateNICs, network.id|name is no longer mandatory
- StorageDomainVM can be removed asynchronously now
- removed DataCenterQuota.add|delete (yet not supported)


More details can be found at [1].

[1] http://www.ovirt.org/Java-sdk-changelog


-- 

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] Performance and scalability

2013-06-04 Thread Laszlo Hornyak
Hi Liran,

Some comments to start the discussion:
- Caching: exactly how is this resultset caching going to work? Wouldnt it be 
more simple to just cache the mapped entities? The mapping is not a big 
overhead, but caching the resultset seems to be difficult.
- Batch updates: sounds cool, transactions are a major overhead on performance, 
so if you can make the update in a single tx and few interactions that will 
rock, but what if we keep the dynamic and statistic data in the memory at the 
first place and synchronize to DB on a background process. So that when you 
look for dynamic/statistics data, you do not have to hit the DB.

Thx,
Laszlo

- Original Message -
> From: "Liran Zelkha" 
> To: "engine-devel" 
> Sent: Tuesday, June 4, 2013 1:43:55 PM
> Subject: [Engine-devel] Performance and scalability
> 
> Hi all,
> 
> I've added a new feature page for Performance and Scalability. Please review
> and add your ideas...
> http://www.ovirt.org/Features/Performance_And_Scalability
> ___
> 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] Failed to configure management network on the host

2013-06-04 Thread Moti Asayag
Hi Sahina,

I was able to reproduce it on my setup, it seems that when a host was
already installed and the user re-installed it, it failed to check the
host availability.

I fixed the host polling by the engine by commit
5c03a936df3a09473f1a05b973680c02280d7a5c.

You can either build from master or wait for the nightly build.
Please let me know if there are more issues.

Thanks,
Moti

On 06/04/2013 12:03 PM, Sahina Bose wrote:
> Hi Moti,
> 
> Had to reproduce this again to get the logs. Attached both engine and
> vdsm logs.
> 
> engine:
> [org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand]
> (pool-4-thread-4) [59b99e5d] Command CollectVdsNetworkDataVDS execution
> failed. Exception: VDSNetworkException: java.net.ConnectException:
> Connection refused
> 
> vdsm (based on flow id 59b99e5d) - no entries found.
> 
> However there's a line (without any flowId) -
> Thread-13::DEBUG::2013-06-04
> 14:21:05,227::BindingXMLRPC::913::vds::(wrapper) client
> [10.70.42.245]::call getCapabilities with () {}
> 
> thanks
> sahina
> 
> 
> On 06/04/2013 01:45 PM, Moti Asayag wrote:
>> On 06/04/2013 09:52 AM, Sahina Bose wrote:
>>> Hi Moti,
>>>
>>> Not sure I understand your comment about host activation flow.
>>> commit bdd8966d97e1e02e775ee6f755d0a3637a668911  (engine: Remove mgmt
>>> network setup from host activation) is present in our code base, but we
>>> were not using the host activation flow.
>> Hi,
>>
>> My fault, i had a different old thread in my mind.
>>
>> The relevant part from the engine.log indicates that the host deployment
>> ended successfully, host was able to ping VDSM, but the first attempt to
>> run getVdsCaps on vdsm failed.
>>
>> Could you add the relevant vdsm.log which contains the flow-ID 740c5292
>> which matches the same correlation-id from the engine.log ?
>>
>>
>> 2013-06-03 20:06:49,638 INFO
>> [org.ovirt.engine.core.bll.InstallerMessages] (VdsDeploy) Installation
>> 10.70.43.140: Stage: Termination
>> 2013-06-03 20:06:49,881 ERROR
>> [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand]
>> (pool-4-thread-48) [740c5292] java.util.concurrent.ExecutionException:
>> java.lang.reflect.InvocationTargetException
>> 2013-06-03 20:06:49,882 ERROR
>> [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand]
>> (pool-4-thread-48) [740c5292] Command PollVDS execution failed.
>> Exception: RuntimeException: java.util.concurrent.ExecutionException:
>> java.lang.reflect.InvocationTargetException
>> 2013-06-03 20:06:50,382 INFO
>> [org.ovirt.engine.core.bll.network.NetworkConfigurator]
>> (pool-4-thread-48) [740c5292] Engine managed to communicate with VDSM
>> agent on host s2
>> 2013-06-03 20:06:50,393 ERROR
>> [org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand]
>>
>> (pool-4-thread-48) [740c5292] Command CollectVdsNetworkDataVDS execution
>> failed. Exception: VDSNetworkException: java.net.ConnectException:
>> Connection refused
>>
>> Thanks,
>> Moti
>>
>>> Here's what we tried to do.
>>> Add a host (with vdsm 4.10.2 installed) to engine (built from Jun 2
>>> upstream codebase).
>>>
>>> The installation failed with "Failed to configure manamgent network on
>>> the host"
>>>
>>> and the logs had this
>>>
>>> 2013-06-03 19:49:03,390 INFO
>>> [org.ovirt.engine.core.bll.network.NetworkConfigurator]
>>> (pool-4-thread-50) [7bf46c88] Engine managed to communicate with VDSM
>>> agent on host s1
>>> 2013-06-03 19:49:03,412 ERROR
>>> [org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataVDSCommand]
>>>
>>> (pool-4-thread-50) [7bf46c88] Command CollectVdsNetworkDataVDS execution
>>> failed. Exception: VDSNetworkException: java.net.ConnectException:
>>> Connection refused
>>>
>>> As Kanagaraj mentioned, reverting the Change Iaf82e104: engine:
>>> Allow engine to configure management network , fixed this issue.
>>>
>>>  From the flowchart on
>>> http://www.ovirt.org/Features/Normalized_ovirtmgmt_Initialization, it
>>> seems to fail on the "Configure Management Network (by setup networks)"
>>> action.
>>>
>>> Any help on solving this would be appreciated.
>>>
>>> thanks
>>> sahina
>>>
>>>
>>>
>>> On 06/04/2013 11:53 AM, Moti Asayag wrote:
 Hi,

 Same host activation flow should work on the master as well as the
 management network will not be created as part of the host activation.
 So reverted changes were already merged by commit
 bdd8966d97e1e02e775ee6f755d0a3637a668911

 For more details about host installation see:
 http://www.ovirt.org/Features/Normalized_ovirtmgmt_Initialization

 Thanks,
 Moti

 See
 On 06/04/2013 08:51 AM, Kanagaraj wrote:
> Host installation went through successfully after reverting the change
> eca95e192ebf3e1fe0e9440bb8fac694214ca8fd (Change Iaf82e104: engine:
> Allow engine to configure management network ).
>
> Thanks,
> Kanagaraj
>
> On 06/04/2013 12:23 AM, Dead Horse wrote:
>> Seeing this as well but during host activation wit

Re: [Engine-devel] Performance and scalability

2013-06-04 Thread Liran Zelkha
Hi Laszlo

I 100% agree with both of your remarks. 
Caching is caching the entities, but also attempting to cache the list of 
entities.
Batch updates is done as an infrastructure (change was reviewed and now in 
fixes) and after that - we can start using it everywhere.

- Original Message -
From: "Laszlo Hornyak" 
To: "Liran Zelkha" 
Cc: "engine-devel" 
Sent: Tuesday, June 4, 2013 5:01:37 PM
Subject: Re: [Engine-devel] Performance and scalability

Hi Liran,

Some comments to start the discussion:
- Caching: exactly how is this resultset caching going to work? Wouldnt it be 
more simple to just cache the mapped entities? The mapping is not a big 
overhead, but caching the resultset seems to be difficult.
- Batch updates: sounds cool, transactions are a major overhead on performance, 
so if you can make the update in a single tx and few interactions that will 
rock, but what if we keep the dynamic and statistic data in the memory at the 
first place and synchronize to DB on a background process. So that when you 
look for dynamic/statistics data, you do not have to hit the DB.

Thx,
Laszlo

- Original Message -
> From: "Liran Zelkha" 
> To: "engine-devel" 
> Sent: Tuesday, June 4, 2013 1:43:55 PM
> Subject: [Engine-devel] Performance and scalability
> 
> Hi all,
> 
> I've added a new feature page for Performance and Scalability. Please review
> and add your ideas...
> http://www.ovirt.org/Features/Performance_And_Scalability
> ___
> 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] about govirt

2013-06-04 Thread Christophe Fergeau
On Tue, Jun 04, 2013 at 12:42:07PM +0200, David Jaša wrote:
> wlbleaboy@126 píše v Út 04. 06. 2013 v 18:23 +0800:
> > Hi, cfergeau:
> > 
> >  Recently, I do something about ovirt-engine-sdk, I just want to 
> > 
> > console a vm via sdk, but I found the sdk implemented by python is
> > 
> > so slowly, so I want to build a simple sdk use C to do that,
> > 
> >  
> > 
> >  before I do it, I found the code govirt you worte, I felt luckly,
> > you 
> > 
> > had do that. So I got the code, but when I build it on ubuntu, it's failed
> > 
> > I used autogen.sh , but got the error message
> > 
> > like:
> > 
> >  configure: error: Package requirements (rest-0.7 >= 0.7.13) were
> > not met:
> 
> IMO you should install librest-dev package on the development machine.

Yes, that should do it. Keep in mind that 0.7.13 is a fairly recent
version, so if this still does not work, double-check what was installed.

Christophe


pgpiLztxktxGf.pgp
Description: PGP signature
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] about govirt

2013-06-04 Thread Itamar Heim

On 06/04/2013 01:23 PM, wlbleaboy@126 wrote:

Hi, cfergeau:

  Recently, I do something about ovirt-engine-sdk, I just want to

console a vm via sdk, but I found the sdk implemented by python is

so slowly, so I want to build a simple sdk use C to do that,


Can you please share more info on what do you mean by "slow"?

Thanks,
   Itamar



  before I do it, I found the code govirt you worte, I felt
luckly, you

had do that. So I got the code, but when I build it on ubuntu, it’s failed

I used autogen.sh , but got the error message

like:

  configure: error: Package requirements (rest-0.7 >= 0.7.13)
were not met:

No package 'rest-0.7' found

  Because I didn’t familiar with autogen and configure, such gnu
build tools,



___
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] ovirt-engine-sdk with C

2013-06-04 Thread wlbleaboy@126
Hi, Jarod. W:

 I got your demo, and a build libcurl, but I can’t get any info

from https://{ovirt-engine }/api .

my code like this:

int main(void)

{

CURL *curl;

CURLcode res;

curl = curl_easy_init();

 

if (curl)

{

printf("enter\n");

curl_easy_setopt(curl, CURLOPT_URL, "https://192.168.1.201/api";);

curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callback_func);

curl_easy_setopt(curl, CURLOPT_USERPWD, "admin@internal:11");

curl_easy_setopt(curl, CURLOPT_CAINFO,"/tmp/ca.crt");

curl_easy_perform(curl);

printf("exit.\n");

 

curl_easy_cleanup(curl);

}

 

return 0;

}

 

And when I run it, just outpu :

enter

exit.

 

I got the libcurl from http://curl.haxx.se/download.html 
  and 
chosed curl-7.30.0.tar.gz

and I use make and make install without any other options . I just guess maybe 
it need

other SSL library supported, but I don’t know how and which .

 

发件人: Jarod. w [mailto:work.iec23...@gmail.com] 
发送时间: 2013年6月4日 18:14
收件人: wlbleaboy@126
抄送: engine-devel@ovirt.org
主题: Re: 答复: [Engine-devel] ovirt-engine-sdk with C

 

2013/6/4 wlbleaboy@126 

Hi, Jarod. W:

Yes, I just want to use c to invoke ovirt engine RestAPI,

Just get vm’s id, host, port, secur-port, and ticket,

How can I use libcurl to connect https, could give me

a simple demo to connect https://{ovirt-engine}/api 
  with 

--cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt 
 

Please download the demo from the above url:
https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c
 

 

 

发件人: Jarod. w [mailto:work.iec23...@gmail.com] 
发送时间: 2013年5月14日 10:27
收件人: leaboy@126
抄送: engine-devel@ovirt.org
主题: Re: [Engine-devel] ovirt-engine-sdk with C

 

2013/5/13 leaboy@126 

Hi,All

 I felt oivrt-engine-sdk coded with Python is slowly to connect

ovirt-engine and console vm when a user have many vms, So, I just

want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk

with C to connect overt-engine and console vm, would anyone give 

me some suggestion.

Do you want to use c to invoke ovirt engine RestAPI, right?

If yes, you can use libcurl to do the thing, and it'll make you happy.

 

 

 Now, the problem is how can I connect to ovit-engine with C, and

how can I get some information of vms, and how ovirrt-engine can 

respond my action(start,stop, .eg)

Agree with Michael Pasternak.

You should parse your code into the mail list, or someone can't help

you.

 

 


Leaboy@beijing

 Thinks


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




-- 
---
Best Regards
Jarod.W




-- 
---
Best Regards
Jarod.W

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


Re: [Engine-devel] ovirt-engine-sdk with C

2013-06-04 Thread Jarod. w
2013/6/5 wlbleaboy@126 

>  Hi, Jarod. W:
>
>  I got your demo, and a build libcurl, but I can’t get any info***
> *
>
> from https://{ovirt-engine }/api .
>
> my code like this:
>
Please try to run the below command:
--
curl https://YOURIP/api -u YOURNAME:YOURPASSWD --cacert /root/ca.crt
--
After, please parse the result.

ps, I run the program on centos 6.4, and it works.

thanks.


> 
>
> int main(void)
>
> {
>
> CURL *curl;
>
> CURLcode res;
>
> curl = curl_easy_init();
>
> ** **
>
> if (curl)
>
> {
>
> printf("enter\n");
>
> curl_easy_setopt(curl, CURLOPT_URL, "*https://192.168.1.201/api*
> ");
>
> curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callback_func);
>
> curl_easy_setopt(curl, CURLOPT_USERPWD, "*admin@internal:11*
> ");
>
> curl_easy_setopt(curl, CURLOPT_CAINFO,"*/tmp/ca.crt*");
>
> curl_easy_perform(curl);
>
> printf("exit.\n");
>
> ** **
>
> curl_easy_cleanup(curl);
>
> }
>
> ** **
>
> return 0;
>
> }
>
> ** **
>
> And when I run it, just outpu :
>
> *enter*
>
> *exit.*
>
> ** **
>
> I got the libcurl from http://curl.haxx.se/download.html and chosed
> curl-7.30.0.tar.gz
> 
>
> and I use make and make install without any other options . I just guess
> maybe it need
>
> other SSL library supported, but I don’t know how and which .
>
> ** **
>
> *发件人:* Jarod. w [mailto:work.iec23...@gmail.com]
> *发送时间:* 2013年6月4日 18:14
> *收件人:* wlbleaboy@126
> *抄送:* engine-devel@ovirt.org
> *主题:* Re: 答复: [Engine-devel] ovirt-engine-sdk with C
>
>  ** **
>
> 2013/6/4 wlbleaboy@126 
>
>  Hi, Jarod. W:
>
> Yes, I just want to use c to invoke ovirt engine RestAPI,
>
> Just get vm’s id, host, port, secur-port, and ticket,
>
> How can I use libcurl to connect https, could give me
>
> a simple demo to connect https://{ovirt-engine}/api with 
>
> --cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt
>
>  Please download the demo from the above url:
> https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c
>  
>
>   
>
>  
>
> *发件人:* Jarod. w [mailto:work.iec23...@gmail.com]
> *发送时间:* 2013年5月14日 10:27
> *收件人:* leaboy@126
> *抄送:* engine-devel@ovirt.org
> *主题:* Re: [Engine-devel] ovirt-engine-sdk with C
>
>  
>
> 2013/5/13 leaboy@126 
>
>  Hi,All
>
>  I felt oivrt-engine-sdk coded with Python is slowly to connect***
> *
>
> ovirt-engine and console vm when a user have many vms, So, I just
>
> want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk
>
> with C to connect overt-engine and console vm, would anyone give 
>
> me some suggestion.
>
>  Do you want to use c to invoke ovirt engine RestAPI, right?
>
> If yes, you can use libcurl to do the thing, and it'll make you happy.
>
>  
>
>   
>
>  Now, the problem is how can I connect to ovit-engine with C, and*
> ***
>
> how can I get some information of vms, and how ovirrt-engine can 
>
> respond my action(start,stop, .eg)
>
> Agree with Michael Pasternak.
>
> You should parse your code into the mail list, or someone can't help
>
> you.
>
>  
>
>   
>
>
> Leaboy@beijing
>
>  Thinks***
> *
>
>
> ___
> Engine-devel mailing list
> Engine-devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
>
>
>
>
> --
> ---
> Best Regards
> Jarod.W
>
>
>
>
> --
> ---
> Best Regards
> Jarod.W
>



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


Re: [Engine-devel] static header only in VM dialog?

2013-06-04 Thread Tomas Jelinek
So, are there any additional concerns/questions which need to be discussed? I 
understand that we have one more 
month but I would like to avoid the situation from a week ago that the last 
possible day we realize that we don't
have any more time anymore :)

- Original Message -
> From: "Malini Rao" 
> To: "Einav Cohen" 
> Cc: "Tomas Jelinek" , "Daniel Erez" , 
> "Itamar Heim" ,
> "Michal Skrivanek" , "Eldan Hildesheim" 
> , "engine-devel"
> , "Eldan Hildesheim" 
> Sent: Monday, June 3, 2013 3:58:30 PM
> Subject: Re: [Engine-devel] static header only in VM dialog?
> 
> 
> 
> 
> 
> - Original Message -
> > From: "Einav Cohen" 
> > To: "Tomas Jelinek" , "Daniel Erez" 
> > Cc: "Itamar Heim" , "Michal Skrivanek"
> > , "Eldan Hildesheim"
> > , "engine-devel" , "Eldan
> > Hildesheim" , "Malini Rao"
> > 
> > Sent: Monday, June 3, 2013 8:26:45 AM
> > Subject: Re: [Engine-devel] static header only in VM dialog?
> > 
> > > > ...
> > > > 
> > > > @Tomas - I suggest that you will clarify:
> > > > 
> > > > A) which fields exactly are going to be included in the top static
> > > > header
> > > > of
> > > > the New VM
> > > > dialog *in your current patch batch* [2], and:
> > > 
> > > - Data Center
> > > - Cluster
> > > - Quota
> > > - Template (because according to the mockup the Image field will contain
> > > both
> > > Template and Image, so until we have images, just templates are there)
> > > - Vm Type (e.g. if server or desktop)
> > > - OS type
> > > (well, basically according to mockup, just without the instance type)
> > > 
> > > > 
> > > > B) which side-tabs in the New VM dialog will be affected by the fields
> > > > in
> > > > (A).
> > > 
> > > More or less all with some exceptions - especially thanx to the template
> > > field. And this will not change at all after introducing instance
> > > types/templates because template = instance type + image.
> > 
> > So it seems that it would make sense to introduce the top static header
> > even
> > before introducing the Instance Types + Image fields, as it already
> > contains
> > fields (namely 'Template') that affect most of the side-tabs.
> > Thanks, Tomas, for the clarification.
> > 
> > > So the question is not really if we want to
> > > wait until the instance types and images will affect enough side tabs
> > > (because that
> > > will not change at all) but if we want to have a top header panel or not.
> > > I
> > > personally start to think that it is more or less a question of taste.
> > > One may argue that it makes the dialogs more understandable (by having
> > > context all the time) and other that it makes them more un-understandable
> > > by
> > > flood of information in context you don't need.
> > > I guess either way has some advantages and disadvantages and there is no
> > > strict good/wrong solution.
> > 
> > +1
> 
> One way to limit this flooding of information in unnecessary contexts is to
> not apply a blind rule that the static panel will appear for all dialogs
> with sub tabs. 
+1

> As outlined in a previous email, the static panel should be
> used only if there is a  dependency and it is impossible to show the
> interdependent fields on the same page. The other important thing we should
> do is very carefully consider what fields populate the static panel. The
> idea is that this panel is minimal and should definitely not becoming like a
> page in itself.
> 
> -Malini
> 
> 
> > 
> > > ...
> > 
> 
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] about govirt

2013-06-04 Thread wlbleaboy@126
Hi, Itamar Heim:
I used ovirit-engine-sdk-python to connect ovirt-engine and get vms
It's about 20 seconds, so I felt it's slow.

I have build govirt success, but how can I use it, I give
REST_URI="https://192.168.1.201/api";,
and proxy = ovirt_proxy_new(REST_URI) always return NULL;

-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com] 
Sent: Wednesday, June 05, 2013 5:29 AM
To: wlbleaboy@126
Cc: cferg...@redhat.com; engine-devel@ovirt.org; Michael Pasternak
Subject: Re: [Engine-devel] about govirt

On 06/04/2013 01:23 PM, wlbleaboy@126 wrote:
> Hi, cfergeau:
>
>   Recently, I do something about ovirt-engine-sdk, I just want to
>
> console a vm via sdk, but I found the sdk implemented by python is
>
> so slowly, so I want to build a simple sdk use C to do that,

Can you please share more info on what do you mean by "slow"?

Thanks,
Itamar

>
>   before I do it, I found the code govirt you worte, I felt
> luckly, you
>
> had do that. So I got the code, but when I build it on ubuntu, it's failed
>
> I used autogen.sh , but got the error message
>
> like:
>
>   configure: error: Package requirements (rest-0.7 >= 0.7.13)
> were not met:
>
> No package 'rest-0.7' found
>
>   Because I didn't familiar with autogen and configure, such gnu
> build tools,
>
>
>
> ___
> 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] about govirt

2013-06-04 Thread Itamar Heim

On 06/05/2013 09:43 AM, wlbleaboy@126 wrote:

Hi, Itamar Heim:
I used ovirit-engine-sdk-python to connect ovirt-engine and get vms
It's about 20 seconds, so I felt it's slow.


and just to compare, how much time does a curl/wget takes you?



I have build govirt success, but how can I use it, I give
REST_URI="https://192.168.1.201/api";,
and proxy = ovirt_proxy_new(REST_URI) always return NULL;

-Original Message-
From: Itamar Heim [mailto:ih...@redhat.com]
Sent: Wednesday, June 05, 2013 5:29 AM
To: wlbleaboy@126
Cc: cferg...@redhat.com; engine-devel@ovirt.org; Michael Pasternak
Subject: Re: [Engine-devel] about govirt

On 06/04/2013 01:23 PM, wlbleaboy@126 wrote:

Hi, cfergeau:

   Recently, I do something about ovirt-engine-sdk, I just want to

console a vm via sdk, but I found the sdk implemented by python is

so slowly, so I want to build a simple sdk use C to do that,


Can you please share more info on what do you mean by "slow"?

Thanks,
 Itamar



   before I do it, I found the code govirt you worte, I felt
luckly, you

had do that. So I got the code, but when I build it on ubuntu, it's failed

I used autogen.sh , but got the error message

like:

   configure: error: Package requirements (rest-0.7 >= 0.7.13)
were not met:

No package 'rest-0.7' found

   Because I didn't familiar with autogen and configure, such gnu
build tools,



___
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