Problems copying/restore container back with different snap version and different pool name

I have problem with lxd snap not been refreshed. I copied a container snapshot from the local host (lxd 3.0.3 ) to remote host (lxd 4.5), set it up, and returned back to local host (lxd 3.03). Container started on lxd 3.0.3 host tough the network interface is not working.

Currently I have the container backed on two lxd hosts with different pool name:

local: c1 (ok)
local: c1/c1_snap (copied to remote: c3)
remote: c3 (ok)
remote: c3/c3_snap (restored to local: c3)
local: c3 (no network, but started ok)

local:
zpool status
pool: pool1
state: ONLINE
scan: scrub repaired 0B in 0h2m with 0 errors on Sun Sep 13 00:26:46 2020
config:

        NAME        STATE     READ WRITE CKSUM
        pool1       ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            sda     ONLINE       0     0     0
            sdb     ONLINE       0     0     0

errors: No known data errors
 lxc storage list
+----------+-------------+--------+--------+---------+
|   NAME   | DESCRIPTION | DRIVER | SOURCE | USED BY |
+----------+-------------+--------+--------+---------+
| lxd-pool |             | zfs    | pool1  | 5       |
+----------+-------------+--------+--------+---------+

remote:
zpool status
pool: lxd-pool
state: ONLINE
scan: scrub repaired 0B in 0h0m with 0 errors on Sun Aug 9 00:24:13 2020
config:

	NAME        STATE     READ WRITE CKSUM
	lxd-pool    ONLINE       0     0     0
	  sdb       ONLINE       0     0     0
	  sdc       ONLINE       0     0     0
	  sdd       ONLINE       0     0     0

errors: No known data errors
    lxc storage list
    +----------+-------------+--------+----------+---------+
    |   NAME   | DESCRIPTION | DRIVER |  SOURCE  | USED BY |
    +----------+-------------+--------+----------+---------+
    | lxd-pool |             | zfs    | lxd-pool | 5       |
    +----------+-------------+--------+----------+---------+
  1. Can I refresh the lxd 3.0.3 snap to lxd 4.5 and trust the container local: c1 starts also with the new snap lxd 4.5)?
  2. If local: lxd snap is refreshed to 4.5 and deleting the local: c3 container is it fine to repeat the lxc copy remote:c3_snap to local: target, or should I go to the beginning where I started from delete the remote: c3 and lxc copy local: c1/c1_snap to remote:c3?
  3. If the network problem is caused by the wrong remote: lxd snap version and/or different pool name the how the local: c1/c1_snap created with 3.0.3 did initially work on the remote: c3 container (remote host having lxd 4.5)?

Hi,

I had commented out my ipv4 configurations wrong, so actually there wasn’t problem copying from remote: back to the local: target.

I don’t think this will happen again :slight_smile: My question still is that should I from now on concern about the different snap version or different zfs pool name when working and doing lxc copy and restore between two different remotes?