[SAC] [OSGeo] #2827: Upgrade osgeo3 lxd host to Ubuntu 22.04

#2827: Upgrade osgeo3 lxd host to Ubuntu 22.04
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Keywords:
---------------------------+---------------------------------------
osgeo3 is currently running 20.04. Plan to upgrade it to 22.04.

Note osgeo4, it's closest compadre has already been upgraded to 22.04 with
no issues.

Should wait off till elections are over.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2827&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2827: Upgrade osgeo3 lxd host to Ubuntu 22.04
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+---------------------------------------
Comment (by robe):

Going to start this process shortly.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2827#comment:2&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2827: Upgrade osgeo3 lxd host to Ubuntu 22.04
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+---------------------------------------
Comment (by robe):

I'm going to hold off on this until I have console access.
I seem to have lost console access to the osgeo3 server, and like to have
that before I do a hard upgrade in case something goes wrong and needs a
hard reboot or some other more invasive fix.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2827#comment:3&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2827: Upgrade osgeo3 lxd host to Ubuntu 22.04
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+---------------------------------------
Comment (by robe):

Now that I have console access again, I'm going to start the process of
upgrading.

This will affect matrix, repo.osgeo.org, gallery, monitor, geo-docs

I don't expect more than 30 minutes downtime.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2827#comment:4&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2827: Upgrade osgeo3 lxd host to Ubuntu 22.04
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2023-I
Component: Systems Admin | Resolution: fixed
Keywords: |
---------------------------+---------------------------------------
Changes (by robe):

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

Comment:

Took a little longer than I had hoped.

nexus after the upgrade of host, the docker would not start with error.
{{{
cgroups: cannot found cgroup mount destination

}}}

Doing the same fix as I did on osgeo4 (to allow creating old containers
did the trick)

{{{
  https://discuss.linuxcontainers.org/t/2nd-system-upgraded-from-
ubuntu-20-04-w-working-lxd-to-ubuntu-22-04-lxd-again-not-working/14009/30

{{{
Edit /etc/default/grub and ensure that GRUB_CMDLINE_LINUX contains
systemd.unified_cgroup_hierarchy=false:

E.g.

GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=false"

Then run:

sudo update-grub
sudo reboot

}}}

In the process I also ended up upgrading nexus and docker. I'll write up
in separate ticket.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2827#comment:5&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.