Hi David,

Yes there seems to be an issue with PCA while processing Artifact Updated
Event . Can you please pull the latest code and work on it?

Also, have you attached the complete stratos log? Because I couldn't see
that the application is activated. If you have the complete log (from
application active -> inactive), please attach it here.

@Chamila, any thoughts why there is an error in processing Artifact Updated
Event in 4.1.0 beta2?

Thanks.

On Mon, May 18, 2015 at 6:16 AM, david hbase <davidhb...@gmail.com> wrote:

> The Stratos Log;
>
> [2015-05-18 00:33:07,238]  INFO
> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
> -  Service created: [service] php
> [2015-05-18 00:33:14,945]  INFO
> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
> Adding application: [application-id] single-cartridge-app01
> [2015-05-18 00:33:14,961]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2015-05-18 00:33:14,961+0000]
> [2015-05-18 00:33:15,072]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2015-05-18 00:33:15,072+0000]
> [2015-05-18 00:33:15,096]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2015-05-18 00:33:15,096+0000]
> [2015-05-18 00:33:15,156]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2015-05-18 00:33:15,156+0000]
> [2015-05-18 00:33:15,198]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2015-05-18 00:33:15,198+0000]
> [2015-05-18 00:33:15,370]  INFO
> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
> Application added successfully: [application-id] single-cartridge-app01
> [2015-05-18 00:33:25,061]  INFO
> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
> deploy application: [application-id] single-cartridge-app01
> [2015-05-18 00:33:25,198]  INFO
> {org.apache.stratos.messaging.message.processor.topology.ApplicationClustersCreatedMessageProcessor}
> -  Cluster created: [serviceName=php,
> clusterId=single-cartridge-app01.my-php.php.domain,
> autoscalePolicyName=autoscaling-policy-1a,
> deploymentPolicyName=deployment-policy-1a, hostNames=[
> single-cartridge-app01.my-php.stratos41beta2a.cisco.com], tenantRange=*,
> loadBalanceAlgorithmName=null, appId=single-cartridge-app01, parentId=null,
> accessUrls=null, kubernetesServices=[]]
> [2015-05-18 00:33:25,201]  INFO
> {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver}
> -  [ApplicationClustersCreatedEvent] Received: class
> org.apache.stratos.messaging.event.topology.ApplicationClustersCreatedEvent
> [2015-05-18 00:33:25,285]  INFO
> {org.apache.stratos.messaging.message.processor.application.ApplicationCreatedMessageProcessor}
> -  Application with id [ single-cartridge-app01 ] created
> [2015-05-18 00:33:25,314]  INFO
> {org.apache.stratos.autoscaler.context.AutoscalerContext} -  Adding network
> partition algorithm context : [application-id] single-cartridge-app01
> [2015-05-18 00:33:25,341]  INFO
> {org.apache.stratos.autoscaler.context.AutoscalerContext} -  network
> partition algorithm context is added successfully: [application-policy-id]
> single-cartridge-app01
> [2015-05-18 00:33:25,341]  INFO
> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
> Adding application signup: [application-id] single-cartridge-app01
> [2015-05-18 00:33:25,350]  INFO
> {org.apache.stratos.manager.components.ApplicationSignUpHandler} -  Adding
> application signup: [application-id] single-cartridge-app01 [tenant-id]
> -1234
> [2015-05-18 00:33:25,391]  INFO
> {org.apache.stratos.manager.components.ApplicationSignUpHandler} -
> Application signup added successfully: [application-id]
> single-cartridge-app01 [tenant-id] -1234
> [2015-05-18 00:33:25,392]  INFO
> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
> Application signup added successfully: [application-id]
> single-cartridge-app01
> [2015-05-18 00:33:25,416]  INFO
> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
> Waiting for application clusters to be created: [application]
> single-cartridge-app01
> [2015-05-18 00:33:25,419]  INFO
> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Application
> deployed successfully: [application-id] single-cartridge-app01
> [2015-05-18 00:33:26,201]  INFO
> {org.apache.stratos.autoscaler.util.AutoscalerUtil} -  Monitor scheduled:
> [application] single-cartridge-app01
> [2015-05-18 00:33:26,202]  INFO
> {org.apache.stratos.autoscaler.util.AutoscalerUtil} -  Starting monitor:
> [application] single-cartridge-app01
> [2015-05-18 00:33:26,203]  INFO
> {org.apache.stratos.autoscaler.applications.dependency.DependencyBuilder}
> -  Building dependency tree: [component] single-cartridge-app01
> [2015-05-18 00:33:26,204]  INFO
> {org.apache.stratos.autoscaler.applications.dependency.DependencyBuilder}
> -  Termination behaviour set: [component] single-cartridge-app01
> [termination-behaviour] null
> [2015-05-18 00:33:26,246]  WARN
> {org.apache.stratos.messaging.message.processor.application.ApplicationInstanceCreatedMessageProcessor}
> -  Application instance with id [ single-cartridge-app01-1 ] already exists
> [2015-05-18 00:33:26,249]  INFO
> {org.apache.stratos.autoscaler.monitor.component.ApplicationMonitor} -
> Application instance has been added for the [network partition]
> network-partition-1a [appInstanceId] single-cartridge-app01-1
> [2015-05-18 00:33:26,250]  INFO
> {org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor} -
> Starting dependent monitor: [application] single-cartridge-app01
> [component] single-cartridge-app01.my-php.php.domain
> [2015-05-18 00:33:26,250]  INFO
> {org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor} -
> Monitor scheduled: [type] cluster [component]
> single-cartridge-app01.my-php.php.domain
> [2015-05-18 00:33:26,250]  INFO
> {org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor} -
> Starting monitor: [type] cluster [component]
> single-cartridge-app01.my-php.php.domain
> [2015-05-18 00:33:26,251]  INFO
> {org.apache.stratos.autoscaler.util.AutoscalerUtil} -  Monitor started
> successfully: [application] single-cartridge-app01 [dependents]
> single-cartridge-app01.my-php.php.domain [startup-time] 0 seconds
> [2015-05-18 00:33:28,738]  INFO
> {org.apache.stratos.autoscaler.monitor.MonitorFactory} -  ClusterMonitor
> created: ClusterMonitor
> [clusterId=single-cartridge-app01.my-php.php.domain, hasPrimary=false ]
> [2015-05-18 00:33:28,740]  INFO
> {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver}
> -   Cluster monitor has scaling dependents  [false]
> [2015-05-18 00:33:28,740]  INFO
> {org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor} -
> Monitor started successfully: [type] cluster [component]
> single-cartridge-app01.my-php.php.domain [dependents] none [startup-time] 2
> seconds
> [2015-05-18 00:33:28,772]  INFO
> {org.apache.stratos.autoscaler.context.cluster.ClusterContext} -  Partition
> context has been added: [application] single-cartridge-app01  [cluster]
> single-cartridge-app01.my-php.php.domain [ClusterInstanceContext]
> single-cartridge-app01-1 [partition] partition-1
> [2015-05-18 00:33:28,772]  INFO
> {org.apache.stratos.autoscaler.context.cluster.ClusterContext} -  Cluster
> Instance context has been added: [application] single-cartridge-app01
> [cluster] single-cartridge-app01.my-php.php.domain [ClusterInstanceContext]
> single-cartridge-app01-1
> [2015-05-18 00:33:28,772]  INFO
> {org.apache.stratos.autoscaler.context.cluster.ClusterContext} -  Cluster
> instance context has been added to network partition, [application]
> single-cartridge-app01 [cluster] single-cartridge-app01.my-php.php.domain
> [cluster-instance] single-cartridge-app01-1 [network partition]
> network-partition-1a
> [2015-05-18 00:33:28,773]  INFO
> {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver}
> -  Monitoring task for Cluster Monitor with cluster id
> single-cartridge-app01.my-php.php.domain started successfully
> [2015-05-18 00:33:28,776]  INFO
> {org.apache.stratos.autoscaler.rule.RuleLog} -  [min-check] Partition
> available, hence trying to spawn an instance to fulfil minimum count!
> [cluster] single-cartridge-app01.my-php.php.domain
> [2015-05-18 00:33:28,782]  INFO
> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Trying to
> spawn an instance via cloud controller: [cluster]
> single-cartridge-app01.my-php.php.domain [partition] partition-1
> [network-partition-id] network-partition-1a
> [2015-05-18 00:33:28,845]  INFO
> {org.apache.stratos.messaging.message.processor.topology.MemberCreatedMessageProcessor}
> -  Member created: [service-name] php [cluster-id]
> single-cartridge-app01.my-php.php.domain [member-id]
> single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf
> [cluster-instance-id] single-cartridge-app01-1
> [2015-05-18 00:34:13,409]  INFO
> {org.apache.stratos.messaging.message.processor.topology.MemberInitializedMessageProcessor}
> -  Member initialized: [service] php [cluster]
> single-cartridge-app01.my-php.php.domain [member]
> single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf
> [2015-05-18 00:35:34,672]  INFO
> {org.apache.stratos.manager.messaging.receiver.StratosManagerInstanceStatusEventReceiver}
> -  Instance started event received: [application-id] single-cartridge-app01
> [cartridge-type] php [member-id]
> single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf
> [2015-05-18 00:35:34,707]  INFO
> {org.apache.stratos.messaging.message.processor.topology.MemberStartedMessageProcessor}
> -  Member started: [service] php [cluster]
> single-cartridge-app01.my-php.php.domain [member]
> single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf
> [2015-05-18 00:35:34,733]  INFO
> {org.apache.stratos.manager.components.ArtifactDistributionCoordinator} -
> Artifact updated event published: [application-id] single-cartridge-app01
> [tenant-id] -1234 [cartridge-type] php [alias] my-php [repo-url]
> https://github.com/imesh/stratos-php-applications.git
>
>
> On Sun, May 17, 2015 at 5:44 PM, david hbase <davidhb...@gmail.com> wrote:
>
>> Hi, Raj
>>
>> The cartridge agent log: (*ERROR:Error processing 'ArtifactUpdatedEvent'
>> event*)
>>
>> 2015-05-18 00:35:34,666:DEBUG:Executing handler for event
>> 'ArtifactUpdatedEvent'
>> 2015-05-18 00:35:34,667:INFO:Processing Artifact update event: [tenant]
>> -1234 [cluster] single-cartridge-app01.my-php.php.domain [status] None
>> 2015-05-18 00:35:34,667:INFO:Executing git checkout
>> 2015-05-18 00:35:34,667:DEBUG:Repo path returned : None
>> 2015-05-18 00:35:34,667:DEBUG:Cloning artifacts from
>> https://github.com/imesh/stratos-php-applications.git for the first time
>> to None
>> 2015-05-18 00:35:34,667:DEBUG:Executing git clone: [tenant-id] -1234
>> [repo-url] https://github.com/imesh/stratos-php-applications.git, [repo
>> path] None
>> 2015-05-18 00:35:34,667:ERROR:Error processing 'ArtifactUpdatedEvent'
>> event
>> Traceback (most recent call last):
>>   File
>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/subscriber/eventsubscriber.py",
>> line 103, in run
>>     handler(event_msg)
>>   File "agent.py", line 193, in on_artifact_updated
>>     self.__event_handler.on_artifact_updated_event(event_obj)
>>   File
>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/event/eventhandler.py",
>> line 96, in on_artifact_updated_event
>>     subscribe_run, updated = AgentGitHandler.checkout(repo_info)
>>   File
>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py",
>> line 89, in checkout
>>     git_repo = AgentGitHandler.clone(git_repo)
>>   File
>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py",
>> line 185, in clone
>>     if os.path.isdir(git_repo.local_repo_path) and
>> os.listdir(git_repo.local_repo_path) != []:
>>   File "/usr/lib/python2.7/genericpath.py", line 41, in isdir
>>     st = os.stat(s)
>> TypeError: coercing to Unicode: need string or buffer, NoneType found
>> 2015-05-18 00:35:34,669:INFO:MemberStartedEvent Extension executed.
>> [output]: Mon May 18 00:35:34 UTC 2015: Member Started Event: MEMBER_ID: ,
>> MEMBER_IP: , CLUSTER_ID: , LB_CLUSTER_ID: , NETWORK_PARTITION_ID: ,
>> SERVICE_NAME: , PORTS: , STRATOS_LB_IP: , STRATOS_LB_PUBLIC_IP: ,
>> APPLICATION_PATH: , STRATOS_PARAM_FILE_PATH:
>> Member List:
>> Topology:
>> ---------------
>>
>> 2015-05-18 00:35:34,670:INFO:MemberStartedEvent Extension executed.
>> [output]: Mon May 18 00:35:34 UTC 2015: Member Started Event: MEMBER_ID: ,
>> MEMBER_IP: , CLUSTER_ID: , LB_CLUSTER_ID: , NETWORK_PARTITION_ID: ,
>> SERVICE_NAME: , PORTS: , STRATOS_LB_IP: , STRATOS_LB_PUBLIC_IP: ,
>> APPLICATION_PATH: , STRATOS_PARAM_FILE_PATH:
>> Member List:
>> Topology:
>> ---------------
>>
>> 2015-05-18 00:35:34,671:DEBUG:No plugins registered for event
>> MemberStartedEvent
>> 2015-05-18 00:36:27,472:DEBUG:Message received:
>> topology/CompleteTopologyEvent:
>>
>> {"topology":{"clusterMap":{},"serviceMap":{"php":{"serviceName":"php","serviceType":"SingleTenant","clusterIdClusterMap":{"single-cartridge-app01.my-php.php.domain":{"serviceName":"php","clusterId":"single-cartridge-app01.my-php.php.domain","autoscalePolicyName":"autoscaling-policy-1a","deploymentPolicyName":"deployment-policy-1a","hostNames":["
>> single-cartridge-app01.my-php.stratos41beta2a.cisco.com
>> "],"tenantRange":"*","isLbCluster":false,"isKubernetesCluster":false,"memberMap":{"single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf":{"serviceName":"php","clusterId":"single-cartridge-app01.my-php.php.domain","memberId":"single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf","clusterInstanceId":"single-cartridge-app01-1","networkPartitionId":"network-partition-1a","partitionId":"partition-1","initTime":1431909208794,"portMap":{},"memberPublicIPs":[],"memberPrivateIPs":["192.168.21.72","10.203.51.54"],"defaultPrivateIP":"192.168.21.72","properties":{"PRIMARY":"false","MIN_COUNT":"1"},"memberStateManager":{"stateStack":["Created","Initialized","Starting"],"identifier":"single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf"},"loadBalancingIPType":"Private"}},"appId":"single-cartridge-app01","properties":{},"instanceIdToInstanceContextMap":{"single-cartridge-app01-1":{"instanceId":"single-cartridge-app01-1","instanceProperties":{},"lifeCycleStateManager":{"stateStack":["Created"],"identifier":"single-cartridge-app01.my-php.php.domain_single-cartridge-app01-1"},"networkPartitionId":"network-partition-1a"}},"kubernetesServices":[]}},"portMap":{"8280":{"protocol":"http","value":80,"proxy":8280}},"properties":{}}},"initialized":false}}
>> 2015-05-18 00:36:27,472:DEBUG:Executing handler for event
>> 'CompleteTopologyEvent'
>> 2015-05-18 00:36:27,473:DEBUG:Complete topology event updating task
>> disabled
>> 2015-05-18 00:36:27,488:DEBUG:Message received:
>> application/signup/CompleteApplicationSignUpsEvent:
>>
>> {"applicationSignUps":[{"tenantId":-1234,"applicationId":"single-cartridge-app01","artifactRepositories":[{"cartridgeType":"php","alias":"my-php","privateRepo":false,"repoUrl":"
>> https://github.com/imesh/stratos-php-applications.git
>> ","repoUsername":"","repoPassword":""}],"clusterIds":["single-cartridge-app01.my-php.php.domain"]}]}
>> 2015-05-18 00:36:27,489:DEBUG:Event handler not found for event :
>> 'CompleteApplicationSignUpsEvent'
>> 2015-05-18 00:36:27,505:DEBUG:Message received:
>> tenant/CompleteTenantEvent:
>> {"tenants":[]}
>> 2015-05-18 00:36:27,505:DEBUG:Executing handler for event
>> 'CompleteTenantEvent'
>> 2015-05-18 00:36:27,506:DEBUG:Complete tenant event received
>> 2015-05-18 00:36:27,506:DEBUG:Processing Complete tenant event...
>> 2015-05-18 00:36:27,506:DEBUG:Complete tenants:[]
>> 2015-05-18 00:36:27,507:DEBUG:Reading property: param.file.path =
>> /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params
>> 2015-05-18 00:36:27,507:DEBUG:Executing extension for event
>> [CompleteTenantEvent]
>> 2015-05-18 00:36:27,508:DEBUG:Running extension for CompleteTenantEvent
>> 2015-05-18 00:36:27,510:DEBUG:Running extension for CompleteTenantEvent
>> 2015-05-18 00:36:27,526:INFO:CompleteTenantEvent Extension executed.
>> [output]: Mon May 18 00:36:27 UTC 2015: Complete Tenant Event:
>> Member List:
>> Tenant List:
>>
>> 2015-05-18 00:36:27,529:INFO:CompleteTenantEvent Extension executed.
>> [output]: Mon May 18 00:36:27 UTC 2015: Complete Tenant Event:
>> Member List:
>> Tenant List:
>>
>> 2015-05-18 00:36:27,529:DEBUG:No plugins registered for event
>> CompleteTenantEvent
>> 2015-05-18 00:37:27,467:DEBUG:Message received:
>> topology/CompleteTopologyEvent:
>>
>> {"topology":{"clusterMap":{},"serviceMap":{"php":{"serviceName":"php","serviceType":"SingleTenant","clusterIdClusterMap":{"single-cartridge-app01.my-php.php.domain":{"serviceName":"php","clusterId":"single-cartridge-app01.my-php.php.domain","autoscalePolicyName":"autoscaling-policy-1a","deploymentPolicyName":"deployment-policy-1a","hostNames":["
>> single-cartridge-app01.my-php.stratos41beta2a.cisco.com
>> "],"tenantRange":"*","isLbCluster":false,"isKubernetesCluster":false,"memberMap":{"single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf":{"serviceName":"php","clusterId":"single-cartridge-app01.my-php.php.domain","memberId":"single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf","clusterInstanceId":"single-cartridge-app01-1","networkPartitionId":"network-partition-1a","partitionId":"partition-1","initTime":1431909208794,"portMap":{},"memberPublicIPs":[],"memberPrivateIPs":["192.168.21.72","10.203.51.54"],"defaultPrivateIP":"192.168.21.72","properties":{"PRIMARY":"false","MIN_COUNT":"1"},"memberStateManager":{"stateStack":["Created","Initialized","Starting"],"identifier":"single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf"},"loadBalancingIPType":"Private"}},"appId":"single-cartridge-app01","properties":{},"instanceIdToInstanceContextMap":{"single-cartridge-app01-1":{"instanceId":"single-cartridge-app01-1","instanceProperties":{},"lifeCycleStateManager":{"stateStack":["Created"],"identifier":"single-cartridge-app01.my-php.php.domain_single-cartridge-app01-1"},"networkPartitionId":"network-partition-1a"}},"kubernetesServices":[]}},"portMap":{"8280":{"protocol":"http","value":80,"proxy":8280}},"properties":{}}},"initialized":false}}
>> 2015-05-18 00:37:27,467:DEBUG:Executing handler for event
>> 'CompleteTopologyEvent'
>> 2015-05-18 00:37:27,468:DEBUG:Complete topology event updating task
>> disabled
>> 2015-05-18 00:37:27,492:DEBUG:Message received:
>> application/signup/CompleteApplicationSignUpsEvent:
>>
>> {"applicationSignUps":[{"tenantId":-1234,"applicationId":"single-cartridge-app01","artifactRepositories":[{"cartridgeType":"php","alias":"my-php","privateRepo":false,"repoUrl":"
>> https://github.com/imesh/stratos-php-applications.git
>> ","repoUsername":"","repoPassword":""}],"clusterIds":["single-cartridge-app01.my-php.php.domain"]}]}
>> 2015-05-18 00:37:27,492:DEBUG:Event handler not found for event :
>> 'CompleteApplicationSignUpsEvent'
>> 2015-05-18 00:37:27,510:DEBUG:Message received:
>> tenant/CompleteTenantEvent:
>> {"tenants":[]}
>> 2015-05-18 00:37:27,510:DEBUG:Executing handler for event
>> 'CompleteTenantEvent'
>>
>>
>>
>> On Sun, May 17, 2015 at 4:57 PM, Rajkumar Rajaratnam <rajkum...@wso2.com>
>> wrote:
>>
>>>
>>>
>>> On Mon, May 18, 2015 at 4:33 AM, david hbase <davidhb...@gmail.com>
>>> wrote:
>>>
>>>> Hi, Raj
>>>>
>>>> Thanks for your help, the application can be activated now.
>>>>
>>>> I got another issue is: After the application activated about 2~5
>>>> minutes, then the application cluster became "inactive", but the instance
>>>> keep as "active" status. I have checked our JIRA, there are some tickets
>>>> related. I will dig out more info and update here.
>>>>
>>>
>>> ​Can you please attach both stratos log and cartridge agent log here?
>>> Did you put the correct CEP IP in base.pp? Since you are not using external
>>> CEP, your CEP IP is same as Stratos IP.
>>> ​
>>>
>>>
>>>>
>>>> Q: Could you send me an instruction to update the code base to current
>>>> master with openstack env ? (My source build is May 4, need to be update to
>>>> current )
>>>>
>>>
>>> ​Simply you can pull the latest code from the master (git pull origin
>>> master) and work on it. ​
>>>
>>>
>>> ​Thanks.​
>>>
>>>
>>>>
>>>> Thanks
>>>> -D
>>>>
>>>> On Fri, May 15, 2015 at 11:53 PM, Rajkumar Rajaratnam <
>>>> rajkum...@wso2.com> wrote:
>>>>
>>>>> Hi David,
>>>>>
>>>>> Please attach the complete stratos logs for this scenario.
>>>>>
>>>>> 1. org.apache.stratos.cloud.controller.exception.CloudControllerException:
>>>>> Failed to allocate an IP address. ( not sure the cause )
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Thu, May 14, 2015 at 10:36 AM, david hbase <davidhb...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Thanks for your quick update. verify with my config now.
>>>>>> -D
>>>>>>
>>>>>> On Wed, May 13, 2015 at 9:48 PM, Udara Liyanage <ud...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi David,
>>>>>>>
>>>>>>> I am attached the init script I am using.
>>>>>>>
>>>>>>> My Stratos configuration in
>>>>>>> *repository/conf/cartridge-config.properties*
>>>>>>>
>>>>>>> puppet.ip=192.168.30.81
>>>>>>> puppet.hostname=puppet.ppaas.puppetmaster.com
>>>>>>>
>>>>>>> After executing init script my */etc/hosts* file content is as
>>>>>>> below. 825114051510 is a random number generated which you get a 
>>>>>>> different
>>>>>>> value.
>>>>>>> 192.168.30.81  puppet.ppaas.puppetmaster.com
>>>>>>> 127.0.0.1
>>>>>>> 825114051510.default.appserver-manager.puppet.ppaas.puppetmaster.com
>>>>>>> 825114051510
>>>>>>>
>>>>>>> Content in* /etc/hostname*
>>>>>>> 825114051510
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thu, May 14, 2015 at 8:01 AM, david hbase <davidhb...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Additional info:
>>>>>>>>
>>>>>>>> 1. During the instance created, successfully assigned an IP, but
>>>>>>>> Stratos can not get the IP.
>>>>>>>> 2. The init script have issue with the
>>>>>>>> PUPPET_HOSTNAME=puppet-hostname
>>>>>>>> <https://github.com/imesh/stratos-php-applications.git,PORTS=80,PROVIDER=apache,PUPPET_IP=127.0.0.1,PUPPET_HOSTNAME=puppet-hostname>
>>>>>>>> , the puppet master server can not be assigned
>>>>>>>>
>>>>>>>> The above two issues did not triggerd by 4.0, only repeatable with
>>>>>>>> 4.1
>>>>>>>>
>>>>>>>> Please help. Thanks
>>>>>>>> -D
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, May 13, 2015 at 6:03 PM, david hbase <davidhb...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi, Udara
>>>>>>>>>
>>>>>>>>> I have tried multiple times, Instance creating and termination are
>>>>>>>>> working without any error. But got the following errors as:
>>>>>>>>>
>>>>>>>>> 1.
>>>>>>>>> org.apache.stratos.cloud.controller.exception.CloudControllerException:
>>>>>>>>> Failed to allocate an IP address. ( not sure the cause )
>>>>>>>>>
>>>>>>>>> 2. puppet-agent[1181]: Could not request certificate: Connection
>>>>>>>>> refused - connect(2) (cause by payload is wrong data:
>>>>>>>>> MCUuvbV7,DEPLOYMENT=default,REPO_URL=
>>>>>>>>> https://github.com/imesh/stratos-php-applications.git,PORTS=80,PROVIDER=apache,PUPPET_IP=127.0.0.1,PUPPET_HOSTNAME=puppet-hostname
>>>>>>>>> )
>>>>>>>>>
>>>>>>>>> Could you test with current init script (
>>>>>>>>> https://github.com/apache/stratos/tree/master/tools/init-scripts)
>>>>>>>>> and our beta2 code base?
>>>>>>>>>
>>>>>>>>> The php cartridge defined as following:
>>>>>>>>>
>>>>>>>>> {
>>>>>>>>>   "type": "php",
>>>>>>>>>   "provider": "apache",
>>>>>>>>>   "category": "data",
>>>>>>>>>   "host": "stratos41beta2a.abc.com",
>>>>>>>>>   "displayName": "php1a",
>>>>>>>>>   "description": "php Cartridge",
>>>>>>>>>   "version": "7",
>>>>>>>>>   "multiTenant": "false",
>>>>>>>>>   "portMapping": [
>>>>>>>>>     {
>>>>>>>>>       "protocol": "http",
>>>>>>>>>       "port": "80",
>>>>>>>>>       "proxyPort": "8280"
>>>>>>>>>     }
>>>>>>>>>   ],
>>>>>>>>>   "deployment": {
>>>>>>>>>   },
>>>>>>>>>   "iaasProvider": [
>>>>>>>>>     {
>>>>>>>>>       "type": "openstack",
>>>>>>>>>       "imageId":
>>>>>>>>> "us-internal-1/xxxxxx6-aa6d-4c3c-9b5d-e51cef6ecca0",
>>>>>>>>>       "networkInterfaces": [
>>>>>>>>>         {
>>>>>>>>>           "name": "public-direct-600",
>>>>>>>>>           "networkUuid": "2d84exxxxxx-4dc8-9897-dd8ef4719f8b"
>>>>>>>>>         }
>>>>>>>>>       ],
>>>>>>>>>       "property": [
>>>>>>>>>         {
>>>>>>>>>           "name": "instanceType",
>>>>>>>>>           "value":
>>>>>>>>> "us-internal-1/6xxxxxx-541b-49a5-be4c-f2320ae4a917"
>>>>>>>>>         },
>>>>>>>>>         {
>>>>>>>>>           "name": "keyPair",
>>>>>>>>>           "value": "david"
>>>>>>>>>         },
>>>>>>>>>         {
>>>>>>>>>           "name": "securityGroups",
>>>>>>>>>           "value": "default"
>>>>>>>>>         }
>>>>>>>>>       ]
>>>>>>>>>     }
>>>>>>>>>   ]
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> Thanks for your help
>>>>>>>>> -D
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, May 13, 2015 at 10:33 AM, Udara Liyanage <ud...@wso2.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Hi David,
>>>>>>>>>>
>>>>>>>>>> I have tested Stratos with Openstack Icehouse and it is working
>>>>>>>>>> without any issue for the moment. see my exact Openstack version
>>>>>>>>>> rpm -qa | grep nova-common
>>>>>>>>>> openstack-nova-common-2014.1.2-1.el6.noarch
>>>>>>>>>>
>>>>>>>>>> Instance creating, termination, ip assigning working for me
>>>>>>>>>> without any issue.
>>>>>>>>>>
>>>>>>>>>> On Wed, May 13, 2015 at 10:51 PM, david hbase <
>>>>>>>>>> davidhb...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi, Dev Team
>>>>>>>>>>>
>>>>>>>>>>> If anyone tested the Stratos 4.1 with Openstack? I am focusing
>>>>>>>>>>> on the 4.1 with icehouse now. Open this email chain to post the 
>>>>>>>>>>> issues and
>>>>>>>>>>> solutions.
>>>>>>>>>>>
>>>>>>>>>>> Thanks
>>>>>>>>>>> -D
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> Udara Liyanage
>>>>>>>>>> Software Engineer
>>>>>>>>>> WSO2, Inc.: http://wso2.com
>>>>>>>>>> lean. enterprise. middleware
>>>>>>>>>>
>>>>>>>>>> web: http://udaraliyanage.wordpress.com
>>>>>>>>>> phone: +94 71 443 6897
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> Udara Liyanage
>>>>>>> Software Engineer
>>>>>>> WSO2, Inc.: http://wso2.com
>>>>>>> lean. enterprise. middleware
>>>>>>>
>>>>>>> web: http://udaraliyanage.wordpress.com
>>>>>>> phone: +94 71 443 6897
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Rajkumar Rajaratnam
>>>>> Committer & PMC Member, Apache Stratos
>>>>> Software Engineer, WSO2
>>>>>
>>>>> Mobile : +94777568639
>>>>> Blog : rajkumarr.com
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Rajkumar Rajaratnam
>>> Committer & PMC Member, Apache Stratos
>>> Software Engineer, WSO2
>>>
>>> Mobile : +94777568639
>>> Blog : rajkumarr.com
>>>
>>
>>
>


-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com

Reply via email to