According to the command help --profile my-profile should apply the profile my-profile to the moved container. I’m trying to move a container to a different node in a cluster and it doesn’t work.
root@msc-lxd01:~# snap list lxd
Name Version Rev Tracking Publisher Notes
lxd 5.21.4-de343be 37395 5.21/stable canonical✓ -
root@msc-lxd01:~# lxc config show c1 | grep prf
- prf-msc-lxd02
root@msc-lxd01:~# lxc move c1 --profile prf-msc-lxd01 --target msc-lxd01
root@msc-lxd01:~# lxc config show c1 | grep prf
- prf-msc-lxd02
root@msc-lxd01:~# lxc profile ls
+---------------+---------------------+---------+
| NAME | DESCRIPTION | USED BY |
+---------------+---------------------+---------+
| default | Default LXD profile | 0 |
+---------------+---------------------+---------+
| prf-msc-lxd01 | | 0 |
+---------------+---------------------+---------+
| prf-msc-lxd02 | | 2 |
+---------------+---------------------+---------+
| prf-msc-lxd03 | | 1 |
+---------------+---------------------+---------+
Option --no-profiles doesn’t work either.
Am I missing something?