Use these instructions to upgrade Review Board
to a latest build.
- TeamForge
17.1 supports
Review Board
2.5.6.1
on RHEL/CentOS 6.8 and 7.3.
- This procedure is for those who have Review Board already and are upgrading
Review Board to a latest build on
RHEL/CentOS 6.8 or 7.3.
- You may choose to upgrade Review Board on
the same server or on a new server.
- In this scenario, both TeamForge and
Review Board use PostgreSQL.
Attention: Installing or upgrading
TeamForge
needs root privileges. You must log on as root or use a root shell to install or upgrade
TeamForge.
Do this on the main TeamForge Application Server. We'll call this
my.app.box.
-
Download the Review Board installer zip file from http://collab.net/downloads/integrations#tab-1 and save it in the
/opt/collabnet folder
-
New hardware upgrade: Back up your Review Board data directory if you are
upgrading TeamForge and Review Board on a new server.
Tip: The Review Board
database is backed up already when you have upgraded TeamForge. So, it is not necessary to
take a back up of the Review Board
database again.
-
Back up the Review Board data
directory.
- cd /opt/collabnet
- tar -zcvf /tmp/reviewboard_data.tgz
reviewboard
-
Copy the /tmp/reviewboard_data.tgz file to the
/tmp directory of the new server.
-
Make sure that "reviewboard" and "reviewboard-database" identifiers have been
added to the SERVICES token of the TeamForge Application Server's
site-options.conf file.
my.app.host:SERVICES = ctfcore ctfcore-database mail search codesearch etl ctfcore-datamart subversion cvs
gerrit gerrit-database binary binary-database reviewboard reviewboard-database
Review Board database can be installed on TeamForge PostgreSQL Database
Server on sites with database running on a separate server, in which case
you must add the "reviewboard-database" identifier to the SERVICES token of
the TeamForge PostgreSQL Database Server's
site-options.conf file.
-
Unzip the RBInstaller-17.1.5.zip
file.
- cd /opt/collabnet
- unzip RBInstaller-17.1.5.zip
-
Modify these values in the
install.conf file to suit your installation
environment.
- vi /opt/collabnet/RBInstaller-17.1.5/installer/install.conf
Option |
Description |
rb_dir=/opt/collabnet/reviewboard |
The path of the directory where the Review Board files and libraries are
installed. |
rb_data_dir=/opt/collabnet/teamforge/var/reviewboard/data |
The path of the directory where Review Board's database file, review
request files and attachments are stored. Note: It's recommended to
change the default value of rb_data_dir with
/opt/collabnet/teamforge/var/reviewboard/data.
|
domain=<domain name or host name> |
The Review Board site
information. For example, cu064.cloud.maa.collab.net. |
rb_database_type=postgresql |
The Review Board database
type. |
rb_database_host=<reviewboard_db_hostname> |
The Review Board database
host
name. |
rb_database_port=<reviewboard_db_port> |
The Review Board database
port. |
ctf_base_url=https://myapp.collab.net |
The absolute URL of the TeamForge site that you want to
associate to. |
ctf_site_var_dir=/opt/collabnet/teamforge/var |
The location of the rbctfevents.jar file. |
-
Deploy services.
- /opt/collabnet/teamforge/bin/teamforge
provision
The "provision" command prompts for response before it bootstraps or migrates
data during TeamForge installation and upgrade respectively. Enter "Yes" or
"No" to proceed. For more information, see The teamforge script.
-
Run the following grep commands to get the value of HTTPD_USER, HTTPD_GROUP and
HOME_DIR_BASE.
- grep HTTPD_USER=
/opt/collabnet/teamforge/runtime/conf/runtime-options.conf
- grep HTTPD_GROUP=
/opt/collabnet/teamforge/runtime/conf/runtime-options.conf
- grep HOME_DIR_BASE=
/opt/collabnet/teamforge/runtime/conf/runtime-options.conf
- sudo chown -R <HTTPD_USER>:<HTTPD_GROUP>
<HOME_DIR_BASE>/<HTTPD_USER>
-
New
hardware upgrade:: Restore the Review Board data if you are upgrading
TeamForge and Review Board on a new server.
Note:
- Ensure that you have already copied the backup of the Review Board data directory to the
/tmp directory of the new server.
- It's assumed that
/opt/collabnet/teamforge/var/reviewboard/data
is the Review Board data directory.
-
Restore the Review Board data
directory.
- cd
/opt/collabnet/teamforge/var
- tar -zxvf
/tmp/reviewboard_data.tgz
-
Run the install.py script available in the Review Board installer directory.
- cd /opt/collabnet/RBInstaller-17.1.5
- python ./install.py
-i -r --auth-scmuser
-
Run the migrate.py script available in the Review Board installer directory.
- cd /opt/collabnet/RBInstaller-17.1.5
- python
./migrate.py
-
Restart TeamForge.
- setenforce 1
- /opt/collabnet/teamforge/bin/teamforge
restart
-
If SCM is installed on a separate box, run the following script to authenticate
a scmviewer user against a TeamForge
Subversion repository for creating a new review request.
- python ./svn-auth.py
--repo-path=https://<scm_domain>/svn/repos/<repo_dir_name>
-
Select and select .
-
Select rbctfevents.jar and click
Enable.