lxd version: 5.5
lxc version: 5.5
root@lxdserver1:~# lxc ls -cntL
+-----------------+-----------------+------------+
| NAME | TYPE | LOCATION |
+-----------------+-----------------+------------+
| cont-by0TCYF0y2 | CONTAINER | lxdserver2 |
+-----------------+-----------------+------------+
| cont-sJGo5BKmA7 | CONTAINER | lxdserver3 |
+-----------------+-----------------+------------+
| vm-v1qlJKbeQ6 | VIRTUAL-MACHINE | lxdserver1 |
+-----------------+-----------------+------------+
| | CONTAINER | lxdserver2 |
+-----------------+-----------------+------------+
As you can see, There is a container whose name is blank.
Because I called the restapi of move instance
.
here is my cluster info:
+------------+----------------------------+-----------------+--------------+----------------+-------------+--------+-------------------+
| NAME | URL | ROLES | ARCHITECTURE | FAILURE DOMAIN | DESCRIPTION | STATE | MESSAGE |
+------------+----------------------------+-----------------+--------------+----------------+-------------+--------+-------------------+
| lxdserver1 | https://172.31.30.129:8443 | database | aarch64 | default | | ONLINE | Fully operational |
+------------+----------------------------+-----------------+--------------+----------------+-------------+--------+-------------------+
| lxdserver2 | https://172.31.30.130:8443 | database-leader | aarch64 | default | | ONLINE | Fully operational |
| | | database | | | | | |
+------------+----------------------------+-----------------+--------------+----------------+-------------+--------+-------------------+
| lxdserver3 | https://172.31.30.131:8443 | database | aarch64 | default | | ONLINE | Fully operational |
+------------+----------------------------+-----------------+--------------+----------------+-------------+--------+-------------------+
here is my rest url :
https://172.31.30.129:8443/1.0/instances/cont-D74qF3riK2?target=lxdserver2
here is my rest request body:
{"migration": true}
My requirement is to move containers from lxdserver1 to lxdserver2 through the rest api.
My requestbody must be wrongly written.
1.Who can tell me how to delete container with blank name?
2.How can I correctly send a rest request to move the container from lxdserver1 to lxdserver2 ?