Include environment name and write out metadata file #2

Open
Ghost wants to merge 3 commits from hloeung/main into main
Ghost commented 2024-02-19 03:34:09 +00:00 (Migrated from codeberg.org)

There can be more environments where they can have same or similar unit names. This includes the environment name to make it easier to tell which unit from which environment.

Also, for each machine directory on disk, we write out metadata info so it's easier to tell what backups the files on disk are for. See https://bugs.launchpad.net/turku/+bug/2004450

Example:

ubuntu@juju-86e177-prod-turku-4:~$ cat /media/turku_storage_0-turku_storage/e07b063d-5b36-4acf-9e52-11509491260f/.turku-storage-metadata.txt
unit_name: cassandra-ps5-r2/0
service_name: cassandra
environment_name: stg-ols-cassandra
ubuntu@juju-86e177-prod-turku-4:~$
There can be more environments where they can have same or similar unit names. This includes the environment name to make it easier to tell which unit from which environment. Also, for each machine directory on disk, we write out metadata info so it's easier to tell what backups the files on disk are for. See https://bugs.launchpad.net/turku/+bug/2004450 Example: ``` ubuntu@juju-86e177-prod-turku-4:~$ cat /media/turku_storage_0-turku_storage/e07b063d-5b36-4acf-9e52-11509491260f/.turku-storage-metadata.txt unit_name: cassandra-ps5-r2/0 service_name: cassandra environment_name: stg-ols-cassandra ubuntu@juju-86e177-prod-turku-4:~$ ```
Ghost commented 2024-04-30 22:37:16 +00:00 (Migrated from codeberg.org)
@rfinnie ?
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin hloeung/main:hloeung/main
git switch hloeung/main

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff hloeung/main
git switch hloeung/main
git rebase main
git switch main
git merge --ff-only hloeung/main
git switch hloeung/main
git rebase main
git switch main
git merge --no-ff hloeung/main
git switch main
git merge --squash hloeung/main
git switch main
git merge --ff-only hloeung/main
git switch main
git merge hloeung/main
git push origin main
Sign in to join this conversation.
No description provided.