Skip to content

Commit acb926a

Browse files
authored
Revise region management instructions in configuration.rst
Updated instructions for adding and managing regions in CloudStack, including changes to commands and descriptions for clarity.
1 parent 97a7902 commit acb926a

1 file changed

Lines changed: 37 additions & 62 deletions

File tree

source/installguide/configuration.rst

Lines changed: 37 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ the default region by displaying the region in the CloudStack UI and
7676
clicking the Edit button.
7777

7878

79-
Adding a Region
79+
Adding a Second Region
8080
~~~~~~~~~~~~~~~
8181

8282
Use these steps to add a second region in addition to the default
@@ -93,52 +93,49 @@ region.
9393

9494
.. parsed-literal::
9595
96-
# cloudstack-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password> -e <encryption_type> -m <management_server_key> -k <database_key> -r <region_id>
96+
# cloudstack-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password> -e <encryption_type> -m <management_server_key> -k <database_key> -r 2
9797
9898
#. By the end of the installation procedure, the Management Server
9999
should have been started. Be sure that the Management Server
100100
installation was successful and complete.
101101

102-
#. Now add the new region to region 1 in CloudStack.
103-
104-
#. Log in to CloudStack in the first region as root administrator
105-
(that is, log in to <region.1.IP.address>:8080/client).
102+
#. Now add the new region (2) to CloudStack of region 1 using CloudMonkey.
106103

107-
#. In the left navigation bar, click Regions.
104+
.. parsed-literal::
108105
109-
#. Click Add Region. In the dialog, fill in the following fields:
106+
# cloudmonkey add region id=2 endpoint="http://<region.2.IP.address>:8080/client" name="Region 2"
110107
111-
- ID. A unique identifying number. Use the same number you set in
112-
the database during Management Server installation in the new
113-
region; for example, 2.
108+
- ID. A unique identifying number. Use the same number you set in
109+
the database during Management Server installation in the new
110+
region; for example, 2.
114111

115-
- Name. Give the new region a descriptive name.
112+
- Name. Give the new region a descriptive name.
116113

117-
- Endpoint. The URL where you can log in to the Management Server
118-
in the new region. This has the format
119-
<region.2.IP.address>:8080/client.
114+
- Endpoint. The URL where you can log in to the Management Server
115+
in the new region. This has the format
116+
<region.2.IP.address>:8080/client.
120117

121-
#. Now perform the same procedure in reverse. Log in to region 2, and
118+
#. Now perform the same procedure in reverse. On CloudStacl of the region 2,
122119
add region 1.
123120

124-
#. Copy the account, user, and domain tables from the region 1 database
125-
to the region 2 database.
121+
.. parsed-literal::
122+
123+
# cloudmonkey add region id=1 endpoint="http://<region.1.IP.address>:8080/client" name="Region 1"
126124
127-
In the following commands, it is assumed that you have set the root
128-
password on the database, which is a CloudStack recommended best
129-
practice. Substitute your own MySQL root password.
125+
#. Copy the **account**, **user**, and **domain** tables from the region 1 database
126+
to the region 2 database.
130127

131-
#. First, run this command to copy the contents of the database:
128+
#. First, run this command to dumnp the tables into a file:
132129

133130
.. parsed-literal::
134131
135-
# mysqldump -u root -p<mysql_password> -h <region1_db_host> cloud account user domain > region1.sql
132+
# mysqldump -u root -p -h <region1_db_host> cloud account user domain > region1.sql
136133
137134
#. Then run this command to put the data onto the region 2 database:
138135

139136
.. parsed-literal::
140137
141-
# mysql -u root -p<mysql_password> -h <region2_db_host> cloud < region1.sql
138+
# mysql -u root -p -h <region2_db_host> cloud < region1.sql
142139
143140
#. Remove project accounts. Run these commands on the region 2 database:
144141

@@ -167,54 +164,39 @@ repeat certain steps additional times for each additional region:
167164

