Hi Imesh,

What I have in mind is a conf file with values for (ex:) region, key and
security group, that the deploy script will include in the artifacts before
executing the REST calls, for each cartridge definition, deployment policy,
network partition artifacts. I will try this possibility.


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Thu, Feb 19, 2015 at 9:18 AM, Imesh Gunaratne <im...@apache.org> wrote:

> Each cartridge should specify which IaaS/region to use. Then we need to
> specify them in the cartridge definition. How can we use a configuration
> file in this scenario?
>
> On Thu, Feb 19, 2015 at 9:10 AM, Chamila De Alwis <chami...@wso2.com>
> wrote:
>
>> Hi Udara,
>>
>> Thanks for the response, yes that was the reason. Why not have a conf
>> file to specify these values which can be included in the samples when
>> running? It might complicate the setup, however it can also simplify
>> configuring the samples.
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Thu, Feb 19, 2015 at 6:59 AM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>>> Hi Chamila,
>>>
>>> Yes, region is "default" in the artifact you have deployed. It is
>>> "RegionOne" for default openstack setup unless you have explicitly define
>>> regions
>>> On 19 Feb 2015 01:41, "Chamila De Alwis" <chami...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm coming across the following error when executing the deploy script
>>>> in the single cartridge application, for openstack. It seems like an issue
>>>> with the artifacts.
>>>>
>>>> TID: [0] [STRATOS] [2015-02-19 01:22:50,668]  INFO
>>>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Validating
>>>> partitions of policy via cloud controller: [cartridge-type] php
>>>> TID: [0] [STRATOS] [2015-02-19 01:22:50,670]  INFO
>>>> {org.apache.stratos.messaging.message.processor.application.ApplicationCreatedMessageProcessor}
>>>> -  Application with id [ single-cartridge-app ] created
>>>> TID: [0] [STRATOS] [2015-02-19 01:22:56,802] ERROR
>>>> {org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator}
>>>> -  Invalid partition detected, invalid region: [partition-id] partition-1
>>>> [region] default
>>>> TID: [0] [STRATOS] [2015-02-19 01:22:56,804] ERROR
>>>> {org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator}
>>>> -  Invalid partition detected: [partition-id] partition-1Invalid partition
>>>> detected, invalid region: [partition-id] partition-1 [region] default
>>>> org.apache.stratos.cloud.controller.exception.InvalidPartitionException:
>>>> Invalid partition detected, invalid region: [partition-id] partition-1
>>>> [region] default
>>>> at
>>>> org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator.validate(OpenstackPartitionValidator.java:60)
>>>> at
>>>> org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartitionAndGetIaasProvider(CloudControllerServiceUtil.java:97)
>>>> at
>>>> org.apache.stratos.cloud.controller.concurrent.PartitionValidatorCallable.call(PartitionValidatorCallable.java:50)
>>>> at
>>>> org.apache.stratos.cloud.controller.concurrent.PartitionValidatorCallable.call(PartitionValidatorCallable.java:30)
>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>> at java.lang.Thread.run(Thread.java:744)
>>>> TID: [0] [STRATOS] [2015-02-19 01:22:56,805] ERROR
>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>> -  Could not cache partitions against the cartridge: [cartridge-type] php
>>>> java.util.concurrent.ExecutionException:
>>>> org.apache.stratos.cloud.controller.exception.InvalidPartitionException:
>>>> Invalid partition detected: [partition-id] partition-1Invalid partition
>>>> detected, invalid region: [partition-id] partition-1 [region] default
>>>>
>>>>
>>>> Regards,
>>>> Chamila de Alwis
>>>> Software Engineer | WSO2 | +94772207163
>>>> Blog: code.chamiladealwis.com
>>>>
>>>>
>>>>
>>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>

Reply via email to