Public bug reported:
We were running lxd w/ a zfs (zpool) backing our system. We retired the
service that had been running in lxd (stopping the lxd container) and
the zpool was removed from the computer.
When we tried to upgrade (from bionic to focal), the lxd upgrade failed.
It's true, we effectively shot ourselves in our foot (years ago).
Solution:
1. systemctl stop lxd.service lxd.socket
1. mv /var/lib/lxd /var/lib/lxd.0
1. zfs create tank/lxd
1. zfs get compression tank/lxd # returns lz4
1. lxc storage create pool1 zfs source=tank/lxd
1. systemctl start lxd.service lxd.socket
Expected result:
it'd be nice if there was a vaguely helpful error message -- I used `strace` to
slowly figure out that there were
`/var/lib/lxd/database/global/snapshots/*/state.bin` references to it and there
wasn't any particularly obvious way to do anything to resolve this (renaming
the snapshots directory didn't result in a happy state).
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: lxd 3.0.3-0ubuntu1~18.04.1
ProcVersionSignature: Ubuntu 4.15.0-122.124-generic 4.15.18
Uname: Linux 4.15.0-122-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.9-0ubuntu7.18
Architecture: amd64
Date: Tue Oct 20 16:40:04 2020
ErrorMessage: new lxd package pre-installation script subprocess returned error
exit status 1
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal,
3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageVersions:
dpkg 1.19.7ubuntu3
apt 2.0.2ubuntu0.1
SourcePackage: lxd
Title: package lxd 3.0.3-0ubuntu1~18.04.1 failed to install/upgrade: new lxd
package pre-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to focal on 2020-10-20 (0 days ago)
** Affects: lxd (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-package focal third-party-packages uec-images
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1900767
Title:
package lxd 3.0.3-0ubuntu1~18.04.1 failed to install/upgrade: new lxd
package pre-installation script subprocess returned error exit status
1 -- zpool missing
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1900767/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs