Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 37233C79D for ; Thu, 4 Dec 2014 13:13:11 +0000 (UTC) Received: (qmail 32904 invoked by uid 500); 4 Dec 2014 13:13:10 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 32514 invoked by uid 500); 4 Dec 2014 13:13:10 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 62830 invoked by uid 99); 4 Dec 2014 06:06:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2014 06:06:29 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nirmal070125@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-wg0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2014 06:05:58 +0000 Received: by mail-wg0-f44.google.com with SMTP id b13so21726853wgh.3 for ; Wed, 03 Dec 2014 22:05:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=E7QivXvk0rDcdxAL9dyZruSVWA/eLdKQoCXFxsxwc7M=; b=OFJ+7IziDbFEpTfuPA1t+OL8jRhfM3pDQm8JhQQytMPkYIzGn/2pmht06GAga82Q1x SUYh85kxUXEz9ZL+e19iODl2/3FZuR7F89WpyA5Ex8yDzAMrpe8K7zbMOvL93WLKl3OG F9gfthK92R3kW6NrE/HBwaq3XHyZmH0R+S+M4NsUJqlcsTo+GljUlCq6y61+fTgz4YMK gdsgm3mLm8MXmiFCI85oHUp7dlfjEP3RnRbCPXFsvUJGmcifHBGwQ+SSEHm5mhMakFm0 nIuPfT1ZhEuKdH4WJ6f8V9W3pfB81cvUS5AJO4Kbxk8R5a41mQ23Dfs9WoXZBw6YC+KT 5mjw== MIME-Version: 1.0 X-Received: by 10.194.174.3 with SMTP id bo3mr9154753wjc.98.1417673158160; Wed, 03 Dec 2014 22:05:58 -0800 (PST) Received: by 10.194.92.171 with HTTP; Wed, 3 Dec 2014 22:05:58 -0800 (PST) In-Reply-To: References: Date: Thu, 4 Dec 2014 11:35:58 +0530 Message-ID: Subject: Re: Cluster monitors fail: Unexpected global [delegator] From: Nirmal Fernando To: Lahiru Sandaruwan Cc: dev , Reka Thirunavukkarasu Content-Type: multipart/alternative; boundary=089e0141a1ecfff6fa05095dc0b7 X-Virus-Checked: Checked by ClamAV on apache.org --089e0141a1ecfff6fa05095dc0b7 Content-Type: text/plain; charset=UTF-8 Yes, I think we need to use the same variable name everywhere. At the moment, different places use different names. On Thu, Dec 4, 2014 at 11:33 AM, Lahiru Sandaruwan wrote: > Seems it's still there, may be we need to change drools file as well. > > [2014-12-04 05:59:31,525] ERROR > {org.apache.stratos.autoscaler.monitor.cluster.VMClusterMonitor} - Cluster > monitor: Monitor failed.VMClusterMonitor [clusterId=mytomcat.tomcat.domain, > hasPrimary=false ] > > java.lang.RuntimeException: Unexpected global [$delegator] > > at > org.drools.common.AbstractWorkingMemory.setGlobal(AbstractWorkingMemory.java:588) > > at > org.drools.impl.StatefulKnowledgeSessionImpl.setGlobal(StatefulKnowledgeSessionImpl.java:346) > > at > org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator.evaluate(AutoscalerRuleEvaluator.java:110) > > at > org.apache.stratos.autoscaler.monitor.cluster.VMClusterMonitor$1.run(VMClusterMonitor.java:233) > > On Thu, Dec 4, 2014 at 10:51 AM, Nirmal Fernando > wrote: > >> I've fixed this in 33f5576737e4a3455edfe3cdc3be7a5ffafb834e >> >> On Thu, Dec 4, 2014 at 10:04 AM, Nirmal Fernando >> wrote: >> >>> Hi, >>> >>> Currently facing following issue; >>> >>> [2014-12-04 09:30:42,426] ERROR >>> {org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor} >>> - KubernetesServiceClusterMonitor: Monitor >>> failed.KubernetesServiceClusterMonitor for [ >>> clusterId=mytomcat.tomcat.domain] >>> >>> java.lang.RuntimeException: Unexpected global [delegator] >>> >>> at >>> org.drools.common.AbstractWorkingMemory.setGlobal(AbstractWorkingMemory.java:588) >>> >>> at >>> org.drools.impl.StatefulKnowledgeSessionImpl.setGlobal(StatefulKnowledgeSessionImpl.java:346) >>> >>> at >>> org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator.evaluate(AutoscalerRuleEvaluator.java:110) >>> >>> at >>> org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor.obsoleteCheck(KubernetesServiceClusterMonitor.java:149) >>> >>> at >>> org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor.access$000(KubernetesServiceClusterMonitor.java:42) >>> >>> at >>> org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor$1.run(KubernetesServiceClusterMonitor.java:83) >>> >>> at >>> org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor.monitor(KubernetesServiceClusterMonitor.java:88) >>> >>> at >>> org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonitor.run(KubernetesServiceClusterMonitor.java:63) >>> >>> at >>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) >>> >>> at >>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) >>> >>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) >>> >>> at >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) >>> >>> at >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) >>> >>> at >>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) >>> >>> at java.lang.Thread.run(Thread.java:695) >>> >>> >>> -- >>> Best Regards, >>> Nirmal >>> >>> Nirmal Fernando. >>> PPMC Member & Committer of Apache Stratos, >>> Senior Software Engineer, WSO2 Inc. >>> >>> Blog: http://nirmalfdo.blogspot.com/ >>> >> >> >> >> -- >> Best Regards, >> Nirmal >> >> Nirmal Fernando. >> PPMC Member & Committer of Apache Stratos, >> Senior Software Engineer, WSO2 Inc. >> >> Blog: http://nirmalfdo.blogspot.com/ >> > > > > -- > -- > Lahiru Sandaruwan > Committer and PMC member, Apache Stratos, > Senior Software Engineer, > WSO2 Inc., http://wso2.com > lean.enterprise.middleware > > email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > > -- Best Regards, Nirmal Nirmal Fernando. PPMC Member & Committer of Apache Stratos, Senior Software Engineer, WSO2 Inc. Blog: http://nirmalfdo.blogspot.com/ --089e0141a1ecfff6fa05095dc0b7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, I think we need to use the same variable name everywh= ere. At the moment, different places use different names.

On Thu, Dec 4, 2014 at 11:3= 3 AM, Lahiru Sandaruwan <lahirus@wso2.com> wrote:
Seems it's still there, may be = we need to change drools file as well.=C2=A0

[2014-12-04 05:59:31,525] ERROR {org.apache.stratos.autoscaler.mon= itor.cluster.VMClusterMonitor} -=C2=A0 Cluster monitor: Monitor failed.VMCl= usterMonitor [clusterId=3Dmytomcat.tomcat.domain, hasPrimary=3Dfalse ]

java.lang.RuntimeException: Unexpected global [$delegator]<= /p>

at org.drools.common.AbstractWorkingMemory.setGlobal= (AbstractWorkingMemory.java:588)

at org.drools.impl.StatefulKnowledgeSessionImpl.setG= lobal(StatefulKnowledgeSessionImpl.java:346)

at org.apache.stratos.autoscaler.rule.AutoscalerRule= Evaluator.evaluate(AutoscalerRuleEvaluator.java:110)

at org.apache.stratos.autoscaler.monitor.clus= ter.VMClusterMonitor$1.run(VMClusterMonitor.java:233)


On Thu, Dec 4, 2014 at 10:51 AM, Nirmal Fernando &= lt;nirmal070125= @gmail.com> wrote:
I've fixed this in=C2=A033f5576737e4a3455edfe3cdc3be7a5ffafb834e

On Thu, Dec 4, = 2014 at 10:04 AM, Nirmal Fernando <nirmal070125@gmail.com> wrote:
Hi,

Currently facing following issue;

=

[2014-12-04 09:30:42,426] ERROR {o= rg.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMonito= r} -=C2=A0 KubernetesServiceClusterMonitor: Monitor failed.KubernetesServic= eClusterMonitor for [ clusterId=3Dmytomcat.tomcat.domain]

java.lang.RuntimeException: Unexpected global [= delegator]

at org.drools.common.AbstractWorkingMemory.setGlobal(Ab= stractWorkingMemory.java:588)

at org.drools.impl.StatefulKnowledge= SessionImpl.setGlobal(StatefulKnowledgeSessionImpl.java:346)

at or= g.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator.evaluate(Autoscale= rRuleEvaluator.java:110)

at org.apache.stratos.autoscaler.monitor.= cluster.KubernetesServiceClusterMonitor.obsoleteCheck(KubernetesServiceClus= terMonitor.java:149)

at org.apache.stratos.autoscaler.monitor.clus= ter.KubernetesServiceClusterMonitor.access$000(KubernetesServiceClusterMoni= tor.java:42)

at org.apache.stratos.autoscaler.monitor.cluster.Kube= rnetesServiceClusterMonitor$1.run(KubernetesServiceClusterMonitor.java:83)<= /p>

at org.apache.stratos.autoscaler.monitor.cluster.KubernetesService= ClusterMonitor.monitor(KubernetesServiceClusterMonitor.java:88)

at= org.apache.stratos.autoscaler.monitor.cluster.KubernetesServiceClusterMoni= tor.run(KubernetesServiceClusterMonitor.java:63)

at java.util.conc= urrent.Executors$RunnableAdapter.call(Executors.java:439)

at java.= util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

=

<= /span>at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTa= sk.access$101(ScheduledThreadPoolExecutor.java:98)

at java.util.co= ncurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Schedu= ledThreadPoolExecutor.java:180)

at java.util.concurrent.ScheduledT= hreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:= 204)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thr= eadPoolExecutor.java:895)

at java.util.concurrent.ThreadPoolExecut= or$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run= (Thread.java:695)


=

--
Best Regards,
Nirmal

= Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senio= r Software Engineer, WSO2 Inc.




--
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member &a= mp; Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.
=




<= /div>--
--
Lahiru Sandaruwan<= div>Committer and PMC member, Apache = Stratos,
Senior=C2=A0Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com=C2=A0blog: <= a href=3D"http://lahiruwrites.blogspot.com/" target=3D"_blank">http://lahir= uwrites.blogspot.com/
linked-in: http://lk.linkedin.com/p= ub/lahiru-sandaruwan/16/153/146

=



--
Best Regards,
Nirmal

Nirmal= Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Soft= ware Engineer, WSO2 Inc.

--089e0141a1ecfff6fa05095dc0b7--