RE: HOST/CPU ERROR on Web UI

2017-01-17 Thread Nicolas Bouige
Hello,

After some debug and thanks to your help the issue came from an old PR-STRORE 
which was deleted.
But the database was not properly updated.

mysql> select * from storage_pool_host_ref where pool_id=21;

| 25 |  22 |  21 | 2014-10-24 08:57:50 | NULL| 
/mnt/6866120f-9592-3904-a487-f32bee9d |
| 26 |  26 |  21 | 2014-10-24 08:57:51 | NULL| 
/mnt/6866120f-9592-3904-a487-f32bee9d |
| 27 |  27 |  21 | 2014-10-24 08:57:52 | NULL| 
/mnt/6866120f-9592-3904-a487-f32bee9d |
| 53 |  97 |  21 | 2015-05-28 21:41:11 | NULL| 
/mnt/6866120f-9592-3904-a487-f32bee9d |
| 57 |104 |  21 | 2015-09-01 21:56:02 | NULL| 
/mnt/6866120f-9592-3904-a487-f32bee9d |
| 61 |116 |  21 | 2016-11-30 11:16:58 | NULL| 
/mnt/6866120f-9592-3904-a487-f32bee9d |
| 63 |117 |  21 | 2016-11-30 16:52:54 | NULL| 
/mnt/6866120f-9592-3904-a487-f32bee9d |

mysql> delete from storage_pool_host_ref where pool_id=21;

Now, all is working fine.

Best Regards,
Nicolas Bouige

-Message d'origine-
De : Rafael Weingärtner [mailto:rafaelweingart...@gmail.com] 
Envoyé : vendredi 13 janvier 2017 14:30
À : users@cloudstack.apache.org
Objet : Re: HOST/CPU ERROR on Web UI

UPDATE:
Are you sure it is ACS 4.7 you are using?
Because the line that shows the error in your log is this one: "
List volumes = _volsDao.search(volumeSC, null);".
The only way to happen a NPE there, is if "volsDao" is null, which does not 
happen.

On Fri, Jan 13, 2017 at 11:19 AM, Rafael Weingärtner < 
rafaelweingart...@gmail.com> wrote:

> What 4.7 version are you using?
> 4.7.1? 4.7.1.1?
>
> On Fri, Jan 13, 2017 at 7:32 AM, Nicolas Bouige <n.bou...@dimsi.fr> wrote:
>
>> Hello,
>>
>> Sorry typo, we are under Xen 6.5.
>> We are using XenServer 7 in our test lab with 4.9 to prepare the 
>> migration.
>>
>> Best regards,
>> N.B
>> -Message d'origine-
>> De : Rafael Weingärtner [mailto:rafaelweingart...@gmail.com]
>> Envoyé : jeudi 12 janvier 2017 19:47
>> À : users@cloudstack.apache.org
>> Objet : Re: HOST/CPU ERROR on Web UI
>>
>> Is this a new environment or a production one? I was under the 
>> impression that the version 4.7 does not support XenServer7.
>> I thought the support was going to be added only on 4.9+.
>>
>> On Thu, Jan 12, 2017 at 10:14 AM, Nicolas Bouige <n.bou...@dimsi.fr>
>> wrote:
>>
>> > Hello Rafael,
>> >
>> > We're using 4.7 and XenServer 7
>> >
>> > Thanks,
>> > N.B
>> >
>> > -Message d'origine-
>> > De : Rafael Weingärtner [mailto:rafaelweingart...@gmail.com]
>> > Envoyé : jeudi 12 janvier 2017 15:58 À : 
>> > users@cloudstack.apache.org Objet : Re: HOST/CPU ERROR on Web UI
>> >
>> > It seems to be related.
>> >
>> > What version of ACS are you using?
>> >
>> > On Thu, Jan 12, 2017 at 12:52 PM, Nicolas Bouige 
>> > <n.bou...@dimsi.fr>
>> > wrote:
>> >
>> > > Hello All,
>> > >
>> > > I'm facing an issue with the displaying of information about HOST 
>> > > and
>> > CPU.
>> > > On CPU web page there are no information display and on HOST page 
>> > > only < ERROR >.
>> > >
>> > > I dont know if its related but there is this error on 
>> > > management-server.log :
>> > >
>> > > 2017-01-12 15:23:14,934 DEBUG [c.c.a.ApiServlet]
>> > > (catalina-exec-17:ctx-b4b62069)
>> > > (logid:45883c7d) ===START===  XX.XX.XX.XX -- GET 
>> > > command=listHosts=json=routing=
>> > > true=1=20&_=1484230881538
>> > > 2017-01-12 15:23:14,940 WARN  
>> > > [c.c.a.d.ParamGenericValidationWorker]
>> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) 
>> > > Received unknown parameters for command listHosts. Unknown 
>> > > parameters : listall
>> > > 2017-01-12 15:23:14,941 DEBUG [c.c.a.q.QueryManagerImpl]
>> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
>> > > >>>Searching for hosts>>>
>> > > 2017-01-12 15:23:14,949 DEBUG [c.c.a.q.QueryManagerImpl]
>> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
>> > > >>>Generating
>> > > Response>>>
>> > > 2017-01-12 15:23:14,955 ERROR [c.c.a.ApiServer]
>> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) 
>> > > unhandled exception executing a

