Re: [ovirt-users] fakevdsm vs ovirt engine 4.0.4

2016-10-18 Thread Roman Mohr
On Tue, Oct 18, 2016 at 10:04 AM,  wrote:

> Hi Roman, thanks for the quick response, i have followed your advice but
> still see the following fakevdsm console.
>
>
>
Could it be that you did not disable the SSL encryption on the engine side?
Did you follow the steps in [15] and restarted ovirt-engine?

>
> 2016-10-18 07:49:34,105 Message sent: null
> 2016-10-18 07:49:34,105 Unable to process messages
> java.io.IOException: Broken pipe
> at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
> at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
> at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
> at sun.nio.ch.IOUtil.write(IOUtil.java:65)
> at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:492)
> at org.ovirt.vdsm.jsonrpc.client.reactors.PlainClient.write(Pla
> inClient.java:55)
> at org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.process
> Outgoing(ReactorClient.java:241)
> at org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.process
> (ReactorClient.java:204)
> at org.ovirt.vdsm.jsonrpc.client.reactors.Reactor.processChanne
> ls(Reactor.java:89)
> at org.ovirt.vdsm.jsonrpc.client.reactors.Reactor.run(Reactor.j
> ava:65)
> 2016-10-18 07:49:34,106
>
> 2016-10-18 07:49:34,106 Message sent: null
> 2016-10-18 07:49:34,107 Failure in processing request
> java.lang.IllegalArgumentException: 'method' field missing in node
> at org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest.fromJsonNode(Js
> onRpcRequest.java:79)
> at org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest.fromByteArray(J
> sonRpcRequest.java:103)
> at org.ovirt.vdsmfake.rpc.json.JsonRpcServer$MessageHandler.run
> (JsonRpcServer.java:122)
> at java.util.concurrent.Executors$RunnableAdapter.call(
> Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> Executor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> 2016-10-18 07:49:37,095 CONNECT
> accept-version:1.2
> heart-beat:0,21234
> host:null
>
>
>
>
> Roman Mohr schreef op 2016-10-18 09:06:
>
>> Hi,
>>
>> On Tue, Oct 18, 2016 at 12:28 AM,  wrote:
>>
>> Hi All,
>>> I am trying to start load tests against my newly installed ovirt
>>> engine version 4.0.4
>>>
>>
>> Note that latest fakevdsm is currently broken when using it with 4.0
>> releases, it only works on master.
>>
>> You can check out the code from here
>>
>> https://gerrit.ovirt.org/#/c/65333/ [14]
>>
>> to get a working version for 4.0.
>>
>>
>> I can run fakevdsm as follows (minor changes to pom.xml (mainly
>>> jetty plugin version)
>>> i also changed vdsm-jsonrpc-java-client to match that of the
>>> server.
>>>
>>>
>>> org.ovirt.vdsm-jsonrpc-java
>>>
>>> vdsm-jsonrpc-java-client
>>> 1.2.5
>>>
>>> i can run the app using
>>>
>>> mvn jetty:run -Dfake.host=0.0.0.0 -DjsonListenPort=54321
>>> -DvdsmPort=54322
>>>
>>
>> could you try running "mvn clean" before starting it again? Fakevdsm
>> has a cache and if something is wrong with that data there (e.g. a bug
>> or switching between engine versions) you can end up in such
>> situations. Running "mvn clean" cleans the cache too.Roman
>>
>> Links:
>> --
>> [1] http://iqn.1994-05.com
>> [2] http://52.25.68.41
>> [3] http://52.25.68.41
>> [4] http://r.monitoring.HostMonitoring.re
>> [5] http://org.quartz.core.JobRunShell.ru
>> [6] http://52.25.68.41
>> [7] http://52.25.68.41
>> [8] http://r.monitoring.HostMonitoring.re
>> [9] http://org.quartz.core.JobRunShell.ru
>> [10] http://52.25.68.41
>> [11] mailto:Users@ovirt.org
>> [12] http://lists.ovirt.org/mailman/listinfo/users
>> [13] mailto:jo...@familiealbers.nl
>> [14] https://gerrit.ovirt.org/#/c/65333/
>
>
[15] https://github.com/oVirt/ovirt-vdsmfake#prepare-ovirt-engine
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] fakevdsm vs ovirt engine 4.0.4

2016-10-18 Thread joost
Hi Roman, thanks for the quick response, i have followed your advice 
but still see the following fakevdsm console.




2016-10-18 07:49:34,105 Message sent: null
2016-10-18 07:49:34,105 Unable to process messages
java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:492)
	at 
