Hi Lahiru, Had a look. Here, the method call 'AgentGitHandler.get_repo(tenant_id)' seems to be not returning the expected git_repo object. Its returning a NoneType object, similar to NULL. The root cause AFAIS is the git repository being removed upon receiving application signup removed event in eventhandler.py [1].
[1]. AgentGitHandler.remove_repo(application_signup_removed_event.tenanId) On Mon, Jun 1, 2015 at 12:03 AM, Lahiru Sandaruwan <lahi...@wso2.com> wrote:On Tue, May 26, 2015 at 2:08 PM, Imesh Gunaratne <im...@apache.org> wrote:I did an end to end test with Kubernetes, single-cartridge application and found the below error in PCA when un-deploying the application:I have committed fix sent by Chamila and it solves this. Then i got an issue in tenant id retrieval due to a typo. I have fixed it as well.Still get the following error, [1] in the undeployment process. Looking into it.Thanks.[1] 2015-05-31 23:51:33,583:INFO:Processing Tenant unsubscribed event: [tenant] -1234 [application ID] single-cartridge-app2015-05-31 23:51:33,583:ERROR:Error processing 'ApplicationSignUpRemovedEvent' eventTraceback (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 294, in on_application_signup_removed self.__event_handler.on_application_signup_removed_event(event_obj) File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/event/eventhandler.py", line 355, in on_application_signup_removed_event AgentGitHandler.remove_repo(application_signup_removal_event.tenantId) File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py", line 407, in remove_repo git_repo.scheduled_update_task.terminate()AttributeError: 'NoneType' object has no attribute 'scheduled_update_task'[2015-05-26 06:44:40,038] ERROR {eventsubscriber.py:run} - Error processing 'ApplicationSignUpRemovedEvent' eventTraceback (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 294, in on_application_signup_removed self.__event_handler.on_application_signup_removed_event(event_obj) File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/event/eventhandler.py", line 351, in on_application_signup_removed_event " [application ID] " + application_signup_removal_event.applicationIdTypeError: cannot concatenate 'str' and 'int' objectsOn Mon, May 25, 2015 at 4:10 PM, Lahiru Sandaruwan < lahi...@wso2.com> wrote:Hi All,This thread is for discussion of the second release candidate of Apache Stratos 4.1.0. Please use this thread for discussion of issues uncovered in the RC, questions you may have about the RC, etc.RC release packs: https://dist.apache.org/repos/dist/dev/stratos/4.1.0-rc2/The tag to be voted upon: https://git-wip-us.apache.org/repos/asf?p=stratos.git;a=commit;h=c3122516b83039552606f3baaa55fbcf95511162Git tag (4.1.0-rc2) tree view: https://git-wip-us.apache.org/repos/asf?p=stratos.git;a=tree;h=d1c97b1b68a04b1b7f8811034e096f0c7a95e0e4;hb=c3122516b83039552606f3baaa55fbcf95511162Stratos KEYS file containing PGP keys we use to sign the release: https://dist.apache.org/repos/dist/dev/stratos/4.1.0-rc2/KEYSThanks.-- --Lahiru SandaruwanCommitter and PMC member, Apache Stratos,Senior Software Engineer,WSO2 Inc., http://wso2.comlean.enterprise.middlewarephone: +94773325954email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 -- Imesh GunaratneSenior Technical Lead, WSO2Committer & PMC Member, Apache Stratos -- --Lahiru SandaruwanCommitter and PMC member, Apache Stratos,Senior Software Engineer,WSO2 Inc., http://wso2.comlean.enterprise.middlewarephone: +94773325954email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146-- Thanks and Regards,Isuru H. +94 716 358 048