lxc copy --refresh -s otherpool does not work, unless the original pool also exists on the destination? Or maybe it is something else that bothers it, don’t know, this is the only difference I could find between an instance where it works and the one where it doesn’t.
it correctly zfs receives the dataset in the corrrect pool but then bombs with “Volume already exists on storage but not in database”
time="2024-05-14T05:26:35Z" level=info msg="Migration receive stopped" instance=jira instanceType=container project=default
time="2024-05-14T05:26:35Z" level=error msg="Failed migration on target" clusterMoveSourceName= err="Failed creating instance on target: Volume already exists on storage but not in database" instance=jira live=false project=default push=fa
lse
time="2024-05-14T05:26:35Z" level=info msg="Migration channels disconnected on target" clusterMoveSourceName= instance=jira live=false project=default push=false
time="2024-05-14T05:26:35Z" level=debug msg="Instance operation lock finished" action=create err="Error transferring instance data: Failed migration on target: Failed creating instance on target: Volume already exists on storage but not in
database" instance=jira project=default reusable=false
time="2024-05-14T05:26:35Z" level=debug msg="Removing device" device=scratch instance=jira instanceType=container project=default type=disk
time="2024-05-14T05:26:35Z" level=debug msg="Removing device" device=root instance=jira instanceType=container project=default type=disk
time="2024-05-14T05:26:35Z" level=debug msg="Removing device" device=eth0 instance=jira instanceType=container project=default type=nic
time="2024-05-14T05:26:35Z" level=info msg="ID: 47cb62ac-34be-4a34-a73c-d38f2e666dd6, Class: task, Description: Creating instance" CreatedAt="2024-05-14 05:26:35.104294458 +0000 UTC" Err="Error transferring instance data: Failed migration
on target: Failed creating instance on target: Volume already exists on storage but not in database" Location=none MayCancel=false Metadata="map[]" Resources="map[containers:[/1.0/instances/jira] instances:[/1.0/instances/jira]]" Status=Fa
ilure StatusCode=Failure UpdatedAt="2024-05-14 05:26:35.104294458 +0000 UTC"
time="2024-05-14T05:26:35Z" level=debug msg="Failure for operation" class=task description="Creating instance" err="Error transferring instance data: Failed migration on target: Failed creating instance on target: Volume already exists on
storage but not in database" operation=47cb62ac-34be-4a34-a73c-d38f2e666dd6 project=default
time="2024-05-14T05:26:35Z" level=debug msg="Event listener server handler stopped" listener=d8f7e427-2b27-4c57-a948-2f6ac0e689af local="172.18.6.4:8443" remote="192.168.221.182:49278"
lxd is 5.21.1-d46c406