ocf / rt

Request Tracker service
https://rt.ocf.berkeley.edu
Other
11 stars 5 forks source link
apache2 dockerfile jenkinsfile makefile mysql ocf request-tracker rt

Request Tracker

Build Status

rt is the OCF's ticketing system, used both for internal tickets as well as for our public email lists.

This repo is designed to be an example of a simple OCF service running on Mesos. RT is an ideal service to start with because:

Upgrading

Deploying new major releases of RT involves more work than just building a new Docker image and deploying that on Marathon. Here are some general instructions for updating Request Tracker:

  1. Read the release notes to find out what you might need to change in the RT configuration. In particular, you'll want to read the README and UPGRADING-x.y files in the RT documentation.

  2. Make any necesary configuration changes. Most configuration changes will go into the 99-ocf.pm file. You may also have to change other files as well.

  3. Run make test to perform a smoke test. This will test to ensure that the Docker image can be built and database setup works. Just because you passed the test, though, doesn't mean it necessarily works yet.

  4. Backup and upgrade the database. First, backup the RT database with

    mysqldump -u ocfrt ocfrt > ocfrt.sql

    This gives you a backup of the RT database at ocfrt.sql, in case something goes very wrong.

    Next, upgrade the RT database with

    rt-setup-database --action upgrade --dba ocfrt

    You'll need the password for the ocfrt account, which you can find under /opt/share/docker/secrets/rt on the hypervisors.

  5. Push your changes to GitHub and let Marathon deploy them. Test to make sure everything is working, and go back and make any changes as necessary.