Re: HOST/CPU ERROR on Web UI

2017-01-13 Thread Rafael Weingärtner
UPDATE:
Are you sure it is ACS 4.7 you are using?
Because the line that shows the error in your log is this one: "
List volumes = _volsDao.search(volumeSC, null);".
The only way to happen a NPE there, is if "volsDao" is null, which does not
happen.

On Fri, Jan 13, 2017 at 11:19 AM, Rafael Weingärtner <
rafaelweingart...@gmail.com> wrote:

> What 4.7 version are you using?
> 4.7.1? 4.7.1.1?
>
> On Fri, Jan 13, 2017 at 7:32 AM, Nicolas Bouige <n.bou...@dimsi.fr> wrote:
>
>> Hello,
>>
>> Sorry typo, we are under Xen 6.5.
>> We are using XenServer 7 in our test lab with 4.9 to prepare the
>> migration.
>>
>> Best regards,
>> N.B
>> -Message d'origine-
>> De : Rafael Weingärtner [mailto:rafaelweingart...@gmail.com]
>> Envoyé : jeudi 12 janvier 2017 19:47
>> À : users@cloudstack.apache.org
>> Objet : Re: HOST/CPU ERROR on Web UI
>>
>> Is this a new environment or a production one? I was under the impression
>> that the version 4.7 does not support XenServer7.
>> I thought the support was going to be added only on 4.9+.
>>
>> On Thu, Jan 12, 2017 at 10:14 AM, Nicolas Bouige <n.bou...@dimsi.fr>
>> wrote:
>>
>> > Hello Rafael,
>> >
>> > We're using 4.7 and XenServer 7
>> >
>> > Thanks,
>> > N.B
>> >
>> > -Message d'origine-
>> > De : Rafael Weingärtner [mailto:rafaelweingart...@gmail.com]
>> > Envoyé : jeudi 12 janvier 2017 15:58
>> > À : users@cloudstack.apache.org
>> > Objet : Re: HOST/CPU ERROR on Web UI
>> >
>> > It seems to be related.
>> >
>> > What version of ACS are you using?
>> >
>> > On Thu, Jan 12, 2017 at 12:52 PM, Nicolas Bouige <n.bou...@dimsi.fr>
>> > wrote:
>> >
>> > > Hello All,
>> > >
>> > > I'm facing an issue with the displaying of information about HOST
>> > > and
>> > CPU.
>> > > On CPU web page there are no information display and on HOST page
>> > > only < ERROR >.
>> > >
>> > > I dont know if its related but there is this error on
>> > > management-server.log :
>> > >
>> > > 2017-01-12 15:23:14,934 DEBUG [c.c.a.ApiServlet]
>> > > (catalina-exec-17:ctx-b4b62069)
>> > > (logid:45883c7d) ===START===  XX.XX.XX.XX -- GET
>> > > command=listHosts=json=routing=
>> > > true=1=20&_=1484230881538
>> > > 2017-01-12 15:23:14,940 WARN  [c.c.a.d.ParamGenericValidationWorker]
>> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
>> > > Received unknown parameters for command listHosts. Unknown
>> > > parameters : listall
>> > > 2017-01-12 15:23:14,941 DEBUG [c.c.a.q.QueryManagerImpl]
>> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
>> > > >>>Searching for hosts>>>
>> > > 2017-01-12 15:23:14,949 DEBUG [c.c.a.q.QueryManagerImpl]
>> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
>> > > >>>Generating
>> > > Response>>>
>> > > 2017-01-12 15:23:14,955 ERROR [c.c.a.ApiServer]
>> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
>> > > unhandled exception executing api command:
>> > > [Ljava.lang.String;@59a40f5c java.lang.NullPointerException
>> > >  at com.cloud.storage.StorageManagerImpl.
>> > > isLocalStorageActiveOnHost(StorageManagerImpl.java:391)
>> > >  at com.cloud.api.ApiDBUtils.isLocalStorageActiveOnHost(
>> > > ApiDBUtils.java:908)
>> > >  at
>> > > com.cloud.api.query.dao.HostJoinDaoImpl.newHostResponse(
>> > > HostJoinDaoImpl.java:214)
>> > >  at
>> > > sun.reflect.GeneratedMethodAccessor338.invoke(Unknown
>> > > Source)
>> > >  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> > > DelegatingMethodAccessorImpl.java:43)
>> > >  at java.lang.reflect.Method.invoke(Method.java:498)
>> > >  at org.springframework.aop.support.AopUtils.
>> > > invokeJoinpointUsingReflection(AopUtils.java:317)
>> > >  at org.springframework.aop.framework.
>> > > ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodI
>> nvocation.
>> > > java:183)
>> > >  at org.springframework.aop.framework.
>> &

