1, or the back panel to modify the type of shared network
openstack network set xxxxxxx --share
2, back up the database
docker exec -it -u root mariadb mysqldump -uroot -pxxxxxxxxxxx nova instances > nova_instances.sql
docker exec -it -u root mariadb mysqldump -uroot -pxxxxxxxxxxx nova instance_info_caches > nova_instance_info_caches.sql
docker exec -it -u root mariadb mysqldump -uroot -pxxxxxxxxxxx cinder volumes > cinder_volumes.sql
docker exec -it -u root mariadb mysqldump -uroot -pxxxxxxxxxxx neutron ports > neutron_ports.sql
3. Find user_id and project_id original project, and recorded
openstack user list --long
openstack project list --long
4. Find project_id user_id and objectives of the project
openstack user list --long
openstack project list --long
5, modify the database
mysql> update nova.instances set user_id="xxxxxxx",project_id="xxxxxxxx" where project_id="XXXXXXX";
mysql> update cidner.volumes set user_id="xxxxxxx",project_id="xxxxxxxx" where project_id="XXXXXXX";
mysql> update neutron.ports set user_id="xxxxxxx",project_id="xxxxxxxx" where project_id="XXXXXXX";
6, will be guided by the guide nova.instance_info_caches.sql out, modify replace project_id target project id.
//将数据库表导入
docker cp nova_instance_info_caches.sql mariadb:/opt/
mysql> use nova;
mysql[nova]>source /opt/nova_instance_info_caches.sql
6. Verify whether the panel on cloud host migration success