Opened 5 years ago
Closed 5 years ago
#2363 closed task (fixed)
Move tracsvn to osgeo7
Reported by: | robe | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Sysadmin Contract 2019-II |
Component: | SysAdmin | Keywords: | |
Cc: |
Description
I thought I had this already ticketed but couldn't find it.
As discussed the plan is to get everything off of osgeo3 so we can reformat it and put in the new disks we purchased, so it will be exactly the same as osgeo4 in configuration and serve as an lxd host as well.
That said biggest thing left on it is the tracsvn VM which hosts svn.osgeo.org, git.osgeo.org, trac.osgeo.org.
After that -- short time later I will upgrade the OS (which I have already experimented with on the dev replica I created on osgeo4).
So here are the steps as I had documented here: https://lists.osgeo.org/pipermail/sac/2019-September/011514.html
(I changed a little -- to keep the name tracsvn as I think uprading the OS might be sufficient)
1) Switch over the DNS so that all trac/svn/git points at OSGeo7 and nginx proxy's over to trac.osgeo.osuosl.org (this will ensure there is no lag of dns change) DONE
2) Send out an announcement to discuss, projects lists that trac/svn/gitea will be going down for maintenance the following week DONE
3) If all is good - Week after I would do the following
- Send out an announcement again saying I am shutting down the
services now and they'll be down for about 2-3 hrs (optimistically I could be done in an hour)
- Put a under maintenance note in nginx - so all will show - server is
down for maintenance
- Shutdown postgres service on tracsvn.osgeo.osuosl.org
- Shutdown apache on tracsvn.osgeo.osuosl.org
- Do a final lxd2pc container image of tracsvn.osgeo.osuosl.org ->
pushed to osgeo7 and call it tracsvn
- Start up tracsvn and configure the IP etc, as I have already
documented in osgeo7 repo - https://git.osgeo.org/gitea/sac/osgeo7/wiki/tracsvn-old--container-in-progre ss (update the repo with current state once I have it back up as my first test of gitea working)
- Update the nginx configs for trac.osgeo.org, svn.osgeo.org,
git.osgeo.org to point at tracsvn-old container
- Send out announcement that services are back up and people should
try at their earliest opportunity and report back with issues.
- Add tracsvn to list of containers that should be backed up to
osgeo4
- Update the wiki to reflect trac/gitea/svn have moved and
instructions for people who need to ssh to it
I've completed the move of tracsvn to osgeo7. I ran into an annoying stumbling block that took me hours to resolved. It seems our trac can handle ipv6 and when I moved nginx was passing its ipv6 address along which was preventing sessions in trac to be maintained. Try as I could I couldn't disable it in nginx. So I disabled ipv6 in the nginx container itself by doing:
By editing the file /etc/sysctl.conf in nginx container
and then reloading with
That seemed to fix the issue. I was hoping to have apache automatically pick up the forwarded address, but it seems we need mod_remote_ip for that which requires Apache 2.4 or higher and we are running apache 2.2.