stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Udara Liyanage <ud...@wso2.com>
Subject Re: repoURL not passed to container from application defintion
Date Tue, 18 Nov 2014 05:48:40 GMT
Hi Chamila,

In VM scenario repo URL should be passed to the instance as payload and to
metadata service. Additionally username and encrypted password is published
to metadata service. Could you check whether they are published to metadata
service.

On Tue, Nov 18, 2014 at 11:05 AM, Chamila De Alwis <chamilad@wso2.com>
wrote:

> Created JIRA
>
> https://issues.apache.org/jira/browse/STRATOS-976
>
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Mon, Nov 17, 2014 at 3:27 AM, Chamila De Alwis <chamilad@wso2.com>
> wrote:
>
>> Hi,
>>
>> When an application is deployed with the following definition the repoURL
>> is not passed to the container as an environment variable. Furthermore, it
>> seems the ArtifactUpdatedEvent is also not published. Therefore, although
>> the InstanceActivatedEvent is published from the agent, the artifacts are
>> not copied to the app path.
>>
>> Following is the application definition I used.
>>
>> {
>>   "applicationId": "test_app_2",
>>   "alias": "mytestapp1",
>>   "components": {
>>     "subscribables": [
>>       {
>>         "type": "php",
>>         "alias": "myphp"
>>       }
>>     ],
>>
>>   },
>>   "subscribableInfo": [
>>     {
>>       "alias": "myphp",
>>       "commitsEnabled": "false",
>>       "autoscalingPolicy": "economy",
>>       "repoURL": "https://github.com/drnic/php-helloworld.git",
>>       "property": [
>>         {
>>           "name": "KUBERNETES_CLUSTER_ID",
>>           "value": "KubGrp1"
>>         },
>>         {
>>           "name": "KUBERNETES_REPLICAS_MIN",
>>           "value": "3"
>>         },
>>         {
>>           "name": "KUBERNETES_REPLICAS_MAX",
>>           "value": "20"
>>         },
>>         {
>>           "name": "payload_parameter.MB_IP",
>>           "value": "172.17.8.1"
>>         },
>>         {
>>           "name": "payload_parameter.MB_PORT",
>>           "value": "1883"
>>         },
>>         {
>>           "name": "payload_parameter.CEP_IP",
>>           "value": "172.17.8.1"
>>         },
>>         {
>>           "name": "payload_parameter.CEP_PORT",
>>           "value": "7711"
>>         },
>>         {
>>           "name": "payload_parameter.APP_PATH",
>>           "value": "/var/www/www"
>>         },
>>         {
>>           "name": "payload_parameter.LOG_LEVEL",
>>           "value": "DEBUG"
>>         }
>>       ]
>>     }
>>   ]
>> }
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Mime
View raw message