From c2dcd4f6601a919529b0ff973fcb29cc1afe5d37 Mon Sep 17 00:00:00 2001 From: BruceChiZhang Date: Tue, 31 Jul 2018 17:18:45 +0800 Subject: [PATCH] Fix the create/delete instance error using nova cell with tricircle 1. What is the problem? in nova cell with tricircle, instances can not be create and delete sucessful 2. What is the solution to the problem? fix the error in creaton and deletion of tricircle 3. What the features to be implemented in the Tricircle to realize the solution? no > Change-Id: If1ffdb245f0c03e11d0273b5e238c93c3f23bc8b --- doc/source/install/installation-cell.rst | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/source/install/installation-cell.rst b/doc/source/install/installation-cell.rst index 9016c0a9..c2a54cde 100644 --- a/doc/source/install/installation-cell.rst +++ b/doc/source/install/installation-cell.rst @@ -84,7 +84,15 @@ Setup | 3 | cell2 | +----+-------+ -- 5 In node1, check if compute services in both hosts are registered:: +- 5 In node1, run the following commands to use nova_cell1 database in nova configure files:: + + sed -i "s/nova_cell0/nova_cell1/g" `grep nova_cell0 -rl /etc/nova` + + systemctl restart devstack@n-sch.service + systemctl restart devstack@n-super-cond.service + systemctl restart devstack@n-cpu.service + +- 6 In node1, check if compute services in both hosts are registered:: openstack --os-region-name CentralRegion compute service list @@ -103,20 +111,20 @@ Setup zhiyuan-1 has two nova-conductor services, because one of them is a super conductor service. -- 6 Create two aggregates and put the two hosts in each aggregate:: +- 7 Create two aggregates and put the two hosts in each aggregate:: nova --os-region-name CentralRegion aggregate-create ag1 az1 nova --os-region-name CentralRegion aggregate-create ag2 az2 nova --os-region-name CentralRegion aggregate-add-host ag1 zhiyuan-1 nova --os-region-name CentralRegion aggregate-add-host ag2 zhiyuan-2 -- 7 Create pods, tricircle client is used:: +- 8 Create pods, tricircle client is used:: openstack --os-region-name CentralRegion multiregion networking pod create --region-name CentralRegion openstack --os-region-name CentralRegion multiregion networking pod create --region-name RegionOne --availability-zone az1 openstack --os-region-name CentralRegion multiregion networking pod create --region-name RegionTwo --availability-zone az2 -- 8 Create network and boot virtual machines:: +- 9 Create network and boot virtual machines:: net_id=$(openstack --os-region-name CentralRegion network create --provider-network-type vxlan net1 -c id -f value) openstack --os-region-name CentralRegion subnet create --subnet-range 10.0.1.0/24 --network net1 subnet1