stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chris snow <chsnow...@gmail.com>
Subject Re: ERROR - Deployment Policy is null
Date Tue, 29 Apr 2014 18:40:00 GMT
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 <isurup@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 <chsnow123@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
>> > <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 <chsnow123@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

Mime
View raw message