Re: HOST/CPU ERROR on Web UI

2017-01-13 Thread Rafael Weingärtner
What 4.7 version are you using?
4.7.1? 4.7.1.1?

On Fri, Jan 13, 2017 at 7:32 AM, Nicolas Bouige <n.bou...@dimsi.fr> wrote:

> Hello,
>
> Sorry typo, we are under Xen 6.5.
> We are using XenServer 7 in our test lab with 4.9 to prepare the migration.
>
> Best regards,
> N.B
> -Message d'origine-
> De : Rafael Weingärtner [mailto:rafaelweingart...@gmail.com]
> Envoyé : jeudi 12 janvier 2017 19:47
> À : users@cloudstack.apache.org
> Objet : Re: HOST/CPU ERROR on Web UI
>
> Is this a new environment or a production one? I was under the impression
> that the version 4.7 does not support XenServer7.
> I thought the support was going to be added only on 4.9+.
>
> On Thu, Jan 12, 2017 at 10:14 AM, Nicolas Bouige <n.bou...@dimsi.fr>
> wrote:
>
> > Hello Rafael,
> >
> > We're using 4.7 and XenServer 7
> >
> > Thanks,
> > N.B
> >
> > -Message d'origine-
> > De : Rafael Weingärtner [mailto:rafaelweingart...@gmail.com]
> > Envoyé : jeudi 12 janvier 2017 15:58
> > À : users@cloudstack.apache.org
> > Objet : Re: HOST/CPU ERROR on Web UI
> >
> > It seems to be related.
> >
> > What version of ACS are you using?
> >
> > On Thu, Jan 12, 2017 at 12:52 PM, Nicolas Bouige <n.bou...@dimsi.fr>
> > wrote:
> >
> > > Hello All,
> > >
> > > I'm facing an issue with the displaying of information about HOST
> > > and
> > CPU.
> > > On CPU web page there are no information display and on HOST page
> > > only < ERROR >.
> > >
> > > I dont know if its related but there is this error on
> > > management-server.log :
> > >
> > > 2017-01-12 15:23:14,934 DEBUG [c.c.a.ApiServlet]
> > > (catalina-exec-17:ctx-b4b62069)
> > > (logid:45883c7d) ===START===  XX.XX.XX.XX -- GET
> > > command=listHosts=json=routing=
> > > true=1=20&_=1484230881538
> > > 2017-01-12 15:23:14,940 WARN  [c.c.a.d.ParamGenericValidationWorker]
> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
> > > Received unknown parameters for command listHosts. Unknown
> > > parameters : listall
> > > 2017-01-12 15:23:14,941 DEBUG [c.c.a.q.QueryManagerImpl]
> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
> > > >>>Searching for hosts>>>
> > > 2017-01-12 15:23:14,949 DEBUG [c.c.a.q.QueryManagerImpl]
> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
> > > >>>Generating
> > > Response>>>
> > > 2017-01-12 15:23:14,955 ERROR [c.c.a.ApiServer]
> > > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
> > > unhandled exception executing api command:
> > > [Ljava.lang.String;@59a40f5c java.lang.NullPointerException
> > >  at com.cloud.storage.StorageManagerImpl.
> > > isLocalStorageActiveOnHost(StorageManagerImpl.java:391)
> > >  at com.cloud.api.ApiDBUtils.isLocalStorageActiveOnHost(
> > > ApiDBUtils.java:908)
> > >  at
> > > com.cloud.api.query.dao.HostJoinDaoImpl.newHostResponse(
> > > HostJoinDaoImpl.java:214)
> > >  at
> > > sun.reflect.GeneratedMethodAccessor338.invoke(Unknown
> > > Source)
> > >  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:43)
> > >  at java.lang.reflect.Method.invoke(Method.java:498)
> > >  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
> > > com.cloud.utils.db.TransactionContextInterceptor.invoke(
> > > TransactionContextInterceptor.java:34)
> > >  at org.springframework.aop.framework.
> > > ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.
> java:161)
> > >  at org.springframework.aop.interceptor.
> > > ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.
> java:91)
> > >  at org.springframework.aop.framework.
> > > ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.
> java:172)
> > > 

