Great! Nice to hear that Lakmal, I have now completed the implementation for adding Kubernetes services for the cluster and currently testing it.
Yes I also noticed the above error, will go through it and fix. Thanks On Sat, Feb 14, 2015 at 9:31 AM, Lakmal Warusawithana <lak...@wso2.com> wrote: > Hi, > > I have seen following error while keeping some times after activate single > cartridge sample. And this error keep looping in the log. > > [2015-02-14 02:28:56,850] INFO > {org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor} - Executing > scaling rule as statistics have been reset > > Exception in thread "pool-37-thread-5" [Error: null pointer: > autoscalePolicy.getLoadThresholds()] > > [Near : {... autoscalePolicy.getLoadThresho ....}] > > ^ > > [Line: 1, Column: 1] > > at > org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:431) > > at > org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:143) > > at org.mvel2.ast.ASTNode.optimize(ASTNode.java:159) > > at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:115) > > at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85) > > at > org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123) > > at > org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119) > > at > org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:113) > > at org.mvel2.MVEL.executeExpression(MVEL.java:942) > > at > org.drools.base.dataproviders.MVELDataProvider.getResults(MVELDataProvider.java:111) > > at org.drools.reteoo.FromNode.assertLeftTuple(FromNode.java:150) > > at > org.drools.reteoo.SingleLeftTupleSinkAdapter.doPropagateAssertLeftTuple(SingleLeftTupleSinkAdapter.java:196) > > at > org.drools.reteoo.SingleLeftTupleSinkAdapter.createAndPropagateAssertLeftTuple(SingleLeftTupleSinkAdapter.java:145) > > at > org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:154) > > at > org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:59) > > at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:235) > > at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:240) > > at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:350) > > at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:311) > > at > org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:903) > > at > org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:847) > > at > org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:269) > > at > org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator.evaluate(AutoscalerRuleEvaluator.java:64) > > at > org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor$1.run(ClusterMonitor.java:571) > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > > at java.lang.Thread.run(Thread.java:722) > > Caused by: java.lang.NullPointerException > > at > org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:397) > > ... 26 more > > [2015-02-14 02:30:26,852] INFO > {org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor} - Executing > scaling rule as statistics have been reset > > [2015-02-14 02:31:56,854] INFO > {org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor} - Executing > scaling rule as statistics have been reset > > Exception in thread "pool-37-thread-10" [Error: null pointer: > autoscalePolicy.getLoadThresholds()] > > [Near : {... autoscalePolicy.getLoadThresho ....}] > > ^ > > [Line: 1, Column: 1] > > On Sat, Feb 14, 2015 at 8:01 AM, Lakmal Warusawithana <lak...@wso2.com> > wrote: > >> Hi Imesh, >> >> I have test the changes on top of EC2. Kubernetes member public IP came >> as expected. Now only missing are private and public ports mapping and >> cluster level kubernetes service IP and port. >> >> thanks >> >> On Fri, Feb 13, 2015 at 10:00 PM, Imesh Gunaratne <im...@apache.org> >> wrote: >> >>> Thanks Lakmal! It would be great if you could verify the member's public >>> IP address in EC2 with this modification. >>> >>> Thanks >>> >>> On Fri, Feb 13, 2015 at 8:48 PM, Lakmal Warusawithana <lak...@wso2.com> >>> wrote: >>> >>>> Thanks Imesh. Will run a test with it >>>> >>>> >>>> On Friday, February 13, 2015, Imesh Gunaratne <im...@apache.org> wrote: >>>> >>>>> Hi Lakmal, >>>>> >>>>> I have now added private and public IP addresses attribtues to >>>>> Kubernetes hosts in Kubernetes cluster definition and pushed changes to >>>>> master branch: >>>>> >>>>> - Updated Kubernets master and host definitions >>>>> - Updated Kubernetes IaaS to set member public IP address if a mapping >>>>> Kubernetes public IP address is found for the given pod host IP address >>>>> - Updated CLI Kubernetes cluster describe command >>>>> - Updated all sample applications >>>>> - Verified Kubernetes work flow with single-cartridge application >>>>> >>>>> { >>>>> "clusterId": "kubernetes-cluster-1", >>>>> "description": "Kubernetes CoreOS cluster", >>>>> "kubernetesMaster": { >>>>> "hostId": "KubHostMaster1", >>>>> "hostname": "master.dev.kubernetes.example.org", >>>>> "privateIPAddress": "172.17.8.100", >>>>> "publicIPAddress": "172.17.8.100", >>>>> "property": [ >>>>> ] >>>>> }, >>>>> "portRange": { >>>>> "upper": "5000", >>>>> "lower": "4500" >>>>> }, >>>>> "kubernetesHosts": [ >>>>> { >>>>> "hostId": "KubHostSlave1", >>>>> "hostname": "slave1.dev.kubernetes.example.org", >>>>> "privateIPAddress": "172.17.8.101", >>>>> "publicIPAddress": "172.17.8.101", >>>>> "property": [ >>>>> ] >>>>> }, >>>>> { >>>>> "hostId": "KubHostSlave2", >>>>> "hostname": "slave2.dev.kubernetes.example.org", >>>>> "privateIPAddress": "172.17.8.102", >>>>> "publicIPAddress": "172.17.8.102", >>>>> "property": [ >>>>> ] >>>>> } >>>>> ], >>>>> "property": [ >>>>> { >>>>> "name": "payload_parameter.MB_IP", >>>>> "value": "172.17.8.1" >>>>> }, >>>>> { >>>>> "name": "payload_parameter.MB_PORT", >>>>> "value": "1883" >>>>> }, >>>>> { >>>>> "name": "payload_parameter.CEP_IP", >>>>> "value": "172.17.8.1" >>>>> }, >>>>> { >>>>> "name": "payload_parameter.CEP_PORT", >>>>> "value": "7711" >>>>> }, >>>>> { >>>>> "name": "payload_parameter.LOG_LEVEL", >>>>> "value": "DEBUG" >>>>> } >>>>> ] >>>>> } >>>>> >>>>> https://issues.apache.org/jira/browse/STRATOS-1185 >>>>> >>>>> Thanks >>>>> >>>>> -- >>>>> Imesh Gunaratne >>>>> >>>>> Technical Lead, WSO2 >>>>> Committer & PMC Member, Apache Stratos >>>>> >>>> >>>> >>>> -- >>>> Sent from Gmail Mobile >>>> >>> >>> >>> >>> -- >>> Imesh Gunaratne >>> >>> Technical Lead, WSO2 >>> Committer & PMC Member, Apache Stratos >>> >> >> >> >> -- >> Lakmal Warusawithana >> Vice President, Apache Stratos >> Director - Cloud Architecture; WSO2 Inc. >> Mobile : +94714289692 >> Blog : http://lakmalsview.blogspot.com/ >> >> > > > -- > Lakmal Warusawithana > Vice President, Apache Stratos > Director - Cloud Architecture; WSO2 Inc. > Mobile : +94714289692 > Blog : http://lakmalsview.blogspot.com/ > > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos