stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajkumar Rajaratnam <rajkum...@wso2.com>
Subject Re: Cartridge subscription not completed
Date Mon, 01 Sep 2014 16:57:10 GMT
Chamila,

Could you please verify whether stratos master branch is working fine
(without your modification)? It is working fine for me.

Thanks.


On Mon, Sep 1, 2014 at 9:51 PM, Isuru Haththotuwa <isuruh@apache.org> wrote:

> Hi,
>
> Would you be able to try out with the following modification and see if
> you can see an error in the log file:
>
> 1. Locate the
> org.apache.stratos.rest.endpoint/src/main/webapp/stratos/WEB-INF/cxf-servlet.xml
> file
> 2. Under the jaxrs:providers tag, there will be several exception handlers
> [1]. Comment them out and build the webapp again
> 3. Re-deploy this webapp in Stratos Manager (Delete the stratos.war and
> stratos directory in the repository/deployment/server/webapps directory
> 4. Re-try your scenario
>
> [1].  <ref bean="throwableExceptionHandler"/>
>        <ref bean="genericExceptionHandler"/>
>        <ref bean="badRequestExceptionHandler"/>
>        <ref bean="exceptionHandler"/>
>
>
>
>
> On Mon, Sep 1, 2014 at 9:37 PM, Chamila De Alwis <chamilad@wso2.com>
> wrote:
>
>> Hi Nirmal,
>>
>> I've attached the complete wso2carbon.log. Policies were deployed
>> successfully at line 716.
>>
>> Akila,
>> Those two properties are added by Stratos itself. The one's I've attached
>> were copied from the web console. I will update the link with the actual
>> json I deployed.
>>
>> Raj,
>>
>> Yes, I'm using the master branch with some modifications to the code
>> base. The change is at BasicPayloadData.java[1]. I added three additional
>> fields to the payload string. A flag to chose if puppet or chef is used,
>> and chef server ip and hostname. This shouldn't be a problem as far as I
>> know.
>>
>> [1] -  https://github.com/chamilad/stratos/compare/apache:master...master
>>
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>>
>> On Mon, Sep 1, 2014 at 9:26 PM, Rajkumar Rajaratnam <rajkumarr@wso2.com>
>> wrote:
>>
>>> Hi Chamila,
>>>
>>> Are you using master branch?
>>>
>>>
>>>
>>> On Mon, Sep 1, 2014 at 8:30 PM, Nirmal Fernando <nirmal070125@gmail.com>
>>> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Mon, Sep 1, 2014 at 8:19 PM, Akila Ravihansa Perera <
>>>> ravihansa@wso2.com> wrote:
>>>>
>>>>> Hi Chamila,
>>>>>
>>>>> Why is that partition min count is 0 in your partition definition at
>>>>> [1] ?
>>>>>
>>>>
>>>> That shouldn't be a problem since the real min-max reside in the
>>>> deployment policy. In fact, you can get rid of those min, max properties
>>>> from partition definition.
>>>>
>>>>>
>>>>> I recall this behavior earlier because of some validation issue. As
>>>>> others suggested, your complete debug logs will help us identify the
>>>>> problem.
>>>>>
>>>>> [1]
>>>>> https://github.com/chamilad/stratos-policies/blob/master/partition-deployment.json
>>>>>
>>>>> On Mon, Sep 1, 2014 at 7:31 PM, Nirmal Fernando <
>>>>> nirmal070125@gmail.com> wrote:
>>>>> > Hi Chamila,
>>>>> >
>>>>> > Could you please attach the complete wso2carbon.log file?
>>>>> >
>>>>> >
>>>>> > On Mon, Sep 1, 2014 at 7:15 PM, Chamila De Alwis <chamilad@wso2.com>
>>>>> wrote:
>>>>> >>
>>>>> >> Hi,
>>>>> >>
>>>>> >> I installed stratos and deployed the necessary policies[1].
I've
>>>>> also
>>>>> >> created a cartridge configuration for PHP.
>>>>> >>
>>>>> >> When I subscribed to the defined cartridge I'm directed to "My
>>>>> Cartridge"
>>>>> >> page but it shows that I'm not subscribed to any cartridges.
>>>>> >>
>>>>> >> wso2carbon.log output consists of the following, but no particular
>>>>> errors.
>>>>> >>
>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
>>>>> >>
>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>>>> >> -  Validating partitions of policy via cloud controller: [id]
>>>>> >> economyDeploymentPolicy
>>>>> >>
>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
>>>>> >>
>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
-  All
>>>>> >> partitions [p1] were validated successfully, against the Cartridge:
>>>>> php
>>>>> >>
>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
>>>>> >>
>>>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
-
>>>>> >> External REPO URL is provided as
>>>>> >> [https://github.com/drnic/php-helloworld.git]
>>>>> >>
>>>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
>>>>> >>
>>>>> >>
>>>>> >> No new instance is spawned and no output is shown in the log
after
>>>>> the
>>>>> >> above. I also tried waiting for sometime for the IaaS to pick
up the
>>>>> >> requests, as the IaaS I’m using is a bit restricted on the
>>>>> resources, but it
>>>>> >> doesn't show anything even after a while.
>>>>> >>
>>>>> >> [1] - https://github.com/chamilad/stratos-policies
>>>>> >>
>>>>> >> Regards,
>>>>> >> Chamila de Alwis
>>>>> >> Software Engineer | WSO2 | +94772207163
>>>>> >> Blog: code.chamiladealwis.com
>>>>> >>
>>>>> >>
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Best Regards,
>>>>> > Nirmal
>>>>> >
>>>>> > Nirmal Fernando.
>>>>> > PPMC Member & Committer of Apache Stratos,
>>>>> > Senior Software Engineer, WSO2 Inc.
>>>>> >
>>>>> > Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Akila Ravihansa Perera
>>>>> Software Engineer, WSO2
>>>>> Committer & PMC Member, Apache Stratos
>>>>>
>>>>> Blog: http://ravihansa3000.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards,
>>>> Nirmal
>>>>
>>>> Nirmal Fernando.
>>>> PPMC Member & Committer of Apache Stratos,
>>>> Senior Software Engineer, WSO2 Inc.
>>>>
>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>
>>>
>>>
>>>
>>> --
>>> Rajkumar Rajaratnam
>>> Software Engineer | WSO2, Inc.
>>>  Mobile +94777568639 | +94783498120
>>>
>>> --
>>> <%2B94783498120>
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> <%2B94783498120>
>>> +94 716 358 048 <%2B94783498120>* <http://wso2.com/>*
>>>
>>>
>>> * <http://wso2.com/>*
>>>
>>>
>>>


-- 
Rajkumar Rajaratnam
Software Engineer | WSO2, Inc.
Mobile +94777568639 | +94783498120

Mime
View raw message