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 discourse01.theforeman.org #1933

Closed
9 tasks done
evgeni opened this issue Sep 29, 2023 · 4 comments
Closed
9 tasks done

Decommission discourse01.theforeman.org #1933

evgeni opened this issue Sep 29, 2023 · 4 comments
Assignees

Comments

@evgeni
Copy link
Member

evgeni commented Sep 29, 2023

This box used to host Discourse, but that was migrated in #1710

  • Remove VM at Scaleway:
    • VM
    • Floating IP
    • Volumes
    • Snapshots
  • Remove DNS entries
  • Remove Foreman entry
  • Remove snapshots that have host=discourse01.theforeman.org from the backup
  • cleanup discourse profile #1935
@evgeni evgeni added this to the discourse migration milestone Sep 29, 2023
@evgeni evgeni changed the title Decommission discrourse01.theforeman.org Decommission discourse01.theforeman.org Sep 29, 2023
@evgeni evgeni added this to Untriaged in Infrastructure Sep 29, 2023
@evgeni
Copy link
Member Author

evgeni commented Oct 2, 2023

restic@discourse01:~$ restic forget --host discourse01.theforeman.org --prune --keep-last 1 
enter password for repository: 
repository 99b92e2e opened (version 1)
Applying Policy: keep 1 latest snapshots
keep 1 snapshots:
ID        Time                 Host                        Tags        Reasons        Paths
------------------------------------------------------------------------------------------------------------------------------
f1e7e85b  2023-09-29 07:45:07  discourse01.theforeman.org              last snapshot  /var/discourse/containers
                                                                                      /var/discourse/shared/standalone/backups
------------------------------------------------------------------------------------------------------------------------------
1 snapshots

remove 14 snapshots:

@evgeni
Copy link
Member Author

evgeni commented Oct 2, 2023

root@discourse01:/var/discourse# shutdown -h now
Connection to 51.15.80.162 closed by remote host.

@evgeni evgeni moved this from Untriaged to In progress in Infrastructure Oct 2, 2023
@evgeni evgeni self-assigned this Oct 2, 2023
@evgeni
Copy link
Member Author

evgeni commented Oct 4, 2023

VM, Storage, IP have been deleted.

@evgeni
Copy link
Member Author

evgeni commented Oct 5, 2023

[restic@discourse01 ~]$ restic snapshots
enter password for repository: 
repository 99b92e2e opened (version 1)
ID        Time                 Host                               Tags        Paths
----------------------------------------------------------------------------------------------------------------------
f1e7e85b  2023-09-29 07:45:07  discourse01.theforeman.org                     /var/discourse/containers
                                                                              /var/discourse/shared/standalone/backups

d0083f01  2023-09-29 08:13:27  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups

e5462962  2023-09-30 00:01:32  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups

89bccf70  2023-10-01 00:01:31  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups

29c29086  2023-10-02 00:01:32  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups

cdd52af6  2023-10-03 00:01:32  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups

04501448  2023-10-04 00:01:31  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups

edfb3936  2023-10-05 00:01:33  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups
----------------------------------------------------------------------------------------------------------------------
8 snapshots

[restic@discourse01 ~]$ restic forget --prune f1e7e85b
enter password for repository: 
repository 99b92e2e opened (version 1)
[0:00] 100.00%  1 / 1 files deleted
1 snapshots have been removed, running prune
loading indexes...
loading all snapshots...
finding data that is still in use for 7 snapshots
[0:00] 100.00%  7 / 7 snapshots
searching used packs...
collecting packs for deletion and repacking
[0:08] 100.00%  589 / 589 packs processed

to repack:            30 blobs / 503.640 KiB
this removes:          9 blobs / 136.544 KiB
to delete:          1347 blobs / 1.946 GiB
total prune:        1356 blobs / 1.946 GiB
remaining:          5411 blobs / 7.707 GiB
unused size after prune: 0 B (0.00% of remaining size)

repacking packs
[0:00] 100.00%  1 / 1 packs repacked
rebuilding index
[0:00] 100.00%  470 / 470 packs processed
deleting obsolete index files
[0:00] 100.00%  4 / 4 files deleted
removing 120 old packs
[0:00] 100.00%  120 / 120 files deleted
done
[restic@discourse01 ~]$ restic snapshots
enter password for repository: 
repository 99b92e2e opened (version 1)
ID        Time                 Host                               Tags        Paths
----------------------------------------------------------------------------------------------------------------------
d0083f01  2023-09-29 08:13:27  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups
e5462962  2023-09-30 00:01:32  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups
89bccf70  2023-10-01 00:01:31  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups
29c29086  2023-10-02 00:01:32  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups
cdd52af6  2023-10-03 00:01:32  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups
04501448  2023-10-04 00:01:31  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups
edfb3936  2023-10-05 00:01:33  discourse01.conova.theforeman.org              /var/discourse/shared/standalone/backups
----------------------------------------------------------------------------------------------------------------------
7 snapshots

it's gone

@evgeni evgeni closed this as completed Oct 5, 2023
@evgeni evgeni moved this from In progress to Done in Infrastructure Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant