[jira] [Commented] (CLOUDSTACK-7170) [Automation] Failed to add KVM agent with master

2014-07-24 Thread Kishan Kavala (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072918#comment-14072918
 ] 

Kishan Kavala commented on CLOUDSTACK-7170:
---

Commit c804660c74f08008be4f71607681c83d31f3cc55 reverted 
4523490d44160b054de9e943f72db1d0ce06054a which caused this issue.


> [Automation] Failed to add KVM agent with  master 
> --
>
> Key: CLOUDSTACK-7170
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7170
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: KVM
>Affects Versions: 4.5.0
> Environment: KVM - RHEL 6.3
> Master
>Reporter: Rayees Namathponnan
>Assignee: Kishan Kavala
>Priority: Blocker
> Fix For: 4.5.0
>
> Attachments: July_23_KVM.rar
>
>
> This issue observed in automation setup, failed add KVM agent 
> Might be regressed after 
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=173909e99d85cfcc85b017bc426950f9f16fddf0
> MS log
> ---
> 2014-07-23 00:49:18,307 WARN  [c.c.r.ResourceManagerImpl] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Unable to find the 
> server resources at http://10.223.50.66
> 2014-07-23 00:49:18,310 INFO  [c.c.u.e.CSExceptionErrorCode] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Could not find 
> exception: com.cloud.exception.DiscoveryException in error code list for 
> exceptions
> 2014-07-23 00:49:18,310 WARN  [o.a.c.a.c.a.h.AddHostCmd] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the host
> at 
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:790)
> at 
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:585)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at 
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> at com.sun.proxy.$Proxy148.discoverHosts(Unknown Source)
> at 
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:694)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:517)
> at 
> com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:317)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
>at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLo

[jira] [Commented] (CLOUDSTACK-7170) [Automation] Failed to add KVM agent with master

2014-07-23 Thread Alex Brett (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072117#comment-14072117
 ] 

Alex Brett commented on CLOUDSTACK-7170:


Narrowed down even further to:
{noformat}
commit 4523490d44160b054de9e943f72db1d0ce06054a
Author: Santhosh Edukulla 
Date:   Mon Jul 21 20:49:03 2014 +0530

Fixed Coverity Issues reported

Signed-off-by: Santhosh Edukulla 
{noformat}

> [Automation] Failed to add KVM agent with  master 
> --
>
> Key: CLOUDSTACK-7170
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7170
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: KVM
>Affects Versions: 4.5.0
> Environment: KVM - RHEL 6.3
> Master
>Reporter: Rayees Namathponnan
>Assignee: Kishan Kavala
>Priority: Blocker
> Fix For: 4.5.0
>
> Attachments: July_23_KVM.rar
>
>
> This issue observed in automation setup, failed add KVM agent 
> Might be regressed after 
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=173909e99d85cfcc85b017bc426950f9f16fddf0
> MS log
> ---
> 2014-07-23 00:49:18,307 WARN  [c.c.r.ResourceManagerImpl] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Unable to find the 
> server resources at http://10.223.50.66
> 2014-07-23 00:49:18,310 INFO  [c.c.u.e.CSExceptionErrorCode] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Could not find 
> exception: com.cloud.exception.DiscoveryException in error code list for 
> exceptions
> 2014-07-23 00:49:18,310 WARN  [o.a.c.a.c.a.h.AddHostCmd] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the host
> at 
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:790)
> at 
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:585)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at 
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> at com.sun.proxy.$Proxy148.discoverHosts(Unknown Source)
> at 
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:694)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:517)
> at 
> com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:317)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
>at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorRepo

[jira] [Commented] (CLOUDSTACK-7170) [Automation] Failed to add KVM agent with master

2014-07-23 Thread Alex Brett (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14071632#comment-14071632
 ] 

Alex Brett commented on CLOUDSTACK-7170:


Changes that I can see between a working build and a failing one (I'll see if I 
can narrow this down a bit):
{noformat}
commit d3af2dbecacf260acda9f84a51a42838cc0f798c
Author: Will Stevens 
Date:   Tue Jul 22 17:28:01 2014 -0400

CLOUDSTACK-6886 - Fixed the issue created by the SSL feature with the SDX:

commit 173909e99d85cfcc85b017bc426950f9f16fddf0
Author: Wido den Hollander 
Date:   Tue Jul 22 22:28:34 2014 +0200

CLOUDSTACK-6181: Allow RBD volumes to be resized

We don't need an external script to investigate the format of the RBD 
volume,
we only have to ask Libvirt to resize the volume and that will ask librbd to
do so.

commit 2c0765195a4a01ee51973c48d0561261d4fb01c6
Author: Gaurav Aradhye 
Date:   Tue Jul 22 04:23:10 2014 -0400

CLOUDSTACK-7147: Resolving test script issue in test_ip_reservation.py

commit 613eb12104af5c27935091127a1a19941f96e336
Author: Ashutosh K 
Date:   Tue Jul 22 04:57:46 2014 -0400

CLOUDSTACK-7044: Portable IP Range test case changes - reading portable ip 
range from test_data.py file

commit 981becc73585c9a789b377e18af623c325b0bc7f
Author: Ashutosh K 
Date:   Tue Jul 22 05:05:47 2014 -0400

CLOUDSTACK-7148: Adding missing list method

commit 45888e214c949d1e48d800339b366c42a7990641
Author: Ashutosh K 
Date:   Mon Jul 21 03:15:07 2014 -0400

CLOUDSTACK-7137: Resolving cleanup issue in 
test_escalations_securitygroups.py

commit 3b32732459730bfd4848678c95c27e2eb653cc04
Author: Min Chen 
Date:   Tue Jul 22 09:47:27 2014 -0700

CLOUDSTACK-7162:queryAsyncJobResult api does not return jobinstanceid.

commit 1d2124dcbf48d15d23ddbdea23a29f0ab21be6f3
Author: Hugo Trippaers 
Date:   Tue Jul 22 17:43:49 2014 +0200

Fix NPE reported on IRC, provide the user an informative error message

commit 4523490d44160b054de9e943f72db1d0ce06054a
Author: Santhosh Edukulla 
Date:   Mon Jul 21 20:49:03 2014 +0530

Fixed Coverity Issues reported

Signed-off-by: Santhosh Edukulla 

commit 7d3f381d9476fec5dc7ba1cada8294bcb2df0ffa
Author: Kishan Kavala 
Date:   Tue Jul 22 17:50:16 2014 +0530

Set mapped device path while detaching rbd disk

commit 4bf321bd034f179c1ac9dda111fbb5e1034fadd0
Author: Hugo Trippaers 
Date:   Tue Jul 22 13:11:46 2014 +0200

Fix equality check using != on objects

Cleanup in the code, removing dead code

commit 28333664159dd618682b0b07352782af641d295d
Author: Hugo Trippaers 
Date:   Tue Jul 22 13:11:11 2014 +0200

Remove dead code

commit 70e68be4f32538b7965e916cce1f51334fadbbd5
Author: Hugo Trippaers 
Date:   Tue Jul 22 13:10:26 2014 +0200

Fix string encoding problem reported by coverity

commit 493fd170543658ac7602e230a336985c59e8e1a1
Author: Likitha Shetty 
Date:   Mon Jul 14 15:04:37 2014 +0530

CLOUDSTACK-7152. Attaching datadisk to VMs that have VM snapshot throws 
'Unexpected exception'.
Like with other API commands, ensure input parameter validation for 
AttachVolume happens outside the job queue.

commit b3e4c6d6dc9bf57aa880ab100a76027b2a12053d
Author: Likitha Shetty 
Date:   Tue Jul 22 09:48:20 2014 +0530

CLOUDSTACK-7150. [VMware] Global config 'vm.instancename' is not honored.
If global config 'vm.instancename' is set to true, VM name in vCenter 
should be '-'.

commit 4596ae9aac81ecec2c1de95950da431e7490b95d
Author: sanjeev 
Date:   Thu Jul 17 17:19:04 2014 +0530

Changed delete method signature inside VirtualMachine class. From 4.3 
onwards vm destroy has expunge parameter to expunge the vm immediately.

Signed-off-by: sanjeev 
Signed-off-by: Santhosh Edukulla 

commit 88f35179ef90dc4f7696b6fe2e8ee7ca4d00586c
Author: Girish Shilamkar 
Date:   Mon Jul 21 19:10:34 2014 -0400

Revert "CLOUDSTACK-7130: Adding BugId to failed test cases"

This reverts commit 24da72f37395a6bb612ea1d073db0155289cf000.
{noformat}

