-
Notifications
You must be signed in to change notification settings - Fork 9
Upgrade atlassian product
cintiadr edited this page Jul 16, 2022
·
20 revisions
- Schedule the outage as usual
- Start maintenance in status.io and pause alerts in pingdom
- Download file locally and generate checksum (e.g. in OSX
openssl dgst -sha256 <file.tgz>
) - Verify if
server.xml
,setenv.sh
or other files created by ansible are modified, as well as dbconfig.xml changes - Go to ansible and change version and checksum variables in host_var files
- Generate a
home
backup
# From the machine running the app , as root
$ /usr/sbin/pack-app-home-folders.sh <machine name>
# file will be available in /opt/backups
- Generate mysql backup
# From the database machine, as the backup-s3 user
$ /home/backup-s3/mysqldump.sh bamboo '%F'
# file will be available in /opt/backups
- If you'd like to upload either of them to S3, as the backup-s3 user
$ /usr/sbin/backup-upload.sh <machine name>
- Stop service manually on host
service bamboo stop
- Ensure there's a database backup. Check backups docs for more info
- Move installation folder: e.g.
$ mv /opt/bamboo /opt/bamboo-6.2.2
$ ansible-playbook -i inventories/prod-tier2 --limit lobi.openmrs.org --tags bamboo site.yml
- If it's bamboo, check if all agents are connected. If they are not, restart the agents.
service bamboo-agent1 restart
- Commit and push ansible changes to github
- Remove old installation folder
- Stop maintenance in status.io and unpause alerts in pingdom
Read this before updating this wiki.