cannot send/receive self-contained zfs dataset created with LXD with a copy of a deleted container #10935
Labels
Bot: Not Stale
Override for the stale bot
Component: Send/Recv
"zfs send/recv" feature
Type: Defect
Incorrect behavior (e.g. crash, hang)
System information
I also verified it with Ubuntu 20.04 and Ubuntu 18.04.
Describe the problem you're observing
I used a few LXD commands that create a container, copy it, and delete the original (renamed in zfs).
I then tried to replicate the zfs dataset with zfs send/receive to another machine and got an error:
cannot receive: local origin for clone y/containers/a2@copy does not exist
Describe how to reproduce the problem
Start with a new Debian system, with backports, and ZFS installed, as per:
https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/index.html
create a new zpool "z"
install LXD:
logout/login to get the lxd commands in your path
initalize LXD:
run "lxd init" and accept all the defaults, except create a new storage pool, and specify "z" as the zpool.
To avoid answering questions manually, you can run:
where preseed.txt contains the following:
Also attached here: preseed.txt
run the following commands:
Now try to replicate z@copy using zfs send/receive.
From a remote system with ssh access to the first system as "pin", run something like this:
"y" is an empty zpool, but you can also use any test dataset"
Result:
cannot receive: local origin for clone y/containers/a2@copy does not exist
Expected Result:
should be able to replicate self-contained dataset.
I attach the output of "zfs list -r -t all -o name,origin z":
list.txt
See also:
#10135
I originally entered this issue at LXD, but they closed it:
https://github.com/lxc/lxd/issues/7854
The text was updated successfully, but these errors were encountered: