Opened 2 years ago

Closed 2 years ago

#2813 closed task (fixed)

copy_ldap_certs_to_secure.sh is failing on osgeo7

Reported by: robe Owned by: sac@…
Priority: normal Milestone: Sysadmin Contract 2022-II
Component: SysAdmin Keywords:
Cc:

Description

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.

Change History (1)

comment:1 by robe, 2 years ago

Resolution: fixed
Status: newclosed

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
Note: See TracTickets for help on using tickets.