Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: show consequences of deleting an org #1082

Closed
jmcarp opened this issue Mar 2, 2017 · 11 comments
Closed

Feature request: show consequences of deleting an org #1082

jmcarp opened this issue Mar 2, 2017 · 11 comments
Labels

Comments

@jmcarp
Copy link

jmcarp commented Mar 2, 2017

At the moment, it's easy to accidentally delete private domains by deleting the org that owns them--operators intuitively except that deleting an org will delete its spaces and apps, but forget that deleting an org deletes associated domains. I'm making this claim because this has happened on my team a few times in the last few months alone 😓.

It would be helpful for the confirmation prompt for cf delete-org to be more explicit about what's going to be deleted, for example: "This will delete the private domains foo.com, baz.com". Even changing the current "delete the org and everything associated with it" to "delete the org and its associated spaces, apps, services, private domains, ..." would be more clear.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/140941217

The labels on this github issue will be updated when the story is started.

@wslack
Copy link

wslack commented Mar 2, 2017

Seconding @jmcarp, I think because private domains are so much "less managed" than spaces/apps, it can be easy to miss that they are there. A reminder/cue would be very helpful given the user behavior I've observed. Thank y'all!

@brittag
Copy link

brittag commented Mar 2, 2017

Related suggestion: the cf delete-shared-domain command should warn when there are existing routes, and request confirmation for deleting everything before actually performing the deletion. Like cf delete-org, it's easy for operators to incorrectly predict the effect of cf delete-shared-domain - see this explanation of 18f.gov site downtime from December for an example.

@dkoper
Copy link

dkoper commented Mar 29, 2017

@brittag About cf delete-shared-domain, it currently displays:

D:\Users\koperd\Downloads\bin>cf delete-shared-domain my-domain.com
Deleting domain mydomain.com as admin...

This domain is shared across all orgs.
Deleting it will remove all associated routes, and will make any app with this domain unreachable.
Are you sure you want to delete the domain mydomain.com? >

It already warns about removing existing routes and asks confirmation?

@wslack
Copy link

wslack commented Mar 29, 2017

@dkoper I am not sure that's entirely clear (it could still be read as applying the deletion only to one org, even though other orgs also use the domain). I would suggest changing the language to:

This action impacts all orgs using this domain. Deleting it will remove associated routes and make any app with this domain, in any org, unreachable. Are you sure you want to delete the domain mydomain.com?

@brittag
Copy link

brittag commented Mar 29, 2017

Could cf delete-shared-domain list the associated routes as well?

This action impacts all orgs using this domain. Deleting it will remove associated routes and make any app with this domain, in any org, unreachable. (Routes to be deleted: x.example.com, y.example.com, z.example.com) Are you sure you want to delete the domain mydomain.com?

@dkoper
Copy link

dkoper commented Mar 29, 2017

I'd like to squeeze in a message improvement now as listing impacted resources requires more development & testing work that will have to compete with other feature work and issues.

About @wslack's message, apps can have multiple routes so deleting one doesn't necessarily make all apps inaccessible. Such a message would be worrying when you're trying to change your apps from one domain to another and just added new routes to your apps. OK if I add "could"?

This action impacts all orgs using this domain. Deleting it will remove associated routes and could 
make any app with this domain, in any org, unreachable. Are you sure you want to delete the 
domain mydomain.com?

@dkoper
Copy link

dkoper commented Mar 29, 2017

And for delete-org, would (for now) the following do?

Really delete the org myorg, incl. its spaces, apps, services, routes and private domains? [yN]:

@mogul
Copy link

mogul commented Jul 30, 2017

I notice this issue was mentioned in the release notes for v6.26.0!

First of all: Huzzah!
Second: Should we be closing this issue?

@dkoper
Copy link

dkoper commented Nov 9, 2017

@mogul I'm fine with closing it if you are.
I left it open as we only did the "quick" solution of improving the static message of what other (type of) resources would be deleted (see my comment above), and not actually producing a full list of resource names. Which would be a lot more work on this command.

@XenoPhex
Copy link
Contributor

Closing this issue as complete as the CLI now warns users with a more verbose output when deleting an org Really delete the org banana, including its spaces, apps, service instances, routes, private domains and space-scoped service brokers? .

Please feel free to open a new issue if you have comments/feedback. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants