You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by chris snow <ch...@gmail.com> on 2014/04/29 20:05:44 UTC
ERROR - Deployment Policy is null
I'm receiving the following error in my stratos log file:
TID: [0] [STRATOS] [2014-04-29 17:59:51,100] ERROR
{org.apache.stratos.autoscaler.util.AutoscalerUtil} - Deployment
Policy is null. Policy name: economyDeployment
{org.apache.stratos.autoscaler.util.AutoscalerUtil}
My autoscale and deployment policies are below:
vagrant@puppet:~$ cat /vagrant/openstack-qemu/example_autoscale_policy.json
{
"id": "economyPolicy",
"loadThresholds": {
"requestsInFlight": {
"average": 50
},
"memoryConsumption": {
"average": 70
},
"loadAverage": {
"average": 100
}
}
}
vagrant@puppet:~$ cat /vagrant/openstack-qemu/example_deployment_policy.json
{
"id": "economyDeployment",
"partitionGroup": [
{
"id": "G1",
"partitionAlgo": "one-after-another",
"partition": [
{
"id": "P1",
"partitionMax": "1",
"partitionMin": "1"
}
]
}
]
}
Any ideas?
Many thanks,
Chris
Re: ERROR - Deployment Policy is null
Posted by Isuru Perera <is...@wso2.com>.
On Tue, Apr 29, 2014 at 11:40 AM, chris snow <ch...@gmail.com> wrote:
> Hi Isuru, I only say the error by chance in the stratos log. No error
> was shown in SM.
>
ah okay!
How do you subscribe to it? CLI command? What were the policies passed to
it?
>
> The cartridge is here [1], with ____CHANGE_ME____ replaced with my
> cartridge id.
>
> ---
> [1]
> https://github.com/snowch/stratos-vagrant-box/blob/master/openstack-qemu/example_cartridge.json
>
>
> On Tue, Apr 29, 2014 at 7:36 PM, Isuru Perera <is...@wso2.com> wrote:
> > I assume you are getting this error when subscribing? If so, please share
> > the cartridge definition.
> >
> >
> > On Tue, Apr 29, 2014 at 11:32 AM, chris snow <ch...@gmail.com>
> wrote:
> >>
> >> Hi Nirmal - no error was thrown when I saved the configuration SM.
> >>
> >> I'm using '4.0.0-incubating-rc1'
> >>
> >> On Tue, Apr 29, 2014 at 7:12 PM, Nirmal Fernando <
> nirmal070125@gmail.com>
> >> wrote:
> >> > I meant the deployment policy.
> >> >
> >> >
> >> > On Tue, Apr 29, 2014 at 11:41 PM, Nirmal Fernando
> >> > <ni...@gmail.com>
> >> > wrote:
> >> >>
> >> >> Hi Chris,
> >> >>
> >> >> Did it get deployed successfully? Also, are you using the master
> >> >> branch?
> >> >>
> >> >>
> >> >> On Tue, Apr 29, 2014 at 11:35 PM, chris snow <ch...@gmail.com>
> >> >> wrote:
> >> >>>
> >> >>> I'm receiving the following error in my stratos log file:
> >> >>>
> >> >>> TID: [0] [STRATOS] [2014-04-29 17:59:51,100] ERROR
> >> >>> {org.apache.stratos.autoscaler.util.AutoscalerUtil} - Deployment
> >> >>> Policy is null. Policy name: economyDeployment
> >> >>> {org.apache.stratos.autoscaler.util.AutoscalerUtil}
> >> >>>
> >> >>> My autoscale and deployment policies are below:
> >> >>>
> >> >>> vagrant@puppet:~$ cat
> >> >>> /vagrant/openstack-qemu/example_autoscale_policy.json
> >> >>> {
> >> >>> "id": "economyPolicy",
> >> >>> "loadThresholds": {
> >> >>> "requestsInFlight": {
> >> >>> "average": 50
> >> >>> },
> >> >>> "memoryConsumption": {
> >> >>> "average": 70
> >> >>> },
> >> >>> "loadAverage": {
> >> >>> "average": 100
> >> >>> }
> >> >>> }
> >> >>> }
> >> >>> vagrant@puppet:~$ cat
> >> >>> /vagrant/openstack-qemu/example_deployment_policy.json
> >> >>> {
> >> >>> "id": "economyDeployment",
> >> >>> "partitionGroup": [
> >> >>> {
> >> >>> "id": "G1",
> >> >>> "partitionAlgo": "one-after-another",
> >> >>> "partition": [
> >> >>> {
> >> >>> "id": "P1",
> >> >>> "partitionMax": "1",
> >> >>> "partitionMin": "1"
> >> >>> }
> >> >>> ]
> >> >>> }
> >> >>> ]
> >> >>> }
> >> >>>
> >> >>> Any ideas?
> >> >>>
> >> >>> Many thanks,
> >> >>>
> >> >>> Chris
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Best Regards,
> >> >> Nirmal
> >> >>
> >> >> Nirmal Fernando.
> >> >> PPMC Member & Committer of Apache Stratos,
> >> >> Senior Software Engineer, WSO2 Inc.
> >> >>
> >> >> Blog: http://nirmalfdo.blogspot.com/
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Best Regards,
> >> > Nirmal
> >> >
> >> > Nirmal Fernando.
> >> > PPMC Member & Committer of Apache Stratos,
> >> > Senior Software Engineer, WSO2 Inc.
> >> >
> >> > Blog: http://nirmalfdo.blogspot.com/
> >>
> >>
> >>
> >> --
> >> Check out my professional profile and connect with me on LinkedIn.
> >> http://lnkd.in/cw5k69
> >
> >
> >
> >
> > --
> > Isuru Perera
> > Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> > Lean . Enterprise . Middleware
> >
> > about.me/chrishantha
>
>
>
> --
> Check out my professional profile and connect with me on LinkedIn.
> http://lnkd.in/cw5k69
>
--
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware
about.me/chrishantha
Re: ERROR - Deployment Policy is null
Posted by chris snow <ch...@gmail.com>.
Hi Isuru, I only say the error by chance in the stratos log. No error
was shown in SM.
The cartridge is here [1], with ____CHANGE_ME____ replaced with my cartridge id.
---
[1] https://github.com/snowch/stratos-vagrant-box/blob/master/openstack-qemu/example_cartridge.json
On Tue, Apr 29, 2014 at 7:36 PM, Isuru Perera <is...@wso2.com> wrote:
> I assume you are getting this error when subscribing? If so, please share
> the cartridge definition.
>
>
> On Tue, Apr 29, 2014 at 11:32 AM, chris snow <ch...@gmail.com> wrote:
>>
>> Hi Nirmal - no error was thrown when I saved the configuration SM.
>>
>> I'm using '4.0.0-incubating-rc1'
>>
>> On Tue, Apr 29, 2014 at 7:12 PM, Nirmal Fernando <ni...@gmail.com>
>> wrote:
>> > I meant the deployment policy.
>> >
>> >
>> > On Tue, Apr 29, 2014 at 11:41 PM, Nirmal Fernando
>> > <ni...@gmail.com>
>> > wrote:
>> >>
>> >> Hi Chris,
>> >>
>> >> Did it get deployed successfully? Also, are you using the master
>> >> branch?
>> >>
>> >>
>> >> On Tue, Apr 29, 2014 at 11:35 PM, chris snow <ch...@gmail.com>
>> >> wrote:
>> >>>
>> >>> I'm receiving the following error in my stratos log file:
>> >>>
>> >>> TID: [0] [STRATOS] [2014-04-29 17:59:51,100] ERROR
>> >>> {org.apache.stratos.autoscaler.util.AutoscalerUtil} - Deployment
>> >>> Policy is null. Policy name: economyDeployment
>> >>> {org.apache.stratos.autoscaler.util.AutoscalerUtil}
>> >>>
>> >>> My autoscale and deployment policies are below:
>> >>>
>> >>> vagrant@puppet:~$ cat
>> >>> /vagrant/openstack-qemu/example_autoscale_policy.json
>> >>> {
>> >>> "id": "economyPolicy",
>> >>> "loadThresholds": {
>> >>> "requestsInFlight": {
>> >>> "average": 50
>> >>> },
>> >>> "memoryConsumption": {
>> >>> "average": 70
>> >>> },
>> >>> "loadAverage": {
>> >>> "average": 100
>> >>> }
>> >>> }
>> >>> }
>> >>> vagrant@puppet:~$ cat
>> >>> /vagrant/openstack-qemu/example_deployment_policy.json
>> >>> {
>> >>> "id": "economyDeployment",
>> >>> "partitionGroup": [
>> >>> {
>> >>> "id": "G1",
>> >>> "partitionAlgo": "one-after-another",
>> >>> "partition": [
>> >>> {
>> >>> "id": "P1",
>> >>> "partitionMax": "1",
>> >>> "partitionMin": "1"
>> >>> }
>> >>> ]
>> >>> }
>> >>> ]
>> >>> }
>> >>>
>> >>> Any ideas?
>> >>>
>> >>> Many thanks,
>> >>>
>> >>> Chris
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Best Regards,
>> >> Nirmal
>> >>
>> >> Nirmal Fernando.
>> >> PPMC Member & Committer of Apache Stratos,
>> >> Senior Software Engineer, WSO2 Inc.
>> >>
>> >> Blog: http://nirmalfdo.blogspot.com/
>> >
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> > Nirmal
>> >
>> > Nirmal Fernando.
>> > PPMC Member & Committer of Apache Stratos,
>> > Senior Software Engineer, WSO2 Inc.
>> >
>> > Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>> --
>> Check out my professional profile and connect with me on LinkedIn.
>> http://lnkd.in/cw5k69
>
>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
--
Check out my professional profile and connect with me on LinkedIn.
http://lnkd.in/cw5k69
Re: ERROR - Deployment Policy is null
Posted by Isuru Perera <is...@wso2.com>.
I assume you are getting this error when subscribing? If so, please share
the cartridge definition.
On Tue, Apr 29, 2014 at 11:32 AM, chris snow <ch...@gmail.com> wrote:
> Hi Nirmal - no error was thrown when I saved the configuration SM.
>
> I'm using '4.0.0-incubating-rc1'
>
> On Tue, Apr 29, 2014 at 7:12 PM, Nirmal Fernando <ni...@gmail.com>
> wrote:
> > I meant the deployment policy.
> >
> >
> > On Tue, Apr 29, 2014 at 11:41 PM, Nirmal Fernando <
> nirmal070125@gmail.com>
> > wrote:
> >>
> >> Hi Chris,
> >>
> >> Did it get deployed successfully? Also, are you using the master branch?
> >>
> >>
> >> On Tue, Apr 29, 2014 at 11:35 PM, chris snow <ch...@gmail.com>
> wrote:
> >>>
> >>> I'm receiving the following error in my stratos log file:
> >>>
> >>> TID: [0] [STRATOS] [2014-04-29 17:59:51,100] ERROR
> >>> {org.apache.stratos.autoscaler.util.AutoscalerUtil} - Deployment
> >>> Policy is null. Policy name: economyDeployment
> >>> {org.apache.stratos.autoscaler.util.AutoscalerUtil}
> >>>
> >>> My autoscale and deployment policies are below:
> >>>
> >>> vagrant@puppet:~$ cat
> >>> /vagrant/openstack-qemu/example_autoscale_policy.json
> >>> {
> >>> "id": "economyPolicy",
> >>> "loadThresholds": {
> >>> "requestsInFlight": {
> >>> "average": 50
> >>> },
> >>> "memoryConsumption": {
> >>> "average": 70
> >>> },
> >>> "loadAverage": {
> >>> "average": 100
> >>> }
> >>> }
> >>> }
> >>> vagrant@puppet:~$ cat
> >>> /vagrant/openstack-qemu/example_deployment_policy.json
> >>> {
> >>> "id": "economyDeployment",
> >>> "partitionGroup": [
> >>> {
> >>> "id": "G1",
> >>> "partitionAlgo": "one-after-another",
> >>> "partition": [
> >>> {
> >>> "id": "P1",
> >>> "partitionMax": "1",
> >>> "partitionMin": "1"
> >>> }
> >>> ]
> >>> }
> >>> ]
> >>> }
> >>>
> >>> Any ideas?
> >>>
> >>> Many thanks,
> >>>
> >>> Chris
> >>
> >>
> >>
> >>
> >> --
> >> Best Regards,
> >> Nirmal
> >>
> >> Nirmal Fernando.
> >> PPMC Member & Committer of Apache Stratos,
> >> Senior Software Engineer, WSO2 Inc.
> >>
> >> Blog: http://nirmalfdo.blogspot.com/
> >
> >
> >
> >
> > --
> > Best Regards,
> > Nirmal
> >
> > Nirmal Fernando.
> > PPMC Member & Committer of Apache Stratos,
> > Senior Software Engineer, WSO2 Inc.
> >
> > Blog: http://nirmalfdo.blogspot.com/
>
>
>
> --
> Check out my professional profile and connect with me on LinkedIn.
> http://lnkd.in/cw5k69
>
--
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware
about.me/chrishantha
Re: ERROR - Deployment Policy is null
Posted by chris snow <ch...@gmail.com>.
Hi Nirmal - no error was thrown when I saved the configuration SM.
I'm using '4.0.0-incubating-rc1'
On Tue, Apr 29, 2014 at 7:12 PM, Nirmal Fernando <ni...@gmail.com> wrote:
> I meant the deployment policy.
>
>
> On Tue, Apr 29, 2014 at 11:41 PM, Nirmal Fernando <ni...@gmail.com>
> wrote:
>>
>> Hi Chris,
>>
>> Did it get deployed successfully? Also, are you using the master branch?
>>
>>
>> On Tue, Apr 29, 2014 at 11:35 PM, chris snow <ch...@gmail.com> wrote:
>>>
>>> I'm receiving the following error in my stratos log file:
>>>
>>> TID: [0] [STRATOS] [2014-04-29 17:59:51,100] ERROR
>>> {org.apache.stratos.autoscaler.util.AutoscalerUtil} - Deployment
>>> Policy is null. Policy name: economyDeployment
>>> {org.apache.stratos.autoscaler.util.AutoscalerUtil}
>>>
>>> My autoscale and deployment policies are below:
>>>
>>> vagrant@puppet:~$ cat
>>> /vagrant/openstack-qemu/example_autoscale_policy.json
>>> {
>>> "id": "economyPolicy",
>>> "loadThresholds": {
>>> "requestsInFlight": {
>>> "average": 50
>>> },
>>> "memoryConsumption": {
>>> "average": 70
>>> },
>>> "loadAverage": {
>>> "average": 100
>>> }
>>> }
>>> }
>>> vagrant@puppet:~$ cat
>>> /vagrant/openstack-qemu/example_deployment_policy.json
>>> {
>>> "id": "economyDeployment",
>>> "partitionGroup": [
>>> {
>>> "id": "G1",
>>> "partitionAlgo": "one-after-another",
>>> "partition": [
>>> {
>>> "id": "P1",
>>> "partitionMax": "1",
>>> "partitionMin": "1"
>>> }
>>> ]
>>> }
>>> ]
>>> }
>>>
>>> Any ideas?
>>>
>>> Many thanks,
>>>
>>> Chris
>>
>>
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> Nirmal Fernando.
>> PPMC Member & Committer of Apache Stratos,
>> Senior Software Engineer, WSO2 Inc.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>
>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
--
Check out my professional profile and connect with me on LinkedIn.
http://lnkd.in/cw5k69
Re: ERROR - Deployment Policy is null
Posted by Nirmal Fernando <ni...@gmail.com>.
I meant the deployment policy.
On Tue, Apr 29, 2014 at 11:41 PM, Nirmal Fernando <ni...@gmail.com>wrote:
> Hi Chris,
>
> Did it get deployed successfully? Also, are you using the master branch?
>
>
> On Tue, Apr 29, 2014 at 11:35 PM, chris snow <ch...@gmail.com> wrote:
>
>> I'm receiving the following error in my stratos log file:
>>
>> TID: [0] [STRATOS] [2014-04-29 17:59:51,100] ERROR
>> {org.apache.stratos.autoscaler.util.AutoscalerUtil} - Deployment
>> Policy is null. Policy name: economyDeployment
>> {org.apache.stratos.autoscaler.util.AutoscalerUtil}
>>
>> My autoscale and deployment policies are below:
>>
>> vagrant@puppet:~$ cat
>> /vagrant/openstack-qemu/example_autoscale_policy.json
>> {
>> "id": "economyPolicy",
>> "loadThresholds": {
>> "requestsInFlight": {
>> "average": 50
>> },
>> "memoryConsumption": {
>> "average": 70
>> },
>> "loadAverage": {
>> "average": 100
>> }
>> }
>> }
>> vagrant@puppet:~$ cat
>> /vagrant/openstack-qemu/example_deployment_policy.json
>> {
>> "id": "economyDeployment",
>> "partitionGroup": [
>> {
>> "id": "G1",
>> "partitionAlgo": "one-after-another",
>> "partition": [
>> {
>> "id": "P1",
>> "partitionMax": "1",
>> "partitionMin": "1"
>> }
>> ]
>> }
>> ]
>> }
>>
>> Any ideas?
>>
>> Many thanks,
>>
>> Chris
>>
>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>
--
Best Regards,
Nirmal
Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.
Blog: http://nirmalfdo.blogspot.com/
Re: ERROR - Deployment Policy is null
Posted by Nirmal Fernando <ni...@gmail.com>.
Hi Chris,
Did it get deployed successfully? Also, are you using the master branch?
On Tue, Apr 29, 2014 at 11:35 PM, chris snow <ch...@gmail.com> wrote:
> I'm receiving the following error in my stratos log file:
>
> TID: [0] [STRATOS] [2014-04-29 17:59:51,100] ERROR
> {org.apache.stratos.autoscaler.util.AutoscalerUtil} - Deployment
> Policy is null. Policy name: economyDeployment
> {org.apache.stratos.autoscaler.util.AutoscalerUtil}
>
> My autoscale and deployment policies are below:
>
> vagrant@puppet:~$ cat
> /vagrant/openstack-qemu/example_autoscale_policy.json
> {
> "id": "economyPolicy",
> "loadThresholds": {
> "requestsInFlight": {
> "average": 50
> },
> "memoryConsumption": {
> "average": 70
> },
> "loadAverage": {
> "average": 100
> }
> }
> }
> vagrant@puppet:~$ cat
> /vagrant/openstack-qemu/example_deployment_policy.json
> {
> "id": "economyDeployment",
> "partitionGroup": [
> {
> "id": "G1",
> "partitionAlgo": "one-after-another",
> "partition": [
> {
> "id": "P1",
> "partitionMax": "1",
> "partitionMin": "1"
> }
> ]
> }
> ]
> }
>
> Any ideas?
>
> Many thanks,
>
> Chris
>
--
Best Regards,
Nirmal
Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.
Blog: http://nirmalfdo.blogspot.com/