> [Automation] Failed to add KVM agent with  master 
> --
>
> Key: CLOUDSTACK-7170
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7170
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: KVM
>Affects Versions: 4.5.0
> Environment: KVM - RHEL 6.3
> Master
>Reporter: Rayees Namathponnan
>Priority: Blocker
> Fix For: 4.5.0
>
> Attachments: July_23_KVM.rar
>
>
> This issue observed in automation setup, failed add KVM agent 
> Might be regressed after 
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=173909e99d85cfcc85b017bc426950f9f16fddf0
> MS log
> ---
> 2014-07-23 00:49:18,307 WARN  [c.c.r.Resour

[jira] [Commented] (CLOUDSTACK-7170) [Automation] Failed to add KVM agent with master

2014-07-23 Thread Alex Brett (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14071629#comment-14071629
 ] 

Alex Brett commented on CLOUDSTACK-7170:


This may also be affecting communication from the system VMs to the management 
server, as on a XenServer setup they aren't communicating, and similar log 
entries are observed:
{noformat}
2014-07-23 10:51:59,591 WARN  [c.c.u.n.Link] (AgentManager-Selector:null) SSL: 
Fail to find the generated keystore. Loading fail-safe one to continue.
2014-07-23 10:52:01,317 WARN  [c.c.u.n.Link] (AgentManager-Selector:null) SSL: 
Fail to find the generated keystore. Loading fail-safe one to continue.
2014-07-23 10:52:01,494 INFO  [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-3:null) Connection from /10.220.165.112 closed but no 
cleanup was done.
2014-07-23 10:52:01,497 INFO  [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-4:null) Connection from /10.220.165.113 closed but no 
cleanup was done.
{noformat}

> [Automation] Failed to add KVM agent with  master 
> --
>
> Key: CLOUDSTACK-7170
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7170
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: KVM
>Affects Versions: 4.5.0
> Environment: KVM - RHEL 6.3
> Master
>Reporter: Rayees Namathponnan
>Priority: Blocker
> Fix For: 4.5.0
>
> Attachments: July_23_KVM.rar
>
>
> This issue observed in automation setup, failed add KVM agent 
> Might be regressed after 
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=173909e99d85cfcc85b017bc426950f9f16fddf0
> MS log
> ---
> 2014-07-23 00:49:18,307 WARN  [c.c.r.ResourceManagerImpl] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Unable to find the 
> server resources at http://10.223.50.66
> 2014-07-23 00:49:18,310 INFO  [c.c.u.e.CSExceptionErrorCode] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Could not find 
> exception: com.cloud.exception.DiscoveryException in error code list for 
> exceptions
> 2014-07-23 00:49:18,310 WARN  [o.a.c.a.c.a.h.AddHostCmd] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the host
> at 
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:790)
> at 
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:585)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at 
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> at com.sun.proxy.$Proxy148.discoverHosts(Unknown Source)
> at 
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:694)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:517)
> at 
> com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:317)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
>at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.cor

[jira] [Commented] (CLOUDSTACK-7170) [Automation] Failed to add KVM agent with master

2014-07-23 Thread Alex Brett (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14071627#comment-14071627
 ] 

Alex Brett commented on CLOUDSTACK-7170:


I'm seeing the same problem, I note in the logs I have I can see a couple of 
connection attempts from the agent being closed, with some SSL warnings, e.g.:
{noformat}
2014-07-23 10:36:39,107 WARN  [c.c.u.n.Link] (AgentManager-Selector:null) SSL: 
Fail to find the generated keystore. Loading fail-safe one to continue.
2014-07-23 10:36:39,452 INFO  [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-2:null) Connection from /10.220.163.38 closed but no 
cleanup was done.
{noformat}

> [Automation] Failed to add KVM agent with  master 
> --
>
> Key: CLOUDSTACK-7170
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7170
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: KVM
>Affects Versions: 4.5.0
> Environment: KVM - RHEL 6.3
> Master
>Reporter: Rayees Namathponnan
>Priority: Blocker
> Fix For: 4.5.0
>
> Attachments: July_23_KVM.rar
>
>
> This issue observed in automation setup, failed add KVM agent 
> Might be regressed after 
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=173909e99d85cfcc85b017bc426950f9f16fddf0
> MS log
> ---
> 2014-07-23 00:49:18,307 WARN  [c.c.r.ResourceManagerImpl] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Unable to find the 
> server resources at http://10.223.50.66
> 2014-07-23 00:49:18,310 INFO  [c.c.u.e.CSExceptionErrorCode] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Could not find 
> exception: com.cloud.exception.DiscoveryException in error code list for 
> exceptions
> 2014-07-23 00:49:18,310 WARN  [o.a.c.a.c.a.h.AddHostCmd] 
> (catalina-exec-8:ctx-9df22e36 ctx-c5a4207e ctx-3d7179b3) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the host
> at 
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:790)
> at 
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:585)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at 
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
> at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at 
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> at com.sun.proxy.$Proxy148.discoverHosts(Unknown Source)
> at 
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:694)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:517)
> at 
> com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:317)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
>at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.Stand