[SAC] [OSGeo] #2288: Create an LXD snapshot of www.osgeo.org

#2288: Create an LXD snapshot of www.osgeo.org
---------------------------+--------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2019-I
Component: Systems Admin | Keywords:
---------------------------+--------------------------------------
Right now www.osgeo.org is running on a cloud instance provided by OSUOSL.
We should both for disaster recovery and for having a test environment.
Have another server with same setup. then we can test installing things
on it before we install on the real one and also do some benchmarking.

cvvergara said server is slow at the moment too.

I plan to using lxd2pc make an image of it and deploy that on osgeo7 as a
wordpress test environment. I'll call it wordpres-dev.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2288&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2288: Create an LXD snapshot of www.osgeo.org (web18a)
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2019-I
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+---------------------------------------
Description changed by robe:

Old description:

Right now www.osgeo.org is running on a cloud instance provided by
OSUOSL. We should both for disaster recovery and for having a test
environment. Have another server with same setup. then we can test
installing things on it before we install on the real one and also do
some benchmarking.

cvvergara said server is slow at the moment too.

I plan to using lxd2pc make an image of it and deploy that on osgeo7 as a
wordpress test environment. I'll call it wordpres-dev.

New description:

Right now www.osgeo.org is running on a cloud instance provided by OSUOSL
(called web18a). We should both for disaster recovery and for having a
test environment. Have another server with same setup. then we can test
installing things on it before we install on the real one and also do some
benchmarking.

cvvergara said server is slow at the moment too.

I plan to using lxd2pc make an image of it and deploy that on osgeo7 as a
wordpress test environment. I'll call it wordpres-dev.

--

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2288#comment:1&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2288: Create an LXD snapshot of www.osgeo.org (web18a)
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2019-I
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+---------------------------------------

Comment (by robe):

I created an lxd containerized version of it on osgeo7 and called it
dev.www.osgeo.org

but for some reason it seems to want to redirect infinitely. I had
updated the database replace www.osgeo.org with / but that didn't seem to
fix the issue. Might be something cached.

I can get to internal pages like this:

https://dev.www.osgeo.org/projects/postgis/

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2288#comment:2&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2288: Create an LXD snapshot of www.osgeo.org (web18a)
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2019-I
Component: Systems Admin | Resolution: fixed
Keywords: |
---------------------------+---------------------------------------
Changes (by robe):

* status: new => closed
* resolution: => fixed

Comment:

Okay figured out the problem and moved staging.www.osgeo.org when I was
originally troubleshooting to rule out domain.

The issue was how wordpress determines if it's in SSL mode and since nginx
has the ssh key - it needed to read the HTTP_X_FORWARDED_PROTO

as documented here:

  https://codex.wordpress.org/Administration_Over_SSL

So I revised the wp-config on staging and dev to handle.

I also needed to make changes to ngix proxy_protocol include I had for
nginx which I'll commit shortly to gitea.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2288#comment:3&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2288: Create an LXD snapshot of www.osgeo.org (web18a)
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2019-I
Component: Systems Admin | Resolution: fixed
Keywords: |
---------------------------+---------------------------------------
Description changed by robe:

Old description:

Right now www.osgeo.org is running on a cloud instance provided by OSUOSL
(called web18a). We should both for disaster recovery and for having a
test environment. Have another server with same setup. then we can test
installing things on it before we install on the real one and also do
some benchmarking.

cvvergara said server is slow at the moment too.

I plan to using lxd2pc make an image of it and deploy that on osgeo7 as a
wordpress test environment. I'll call it wordpres-dev.

New description:

Right now www.osgeo.org is running on a cloud instance provided by OSUOSL
(called web18a). We should both for disaster recovery and for having a
test environment. Have another server with same setup. then we can test
installing things on it before we install on the real one and also do some
benchmarking.

cvvergara said server is slow at the moment too.

I plan to using lxd2pc make an image of it and deploy that on osgeo7 as a
wordpress test environment. I'll call it wordpress-dev.

--

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2288#comment:4&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.