Skip to content
This repository has been archived by the owner on Jan 19, 2018. It is now read-only.

Remove running components if one component fails #319

Open
vpavlin opened this issue Oct 15, 2015 · 10 comments
Open

Remove running components if one component fails #319

vpavlin opened this issue Oct 15, 2015 · 10 comments
Assignees

Comments

@vpavlin
Copy link
Contributor

vpavlin commented Oct 15, 2015

In case you have f.e. 3 components and 2 start successfully and one fails you are in a weird state where you cannot run again.

This should be quite easy after #278 is merged.

@dustymabe
Copy link
Contributor

So this will require us to implement for each provider. Let's itemize those here:

@dustymabe
Copy link
Contributor

@kadel do you want to take a look at #428 and #429. Maybe work with charlie on the work he is doing for #421.

Perhaps one way to do this would be to run "stop" but don't report any errors? I'm not sure.

@kadel
Copy link
Collaborator

kadel commented Dec 1, 2015

@dustymabe sure, I will look into that.

@kadel
Copy link
Collaborator

kadel commented Dec 9, 2015

I have been thinking about this a little bit.
One way how I would solve this is checking here if provider.deploy() didn't failed , either by making deploy() returning some value, or making sure provider always raises exception when something is wrong, and catching it here. If deploy fails then we would call provider.undeploy().
We also have to make sure that when during undeploy, one artifact fails, provider continues to next artifacts so it tries to undeploy all artifacts.

@rtnpro
Copy link
Contributor

rtnpro commented Dec 22, 2015

@dustymabe isn't it already taken care by #456 ?

@dustymabe
Copy link
Contributor

@kadel @rtnpro, right. The way @rtnpro implemented #456 it should take care of all of the providers.

@rtnpro you will need to wait for #458 before we can add in the plumbing to undeploy for openshift.

@dustymabe
Copy link
Contributor

ok #458 has been fixed. @rtnpro, you should be able to add the support to undeploy() in openshift now

@dustymabe dustymabe self-assigned this Jan 12, 2016
@rtnpro
Copy link
Contributor

rtnpro commented Jan 18, 2016

This is fixed, already!

@dustymabe
Copy link
Contributor

There a few outstanding items in the PR: #456 (comment)

@kadel kadel added blocker and removed blocker labels Feb 4, 2016
@rtnpro rtnpro modified the milestone: CDK 2 GA Feb 11, 2016
@dustymabe
Copy link
Contributor

Removing blocker label as the required change would be too risky for GA and is not worth it.

@dustymabe dustymabe removed the blocker label Feb 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants