stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nirmal Fernando <nirmal070...@gmail.com>
Subject Re: [Error] Cannot subscribe cartridge
Date Sat, 11 Jan 2014 17:13:03 GMT
Hi,

Did you receive any notifications to LB with regard to the new instance?
Which version of Stratos you are using? Can you please attach the log files
of all Stratos components?


On Fri, Jan 10, 2014 at 1:09 PM, Quang Cường Vũ <vucuongkg@gmail.com> wrote:

> Ok, thank you!
> I added property as you told and I don't get this error again.
> But my cartridge become Not-Ready status and CC report log: Instance is
> successfully starting up in IaaS OpenStack and Apache Stratos's Agent
> doesn't report anything.
> So, could you show me some directions to fix or bug this error? :). I
> think, It's almost success.
> Thank again!
>
>
> On Thu, Jan 9, 2014 at 6:35 PM, Quang Cường Vũ <vucuongkg@gmail.com>wrote:
>
>> Ok, I will try. thank
>>
>>
>> On Thu, Jan 9, 2014 at 6:24 PM, Nirmal Fernando <nirmal070125@gmail.com>wrote:
>>
>>> Hi Quang,
>>>
>>> Thanks for the files. Please add following property to Openstack
>>> iaasProvider section of cloud-controller.xml file;
>>>
>>> <property name="autoAssignIp" value="true" />
>>>
>>> i.e.
>>>
>>> <iaasProvider type="openstack" name="openstack specific details">
>>>
>>> <className>org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas</className>
>>>                         <provider>openstack-nova</provider>
>>>                         <identity
>>> svns:secretAlias="cloud.controller.openstack.identity">admin:admin</identity>
>>>                         <credential
>>> svns:secretAlias="cloud.controller.openstack.credential">ADMIN_PASS</credential>
>>>                         <property name="jclouds.endpoint" value="
>>> http://10.60.15.174:5000/v2.0" />
>>>                     <property
>>> name="jclouds.openstack-nova.auto-create-floating-ips" value="false"/>
>>>                         <property name="jclouds.api-version"
>>> value="2.0/" />
>>>                         <scaleUpOrder>2</scaleUpOrder>
>>>                         <scaleDownOrder>3</scaleDownOrder>
>>>                         <property name="autoAssignIp" value="true" />
>>>             <maxInstanceLimit>30</maxInstanceLimit>
>>>                         <imageId>regionOne/</imageId>
>>>             </iaasProvider>
>>>
>>>
>>> On Thu, Jan 9, 2014 at 4:31 PM, Quang Cường Vũ <vucuongkg@gmail.com>wrote:
>>>
>>>> Thank.
>>>> I send log, config file, cartridge in attachment files.
>>>>
>>>>
>>>>
>>>> On Thu, Jan 9, 2014 at 5:55 PM, Nirmal Fernando <nirmal070125@gmail.com
>>>> > wrote:
>>>>
>>>>> Can you send your cartridge definition and cloud-controller xml file?
>>>>> And after this change what's happening? What steps you followed ?
>>>>>
>>>>> These information would help us in investigating.
>>>>>
>>>>>
>>>>> On Thu, Jan 9, 2014 at 4:14 PM, Quang Cường Vũ <vucuongkg@gmail.com>wrote:
>>>>>
>>>>>> Thank but It's not work for me?
>>>>>> Anyone can help me or point me some direction?
>>>>>> Thk!
>>>>>>
>>>>>>
>>>>>> On Thu, Jan 9, 2014 at 9:27 AM, Nirmal Fernando <
>>>>>> nirmal070125@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Quang,
>>>>>>>
>>>>>>> I think the reason is your Openstack setup doesn't allow manual
>>>>>>> allocation of IPs and AFAIR this can be configured in Openstack.
Anyway, if
>>>>>>> it's not possible can you make the autoAssignIp property of
>>>>>>> cloud-controller.xml or in your cartridge definition xml, to
true. This way
>>>>>>> Stratos would not try to allocate IPs but will let the Openstack
to do it.
>>>>>>> Only draw back of this config is the call from CC to IaaS will
be blocking.
>>>>>>>
>>>>>>> Hope this helps!
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Jan 9, 2014 at 7:31 AM, Quang Cường Vũ <vucuongkg@gmail.com>wrote:
>>>>>>>
>>>>>>>> Hi, team.
>>>>>>>>
>>>>>>>> I have setup Apache Stratos with Openstack on my PC.
>>>>>>>> I use VMWare with two VMs.
>>>>>>>>
>>>>>>>> VM 1: act as Openstack controller role with IP: 10.60.15.174.
>>>>>>>> I installed services: Identity, Glance, Compute and Dashboard.
>>>>>>>> I also created Project for Stratos, upload 3 cartridges:
PHP, MySQL
>>>>>>>> and Tomcat
>>>>>>>>
>>>>>>>> VM 2: act as Opentstack compute role and Apache Stratos with
IP:
>>>>>>>> 10.60.15.173
>>>>>>>> I installed services: Compute
>>>>>>>>
>>>>>>>> I install Apache Stratos 3.0.0.0 incubating on VM 2 follow
>>>>>>>> instruction on Apache Stratos website with binary packges
of CC, SC, ELB,
>>>>>>>> Agent. I can not build with maven? .
>>>>>>>> Everything are fine, I could log SC and create tenant. I
also check
>>>>>>>> log at /var/log/apache-stratos.
>>>>>>>> When I login as a tenant, I can see there cartridge and when
I
>>>>>>>> subscribe cartridge, I see error on terminal of CC
>>>>>>>>
>>>>>>>>
>>>>>>>> [2014-01-09 08:13:14,335] ERROR
>>>>>>>> {org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas}
-  Failed to
>>>>>>>> allocate an IP address.
>>>>>>>> [2014-01-09 08:13:14,336]  WARN
>>>>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
-
>>>>>>>> Failed to start an instance in openstack. Hence, will try
to start in
>>>>>>>> another IaaS if available.
>>>>>>>> org.apache.stratos.cloud.controller.exception.CloudControllerException:
>>>>>>>> Failed to allocate an IP address.
>>>>>>>>         at
>>>>>>>> org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas.associateAddress(OpenstackNovaIaas.java:226)
>>>>>>>>         at
>>>>>>>> org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl.startInstance(CloudControllerServiceImpl.java:396)
>>>>>>>>         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)
>>>>>>>> [2014-01-09 08:13:14,339] ERROR
>>>>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
-
>>>>>>>> Failed to start an instance, in any available IaaS:
>>>>>>>> mysql.mysql.stratos.apache.org.mysql.domain and sub domain
: __$default
>>>>>>>>
>>>>>>>> But when I login to Openstack I see instance already start
and I
>>>>>>>> can console to instance from Dashboard
>>>>>>>>
>>>>>>>> [image: Inline image 1]
>>>>>>>>
>>>>>>>>
>>>>>>>> Could you show me some direction to fix this. I spend almost
a week
>>>>>>>> with this.
>>>>>>>> Thank you!
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>>
>>>>>>>> *V  u    Q u a n g   C u o n g *
>>>>>>>>
>>>>>>>> *Software developer and Trainer*
>>>>>>>> ------------------------------------
>>>>>>>>  Mobile: 0988.397.448
>>>>>>>> Email: vucuongkg@gmail.com
>>>>>>>>
>>>>>>>>
>>>>>>>> <http://www.wisestamp.com/>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best Regards,
>>>>>>> Nirmal
>>>>>>>
>>>>>>> Nirmal Fernando.
>>>>>>> PPMC Member & Committer of Apache Stratos,
>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>>
>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>>
>>>>>> *V  u    Q u a n g   C u o n g *
>>>>>>
>>>>>> *Software developer and Trainer*
>>>>>> ------------------------------------
>>>>>>  Mobile: 0988.397.448
>>>>>> Email: vucuongkg@gmail.com
>>>>>>
>>>>>>
>>>>>> <http://www.wisestamp.com/>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards,
>>>>> Nirmal
>>>>>
>>>>> Nirmal Fernando.
>>>>> PPMC Member & Committer of Apache Stratos,
>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>
>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> *V  u    Q u a n g   C u o n g *
>>>>
>>>> *Software developer and Trainer*
>>>> ------------------------------------
>>>>  Mobile: 0988.397.448
>>>> Email: vucuongkg@gmail.com
>>>>
>>>>
>>>> <http://www.wisestamp.com/>
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>>
>> --
>>
>>
>> *V  u    Q u a n g   C u o n g *
>>
>> *Software developer and Trainer*
>> ------------------------------------
>>  Mobile: 0988.397.448
>> Email: vucuongkg@gmail.com
>>
>>
>> <http://www.wisestamp.com/>
>>
>
>
>
> --
>
>
> *V  u    Q u a n g   C u o n g *
>
> *Software developer and Trainer*
> ------------------------------------
>  Mobile: 0988.397.448
> Email: vucuongkg@gmail.com
>
>
> <http://www.wisestamp.com/>
>



-- 
Best Regards,
Nirmal

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

Blog: http://nirmalfdo.blogspot.com/

Mime
View raw message