You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow force installing to replace or overwrite existing resources #1174
which prevents me from processing further. I need to either switch to other region or 🤷♂️
What you expected to happen?
I'd like to be able to force install so that the existing resources will get overridden by the new installation.
How to reproduce it (as minimally and precisely as possible)?
In my case it was I left the cluster up and running last week and that go automatically cleaned during the weekend. Now, I'm struggling with the described situation, but I don't think that's easily reproducible.
/cc @tnozicka who also experienced similar issues last week
I have encountered the same thing, got more errors but including this one as well. Generally the issue is the installer tells me the same resources already exist and it fails on that. Might be they didn't got cleaned up on destroy or I didn't run it a month ago, doesn't really matter - installer should be able to replace those with flag --overwrite or --force.
Heard it from another guy as well - the unfortunate solution seems to be changing cluster names / regions which you run out of soon.
Lots more chit-chat here if you want short-term debugging/recovery. Mid-term, #762 will solve "new clusters collide with existing clusters". But you'll want to reliably run destroy cluster to avoid leaking cruft, regardless.
But you'll want to reliably run destroy cluster to avoid leaking cruft, regardless.
Relying on a person to ALWAYS destroy his cluster is a faulty assumption. People do mistakes. e.g. running this in the installer dir and doing git clean -xfd or using tmpdir or just accidentally deleting it are common things in dev env, that's why it's not a production and people do mistakes also there. If you intend to keep such important info in local file system you have to account for a path when it is lost. Not even talking about working from more then one laptop.
Implementing --overwrite would seem to account for those cases.
Relying on a person to ALWAYS destroy his cluster is a faulty assumption.
#746 has some more discussion on this, and serious accounts will want some way to backstop leaked resources (openshift-dev uses this script). And again, once we address #762, leaked resources won't block new clusters (and an installer --overwrite would end up as useless cruft). The backstops protect you from forgetful users, so you need them, but proactively calling destroy cluster saves you money and helps keep the account under its limits by removing unused resources before the backstops gets to them.
Anyone who has instance profiles they need to delete. Do it by hand for example: aws --region=eu-west-2 iam delete-instance-profile --instance-profile-name eparis1-worker-profile
This (almost certainly) happened because you left your cluster running for 48h in openshift-dev instead of cleaning it up like you should have. Please feel free to comment in the DPP ticket that their cleanup affected you.
Activity
tnozicka commentedon Feb 1, 2019
I have encountered the same thing, got more errors but including this one as well. Generally the issue is the installer tells me the same resources already exist and it fails on that. Might be they didn't got cleaned up on destroy or I didn't run it a month ago, doesn't really matter - installer should be able to replace those with flag
--overwriteor--force.Heard it from another guy as well - the unfortunate solution seems to be changing cluster names / regions which you run out of soon.
soltysh commentedon Feb 1, 2019
That didn't work for me, just tried 😭
wking commentedon Feb 1, 2019
Lots more chit-chat here if you want short-term debugging/recovery. Mid-term, #762 will solve "new clusters collide with existing clusters". But you'll want to reliably run
destroy clusterto avoid leaking cruft, regardless.tnozicka commentedon Feb 4, 2019
Relying on a person to ALWAYS destroy his cluster is a faulty assumption. People do mistakes. e.g. running this in the installer dir and doing
git clean -xfdor using tmpdir or just accidentally deleting it are common things in dev env, that's why it's not a production and people do mistakes also there. If you intend to keep such important info in local file system you have to account for a path when it is lost. Not even talking about working from more then one laptop.Implementing
--overwritewould seem to account for those cases.wking commentedon Feb 4, 2019
#746 has some more discussion on this, and serious accounts will want some way to backstop leaked resources (openshift-dev uses this script). And again, once we address #762, leaked resources won't block new clusters (and an installer
--overwritewould end up as useless cruft). The backstops protect you from forgetful users, so you need them, but proactively callingdestroy clustersaves you money and helps keep the account under its limits by removing unused resources before the backstops gets to them.eparis commentedon Feb 18, 2019
Anyone who has instance profiles they need to delete. Do it by hand for example:
aws --region=eu-west-2 iam delete-instance-profile --instance-profile-name eparis1-worker-profileThis (almost certainly) happened because you left your cluster running for 48h in openshift-dev instead of cleaning it up like you should have. Please feel free to comment in the DPP ticket that their cleanup affected you.
https://jira.coreos.com/browse/DPP-1130
eparis commentedon Feb 20, 2019
I'm going to close this issue. I do not believe we should implement a --overwrite feature.
#1268
should allow destroy cluster to work even after the DPP scripts have cleaned things up partially. Until then you'll have to clean up by hand.