Re: What is the correct way of undeploying application and remove runtime/instances

2014-12-18 Thread Udara Liyanage
Hi, When I list deployment policies, I can find the deployed deployment policy. Application undeployment logs are below. I thing undeployment did not completed successfully. TID: [0] [STRATOS] [2014-12-19 04:52:46,681] INFO {org.apache.stratos.autoscaler.monitor.cluster.VMClusterMonitor} - Pub

Re: What is the correct way of undeploying application and remove runtime/instances

2014-12-18 Thread Udara Liyanage
Hi, I created an application and deployed with an deployment policy. Then I undeployed and deleted the application curl -X DELETE -H "Content-Type: application/json" -d@'json/dep_single_group.json' -k -v -u admin:admin https://54.151.228.132:9443/api/applications/app_cartridge_v1/undeploy curl -

Re: What is the correct way of undeploying application and remove runtime/instances

2014-12-18 Thread Udara Liyanage
Hi Imesh, I used the endpoint you have mentioned. I have put the commands I have used and log correspond to the command. On Fri, Dec 19, 2014 at 8:23 AM, Reka Thirunavukkarasu wrote: > > Yah..I used this undeploy post to remove all the runtime of the > application. Whatever we created using depl

Re: What is the correct way of undeploying application and remove runtime/instances

2014-12-18 Thread Reka Thirunavukkarasu
Yah..I used this undeploy post to remove all the runtime of the application. Whatever we created using deploy will be removed using this POST undeploy command. Thanks, Reka On Thu, Dec 18, 2014 at 11:57 PM, Imesh Gunaratne wrote: > > Hi Udara, > > We have introduced the following API method to u

Re: What is the correct way of undeploying application and remove runtime/instances

2014-12-18 Thread Imesh Gunaratne
Hi Udara, We have introduced the following API method to undeploy an application [1]: POST /applications/{applicationId}/undeploy Reka: Did you made the above modifcation to undeploy an application and then delete it if we receive a DELETE request for a running application? [1] https://cwiki.apa

Re: What is the correct way of undeploying application and remove runtime/instances

2014-12-18 Thread Udara Liyanage
Hi Reka, Thank I will continue testing tomorrow. Touched, not typed. Erroneous words are a feature, not a typo. On Dec 18, 2014 11:16 PM, "Reka Thirunavukkarasu" wrote: > Hi Udara, > > I have fixed the flow in ff9379f66cd5c66dfa3bcba42df4c949407f2883. With > the same undeploy application comm

Re: What is the correct way of undeploying application and remove runtime/instances

2014-12-18 Thread Reka Thirunavukkarasu
Hi Udara, I have fixed the flow in ff9379f66cd5c66dfa3bcba42df4c949407f2883. With the same undeploy application command, application runtime will get removed after wiping out the members of the clusters. Now i could undeploy the application and deploy the same again without any issue. Thanks, Rek

Re: What is the correct way of undeploying application and remove runtime/instances

2014-12-18 Thread Reka Thirunavukkarasu
It seems that we are not removing the runtime and trying to remove the policy/persisted application. Since we have changed the application deployment flow, the earlier application undeployment is no longer working. We will have to fix this... Thanks, Reka On Thu, Dec 18, 2014 at 7:30 PM, Udara Li

What is the correct way of undeploying application and remove runtime/instances

2014-12-18 Thread Udara Liyanage
Hi Imesh, I deployed application and deployment policy. Instances got started up successfully. Now I want to terminate the instances. I tried undeploying as below. *curl -X DELETE -H "Content-Type: application/json" -d@'json/dep_single_group.json' -k -v -u admin:admin https://54.151.228.132:9443/