Opened 2 years ago

Closed 20 months ago

#2232 closed enhancement (fixed)

Convert some of our physical/virtual servers to LXD containers

Reported by: robe Owned by: sac@…
Priority: normal Milestone: Sysadmin Contract 2019-I
Component: Systems Admin Keywords:
Cc:

Description

I read about this tool that converts a file system to a container

https://discuss.linuxcontainers.org/t/lxd-3-0-0-has-been-released/1491 detailed in 3.0.0 release (we are running 3.0.3 on Osgeo7)

The tool is called lxd-p2c

and instructions for using detailed here: https://discuss.linuxcontainers.org/t/howto-use-lxd-p2c/3574

I'm thinking we can use it to migrate some of our older VMs to osgeo7 and then work later on upgrading them.

Not sure which is a good one to try with. I suppose I can take one of my virtualbox VMS I don't care much of and experiment with it on my own lxd server to make sure I have the process right

Change History (2)

comment:1 Changed 21 months ago by robe

Milestone: Sysadmin Contract 2019-I

comment:2 Changed 20 months ago by robe

Resolution: fixed
Status: newclosed

FYI I've already used this tool and it's working great.

So far I've used it to pull an image of the following -- many flagged as separate tickets so I'll close this out and remainder I do I will record as separate tickets.

projects.osgeo.osuosl.org (old-projects on osgeo7) -- community-review.foss4g.org, spatialreference.org are now being served by the new lxd container.  I don't think there is anything left on old server we need so will retired soon.

web.osgeo.osuosl.org (old-web on osgeo7) -- id.osgeo.org, fdo.osgeo.org are running off these, a lot of the remaining things appear to be redirects which we should probably move directly to nginx as redirects.  No point in hopping to a container just to be redirected elsewhere

adhoc.osgeo.osuosl.org (old-adhoc) -- I told OSUOSL to repoint the name to osgeo7.  I created a adhoc.osgeo.org to test -- http://adhoc.osgeo.org/livedvd/docs/en/index.html

wiki.osgeo.osuosl.org - this one I need to reimage cause first time mysql was running so didn't get a clean backup (was corrupted).  I do however have wiki.osgeo.org repointing at osgeo7 and being proxied thru the nginx container https -> https  (I think this will even work when SSL cert expires as I don't think nginx will care it's proxying to an expired https, but the users will be getting the non-expired letsencrypt.
I didn't want to go https -> http (as they are public Ips so it really not encrypted that way)

secure.osgeo.osuosl.org (old-secure container) -- I imaged this one but have it off on osgeo7.  This one is going to be a bit tricky mostly because I don't know much about LDAP (I believe the ldaps might be using the STAR osgeo key which will expire soon (not sure how ldaps works to be sure).  I'm going to need help with this one as it controls everything.  The debian on it is debian6 - yikes way past it's prime.

I'm also not sure how the whitelists work -I think this one I'll need to give a real ip too (not proxy port) so it can see the ips it's whitelisting

web18a.osgeo.osuosl.org (www.osgeo.org) -> (wordpress-dev) -- this one I imaged just so we can have exact replica of our running www server for dev purposes.  staging.www.osgeo.org and dev.www.osgeo.org are running on this container -- and pulling from git like the old - as Vicky has documented here - https://git.osgeo.org/gitea/osgeo/www_osgeo/wiki/Links


Note: See TracTickets for help on using tickets.