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

[Decommission Hub] M2LInES #3484

Closed
2 of 13 tasks
colliand opened this issue Dec 1, 2023 · 3 comments · Fixed by #3496
Closed
2 of 13 tasks

[Decommission Hub] M2LInES #3484

colliand opened this issue Dec 1, 2023 · 3 comments · Fixed by #3496
Assignees

Comments

@colliand
Copy link
Contributor

colliand commented Dec 1, 2023

Summary

The 2i2c + M2LInES contract expired a while ago. The hub should be decommissioned to prevent continued accrual of cloud costs. On 2023-11-30, @colliand sent email to M2LInES community representative Professor Laure Zanna forecasting the decommission.

Info

Task List

Phase 1: Hub Removal

(These steps are described in more detail in the docs at https://infrastructure.2i2c.org/en/latest/hub-deployment-guide/hubs/other-hub-ops/delete-hub.html)

  • Manage existing data (delete data)
  • Delete the hub's authentication application on GitHub or CILogon (note CILogon removal requires the hub config in place)
  • Remove the appropriate config/clusters/<cluster_name>/<hub_name>.values.yaml files. A complete list of relevant files can be found under the appropriate entry in the associated cluster.yaml file.
  • Remove the associated hub entry from the config/clusters/<cluster_name>/cluster.yaml file.
  • Remove the hub deployment
    • helm --namespace HUB_NAME delete HUB_NAME
    • kubectl delete namespace HUB_NAME

Phase 2 - Cluster Removal

This phase is only necessary for single hub clusters.

  • Remove the cluster's datasource from the central Grafana with:
    • deployer grafana central-ds remove CLUSTER_NAME
  • Run terraform plan -destroy and terraform apply from the appropriate workspace, to destroy the cluster
  • Delete the terraform workspace: terraform workspace delete <NAME>
  • Remove the associated config/clusters/<cluster_name> directory and all its contents
  • Remove the cluster from CI:
  • Remove the cluster from the list of grafana datasources at https://grafana.pilot.2i2c.cloud/datasources
  • Remove A record from Namecheap account
@LaureZanna
Copy link

cc @jbusecke

@colliand
Copy link
Contributor Author

colliand commented Dec 3, 2023

FYI @damianavila, the community representatives confirmed that this hub can be decommissioned with all data deleted ASAP.

@yuvipanda yuvipanda self-assigned this Dec 4, 2023
yuvipanda added a commit to yuvipanda/pilot-hubs that referenced this issue Dec 4, 2023
- `terraform destroy` already run
- Buckets were deleted from the web console
- GitHub apps were deleted

Fixes 2i2c-org#3484
@yuvipanda
Copy link
Member

I've deleted the things that were costing us money.

I don't think we should bill this cloud cost to anyone, and instead use it as a way to get much better at tracking what hubs we are being paid for and how to decomission ones that are no longer in use.

@damianavila damianavila removed their assignment Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done 🎉
Development

Successfully merging a pull request may close this issue.

4 participants