Things do fix/check before and when Bugzilla is moved between servers.
Bugzilla.gnome.org will move from window to box. This page lists the things to do before, during and after the move.
Note: Bugzilla is very specific on the exact locations of various files. Unless specified otherwise, the locations must stay the same!
Note: window was the name of the old machine; box the name of the new one.
Before:
- Setup bugzilla;
- Create bugzilla home directory with homedir set to /usr/local/www/bugzilla
- Setup bugzilla.gnome.org vhost pointing to /var/www/bugzilla.gnome.org. The Apache configuration should be copied from the existing install.
- Make sure users with the 'bugzilla' group can log in and sudo to bugzilla
- Run ./checksetup.pl and make sure all the perl modules Bugzilla wants are installed (takes a lot of time)
- Setup apache:
- Copy /etc/logrotate.d/httpd-gnome from old server to new (to make sure logfiles are rotated)
- Ensure halloween is setup on box;
- Copy /home/halloween from existing install to not-yet-existing /home/halloween on destination machine
- Run ./submit.pl with a fake email and make sure all required Perl modules are installed (takes a lot of time)
- Ensure it works with SELinux:
See also http://fedora.redhat.com/docs/selinux-apache-fc3/sn-debugging-and-customizing.html
- Install the package: selinux-policy-targeted-sources
- Change to directory: /etc/selinux/targeted/src/policy
- Edit: domains/misc/local.te
- Add the following lines:
allow httpd_suexec_t self:netlink_route_socket { bind create getattr nlmsg_read read write }; allow httpd_sys_script_t nfs_t:dir search; allow httpd_sys_script_t nfs_t:file { ioctl read }; allow httpd_sys_script_t nfs_t:file getattr;
- Run: make reload
- Setup postfix for halloween and bugzilla:
Ensure Postfix on box accepts bugzilla@bugzilla.gnome.org and submit@bugs.gnome.org
submit@bugs.gnome.org MUST be delivered to halloween user (on the new machine)
bugzilla@bugzilla.gnome.org MUST be delivered to bugzilla user (on the new machine)
Mail MUST be delivered using procmail (mailbox_command = /usr/bin/procmail in /etc/postfix/main.cf)
- Shorten DNS stuff to 15min
During:
- Disable web access on box,window
- Copy data directory from window to box
- Copy .htaccess from window to box
- cvs update -dP (to make sure box has all of the changes)
- Edit localconfig and make it point to the real database
- Have sysadmins update DNS for:
- bugzilla.gnome.org (A, MX is not needed)
- bugs.gnome.org (A, MX is not needed)
- Change Postfix config on mail.gnome.org to make bugs.gnome.org+bugzilla.gnome.org mail arrive at box
Install new install-module (with updated bugzilla version stuff) from CVS on window DONE
Perhaps update /etc/hosts on window to have bugzilla.gnome.org new IP address do not do this before moving!
- Enable web access on box
Change 403 page on window to point to http://box.gnome.org/ as temp. solution
- Move the cron entries from old machine to new box.