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 Wed, 15 Jan 2014 14:50:44 GMT
Hi,




On Wed, Jan 15, 2014 at 8:08 PM, Quang Cường Vũ <vucuongkg@gmail.com> wrote:

> Thank. I will check instance.
>  I confuse a little bit with guide
> https://cwiki.apache.org/confluence/display/STRATOS/3.0.0+Creating+a+Cartridge
>
The PHP cartridge from Imesh's blog is already configured according to the
steps mentioned in the wiki. You need to follow these steps only if you
create a cartridge from scratch.

> There are bellow steps:
> 1. Download Ubuntu cloud image from Ubuntu website
> 2. Spawn instance from above image
> 2. Install: sudo apt-get install git libboost-all-dev ruby xml-twig-tools
> unzip
> 3.Config rc.local to run scripts: stratos-init.sh and get-launch-params.rb
> scripts from /tools of directory of the Git repository.
>
>
>
>
>
> On Wed, Jan 15, 2014 at 9:28 PM, Isuru Perera <isurup@wso2.com> wrote:
>
>> Hi,
>>
>>
>> On Wed, Jan 15, 2014 at 7:40 PM, Nirmal Fernando <nirmal070125@gmail.com>wrote:
>>
>>> Hi,
>>>
>>> Seems like your instance never got joined to agent. Does the openstack
>>> console give any clue?
>>>
>> Yes. There is an error in Agent as well. Looks like the Cartridge is
>> having issues when trying to register with Agent. We should check the
>> scripts inside the OpenStack instance.
>>
>> Quang, Can you please access the instance* and check how it is calling
>> the Agent? Check /etc/rc.local
>>
>> It seems that the request namespace is wrong.
>>
>> For more info, refer
>> https://cwiki.apache.org/confluence/display/STRATOS/3.0.0+Creating+a+Cartridge
>>
>> *If you cannot ssh, please check the security group.
>>
>>
>>> On Wed, Jan 15, 2014 at 7:33 PM, Quang Cường Vũ <vucuongkg@gmail.com>wrote:
>>>
>>>> Can anyone help me? :(
>>>>
>>>>
>>>> On Tue, Jan 14, 2014 at 4:19 PM, Quang Cường Vũ <vucuongkg@gmail.com>wrote:
>>>>
>>>>> I resend log files. Plz check! THanks
>>>>>
>>>>>
>>>>> On Tue, Jan 14, 2014 at 1:15 AM, Quang Cường Vũ <vucuongkg@gmail.com>wrote:
>>>>>
>>>>>> Log files. Can you check for me? Thank
>>>>>>
>>>>>>
>>>>>> On Mon, Jan 13, 2014 at 3:34 PM, Quang Cường Vũ <vucuongkg@gmail.com>wrote:
>>>>>>
>>>>>>> I am using Havana version of Openstack. I installed keystone,
nova,
>>>>>>> glance and configure floating, fixed networking. I tested with
Cirros test
>>>>>>> image. Instances can connect to the internet via floating IP
and from my PC
>>>>>>> (host machine install Openstack), I can SSH to instance. I install
Apache
>>>>>>> Stratos 3.0.0.0 incubating with binary package I download from
>>>>>>> http://www.us.apache.org/dist/incubator/stratos/ and Cartridge
I
>>>>>>> download from Imesh's blog
>>>>>>> http://imesh.gunaratne.org/a/1/blog/getting-started-with-apache-stratos-incubating-initial-release/.
But PHP instance (boot from PHP cartridge) I cannot ping or ssh to and I
>>>>>>> am going to create custom cartridge.
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jan 13, 2014 at 10:24 AM, Isuru Perera <isurup@wso2.com>wrote:
>>>>>>>
>>>>>>>> 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
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>>
>>>>>>> *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/>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>> *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/
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>
>
>
> --
>
>
> *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