org.ovirt.vdsm.jsonrpc.client.reactors.PlainClient.write(PlainClient.java:55)
	at 
org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.processOutgoing(ReactorClient.java:241)
	at 
org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient.process(ReactorClient.java:204)
	at 
org.ovirt.vdsm.jsonrpc.client.reactors.Reactor.processChannels(Reactor.java:89)

at org.ovirt.vdsm.jsonrpc.client.reactors.Reactor.run(Reactor.java:65)
2016-10-18 07:49:34,106

2016-10-18 07:49:34,106 Message sent: null
2016-10-18 07:49:34,107 Failure in processing request
java.lang.IllegalArgumentException: 'method' field missing in node
	at 
org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest.fromJsonNode(JsonRpcRequest.java:79)
	at 
org.ovirt.vdsm.jsonrpc.client.JsonRpcRequest.fromByteArray(JsonRpcRequest.java:103)
	at 
org.ovirt.vdsmfake.rpc.json.JsonRpcServer$MessageHandler.run(JsonRpcServer.java:122)
	at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)
2016-10-18 07:49:37,095 CONNECT
accept-version:1.2
heart-beat:0,21234
host:null




Roman Mohr schreef op 2016-10-18 09:06:

Hi,

On Tue, Oct 18, 2016 at 12:28 AM,  
wrote:



Hi All,
I am trying to start load tests against my newly installed ovirt
engine version 4.0.4


Note that latest fakevdsm is currently broken when using it with 4.0
releases, it only works on master.

You can check out the code from here

https://gerrit.ovirt.org/#/c/65333/ [14]

to get a working version for 4.0.
 


