[SAC] [OSGeo] #2859: osgeo4 is having issue snapshotting osgeo7 containers

#2859: osgeo4 is having issue snapshotting osgeo7 containers
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: new
Priority: blocker | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Keywords:
---------------------------+---------------------------------------
I'll investigate this later tonight.
I think it's because lxd micro update happened recently.

Error is usual:

Error: Create instance snapshot (mount source): Failed to run: zfs set
mountpoint=legacy canmount=noauto osgeo7/containers/wordpress: exit status
1 (umount: /var/snap/lxd/common/shmounts/storage-
pools/default/containers/wordpress: no mount point specified.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2859&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2859: osgeo4 is having issue snapshotting osgeo7 containers
---------------------------+----------------------------------------
Reporter: robe | Owner: sac@…
     Type: task | Status: closed
Priority: blocker | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Resolution: fixed
Keywords: |
---------------------------+----------------------------------------
Changes (by robe):

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

Comment:

at a glance seemed to be only wordpress and download with the backup
issue.

Affected systems on osgeo7 were: wordpress, download, live

Fixed with:

{{{
rm /var/snap/lxd/common/lxd/storage-
pools/default/containers/download/backup.yaml
sudo zfs set mountpoint=/var/snap/lxd/common/lxd/storage-
pools/default/containers/download canmount=noauto
osgeo7/containers/download
sudo zfs umount osgeo7/containers/download
sudo zfs mount osgeo7/containers/download
}}}

{{{
sudo zfs set mountpoint=/var/snap/lxd/common/lxd/storage-
pools/default/containers/live canmount=noauto osgeo7/containers/live
sudo zfs umount osgeo7/containers/live
sudo zfs mount osgeo7/containers/live
}}}

{{{
sudo zfs set mountpoint=/var/snap/lxd/common/lxd/storage-
pools/default/containers/tracsvn canmount=noauto osgeo7/containers/tracsvn
sudo zfs mount osgeo7/containers/tracsvn
}}}

{{{
rm /var/snap/lxd/common/lxd/storage-
pools/default/containers/wordpress/backup.yaml
sudo zfs set mountpoint=/var/snap/lxd/common/lxd/storage-
pools/default/containers/wordpress canmount=noauto
osgeo7/containers/wordpress
sudo zfs umount osgeo7/containers/wordpress
sudo zfs mount osgeo7/containers/wordpress
}}}

{{{
sudo zfs set mountpoint=/var/snap/lxd/common/lxd/storage-
pools/default/containers/pycsw canmount=noauto osgeo7/containers/pycsw
sudo zfs mount osgeo7/containers/pycsw
}}}

Once that was done, snapshotting worked again

{{{
lxc snapshot download
lxc snapshot live
lxc snapshot pycsw
lxc snapshot tracsvn
lxc snapshot wordpress
}}}
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2859#comment:1&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.