Currently payload parameters get generated at the time application is created. Until the existing application is deleted and created again they do not get updated. We need to improve this logic.
On Wed, Sep 16, 2015 at 8:52 AM, Udara Liyanage <ud...@wso2.com> wrote: > Hi, > > Earlier I did not have APPLICATION_PATH parameter in my cartridge. Then I > updated the cartridge(PUT /applications) adding this parameter. Still it > did not work. > > I got this resolved only after deleting my tomcat application and tomcat > cartridge and re deploying both. Until that APPLICATION_PATH payload > parameter is not set. So it seems that cartridge update does not update > payload parameters. > > > On Tue, Sep 15, 2015 at 8:15 PM, Udara Liyanage <ud...@wso2.com> wrote: > >> Hi, >> >> I get the following error when deployed a tomcat cartridge. Though I >> added *APPLICATION_PATH *as a payload parameter, agent.conf still >> set APPLICATION_PATH to null >> >> >> >> {"clusterId":"tomcatr1.my-tomcat.tomcat.domain","repoUserName":"","repoPassword":"","repoURL":" >> https://github.com/lakwarus/single-cartridge.git >> ","tenantId":"-1234","commitEnabled":false} >> [2015-09-16 03:09:02,270] DEBUG {subscriber.py:run} - Executing handler >> for event 'ArtifactUpdatedEvent' >> [2015-09-16 03:09:02,270] INFO >> {eventhandler.py:on_artifact_updated_event} - Processing Artifact update >> event: [tenant] -1234 [cluster] tomcatr1.my-tomcat.tomcat.domain [status] >> None >> [2015-09-16 03:09:02,270] INFO >> {eventhandler.py:on_artifact_updated_event} - Executing git checkout >> [2015-09-16 03:09:02,270] ERROR {subscriber.py:run} - Error processing >> 'ArtifactUpdatedEvent' event >> Traceback (most recent call last): >> File "/mnt/apache-stratos-python-cartridge-agent-4.1.2/subscriber.py", >> line 105, in run >> handler(event_msg) >> File "agent.py", line 197, in on_artifact_updated >> self.__event_handler.on_artifact_updated_event(event_obj) >> File >> "/mnt/apache-stratos-python-cartridge-agent-4.1.2/modules/event/eventhandler.py", >> line 86, in on_artifact_updated_event >> raise GitRepositorySynchronizationException("Repository path is >> empty. Cannot perform Git operations.") >> GitRepositorySynchronizationException: Repository path is empty. Cannot >> perform Git operations. >> [2015-09-16 03:09:02,275] DEBUG {subscriber.py:on_message} - Message >> received: topology/MemberStartedEvent: >> >> >> >> log.file.paths = >> *APPLICATION_PATH =* >> metadata.service.url =https://52.76.68.248:9443 >> super.tenant.repository.path =/repository/deployment/server/ >> tenant.repository.path =/repository/tenants/ >> >> >> { >> "category": "framework", >> "description": "tomcat Cartridge", >> "displayName": "tomcat", >> "host": "tomcat.stratos.org", >> "iaasProvider": [ >> { >> "imageId": "udaraliyanage/stratos-tomcat", >> "type": "kubernetes" >> } >> ], >> "loadBalancingIPType": "public", >> "multiTenant": false, >> "portMapping": [ >> { >> "kubernetesPortType": "NodePort", >> "name": "http-8080", >> "port": 8080, >> "protocol": "http", >> "proxyPort": 8281 >> } >> ], >> "property": [ >> { >> "name": "KUBERNETES_CONTAINER_CPU", >> "value": 0 >> }, >> { >> "name": "KUBERNETES_CONTAINER_MEMORY", >> "value": 0 >> }, >> { >> "name": "KUBERNETES_SERVICE_SESSION_AFFINITY", >> "value": "None" >> }, >> { >> * "name": "payload_parameter.APPLICATION_PATH",* >> * "value": "/opt/tomcat/webapps"* >> } >> ], >> "provider": "apache", >> "type": "tomcat", >> "version": 7 >> } >> >> >> -- >> >> 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 > -- Imesh Gunaratne Senior Technical Lead, WSO2 Committer & PMC Member, Apache Stratos