168165
.. parsed-literal::
169166
170-
cloudstack-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password> -e <encryption_type> -m <management_server_key> -k <database_key> -r <region_id>
167+
# cloudstack-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password> -e <encryption_type> -m <management_server_key> -k <database_key> -r <region_id>
171168
172-
#. Once the Management Server is running, add your new region to all
173-
existing regions by repeatedly using the Add Region button in the UI.
174-
For example, if you were adding region 3:
169+
#. Once the Management Server is running, add your new region into **all
170+
existing regions** using CloudMonkey:
175171

176-
#. Log in to CloudStack in the first region as root administrator
177-
(that is, log in to <region.1.IP.address>:8080/client), and add a
178-
region with ID 3, the name of region 3, and the endpoint
179-
<region.3.IP.address>:8080/client.
172+
.. parsed-literal::
180173
181-
#. Log in to CloudStack in the second region as root administrator
182-
(that is, log in to <region.2.IP.address>:8080/client), and add a
183-
region with ID 3, the name of region 3, and the endpoint
184-
<region.3.IP.address>:8080/client.
174+
# cloudmonkey add region id=<region_id> endpoint="http://<region.IP.address>:8080/client" name="Region <region_id>"
185175
186176
#. Repeat the procedure in reverse to add all existing regions to the
187177
new region. For example, for the third region, add the other two
188178
existing regions:
189179

190-
#. Log in to CloudStack in the third region as root administrator
191-
(that is, log in to <region.3.IP.address>:8080/client).
180+
.. parsed-literal::
192181
193-
#. Add a region with ID 1, the name of region 1, and the endpoint
194-
<region.1.IP.address>:8080/client.
182+
# cloudmonkey add region id=1 endpoint="http://<region.1.IP.address>:8080/client" name="Region 1"
183+
# cloudmonkey add region id=2 endpoint="http://<region.2.IP.address>:8080/client" name="Region 2"
195184
196-
#. Add a region with ID 2, the name of region 2, and the endpoint
197-
<region.2.IP.address>:8080/client.
198-
199-
#. Copy the account, user, and domain tables from any existing region's
185+
#. Copy the **account**, **user**, and **domain** tables from any existing region's
200186
database to the new region's database.
201187

202-
In the following commands, it is assumed that you have set the root
203-
password on the database, which is a CloudStack recommended best
204-
practice. Substitute your own MySQL root password.
205-
206-
#. First, run this command to copy the contents of the database:
188+
#. First, run this command to dumnp the tables into a file:
207189

208190
.. parsed-literal::
209191
210-
# mysqldump -u root -p<mysql_password> -h <region1_db_host> cloud account user domain > region1.sql
192+
# mysqldump -u root -p -h <region1_db_host> cloud account user domain > region1.sql
211193
212194
#. Then run this command to put the data onto the new region's
213195
database. For example, for region 3:
214196

215197
.. parsed-literal::
216198
217-
# mysql -u root -p<mysql_password> -h <region3_db_host> cloud < region1.sql
199+
# mysql -u root -p -h <region3_db_host> cloud < region1.sql
218200
219201
#. Remove project accounts. Run these commands on the region 3 database:
220202

@@ -234,20 +216,13 @@ repeat certain steps additional times for each additional region:
234216
Deleting a Region
235217
~~~~~~~~~~~~~~~~~
236218

237-
Log in to each of the other regions, navigate to the one you want to
238-
delete, and click Remove Region. For example, to remove the third region
239-
in a 3-region cloud:
219+
On each of the other regions, use CloudMontey to remove the desired region:
240220

241-
#. Log in to <region.1.IP.address>:8080/client.
242-
243-
#. In the left navigation bar, click Regions.
244-
245-
#. Click the name of the region you want to delete.
246-
247-
#. Click the Remove Region button.
221+
.. parsed-literal::
248222
249-
#. Repeat these steps for <region.2.IP.address>:8080/client.
223+
# cloudmonkey remove region id=<region_id>
250224
225+
- Only the Region ID is required.
251226

252227
.. _adding-a-zone:
253228

0 commit comments

Comments
 (0)