Hi, Application redeployment is fixed now. You can undeploy and deploy the same application without removing the application. On 10 Apr 2015 11:07, "Udara Liyanage" <ud...@wso2.com> wrote:
> Hi, > > We have set the application into DEPLOYED status immediately after > application undeployment is invoked. So polling for DEPLOYED state might > not work as you have mentioned. Sorry I did n't notice it. > > Adding an intermediate state like DEPLOYING and delay undeployment till > status become DEPLOYED too might work since the application might not > become DEPLOYED for some reason. > > The application should be able to undeploy at anytime theoretically. > however there might be inconsistencies since the events are asynchronous. > So for the moment the workaround is to wait reasonable time to invoke > undeployment. > > It is a know issue that same application redeployment (Deploy->Undeploy > -> Deploy) does not work for the moment, we are in the process of fixing > it. You have to follow Add->Undpeloy->Remove->Add->Deploy path which is > your current flow. > > On Fri, Apr 10, 2015 at 8:34 AM, Vanson Lim <v...@cisco.com> wrote: > >> On 4/9/15, 11:30 AM, Udara Liyanage wrote: >> >> Hi, >> >> I added some more validations to API calls to let the API call pass >> only resources are in accepted states. >> >> Add Application >> If an application with the same id does not exist >> >> Remove Application >> An application with the given id should exist >> Application should be in CREATED state >> >> DEPLOY Application >> An application with the given id should exist >> Application should be in CREATED state >> >> Undeploy Application >> An application with the given id should exist >> Application should be in Deployed state >> >> I tried reproducing the below mentioned error message, but could not. >> However analyzing the code, it seems that CEP tries to send faulty event to >> the members which does not exist in the topology. I guess this will not >> impact the functionality of the system >> TID: [0] [STRATOS] [2015-04-09 02:27:45,631] ERROR >> {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor} - Failed >> to publish member fault event. Member having [member-id] >> cisco-sample-vm.cisco-sample-vm.cisco-sample-vm.domain88eddc38-ad4a-4ff7-843c-b9dbc1603bab >> does not exist in topology >> >> >> I am not seeing it anymore but I still have some issues. The system is >> definitely more well behaved after pulling in your most recent changes, but >> I am still able to get the system into an unresponsive state. if I >> invoke application undeploy too soon after an application deploy I am able >> to get the system into a state where I can still deploy an application, but >> there is some inconsistency where the deployed application won't launch VMs >> and won't undeploy. >> >> Do you have any more suggestions on what I can do? I currently poll that >> the application is in DEPLOYED state before attempt to undeploy, but it >> doesn't make a difference. Changing the delay (between deploy and >> undeploy) from 10 to 30 seconds improves things such that the system is >> still works, but I see a few orphaned instances (which I suspect might be a >> variant of the jcloud issues we still in Stratos-1293. >> >> I've attached another log. >> >> >> -Vanson >> >> >> >> On Thu, Apr 9, 2015 at 10:24 AM, Shavindri Dissanayake < >> shavin...@wso2.com> wrote: >> >>> Thank you Udara! >>> >>> Thanks & Regards >>> Shavindri Dissanayake >>> Technical Writer >>> LinkedIn Profile >>> <https://www.linkedin.com/profile/view?id=112227277&trk=nav_responsive_tab_profile> >>> Mob: 0779966739 >>> >>> WSO2 Inc. >>> lean.enterprise.middleware >>> >>> On Thu, Apr 9, 2015 at 10:04 AM, Udara Liyanage <ud...@wso2.com> wrote: >>> >>>> >>>> Hi Shavi, >>>> >>>> CLI and UI does not include this yet, but should. >>>> >>> >>> >> >> >> -- >> >> 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 >