I can run fakevdsm as follows (minor changes to pom.xml (mainly
jetty plugin version)
i also changed vdsm-jsonrpc-java-client to match that of the
server.

                       
org.ovirt.vdsm-jsonrpc-java
                       
vdsm-jsonrpc-java-client
                        1.2.5

i can run the app using

mvn jetty:run -Dfake.host=0.0.0.0 -DjsonListenPort=54321
-DvdsmPort=54322


could you try running "mvn clean" before starting it again? Fakevdsm
has a cache and if something is wrong with that data there (e.g. a 
bug

or switching between engine versions) you can end up in such
situations. Running "mvn clean" cleans the cache too.Roman

Links:
--
[1] http://iqn.1994-05.com
[2] http://52.25.68.41
[3] http://52.25.68.41
[4] http://r.monitoring.HostMonitoring.re
[5] http://org.quartz.core.JobRunShell.ru
[6] http://52.25.68.41
[7] http://52.25.68.41
[8] http://r.monitoring.HostMonitoring.re
[9] http://org.quartz.core.JobRunShell.ru
[10] http://52.25.68.41
[11] mailto:Users@ovirt.org
[12] http://lists.ovirt.org/mailman/listinfo/users
[13] mailto:jo...@familiealbers.nl
[14] https://gerrit.ovirt.org/#/c/65333/


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


Re: [ovirt-users] fakevdsm vs ovirt engine 4.0.4

2016-10-18 Thread Roman Mohr
Hi,

On Tue, Oct 18, 2016 at 12:28 AM,  wrote:

> Hi All,
> I am trying to start load tests against my newly installed ovirt engine
> version 4.0.4
>

Note that latest fakevdsm is currently broken when using it with 4.0
releases, it only works on master.

You can check out the code from here

https://gerrit.ovirt.org/#/c/65333/

to get a working version for 4.0.


> I can run fakevdsm as follows (minor changes to pom.xml (mainly jetty
> plugin version)
> i also changed vdsm-jsonrpc-java-client to match that of the server.
>
> org.ovirt.vdsm-jsonrpc-java
> vdsm-jsonrpc-java-client
> 1.2.5
>
> i can run the app using
>
> mvn jetty:run -Dfake.host=0.0.0.0 -DjsonListenPort=54321 -DvdsmPort=54322
>
>
could you try running "mvn clean" before starting it again? Fakevdsm has a
cache and if something is wrong with that data there (e.g. a bug or
switching between engine versions) you can end up in such situations.
Running "mvn clean" cleans the cache too.

>
> fakevdsm runs but keeps on looping over the following operations. I have
> not add vms yet.
>
> I sincerely hope someone can help me , i really need to stress test this
> install urgently and fakevdsm looks like the perfect tool to use for this.
> thanks, joost
>
> 2016-10-17 22:24:59,505 CONNECT
> accept-version:1.2
> heart-beat:0,21234
> host:null
>
>
> 2016-10-17 22:24:59,506 CONNECT
> accept-version:1.2
> heart-beat:0,21234
> host:null
>
>
> 2016-10-17 22:24:59,507 CONNECTED
> heart-beat:21234,0
> session:196ed7d6-5125-4608-8299-bcaef308db87
>
>
> 2016-10-17 22:24:59,507 Message sent: CONNECTED
> heart-beat:21234,0
> session:196ed7d6-5125-4608-8299-bcaef308db87
>
>
> 2016-10-17 22:24:59,636 SUBSCRIBE
> destination:jms.topic.vdsm_responses
> ack:auto
> id:9c734bb3-2dc4-4181-a049-2b77133b521f
>
> SEND
> destination:jms.topic.vdsm_requests
> reply-to:jms.topic.vdsm_responses
> content-length:105
>
> {"jsonrpc":"2.0","method":"Host.getCapabilities","params":{}
> ,"id":"9f78265b-21c3-4e77-9b11-7c126c2d84ed"}
> 2016-10-17 22:24:59,636 SUBSCRIBE
> destination:jms.topic.vdsm_responses
> ack:auto
> id:9c734bb3-2dc4-4181-a049-2b77133b521f
>
>
> 2016-10-17 22:24:59,636 ACK
> id:9c734bb3-2dc4-4181-a049-2b77133b521f
>
>
> 2016-10-17 22:24:59,636 Message sent: ACK
> id:9c734bb3-2dc4-4181-a049-2b77133b521f
>
>
> 2016-10-17 22:24:59,636 SEND
> destination:jms.topic.vdsm_requests
> reply-to:jms.topic.vdsm_responses
> content-length:105
>
> {"jsonrpc":"2.0","method":"Host.getCapabilities","params":{}
> ,"id":"9f78265b-21c3-4e77-9b11-7c126c2d84ed"}
> 2016-10-17 22:24:59,637 client policy identifier null
> 2016-10-17 22:24:59,714 Request is Host.getCapabilities got response
> {"jsonrpc":"2.0","result":{"version_name":"Snow
> Man","operatingSystem":{"name":"Fedora","release":"1","versi
> on":"17"},"cpuSpeed":"1200.000","clusterLevels":["3.0","
> 3.1","3.2","3.3","3.4","3.5","3.6","4.0","4.1"],"hooks":{},"
> ISCSIInitiatorName":"iqn.1994-05.com.example:ef52ec17bb0","
> cpuSockets":"1","kvmEnabled":"true","reservedMem":"321","las
> tClientIface":"ovirtmgmt","numaNodes":{"1":{"cpus":[0,2,4,6,
> 8,10,12,14],"totalMemory":3988},"0":{"cpus":[1,3,5,7,9,11,
> 13,15],"totalMemory":3988}},"cpuFlags":"fpu,vme,de,pse,tsc,
> msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush
> ,mmx,fxsr,sse,sse2,ss,syscall,nx,pdpe1gb,rdtscp,lm,constant_
> tsc,rep_good,nopl,eagerfpu,pni,pclmulqdq,vmx,ssse3,fma,
> cx16,pcid,sse4_1,sse4_2,x2apic,movbe,popcnt,tsc_
> deadline_timer,aes,xsave,avx,f16c,rdrand,hypervisor,lahf_
> lm,abm,tpr_shadow,vnmi,flexpriority,ept,fsgsbase,bmi1,avx2,
> smep,bmi2,erms,invpcid,xsaveopt,model_Haswell-noTSX,
> model_Nehalem,model_Conroe,model_Penryn,model_Westmere,
> model_SandyBridge","HBAInventory":{"iSCSI":[{"InitiatorName":"iqn.1994-0
> 5.com.ex
> ample:ef52ec17bb0"}],"FC":[]},"lastClient":"10.36.6.76","sel
> inux":{"mode":"1"},"vlans":{},"software_version":"4.10","kdu
> mpStatus":"1","emulatedMachines":["pc-0.10","pc-0.11","pc-0.
> 12","pc-0.13","pc-0.14","pc-0.15","pc-1.0","pc-1.0","pc-
> i440fx-2.1","pseries-rhel7.2.0","pc-i440fx-rhel7.2.0","
> rhel6.4.0","rhel6.5.0","rhel6.6.0","rhel6.7.0","rhel6.8.0","
> rhel6.9.0","rhel7.0.0","rhel7.2.0","rhel7.5.0","pc","isapc"]
> ,"vmTypes":["kvm"],"software_revision":"0.141","bridges":{"
> ovirtmgmt":{"mtu":"1500","ports":["em1"],"gateway":"252.
> 197.29.20","addr":"186.190.35.84","cfg":{"DELAY":"0","
> DEVICE":"ovirtmgmt","ONBOOT":"yes","BOOTPROTO":"dhcp","TYPE"
> :"Ethernet"},"stp":"off","netmask":"255.255.252.0"}},"netCon
> figDirty":"False","autoNumaBalancing":"1","guestOverhead":"
> 65","networks":{"ovirtmgmt":{"mtu":"1500","ports":["em1"],"
> iface":"ovirtmgmt","gateway":"10.34.63.254","bridged":true,"
> switch":"legacy","addr":"186.190.35.84","stp":"off","cfg":{"
> DELAY":"0","DEVICE":"ovirtmgmt","ONBOOT":"yes","BOOT
> PROTO":"
> dhcp","TYPE":"Ethernet"},"netmask":"255.255.252.0"}},"memSiz
> 

