Hi,
My question is: why can’t we use --target
when moving a container into a cluster?
We have a cluster (now with three nodes) and a few “old” LXD nodes. It is possible to add the old LXD nodes as remote on one of the cluster nodes. (And main cluster node is a remote on the old LXD nodes.)
This way it is possible to copy or move containers into the cluster. So far so good. But I would like to be able to place these migration containers on one specific node of the cluster. That is currently not possible, it seems. The cluster picks a node.
My use case is the new nodes in the cluster have more memory and SSDs. So I want to place the more demanding containers on the new cluster node.
What happens now is that I first move the container into the cluster and then I move them to a specific target. You can image that this is time consuming when containers are over 100GB in size.
Let’s look at the error I’m getting
root@ijssel:~# lxc cluster list
+--------+---------------------------+----------+--------+-------------------+--------------+
| NAME | URL | DATABASE | STATE | MESSAGE | ARCHITECTURE |
+--------+---------------------------+----------+--------+-------------------+--------------+
| ijssel | https://172.16.16.54:8443 | YES | ONLINE | fully operational | x86_64 |
+--------+---------------------------+----------+--------+-------------------+--------------+
| luts | https://172.16.16.45:8443 | YES | ONLINE | fully operational | x86_64 |
+--------+---------------------------+----------+--------+-------------------+--------------+
| rijn | https://172.16.16.59:8443 | YES | ONLINE | fully operational | x86_64 |
+--------+---------------------------+----------+--------+-------------------+--------------+
root@ijssel:~# lxc remote list
+-----------------+------------------------------------------+---------------+-------------+--------+--------+
| NAME | URL | PROTOCOL | AUTH TYPE | PUBLIC | STATIC |
+-----------------+------------------------------------------+---------------+-------------+--------+--------+
| roer | https://roer.ghs.nl:8443 | lxd | tls | NO | NO |
+-----------------+------------------------------------------+---------------+-------------+--------+--------+
...
+-----------------+------------------------------------------+---------------+-------------+--------+--------+
root@ijssel:~# lxc move roer:cocoon cocoon --target luts
Error: The source LXD server is not clustered
root@ijssel:~# lxc move roer:cocoon cocoon
root@ijssel:~# lxc ls|grep cocoon
| cocoon | STOPPED | | | CONTAINER | 0 | rijn |