Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

GUI: Make destroying clusters way easier #462

Closed
sym3tri opened this issue May 2, 2017 · 5 comments
Closed

GUI: Make destroying clusters way easier #462

sym3tri opened this issue May 2, 2017 · 5 comments
Assignees
Milestone

Comments

@sym3tri
Copy link
Contributor

sym3tri commented May 2, 2017

This needs a concrete plan before we can execute, but this needs to be easier for GUI users.

@sym3tri sym3tri added this to the Theme: Overall cleanup and stability milestone May 2, 2017
@ggreer
Copy link
Contributor

ggreer commented May 2, 2017

#442 helped a ton, though exposing previously-created clusters in the UI is another can of worms.

@robszumski
Copy link
Member

Two parts of this:

Tell you that we've saved state

Now that we're saving state automatically, it's not a critical that you manually download it. We can minimize the visual hierarchy of the existing buttons, and instead inform you of the location on disk.

  • downplay the existing "save assets" buttons
  • output file path (maybe on the submit step?)
  • update manual instructions after you provide config but not submit. output the file path here too.
  • docs on what is in the state file? are there secrets?
  • docs on how to store the state file

Add option to delete via GUI

Allow a user to provide a state file, and have the installer remove the cluster. Output is identical to the progress we already have to destroying a cluster. This would be a top-level action at the beginning, when you open the installer.

question: when we store session info in the browser, can we list out all of the clusters that have been booted with this computer? Use this to populate a list of clusters to destroy? We would have to verify that the files still exist on disk where we put them.

  • add option in beginning. complete list is:
    • install with GUI
    • install with CLI
    • destroy existing cluster
  • screen to input the state
    • is this a path on disk?
    • do you upload the directory?
    • if the directory contains incorrect absolute paths, can we correct them for you automatically?
  • screen to check state

@meghanschofield
Copy link

Chose Installation Type - starting screen / default state

  • Two paths a default for installing new, and choosing your platform (matches the current drop down)
  • Another for destroying an existing or partly made cluster.

installer_version

Choose Installaion type - destroy a cluster

  • Pre-populate a drop down of existing clusters to destroy (talking with @ggreer this may not be easy, but is doable! It'd make this option pretty easy!)
  • If for some reason the user can't find the cluster they need to destroy in the drop down, then we give them an option to upload. There is a text link to initiate an update of a cluster config file.

installation type_destroy cluster

A few things to note - new updates:

  • Now with a CoreOS topper and a few bits from the nav.
  • Tectonic docs link is included in the nav
  • Version is revealed in the nav bar, top right
  • Data collection note lives at the bottom, on all pages.

I'll make an issue to call this stuff out separate from this.

@ggreer
Copy link
Contributor

ggreer commented May 15, 2017

To destroy a cluster, you need the following artifacts:

  • The tfvars used to create the cluster. (currently in assets)
  • The terraform modules & templates used to create the cluster. (currently in assets)
  • The tfstate file. (currently in assets)
  • The environment variables set by the backend (eg: AWS credentials). This is currently not saved anywhere by the installer. Also: anyone who uses an STS token won't be able to destroy the cluster after the token expires. (about an hour)
  • The exact version of terraform that was used to create the cluster. Newer versions of terraform are unlikely to work. This is also not currently saved in assets, but it is bundled with the installer.

@sym3tri sym3tri modified the milestones: Sprint 2: Overall cleanup and stability, Sprint 3: Continued Test Automation May 16, 2017
@sym3tri sym3tri modified the milestones: Sprint 3: Continued Test Automation, Sprint 4 May 26, 2017
@sym3tri sym3tri modified the milestones: Sprint 4, Sprint 5 Jun 30, 2017
@sym3tri sym3tri assigned squat and unassigned ggreer and robszumski Jul 14, 2017
@sym3tri sym3tri modified the milestones: Sprint 6, Sprint 5 Jul 14, 2017
@sym3tri
Copy link
Contributor Author

sym3tri commented Aug 21, 2017

moved to PROD-230

@sym3tri sym3tri closed this as completed Aug 21, 2017
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

6 participants