stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akila Ravihansa Perera <>
Subject Validate member status when undeploying an appication
Date Mon, 07 Dec 2015 15:14:49 GMT

Stratos fails to terminate a spawned instance if an application is deployed
and undeployed immediately. The reason is when executing the terminate
method, CC will fail if the member's instance id is null. There is a
possibility that instance id could be null since it takes some time to
return the jclouds call to spawn an instance and member context to be
updated with instance id.

As a fix for this we can do a validation at SM side. It should check the
topology and make sure all members in the app to be undeployed are already
initialized (i.e. should not be in CREATED status). I've created a JIRA to
track this task at [1].

I've implemented the proposed fix with PR at [2]. I've also created a unit
test [3] to validate this. Please have a look.



Akila Ravihansa Perera
WSO2 Inc.;


View raw message