stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manula Chathurika Thantriwatte <manu...@wso2.com>
Subject Re: Hot deployment on Cloud controller
Date Wed, 15 Jan 2014 09:16:00 GMT
Hi Umut,

You can find hangout series which was focused on apache stratos incubating
4.0 architecture from [1].
You can read about the new architectural changes from the following blog
post written by Lakmal [2].

[1] http://stratos.incubator.apache.org/events/hangouts.html
[2]
http://lakmalsview.blogspot.com/2013/12/sneak-peek-into-apache-stratos.html

Thanks !



On Wed, Jan 15, 2014 at 2:35 PM, Umut KocasaraƧ <ukocasarac@gmail.com>wrote:

> Hi Nirmal,
>
> Thanks for your help. As far as i see there is big architectural changes
> and improvements on stratos 4. Is there any road map for stratos 4. Do you
> know when it will be released?
>
> Umut
>
>
> On Mon, Jan 13, 2014 at 6:23 AM, Nirmal Fernando <nirmal070125@gmail.com>wrote:
>
>> Hi Umut,
>>
>> Could you please try doing the same thing after cleaning up the registry?
>> Please see following screen shots, what you want to delete is the
>> 'cloud.controller' registry resource.
>>
>> FYI: With Stratos 4, as you may have noticed, we have moved to a new
>> architecture, and auto-scaling implementation is bit different from S3 one.
>>
>>
>> [image: Inline image 1]
>>
>> [image: Inline image 2]
>>
>>
>> On Fri, Jan 10, 2014 at 5:33 PM, Umut KocasaraƧ <ukocasarac@gmail.com>wrote:
>>
>>>
>>>
>>> Hi,
>>>
>>> I am testing stratos 3.0.0 incubating in our environments however i have
>>> seen some issues. On fresh start it could open new vm or close vm on
>>> openstack with min app instance or max app instance information. After
>>> starting to stratos instances if i change the min app instance information
>>> in configuration file
>>> (apache-stratos-cc-3.0.0-incubating/repository/deployment/server/services/test.xml)
>>> it is not terminate the vm. When i check the logs i have realized that
>>> there is an issue AutoscaleDeciderCallable.java. In this file it is getting
>>> serviceConfig object with serviceConfig =
>>> appDomainContext.getServiceConfig();. On the other hand
>>> AppNodeSanityCheckCallable getting serviceConfig like
>>> AutoscalerTaskDSHolder.getInstance().getWholeLoadBalancerConfig().getServiceConfig(this.domain,
>>> this.subDomain); ServiceConfig object on AutoscaleDeciderCallable is
>>> getting old deployment information but the other one is correct. When i
>>> have changed this code on AutoscaleDeciderCallable it has started to
>>> terminate instance. But this time i have get error on Cloud Controller.
>>>
>>> You could see the logs at the below. Do you have any suggestion about
>>> the problem. By the way if you wish to commit AutoscaleDeciderCallable.java
>>> class i have attached the diff file to mail.
>>>
>>> Best regards,
>>>
>>> Umut
>>>
>>>
>>>
>>> TID: [0] [CC] [2014-01-10 13:44:40,775] ERROR
>>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver} -  Unexpeced error
>>> occured! IaasContext's ComputeService is null!
>>> {org.apache.axis2.rpc.receivers.RPCMessageReceiver}
>>> java.lang.reflect.InvocationTargetException
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>     at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>>     at
>>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>>>     at
>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>>>     at
>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>>     at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>>     at
>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
>>>     at
>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
>>>     at
>>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>>     at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>>     at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>>     at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>>     at
>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>     at
>>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>     at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>     at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>>     at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>>     at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>>     at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:177)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:161)
>>>     at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>>     at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
>>>     at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>>     at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>>     at
>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>>>     at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>>>     at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>>>     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:662)
>>> Caused by:
>>> org.apache.stratos.cloud.controller.exception.CloudControllerException:
>>> Unexpeced error occured! IaasContext's ComputeService is null!
>>>     at
>>> org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl.terminate(CloudControllerServiceImpl.java:868)
>>>     at
>>> org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl.terminateInstance(CloudControllerServiceImpl.java:609)
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> Nirmal Fernando.
>> PPMC Member & Committer of Apache Stratos,
>> Senior Software Engineer, WSO2 Inc.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>


-- 
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware

email : manulac@wso2.com / manula@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/

Mime
View raw message