stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Isuru Perera <isu...@wso2.com>
Subject Re: [Error] Cannot subscribe cartridge
Date Mon, 13 Jan 2014 03:24:45 GMT
Hi Quang,

What is your OpenStack version? I have seen this issue when we haven't
allocated Floating IPs for the OpenStack project. I tested on OpenStack
Grizzly.

Thanks!

Best Regards,


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/>
>



-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Mime
View raw message