You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Dakshika Jayathilaka <da...@wso2.com> on 2014/12/14 14:05:54 UTC

Application deployment [deployment-policy-id] return null on 4.1.0-test branch

Hi Devs,

when i try to do application deployment i'm getting below info logs.

[2014-12-14 18:29:45,673]  INFO
{org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
deploy application: [application-id] app_group_v1 *[deployment-policy-id]
null*
[2014-12-14 18:29:45,679]  INFO
{org.apache.stratos.autoscaler.pojo.policy.PolicyManager} -  Deployment
policy is deployed successfully: [id] app_group_v1-8151393899819408994
[2014-12-14 18:29:45,679]  INFO
{org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
partitions of policy via cloud controller: [cartridge-type] tomcat
[2014-12-14 18:29:45,694]  INFO
{org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
-  All partitions [P1] were validated successfully, against the Cartridge:
tomcat
[2014-12-14 18:29:45,696]  INFO
{org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
partitions of policy via cloud controller: [cartridge-type] tomcat1
[2014-12-14 18:29:45,704]  INFO
{org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
-  All partitions [P1] were validated successfully, against the Cartridge:
tomcat1
[2014-12-14 18:29:45,706]  INFO
{org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
partitions of policy via cloud controller: [cartridge-type] tomcat2
[2014-12-14 18:29:45,714]  INFO
{org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
-  All partitions [P1] were validated successfully, against the Cartridge:
tomcat2
[2014-12-14 18:29:45,716]  INFO
{org.apache.stratos.autoscaler.api.AutoScalerServiceImpl} -  The
application Monitor has already been created for [Application] app_group_v1
[2014-12-14 18:29:45,717]  INFO
{org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Application
deployed successfully: [application-id] app_group_v1*
[deployment-policy-id] null*


Seems  * [deployment-policy-id] set to null? *Is this correct?

Thank you

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

Re: Application deployment [deployment-policy-id] return null on 4.1.0-test branch

Posted by Udara Liyanage <ud...@wso2.com>.
Hi,

I mixed up with application Creation. Thanks for clarification.



Touched, not typed. Erroneous words are a feature, not a typo.
On Dec 14, 2014 10:54 PM, "Imesh Gunaratne" <im...@apache.org> wrote:

> Hi Dakshika,
>
> It seems like the "id" field is not defined in the deployment policy.
> That's why it is printed as null. We might need to make it mandatory.
> Udara: Application deployment happens with a deployment policy.
>
> Thanks
>
> On Sun, Dec 14, 2014 at 8:49 PM, Dakshika Jayathilaka <da...@wso2.com>
> wrote:
>>
>> Hi Udara,
>>
>> Thanks for the clarification.
>>
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Sun, Dec 14, 2014 at 6:44 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>>
>>> Hi,
>>>
>>> At the time of application deployment, there is no deployment policy
>>> (please update me if I'm wrong) thus deployment policy id is null. I don't
>>> think this is an issue. Plus log is an info log.
>>> Ideally highlighted text should be removed.
>>>
>>>
>>>
>>> Touched, not typed. Erroneous words are a feature, not a typo.
>>> On Dec 14, 2014 6:37 PM, "Dakshika Jayathilaka" <da...@wso2.com>
>>> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> when i try to do application deployment i'm getting below info logs.
>>>>
>>>> [2014-12-14 18:29:45,673]  INFO
>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
>>>> deploy application: [application-id] app_group_v1 *[deployment-policy-id]
>>>> null*
>>>> [2014-12-14 18:29:45,679]  INFO
>>>> {org.apache.stratos.autoscaler.pojo.policy.PolicyManager} -  Deployment
>>>> policy is deployed successfully: [id] app_group_v1-8151393899819408994
>>>> [2014-12-14 18:29:45,679]  INFO
>>>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
>>>> partitions of policy via cloud controller: [cartridge-type] tomcat
>>>> [2014-12-14 18:29:45,694]  INFO
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  All partitions [P1] were validated successfully, against the Cartridge:
>>>> tomcat
>>>> [2014-12-14 18:29:45,696]  INFO
>>>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
>>>> partitions of policy via cloud controller: [cartridge-type] tomcat1
>>>> [2014-12-14 18:29:45,704]  INFO
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  All partitions [P1] were validated successfully, against the Cartridge:
>>>> tomcat1
>>>> [2014-12-14 18:29:45,706]  INFO
>>>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
>>>> partitions of policy via cloud controller: [cartridge-type] tomcat2
>>>> [2014-12-14 18:29:45,714]  INFO
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  All partitions [P1] were validated successfully, against the Cartridge:
>>>> tomcat2
>>>> [2014-12-14 18:29:45,716]  INFO
>>>> {org.apache.stratos.autoscaler.api.AutoScalerServiceImpl} -  The
>>>> application Monitor has already been created for [Application] app_group_v1
>>>> [2014-12-14 18:29:45,717]  INFO
>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Application
>>>> deployed successfully: [application-id] app_group_v1*
>>>> [deployment-policy-id] null*
>>>>
>>>>
>>>> Seems  * [deployment-policy-id] set to null? *Is this correct?
>>>>
>>>> Thank you
>>>>
>>>> *Dakshika Jayathilaka*
>>>> Software Engineer
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware
>>>> 0771100911
>>>>
>>>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>

Re: Application deployment [deployment-policy-id] return null on 4.1.0-test branch

Posted by Imesh Gunaratne <im...@apache.org>.
Hi Dakshika,

It seems like the "id" field is not defined in the deployment policy.
That's why it is printed as null. We might need to make it mandatory.
Udara: Application deployment happens with a deployment policy.

Thanks

On Sun, Dec 14, 2014 at 8:49 PM, Dakshika Jayathilaka <da...@wso2.com>
wrote:
>
> Hi Udara,
>
> Thanks for the clarification.
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Sun, Dec 14, 2014 at 6:44 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>> Hi,
>>
>> At the time of application deployment, there is no deployment policy
>> (please update me if I'm wrong) thus deployment policy id is null. I don't
>> think this is an issue. Plus log is an info log.
>> Ideally highlighted text should be removed.
>>
>>
>>
>> Touched, not typed. Erroneous words are a feature, not a typo.
>> On Dec 14, 2014 6:37 PM, "Dakshika Jayathilaka" <da...@wso2.com>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> when i try to do application deployment i'm getting below info logs.
>>>
>>> [2014-12-14 18:29:45,673]  INFO
>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
>>> deploy application: [application-id] app_group_v1 *[deployment-policy-id]
>>> null*
>>> [2014-12-14 18:29:45,679]  INFO
>>> {org.apache.stratos.autoscaler.pojo.policy.PolicyManager} -  Deployment
>>> policy is deployed successfully: [id] app_group_v1-8151393899819408994
>>> [2014-12-14 18:29:45,679]  INFO
>>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
>>> partitions of policy via cloud controller: [cartridge-type] tomcat
>>> [2014-12-14 18:29:45,694]  INFO
>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>> -  All partitions [P1] were validated successfully, against the Cartridge:
>>> tomcat
>>> [2014-12-14 18:29:45,696]  INFO
>>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
>>> partitions of policy via cloud controller: [cartridge-type] tomcat1
>>> [2014-12-14 18:29:45,704]  INFO
>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>> -  All partitions [P1] were validated successfully, against the Cartridge:
>>> tomcat1
>>> [2014-12-14 18:29:45,706]  INFO
>>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
>>> partitions of policy via cloud controller: [cartridge-type] tomcat2
>>> [2014-12-14 18:29:45,714]  INFO
>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>> -  All partitions [P1] were validated successfully, against the Cartridge:
>>> tomcat2
>>> [2014-12-14 18:29:45,716]  INFO
>>> {org.apache.stratos.autoscaler.api.AutoScalerServiceImpl} -  The
>>> application Monitor has already been created for [Application] app_group_v1
>>> [2014-12-14 18:29:45,717]  INFO
>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Application
>>> deployed successfully: [application-id] app_group_v1*
>>> [deployment-policy-id] null*
>>>
>>>
>>> Seems  * [deployment-policy-id] set to null? *Is this correct?
>>>
>>> Thank you
>>>
>>> *Dakshika Jayathilaka*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>

-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Application deployment [deployment-policy-id] return null on 4.1.0-test branch

Posted by Dakshika Jayathilaka <da...@wso2.com>.
Hi Udara,

Thanks for the clarification.

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Sun, Dec 14, 2014 at 6:44 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
> Hi,
>
> At the time of application deployment, there is no deployment policy
> (please update me if I'm wrong) thus deployment policy id is null. I don't
> think this is an issue. Plus log is an info log.
> Ideally highlighted text should be removed.
>
>
>
> Touched, not typed. Erroneous words are a feature, not a typo.
> On Dec 14, 2014 6:37 PM, "Dakshika Jayathilaka" <da...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> when i try to do application deployment i'm getting below info logs.
>>
>> [2014-12-14 18:29:45,673]  INFO
>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
>> deploy application: [application-id] app_group_v1 *[deployment-policy-id]
>> null*
>> [2014-12-14 18:29:45,679]  INFO
>> {org.apache.stratos.autoscaler.pojo.policy.PolicyManager} -  Deployment
>> policy is deployed successfully: [id] app_group_v1-8151393899819408994
>> [2014-12-14 18:29:45,679]  INFO
>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
>> partitions of policy via cloud controller: [cartridge-type] tomcat
>> [2014-12-14 18:29:45,694]  INFO
>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>> -  All partitions [P1] were validated successfully, against the Cartridge:
>> tomcat
>> [2014-12-14 18:29:45,696]  INFO
>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
>> partitions of policy via cloud controller: [cartridge-type] tomcat1
>> [2014-12-14 18:29:45,704]  INFO
>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>> -  All partitions [P1] were validated successfully, against the Cartridge:
>> tomcat1
>> [2014-12-14 18:29:45,706]  INFO
>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
>> partitions of policy via cloud controller: [cartridge-type] tomcat2
>> [2014-12-14 18:29:45,714]  INFO
>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>> -  All partitions [P1] were validated successfully, against the Cartridge:
>> tomcat2
>> [2014-12-14 18:29:45,716]  INFO
>> {org.apache.stratos.autoscaler.api.AutoScalerServiceImpl} -  The
>> application Monitor has already been created for [Application] app_group_v1
>> [2014-12-14 18:29:45,717]  INFO
>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Application
>> deployed successfully: [application-id] app_group_v1*
>> [deployment-policy-id] null*
>>
>>
>> Seems  * [deployment-policy-id] set to null? *Is this correct?
>>
>> Thank you
>>
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>

Re: Application deployment [deployment-policy-id] return null on 4.1.0-test branch

Posted by Udara Liyanage <ud...@wso2.com>.
Hi,

At the time of application deployment, there is no deployment policy
(please update me if I'm wrong) thus deployment policy id is null. I don't
think this is an issue. Plus log is an info log.
Ideally highlighted text should be removed.



Touched, not typed. Erroneous words are a feature, not a typo.
On Dec 14, 2014 6:37 PM, "Dakshika Jayathilaka" <da...@wso2.com> wrote:

> Hi Devs,
>
> when i try to do application deployment i'm getting below info logs.
>
> [2014-12-14 18:29:45,673]  INFO
> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
> deploy application: [application-id] app_group_v1 *[deployment-policy-id]
> null*
> [2014-12-14 18:29:45,679]  INFO
> {org.apache.stratos.autoscaler.pojo.policy.PolicyManager} -  Deployment
> policy is deployed successfully: [id] app_group_v1-8151393899819408994
> [2014-12-14 18:29:45,679]  INFO
> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
> partitions of policy via cloud controller: [cartridge-type] tomcat
> [2014-12-14 18:29:45,694]  INFO
> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
> -  All partitions [P1] were validated successfully, against the Cartridge:
> tomcat
> [2014-12-14 18:29:45,696]  INFO
> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
> partitions of policy via cloud controller: [cartridge-type] tomcat1
> [2014-12-14 18:29:45,704]  INFO
> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
> -  All partitions [P1] were validated successfully, against the Cartridge:
> tomcat1
> [2014-12-14 18:29:45,706]  INFO
> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
> partitions of policy via cloud controller: [cartridge-type] tomcat2
> [2014-12-14 18:29:45,714]  INFO
> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
> -  All partitions [P1] were validated successfully, against the Cartridge:
> tomcat2
> [2014-12-14 18:29:45,716]  INFO
> {org.apache.stratos.autoscaler.api.AutoScalerServiceImpl} -  The
> application Monitor has already been created for [Application] app_group_v1
> [2014-12-14 18:29:45,717]  INFO
> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Application
> deployed successfully: [application-id] app_group_v1*
> [deployment-policy-id] null*
>
>
> Seems  * [deployment-policy-id] set to null? *Is this correct?
>
> Thank you
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>