[ovirt-users] fakevdsm vs ovirt engine 4.0.4

2016-10-17 Thread joost

Hi All,
I am trying to start load tests against my newly installed ovirt engine 
version 4.0.4
I can run fakevdsm as follows (minor changes to pom.xml (mainly jetty 
plugin version)

i also changed vdsm-jsonrpc-java-client to match that of the server.

org.ovirt.vdsm-jsonrpc-java

vdsm-jsonrpc-java-client

1.2.5

i can run the app using

mvn jetty:run -Dfake.host=0.0.0.0 -DjsonListenPort=54321 
-DvdsmPort=54322



fakevdsm runs but keeps on looping over the following operations. I 
have not add vms yet.


I sincerely hope someone can help me , i really need to stress test 
this install urgently and fakevdsm looks like the perfect tool to use 
for this.

thanks, joost

2016-10-17 22:24:59,505 CONNECT
accept-version:1.2
heart-beat:0,21234
host:null


2016-10-17 22:24:59,506 CONNECT
accept-version:1.2
heart-beat:0,21234
host:null


2016-10-17 22:24:59,507 CONNECTED
heart-beat:21234,0
session:196ed7d6-5125-4608-8299-bcaef308db87


2016-10-17 22:24:59,507 Message sent: CONNECTED
heart-beat:21234,0
session:196ed7d6-5125-4608-8299-bcaef308db87


2016-10-17 22:24:59,636 SUBSCRIBE
destination:jms.topic.vdsm_responses
ack:auto
id:9c734bb3-2dc4-4181-a049-2b77133b521f

SEND
destination:jms.topic.vdsm_requests
reply-to:jms.topic.vdsm_responses
content-length:105

{"jsonrpc":"2.0","method":"Host.getCapabilities","params":{},"id":"9f78265b-21c3-4e77-9b11-7c126c2d84ed"}
2016-10-17 22:24:59,636 SUBSCRIBE
destination:jms.topic.vdsm_responses
ack:auto
id:9c734bb3-2dc4-4181-a049-2b77133b521f


2016-10-17 22:24:59,636 ACK
id:9c734bb3-2dc4-4181-a049-2b77133b521f


2016-10-17 22:24:59,636 Message sent: ACK
id:9c734bb3-2dc4-4181-a049-2b77133b521f


2016-10-17 22:24:59,636 SEND
destination:jms.topic.vdsm_requests
reply-to:jms.topic.vdsm_responses
content-length:105

{"jsonrpc":"2.0","method":"Host.getCapabilities","params":{},"id":"9f78265b-21c3-4e77-9b11-7c126c2d84ed"}
2016-10-17 22:24:59,637 client policy identifier null
2016-10-17 22:24:59,714 Request is Host.getCapabilities got response 
{"jsonrpc":"2.0","result":{"version_name":"Snow 
Man","operatingSystem":{"name":"Fedora","release":"1","version":"17"},"cpuSpeed":"1200.000","clusterLevels":["3.0","3.1","3.2","3.3","3.4","3.5","3.6","4.0","4.1"],"hooks":{},"ISCSIInitiatorName":"iqn.1994-05.com.example:ef52ec17bb0","cpuSockets":"1","kvmEnabled":"true","reservedMem":"321","lastClientIface":"ovirtmgmt","numaNodes":{"1":{"cpus":[0,2,4,6,8,10,12,14],"totalMemory":3988},"0":{"cpus":[1,3,5,7,9,11,13,15],"totalMemory":3988}},"cpuFlags":"fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,mmx,fxsr,sse,sse2,ss,syscall,nx,pdpe1gb,rdtscp,lm,constant_tsc,rep_good,nopl,eagerfpu,pni,pclmulqdq,vmx,ssse3,fma,cx16,pcid,sse4_1,sse4_2,x2apic,movbe,popcnt,tsc_deadline_timer,aes,xsave,avx,f16c,rdrand,hypervisor,lahf_lm,abm,tpr_shadow,vnmi,flexpriority,ept,fsgsbase,bmi1,avx2,smep,bmi2,erms,invpcid,xsaveopt,model_Haswell-noTSX,model_Nehalem,model_Conroe,model_Penryn,model_Westmere,model_SandyBridge","HBAInventory":{"iSCSI":[{"InitiatorName":"iqn.1994-0

5.com.ex
ample:ef52ec17bb0"}],"FC":[]},"lastClient":"10.36.6.76","selinux":{"mode":"1"},"vlans":{},"software_version":"4.10","kdumpStatus":"1","emulatedMachines":["pc-0.10","pc-0.11","pc-0.12","pc-0.13","pc-0.14","pc-0.15","pc-1.0","pc-1.0","pc-i440fx-2.1","pseries-rhel7.2.0","pc-i440fx-rhel7.2.0","rhel6.4.0","rhel6.5.0","rhel6.6.0","rhel6.7.0","rhel6.8.0","rhel6.9.0","rhel7.0.0","rhel7.2.0","rhel7.5.0","pc","isapc"],"vmTypes":["kvm"],"software_revision":"0.141","bridges":{"ovirtmgmt":{"mtu":"1500","ports":["em1"],"gateway":"252.197.29.20","addr":"186.190.35.84","cfg":{"DELAY":"0","DEVICE":"ovirtmgmt","ONBOOT":"yes","BOOTPROTO":"dhcp","TYPE":"Ethernet"},"stp":"off","netmask":"255.255.252.0"}},"netConfigDirty":"False","autoNumaBalancing":"1","guestOverhead":"65","networks":{"ovirtmgmt":{"mtu":"1500","ports":["em1"],"iface":"ovirtmgmt","gateway":"10.34.63.254","bridged":true,"switch":"legacy","addr":"186.190.35.84","stp":"off","cfg":{"DELAY":"0","DEVICE":"ovirtmgmt","ONBOOT":"yes","BOOT
PROTO":"
dhcp","TYPE":"Ethernet"},"netmask":"255.255.252.0"}},"memSize":"7976","rngSources":["RANDOM"],"management_ip":"","supportedENGINEs":["3.0","3.1","3.2","3.3","3.4","3.5","3.6","4.0","4.1"],"cpuModel":"Intel(R) 
Xeon(R) CPU E5606 @