Re: HOST/CPU ERROR on Web UI

2017-01-12 Thread Rafael Weingärtner
Is this a new environment or a production one? I was under the impression
that the version 4.7 does not support XenServer7.
I thought the support was going to be added only on 4.9+.

On Thu, Jan 12, 2017 at 10:14 AM, Nicolas Bouige <n.bou...@dimsi.fr> wrote:

> Hello Rafael,
>
> We're using 4.7 and XenServer 7
>
> Thanks,
> N.B
>
> -Message d'origine-
> De : Rafael Weingärtner [mailto:rafaelweingart...@gmail.com]
> Envoyé : jeudi 12 janvier 2017 15:58
> À : users@cloudstack.apache.org
> Objet : Re: HOST/CPU ERROR on Web UI
>
> It seems to be related.
>
> What version of ACS are you using?
>
> On Thu, Jan 12, 2017 at 12:52 PM, Nicolas Bouige <n.bou...@dimsi.fr>
> wrote:
>
> > Hello All,
> >
> > I'm facing an issue with the displaying of information about HOST and
> CPU.
> > On CPU web page there are no information display and on HOST page only
> > < ERROR >.
> >
> > I dont know if its related but there is this error on
> > management-server.log :
> >
> > 2017-01-12 15:23:14,934 DEBUG [c.c.a.ApiServlet]
> > (catalina-exec-17:ctx-b4b62069)
> > (logid:45883c7d) ===START===  XX.XX.XX.XX -- GET
> > command=listHosts=json=routing=
> > true=1=20&_=1484230881538
> > 2017-01-12 15:23:14,940 WARN  [c.c.a.d.ParamGenericValidationWorker]
> > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) Received
> > unknown parameters for command listHosts. Unknown parameters : listall
> > 2017-01-12 15:23:14,941 DEBUG [c.c.a.q.QueryManagerImpl]
> > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
> > >>>Searching for hosts>>>
> > 2017-01-12 15:23:14,949 DEBUG [c.c.a.q.QueryManagerImpl]
> > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
> > >>>Generating
> > Response>>>
> > 2017-01-12 15:23:14,955 ERROR [c.c.a.ApiServer]
> > (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d)
> > unhandled exception executing api command:
> > [Ljava.lang.String;@59a40f5c java.lang.NullPointerException
> >  at com.cloud.storage.StorageManagerImpl.
> > isLocalStorageActiveOnHost(StorageManagerImpl.java:391)
> >  at com.cloud.api.ApiDBUtils.isLocalStorageActiveOnHost(
> > ApiDBUtils.java:908)
> >  at
> > com.cloud.api.query.dao.HostJoinDaoImpl.newHostResponse(
> > HostJoinDaoImpl.java:214)
> >  at sun.reflect.GeneratedMethodAccessor338.invoke(Unknown
> > Source)
> >  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:43)
> >  at java.lang.reflect.Method.invoke(Method.java:498)
> >  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
> > com.cloud.utils.db.TransactionContextInterceptor.invoke(
> > TransactionContextInterceptor.java:34)
> >  at org.springframework.aop.framework.
> > ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
> >  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.$Proxy284.newHostResponse(Unknown Source)
> >  at com.cloud.api.ApiDBUtils.newHostResponse(ApiDBUtils.
> > java:1781)
> >  at
> > com.cloud.api.query.ViewResponseHelper.createHostResponse(
> > ViewResponseHelper.java:252)
> >  at com.cloud.api.query.QueryManagerImpl.searchForServers(
> > QueryManagerImpl.java:1655)
> >  at org.apache.cloudstack.api.command.admin.host.
> > ListHostsCmd.execute(ListHostsCmd.java:186)
> >  at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:
> > 132)
> >  at com.cloud.api.ApiServer.queueCommand(ApiServer.java:707)
> >  at com.cloud.api.ApiServer.handleRequest(ApiServer.java:
> 538)
> >  at com.cloud.api.ApiServlet.processRequestInContext(
> > ApiServlet.

Re: HOST/CPU ERROR on Web UI

2017-01-12 Thread Rafael Weingärtner
It seems to be related.

What version of ACS are you using?

On Thu, Jan 12, 2017 at 12:52 PM, Nicolas Bouige  wrote:

> Hello All,
>
> I'm facing an issue with the displaying of information about HOST and CPU.
> On CPU web page there are no information display and on HOST page only <
> ERROR >.
>
> I dont know if its related but there is this error on
> management-server.log :
>
> 2017-01-12 15:23:14,934 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-17:ctx-b4b62069)
> (logid:45883c7d) ===START===  XX.XX.XX.XX -- GET
> command=listHosts=json=routing=
> true=1=20&_=1484230881538
> 2017-01-12 15:23:14,940 WARN  [c.c.a.d.ParamGenericValidationWorker]
> (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) Received
> unknown parameters for command listHosts. Unknown parameters : listall
> 2017-01-12 15:23:14,941 DEBUG [c.c.a.q.QueryManagerImpl]
> (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) >>>Searching
> for hosts>>>
> 2017-01-12 15:23:14,949 DEBUG [c.c.a.q.QueryManagerImpl]
> (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) >>>Generating
> Response>>>
> 2017-01-12 15:23:14,955 ERROR [c.c.a.ApiServer]
> (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) unhandled
> exception executing api command: [Ljava.lang.String;@59a40f5c
> java.lang.NullPointerException
>  at com.cloud.storage.StorageManagerImpl.
> isLocalStorageActiveOnHost(StorageManagerImpl.java:391)
>  at com.cloud.api.ApiDBUtils.isLocalStorageActiveOnHost(
> ApiDBUtils.java:908)
>  at com.cloud.api.query.dao.HostJoinDaoImpl.newHostResponse(
> HostJoinDaoImpl.java:214)
>  at sun.reflect.GeneratedMethodAccessor338.invoke(Unknown
> Source)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  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 com.cloud.utils.db.TransactionContextInterceptor.invoke(
> TransactionContextInterceptor.java:34)
>  at org.springframework.aop.framework.
> ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>  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.$Proxy284.newHostResponse(Unknown Source)
>  at com.cloud.api.ApiDBUtils.newHostResponse(ApiDBUtils.
> java:1781)
>  at com.cloud.api.query.ViewResponseHelper.createHostResponse(
> ViewResponseHelper.java:252)
>  at com.cloud.api.query.QueryManagerImpl.searchForServers(
> QueryManagerImpl.java:1655)
>  at org.apache.cloudstack.api.command.admin.host.
> ListHostsCmd.execute(ListHostsCmd.java:186)
>  at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:
> 132)
>  at com.cloud.api.ApiServer.queueCommand(ApiServer.java:707)
>  at com.cloud.api.ApiServer.handleRequest(ApiServer.java:538)
>  at com.cloud.api.ApiServlet.processRequestInContext(
> ApiServlet.java:297)
>  at com.cloud.api.ApiServlet$1.run(ApiServlet.java:129)
>  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:126)
>  at com.cloud.api.ApiServlet.doGet(ApiServlet.java:86)
>  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(
> 

RE: HOST/CPU ERROR on Web UI

2017-01-12 Thread Nicolas Bouige
Hello Rafael,

We're using 4.7 and XenServer 7

Thanks,
N.B

-Message d'origine-
De : Rafael Weingärtner [mailto:rafaelweingart...@gmail.com] 
Envoyé : jeudi 12 janvier 2017 15:58
À : users@cloudstack.apache.org
Objet : Re: HOST/CPU ERROR on Web UI

It seems to be related.

What version of ACS are you using?

On Thu, Jan 12, 2017 at 12:52 PM, Nicolas Bouige <n.bou...@dimsi.fr> wrote:

> Hello All,
>
> I'm facing an issue with the displaying of information about HOST and CPU.
> On CPU web page there are no information display and on HOST page only 
> < ERROR >.
>
> I dont know if its related but there is this error on 
> management-server.log :
>
> 2017-01-12 15:23:14,934 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-17:ctx-b4b62069)
> (logid:45883c7d) ===START===  XX.XX.XX.XX -- GET 
> command=listHosts=json=routing=
> true=1=20&_=1484230881538
> 2017-01-12 15:23:14,940 WARN  [c.c.a.d.ParamGenericValidationWorker]
> (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) Received 
> unknown parameters for command listHosts. Unknown parameters : listall
> 2017-01-12 15:23:14,941 DEBUG [c.c.a.q.QueryManagerImpl]
> (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) 
> >>>Searching for hosts>>>
> 2017-01-12 15:23:14,949 DEBUG [c.c.a.q.QueryManagerImpl]
> (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) 
> >>>Generating
> Response>>>
> 2017-01-12 15:23:14,955 ERROR [c.c.a.ApiServer]
> (catalina-exec-17:ctx-b4b62069 ctx-48ead17f) (logid:45883c7d) 
> unhandled exception executing api command: 
> [Ljava.lang.String;@59a40f5c java.lang.NullPointerException
>  at com.cloud.storage.StorageManagerImpl.
> isLocalStorageActiveOnHost(StorageManagerImpl.java:391)
>  at com.cloud.api.ApiDBUtils.isLocalStorageActiveOnHost(
> ApiDBUtils.java:908)
>  at 
> com.cloud.api.query.dao.HostJoinDaoImpl.newHostResponse(
> HostJoinDaoImpl.java:214)
>  at sun.reflect.GeneratedMethodAccessor338.invoke(Unknown
> Source)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  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 
> com.cloud.utils.db.TransactionContextInterceptor.invoke(
> TransactionContextInterceptor.java:34)
>  at org.springframework.aop.framework.
> ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>  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.$Proxy284.newHostResponse(Unknown Source)
>  at com.cloud.api.ApiDBUtils.newHostResponse(ApiDBUtils.
> java:1781)
>  at 
> com.cloud.api.query.ViewResponseHelper.createHostResponse(
> ViewResponseHelper.java:252)
>  at com.cloud.api.query.QueryManagerImpl.searchForServers(
> QueryManagerImpl.java:1655)
>  at org.apache.cloudstack.api.command.admin.host.
> ListHostsCmd.execute(ListHostsCmd.java:186)
>  at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:
> 132)
>  at com.cloud.api.ApiServer.queueCommand(ApiServer.java:707)
>  at com.cloud.api.ApiServer.handleRequest(ApiServer.java:538)
>  at com.cloud.api.ApiServlet.processRequestInContext(
> ApiServlet.java:297)
>  at com.cloud.api.ApiServlet$1.run(ApiServlet.java:129)
>  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:126)
>  at com.cloud.api.ApiServlet.doGet(ApiServlet.java:86)
>  at javax.servlet.http.HttpServlet.service(
> HttpServlet.java:617)
>