#2813: copy_ldap_certs_to_secure.sh is failing on osgeo7
---------------------------+---------------------------------------
Reporter: robe | Owner: sac@…
Type: task | Status: new
Priority: normal | Milestone: Sysadmin Contract 2022-II
Component: Systems Admin | Keywords:
---------------------------+---------------------------------------
The job that copies the cert to secure is failing again.
This time seems to be an issue with secure instance since I can't take a
snapshot of it.
{{{
lxc snapshot secure
}}}
Yields error:
{{{
Error: Create instance snapshot (mount source): Failed to run: zfs set
mountpoint=legacy canmount=noauto osgeo7/containers/secure: exit status 1
(umount: /var/snap/lxd/common/shmounts/storage-
pools/default/containers/secure: no mount point specified.
cannot unmount '/var/snap/lxd/common/shmounts/storage-
pools/default/containers/secure': umount failed)
}}}
This has happened before after an lxd upgrade
{{{
snap info lxd
}}}
shows it upgraded yesterday.
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2813>
OSGeo <https://osgeo.org/>
OSGeo committee and general foundation issue tracker.
#2813: copy_ldap_certs_to_secure.sh is failing on osgeo7
---------------------------+----------------------------------------
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:
to fix did:
{{{
sudo rm /var/snap/lxd/common/lxd/storage-
pools/default/containers/secure/backup.yaml
sudo zfs set mountpoint=/var/snap/lxd/common/lxd/storage-
pools/default/containers/secure canmount=noauto osgeo7/containers/secure
sudo zfs umount osgeo7/containers/secure
sudo zfs mount osgeo7/containers/secure
lxc snapshot secure
}}}
Then was able to run the job
{{{
sudo /usr/local/bin/copy_ldap_certs_to_secure.sh
}}}
Had same issue with tracsvn and wordpress in that snapshotting is not
working.
{{{
lxc stop tracsvn
sudo rm /var/snap/lxd/common/lxd/storage-
pools/default/containers/tracsvn/backup.yaml
sudo zfs set mountpoint=/var/snap/lxd/common/lxd/storage-
pools/default/containers/tracsvn canmount=noauto osgeo7/containers/tracsvn
sudo zfs umount osgeo7/containers/tracsvn
sudo zfs mount osgeo7/containers/tracsvn
lxc start tracsvn
lxc snapshot tracsvn
}}}
--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2813#comment:1>
OSGeo <https://osgeo.org/>
OSGeo committee and general foundation issue tracker.