[SAC] [OSGeo] #2829: Upgrade osgeo8 and osgeo9 to Ubuntu 22.04

#2829: Upgrade osgeo8 and osgeo9 to Ubuntu 22.04
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Keywords:
---------------------------+---------------------------------------
They are currently at focal 20.04

While all production things have been moved off of them, and new drives
aren't expected til this Thursday, now is a good time
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2829&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2829: Upgrade osgeo8 and osgeo9 to Ubuntu 22.04
---------------------------+----------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+----------------------------------------
Comment (by robe):

I've upgraded these two but ran into one complication.

The containers are not getting ipv4 addresses. The culprit seems to be
the ufw firewall, since if I turn it off, it can get an address.

Reading thru for example this suggests a ufw config is causing lxd rules
to be dropped.

https://discuss.linuxcontainers.org/t/containers-not-getting-ipv4/6668/37

https://discuss.linuxcontainers.org/t/upgraded-to-ubuntu-20-10-now-no-
ipv4/9340/7

Not sure why this wasn't an issue when I upgraded osgeo4
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2829#comment:1&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2829: Upgrade osgeo8 and osgeo9 to Ubuntu 22.04
---------------------------+----------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Resolution: fixed
Keywords: |
---------------------------+----------------------------------------
Changes (by robe):

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

Comment:

okay this looks like it might be best solution
https://discuss.linuxcontainers.org/t/lxd-bridge-doesnt-work-with-ipv4
-and-ufw-with-nftables/10034/17

{{{
sudo ufw allow in on lxdbr0
sudo ufw route allow in on lxdbr0
}}}

That seemed to do the trick, but will restart to confirm and will update
ansible accordingly

Although for some reason osgeo9 did not need this, all came back on its
own. I'll add just in case.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2829#comment:2&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.