Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Changes in puppet-sunet ( depracated)

We have created two separate branches in https://github.com/SUNET/puppet-sunet:

...

a branch https://github.com/SUNET/puppet-sunet/tree/sa-

...

prod for the prod servers

...

In staging and Beta servers, we run

https://github.com/SUNET/puppet-sunet/tree/

...

testing

Reference case: https://jira.sunet.se/browse/SA-72 (when we did for the first time)

NOTE: Stop cosmos on affected servers and after bump-tag, run cosmos as test in few servers with redudnancy, then reboot and check that the service is working, there's no error in cosmos logs and no alarms in nagios.

in puppet-sunet

Code Block
git checkout stablesa-2023v1beta
git pull
git checkout sa-betaprod
git diff HEAD..stablesa-2023v1beta (checked the diffs)
git merge stable-2023v1
bump-tag sa-beta
git status (check if there are conflicts)
git diff sa-beta:<file> HEAD:<file> (to check file with conflicts) 
fix conflicts locally or run git merge --abort && git merge sa-beta -X theirs (to replace the conflicted files with those from sa-beta)
./bump-tag

OLD Branch

Multiverse update

Reference case: https://jira.sunet.se/browse/SA-72 (when we did for the first time)
NOTE1 NOTE : Read the exceptions to know what may have happened in the last update.

in thiss-ops


NOTE2 : Stop cosmos on affected servers and after bump-tag, run cosmos as test in few servers with redudnancy, then reboot and check that the service is working, there's no error in cosmos logs and no alarms in nagios.

Code Block
git remote add multiverse git@github.com:SUNET/multiverse.git
git fetch --all
git checkout -b multiverse-<year>-<month>-<day>
git merge multiverse/main
git checkout master
git pull
git diff HEAD.. multiverse-<year>-<month>-<day>
git merge -X theirs  multiverse-<year>-<month>-<day>
git status
(Fix the conflicts, add and commit)
./bump-tag


OLD Method

Code Block
git remote add multiverse git@github.com:SUNET/multiverse.git (If you don't already have it in your .git/config)
git fetch --all
git checkout multiverse (we already have a multiverse branch in remote, but in next update, we will create a new one)
git merge multiverse/main (meged the local multiverse branch with upstream multivers's main branch)
git push

Now

...

we

...

can

...

check

...

the

...

diffs

...

here

...

https://github.com/TheIdentitySelector/thiss-ops/compare/master...multiverse 

If there ar no conflicts

  • create a Pull Request in Github
  • double check the commits going in the merge
  • confirm the merge
  • run bump-tag from CLI

If there are conflicts, do not open a PR, use CLI to fix the conflicts by below manner


Code Block
git checkout master
git pull
Fix conflicts locally or run git merge -X theirs multiverse (to replace the conflicted files with those from multiverse)
./bump-tag
If satisified, create a Pull Request and confirm the merge.
If there are conflicts, do not open a PR, use CLI to fix the conflicts. Double check the commits going in the merge. 



Exceptions

 01.07.2024

We have an accidental merge commit in PR  performed on 01.07.2024. This is 43b07e2e6d286b7f1f61ab1603a732fd8e94eeda. We accidentaly merged master in multiverse and that commit was added with the PR  into master. The PR was signed by a key that was not part of the thiss-ops. We fixed it in below manner.

...