stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Imesh Gunaratne <im...@apache.org>
Subject Re: [Discuss] Kubernetes Cluster Definition Changes
Date Sun, 15 Feb 2015 04:54:23 GMT
BTW in the above sample, the port mapping in the cartridge definition was
not correct. Port 22 should be changed to 80.

Thanks

On Sun, Feb 15, 2015 at 10:22 AM, Imesh Gunaratne <imesh@apache.org> wrote:

> Hi Lakmal,
>
> I have now added ports to the member in the application runtime:
>
>
> We can now update the UI to display them.
>
> Thanks
> ​
>
> On Sun, Feb 15, 2015 at 9:23 AM, Imesh Gunaratne <imesh@apache.org> wrote:
>
>> I encountered an issue in my local Kubernetes cluster where it stopped
>> aassigning host ips for pods created. Now I'm re-creating the Kubernetes
>> cluster and pulling the PHP docker image.
>>
>> On Sat, Feb 14, 2015 at 8:24 PM, Imesh Gunaratne <imesh@apache.org>
>> wrote:
>>
>>> I just removed Access URL generation logic for Kubernetes services, we
>>> need to add port mappings to the Member in the Application runtime.
>>>
>>> On Sat, Feb 14, 2015 at 7:51 PM, Imesh Gunaratne <imesh@apache.org>
>>> wrote:
>>>
>>>> Thanks Lakmal! Yes it is not correct to display the Kubernetes host IP
>>>> in the cluster as it may only mapped to a sub set of  members. May be we
>>>> need to display Kubernetes service IP and port in the cluster. Will fix
>>>> this.
>>>>
>>>> In addition we may need to display the port list in members as you
>>>> mentioned before.
>>>>
>>>> Thanks
>>>>
>>>> On Sat, Feb 14, 2015 at 3:52 PM, Lakmal Warusawithana <lakmal@wso2.com>
>>>> wrote:
>>>>
>>>>> Great work Imesh!. I have one question.
>>>>>
>>>>> On Saturday, February 14, 2015, Imesh Gunaratne <imesh@apache.org>
>>>>> wrote:
>>>>>
>>>>>> Hi Lakmal,
>>>>>>
>>>>>> I have now successfully verified above functionality and pushed
>>>>>> changes to master branch. I also created a new source tag:
>>>>>> 4.1.0-beta-kubernetes-v2. Now we can see the Kubernetes services
on cluster
>>>>>> level in the topology:
>>>>>>
>>>>>>
>>>>>> ​
>>>>>> ​Inaddition to what we discussed I have generated Access URLs for
>>>>>> Kubernetes services:
>>>>>>
>>>>>>
>>>>>> Please take a pull and give it a try on EC2.
>>>>>>
>>>>>
>>>>> In this sample is access url = kubernetes service portal IP:service
>>>>> port ? To me it seems like host IP and service port!
>>>>>
>>>>> Also can you attached member info in UI.
>>>>>
>>>>> Sure Imesh. I will try out on EC2 and let you know
>>>>>
>>>>>
>>>>>>
>>>>>> Thanks
>>>>>> ​
>>>>>> ​
>>>>>>
>>>>>> On Sat, Feb 14, 2015 at 12:12 PM, Imesh Gunaratne <imesh@apache.org>
>>>>>> wrote:
>>>>>>
>>>>>>> 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 <
>>>>>>> lakmal@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 <
>>>>>>>> lakmal@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 <
>>>>>>>>> imesh@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
<
>>>>>>>>>> lakmal@wso2.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Thanks Imesh. Will run a test with it
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Friday, February 13, 2015, Imesh Gunaratne
<imesh@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
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Imesh Gunaratne
>>>>>>
>>>>>> Technical Lead, WSO2
>>>>>> Committer & PMC Member, Apache Stratos
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Sent from Gmail Mobile
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Imesh Gunaratne
>>>>
>>>> Technical Lead, WSO2
>>>> Committer & PMC Member, Apache Stratos
>>>>
>>>
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Mime
View raw message