Merge lp:~annegentle/nova/fixnewscript into lp:~hudson-openstack/nova/trunk
- fixnewscript
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Soren Hansen |
Approved revision: | 484 |
Merged at revision: | 550 |
Proposed branch: | lp:~annegentle/nova/fixnewscript |
Merge into: | lp:~hudson-openstack/nova/trunk |
Diff against target: |
1127 lines (+367/-250) 41 files modified
README (+2/-2) doc/source/adminguide/binaries.rst (+1/-1) doc/source/adminguide/flags.rst (+1/-1) doc/source/adminguide/getting.started.rst (+1/-1) doc/source/adminguide/index.rst (+1/-1) doc/source/adminguide/managing.images.rst (+1/-1) doc/source/adminguide/managing.instances.rst (+1/-1) doc/source/adminguide/managing.networks.rst (+2/-2) doc/source/adminguide/managing.projects.rst (+1/-1) doc/source/adminguide/managingsecurity.rst (+1/-1) doc/source/adminguide/monitoring.rst (+1/-1) doc/source/adminguide/multi.node.install.rst (+259/-200) doc/source/adminguide/network.flat.rst (+1/-1) doc/source/adminguide/network.vlan.rst (+2/-3) doc/source/adminguide/nova.manage.rst (+1/-1) doc/source/cloud101.rst (+4/-4) doc/source/community.rst (+1/-1) doc/source/devref/addmethod.openstackapi.rst (+1/-1) doc/source/devref/api.rst (+1/-1) doc/source/devref/architecture.rst (+1/-1) doc/source/devref/auth.rst (+1/-1) doc/source/devref/cloudpipe.rst (+1/-1) doc/source/devref/compute.rst (+1/-1) doc/source/devref/database.rst (+2/-2) doc/source/devref/development.environment.rst (+1/-1) doc/source/devref/fakes.rst (+1/-1) doc/source/devref/glance.rst (+1/-1) doc/source/devref/index.rst (+1/-1) doc/source/devref/network.rst (+1/-1) doc/source/devref/nova.rst (+1/-1) doc/source/devref/objectstore.rst (+1/-1) doc/source/devref/rabbit.rst (+3/-2) doc/source/devref/scheduler.rst (+1/-1) doc/source/devref/services.rst (+1/-1) doc/source/devref/volume.rst (+1/-1) doc/source/index.rst (+1/-1) doc/source/livecd.rst (+17/-0) doc/source/nova.concepts.rst (+3/-5) doc/source/object.model.rst (+26/-0) doc/source/quickstart.rst (+1/-1) doc/source/service.architecture.rst (+17/-0) |
To merge this branch: | bzr merge lp:~annegentle/nova/fixnewscript |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thierry Carrez (community) | Approve | ||
Devin Carlen (community) | Approve | ||
Vish Ishaya (community) | Approve | ||
Soren Hansen | Pending | ||
Review via email: mp+45085@code.launchpad.net |
Commit message
Description of the change
Had to abandon the other branch (~annegentle/
- 480. By Anne Gentle
-
Change all 2010 Copyright statements to 2010-2011 in doc source directory only
- 481. By Anne Gentle
-
Fixing formatting problems with multinode install document
Anne Gentle (annegentle) wrote : | # |
Oh thank you - I wasn't sure how to do that correctly.
On Wed, Jan 5, 2011 at 6:04 PM, Vish Ishaya <email address hidden> wrote:
> Review: Approve
> lgtm. Going to mark the other branch rejected so it stops showing up.
> --
> https:/
> You are the owner of lp:~annegentle/nova/fixnewscript.
>
Thierry Carrez (ttx) wrote : | # |
Looks like this combines two things: the newscript and some doc fixes. It would be better to have two separate branch merge proposals, since the doc fixes are no-brainers, while some people (including me) are not yet convinced another installation script should be made part of the core code.
- 482. By Anne Gentle
-
Fixing unescaped quote in nova-CC-install.sh script plus formatting fixes to multinode install
- 483. By Anne Gentle
-
Merged with trunk
- 484. By Anne Gentle
-
Removing script file
Anne Gentle (annegentle) wrote : | # |
Removing the script to separate the doc and script. We'll place the script on github similar to Vish's dev script's first holding spot.
Preview Diff
1 | === modified file 'README' |
2 | --- README 2010-07-24 23:22:17 +0000 |
3 | +++ README 2011-01-11 22:27:12 +0000 |
4 | @@ -1,7 +1,7 @@ |
5 | The Choose Your Own Adventure README for Nova: |
6 | |
7 | You have come across a cloud computing fabric controller. It has identified |
8 | - itself as "Nova." It is apparent that it maintains compatability with |
9 | + itself as "Nova." It is apparent that it maintains compatibility with |
10 | the popular Amazon EC2 and S3 APIs. |
11 | |
12 | To monitor it from a distance: follow @novacc on twitter |
13 | @@ -10,7 +10,7 @@ |
14 | |
15 | To study its anatomy: read http://nova.openstack.org/architecture.html |
16 | |
17 | -To disect it in detail: visit http://code.launchpad.net/nova |
18 | +To dissect it in detail: visit http://code.launchpad.net/nova |
19 | |
20 | To taunt it with its weaknesses: use http://bugs.launchpad.net/nova |
21 | |
22 | |
23 | === modified file 'doc/source/adminguide/binaries.rst' |
24 | --- doc/source/adminguide/binaries.rst 2010-11-09 04:38:21 +0000 |
25 | +++ doc/source/adminguide/binaries.rst 2011-01-11 22:27:12 +0000 |
26 | @@ -1,5 +1,5 @@ |
27 | .. |
28 | - Copyright 2010 United States Government as represented by the |
29 | + Copyright 2010-2011 United States Government as represented by the |
30 | Administrator of the National Aeronautics and Space Administration. |
31 | All Rights Reserved. |
32 | |
33 | |
34 | === modified file 'doc/source/adminguide/flags.rst' |
35 | --- doc/source/adminguide/flags.rst 2010-11-04 23:00:46 +0000 |
36 | +++ doc/source/adminguide/flags.rst 2011-01-11 22:27:12 +0000 |
37 | @@ -1,5 +1,5 @@ |
38 | .. |
39 | - Copyright 2010 United States Government as represented by the |
40 | + Copyright 2010-2011 United States Government as represented by the |
41 | Administrator of the National Aeronautics and Space Administration. |
42 | All Rights Reserved. |
43 | |
44 | |
45 | === modified file 'doc/source/adminguide/getting.started.rst' |
46 | --- doc/source/adminguide/getting.started.rst 2011-01-03 09:08:32 +0000 |
47 | +++ doc/source/adminguide/getting.started.rst 2011-01-11 22:27:12 +0000 |
48 | @@ -1,5 +1,5 @@ |
49 | .. |
50 | - Copyright 2010 United States Government as represented by the |
51 | + Copyright 2010-2011 United States Government as represented by the |
52 | Administrator of the National Aeronautics and Space Administration. |
53 | All Rights Reserved. |
54 | |
55 | |
56 | === modified file 'doc/source/adminguide/index.rst' |
57 | --- doc/source/adminguide/index.rst 2010-11-22 22:43:17 +0000 |
58 | +++ doc/source/adminguide/index.rst 2011-01-11 22:27:12 +0000 |
59 | @@ -1,5 +1,5 @@ |
60 | .. |
61 | - Copyright 2010 United States Government as represented by the |
62 | + Copyright 2010-2011 United States Government as represented by the |
63 | Administrator of the National Aeronautics and Space Administration. |
64 | All Rights Reserved. |
65 | |
66 | |
67 | === modified file 'doc/source/adminguide/managing.images.rst' |
68 | --- doc/source/adminguide/managing.images.rst 2010-11-09 02:40:21 +0000 |
69 | +++ doc/source/adminguide/managing.images.rst 2011-01-11 22:27:12 +0000 |
70 | @@ -1,5 +1,5 @@ |
71 | .. |
72 | - Copyright 2010 United States Government as represented by the |
73 | + Copyright 2010-2011 United States Government as represented by the |
74 | Administrator of the National Aeronautics and Space Administration. |
75 | All Rights Reserved. |
76 | |
77 | |
78 | === modified file 'doc/source/adminguide/managing.instances.rst' |
79 | --- doc/source/adminguide/managing.instances.rst 2010-11-09 04:38:21 +0000 |
80 | +++ doc/source/adminguide/managing.instances.rst 2011-01-11 22:27:12 +0000 |
81 | @@ -1,5 +1,5 @@ |
82 | .. |
83 | - Copyright 2010 United States Government as represented by the |
84 | + Copyright 2010-2011 United States Government as represented by the |
85 | Administrator of the National Aeronautics and Space Administration. |
86 | All Rights Reserved. |
87 | |
88 | |
89 | === modified file 'doc/source/adminguide/managing.networks.rst' |
90 | --- doc/source/adminguide/managing.networks.rst 2010-12-07 22:48:42 +0000 |
91 | +++ doc/source/adminguide/managing.networks.rst 2011-01-11 22:27:12 +0000 |
92 | @@ -1,7 +1,7 @@ |
93 | .. |
94 | - Copyright 2010 United States Government as represented by the |
95 | + Copyright 2010-2011 United States Government as represented by the |
96 | Administrator of the National Aeronautics and Space Administration. |
97 | - Overview Sections Copyright 2010 Citrix |
98 | + Overview Sections Copyright 2010-2011 Citrix |
99 | All Rights Reserved. |
100 | |
101 | Licensed under the Apache License, Version 2.0 (the "License"); you may |
102 | |
103 | === modified file 'doc/source/adminguide/managing.projects.rst' |
104 | --- doc/source/adminguide/managing.projects.rst 2010-11-09 04:38:21 +0000 |
105 | +++ doc/source/adminguide/managing.projects.rst 2011-01-11 22:27:12 +0000 |
106 | @@ -1,5 +1,5 @@ |
107 | .. |
108 | - Copyright 2010 United States Government as represented by the |
109 | + Copyright 2010-2011 United States Government as represented by the |
110 | Administrator of the National Aeronautics and Space Administration. |
111 | All Rights Reserved. |
112 | |
113 | |
114 | === modified file 'doc/source/adminguide/managingsecurity.rst' |
115 | --- doc/source/adminguide/managingsecurity.rst 2010-11-11 22:32:24 +0000 |
116 | +++ doc/source/adminguide/managingsecurity.rst 2011-01-11 22:27:12 +0000 |
117 | @@ -1,5 +1,5 @@ |
118 | .. |
119 | - Copyright 2010 United States Government as represented by the |
120 | + Copyright 2010-2011 United States Government as represented by the |
121 | Administrator of the National Aeronautics and Space Administration. |
122 | All Rights Reserved. |
123 | |
124 | |
125 | === modified file 'doc/source/adminguide/monitoring.rst' |
126 | --- doc/source/adminguide/monitoring.rst 2010-11-04 23:00:46 +0000 |
127 | +++ doc/source/adminguide/monitoring.rst 2011-01-11 22:27:12 +0000 |
128 | @@ -1,5 +1,5 @@ |
129 | .. |
130 | - Copyright 2010 United States Government as represented by the |
131 | + Copyright 2010-2011 United States Government as represented by the |
132 | Administrator of the National Aeronautics and Space Administration. |
133 | All Rights Reserved. |
134 | |
135 | |
136 | === modified file 'doc/source/adminguide/multi.node.install.rst' |
137 | --- doc/source/adminguide/multi.node.install.rst 2011-01-03 21:34:44 +0000 |
138 | +++ doc/source/adminguide/multi.node.install.rst 2011-01-11 22:27:12 +0000 |
139 | @@ -1,6 +1,7 @@ |
140 | .. |
141 | - Copyright 2010 United States Government as represented by the |
142 | - Administrator of the National Aeronautics and Space Administration. |
143 | + Copyright 2010-2011 United States Government as represented by the |
144 | + Administrator of the National Aeronautics and Space Administration. |
145 | + |
146 | All Rights Reserved. |
147 | |
148 | Licensed under the Apache License, Version 2.0 (the "License"); you may |
149 | @@ -17,36 +18,35 @@ |
150 | |
151 | Installing Nova on Multiple Servers |
152 | =================================== |
153 | - |
154 | + |
155 | When you move beyond evaluating the technology and into building an actual |
156 | production environment, you will need to know how to configure your datacenter |
157 | and how to deploy components across your clusters. This guide should help you |
158 | through that process. |
159 | - |
160 | + |
161 | You can install multiple nodes to increase performance and availability of the OpenStack Compute installation. |
162 | - |
163 | + |
164 | This setup is based on an Ubuntu Lucid 10.04 installation with the latest updates. Most of this works around issues that need to be resolved in the installation and configuration scripts as of October 18th 2010. It also needs to eventually be generalized, but the intent here is to get the multi-node configuration bootstrapped so folks can move forward. |
165 | - |
166 | - |
167 | + |
168 | + |
169 | Requirements for a multi-node installation |
170 | ------------------------------------------ |
171 | - |
172 | + |
173 | * You need a real database, compatible with SQLAlchemy (mysql, postgresql) There's not a specific reason to choose one over another, it basically depends what you know. MySQL is easier to do High Availability (HA) with, but people may already know Postgres. We should document both configurations, though. |
174 | * For a recommended HA setup, consider a MySQL master/slave replication, with as many slaves as you like, and probably a heartbeat to kick one of the slaves into being a master if it dies. |
175 | * For performance optimization, split reads and writes to the database. MySQL proxy is the easiest way to make this work if running MySQL. |
176 | - |
177 | + |
178 | Assumptions |
179 | -^^^^^^^^^^^ |
180 | - |
181 | +----------- |
182 | + |
183 | * Networking is configured between/through the physical machines on a single subnet. |
184 | -* Installation and execution are both performed by root user. |
185 | - |
186 | - |
187 | - |
188 | -Step 1 Use apt-get to get the latest code |
189 | ------------------------------------------ |
190 | - |
191 | -1. Setup Nova PPA with https://launchpad.net/~nova-core/+archive/trunk. |
192 | +* Installation and execution are both performed by ROOT user. |
193 | + |
194 | + |
195 | +Step 1 - Use apt-get to get the latest code |
196 | +------------------------------------------- |
197 | + |
198 | +1. Setup Nova PPA with https://launchpad.net/~nova-core/+archive/trunk. The ‘python-software-properties’ package is a pre-requisite for setting up the nova package repo: |
199 | |
200 | :: |
201 | |
202 | @@ -69,201 +69,260 @@ |
203 | It is highly likely that there will be errors when the nova services come up since they are not yet configured. Don't worry, you're only at step 1! |
204 | |
205 | Step 2 Setup configuration file (installed in /etc/nova) |
206 | ---------------------------------------------------------- |
207 | +-------------------------------------------------------- |
208 | + |
209 | +1. Nova development has consolidated all config files to nova.conf as of November 2010. There is a default set of options that are already configured in nova.conf: |
210 | + |
211 | +:: |
212 | + |
213 | +--daemonize=1 |
214 | +--dhcpbridge_flagfile=/etc/nova/nova.conf |
215 | +--dhcpbridge=/usr/bin/nova-dhcpbridge |
216 | +--logdir=/var/log/nova |
217 | +--state_path=/var/lib/nova |
218 | + |
219 | +The following items ALSO need to be defined in /etc/nova/nova.conf. I’ve added some explanation of the variables, as comments CANNOT be in nova.conf. There seems to be an issue with nova-manage not processing the comments/whitespace correctly: |
220 | + |
221 | +--sql_connection ### Location of Nova SQL DB |
222 | + |
223 | +--s3_host ### This is where Nova is hosting the objectstore service, which will contain the VM images and buckets |
224 | + |
225 | +--rabbit_host ### This is where the rabbit AMQP messaging service is hosted |
226 | + |
227 | +--cc_host ### This is where the the nova-api service lives |
228 | + |
229 | +--verbose ### Optional but very helpful during initial setup |
230 | + |
231 | +--ec2_url ### The location to interface nova-api |
232 | + |
233 | +--network_manager ### Many options here, discussed below. This is how your controller will communicate with additional Nova nodes and VMs: |
234 | + |
235 | +nova.network.manager.FlatManager # Simple, no-vlan networking type |
236 | +nova.network.manager. FlatDHCPManager # Flat networking with DHCP |
237 | +nova.network.manager.VlanManager # Vlan networking with DHCP – /DEFAULT/ if no network manager is defined in nova.conf |
238 | + |
239 | +--fixed_range=<network/prefix> ### This will be the IP network that ALL the projects for future VM guests will reside on. E.g. 192.168.0.0/12 |
240 | + |
241 | +--network_size=<# of addrs> ### This is the total number of IP Addrs to use for VM guests, of all projects. E.g. 5000 |
242 | + |
243 | +The following code can be cut and paste, and edited to your setup: |
244 | |
245 | Note: CC_ADDR=<the external IP address of your cloud controller> |
246 | |
247 | -Nova development has consolidated all .conf files to nova.conf as of November 2010. References to specific .conf files may be ignored. |
248 | - |
249 | -#. These need to be defined in the nova.conf configuration file:: |
250 | - |
251 | - --sql_connection=mysql://root:nova@$CC_ADDR/nova # location of nova sql db |
252 | - --s3_host=$CC_ADDR # This is where Nova is hosting the objectstore service, which |
253 | - # will contain the VM images and buckets |
254 | - --rabbit_host=$CC_ADDR # This is where the rabbit AMQP messaging service is hosted |
255 | - --cc_host=$CC_ADDR # This is where the the nova-api service lives |
256 | - --verbose # Optional but very helpful during initial setup |
257 | - --ec2_url=http://$CC_ADDR:8773/services/Cloud |
258 | - --network_manager=nova.network.manager.FlatManager # simple, no-vlan networking type |
259 | - --fixed_range=<network/prefix> # ip network to use for VM guests, ex 192.168.2.64/26 |
260 | - --network_size=<# of addrs> # number of ip addrs to use for VM guests, ex 64 |
261 | - |
262 | -#. Create a nova group:: |
263 | - |
264 | - sudo addgroup nova |
265 | - |
266 | -The Nova config file should have its owner set to root:nova, and mode set to 0640, since they contain your MySQL server's root password. |
267 | - |
268 | -:: |
269 | - |
270 | - cd /etc/nova |
271 | - chown -R root:nova . |
272 | - |
273 | -Step 3 Setup the sql db |
274 | ------------------------ |
275 | - |
276 | -1. First you 'preseed' (using the Quick Start method :doc:`../quickstart`). Run this as root. |
277 | - |
278 | -:: |
279 | - |
280 | - sudo apt-get install bzr git-core |
281 | - sudo bash |
282 | - export MYSQL_PASS=nova |
283 | - |
284 | - |
285 | -:: |
286 | - |
287 | - cat <<MYSQL_PRESEED | debconf-set-selections |
288 | - mysql-server-5.1 mysql-server/root_password password $MYSQL_PASS |
289 | - mysql-server-5.1 mysql-server/root_password_again password $MYSQL_PASS |
290 | - mysql-server-5.1 mysql-server/start_on_boot boolean true |
291 | - MYSQL_PRESEED |
292 | - |
293 | -2. Install mysql |
294 | - |
295 | -:: |
296 | - |
297 | - sudo apt-get install -y mysql-server |
298 | - |
299 | -4. Edit /etc/mysql/my.cnf and set this line: bind-address=0.0.0.0 and then sighup or restart mysql |
300 | - |
301 | -5. create nova's db |
302 | - |
303 | -:: |
304 | - |
305 | - mysql -uroot -pnova -e 'CREATE DATABASE nova;' |
306 | - |
307 | - |
308 | -6. Update the db to include user 'root'@'%' |
309 | - |
310 | -:: |
311 | - |
312 | - mysql -u root -p nova |
313 | - GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; |
314 | - SET PASSWORD FOR 'root'@'%' = PASSWORD('nova'); |
315 | - |
316 | -7. Branch and install Nova |
317 | - |
318 | -:: |
319 | - |
320 | - sudo -i |
321 | - cd ~ |
322 | - export USE_MYSQL=1 |
323 | - export MYSQL_PASS=nova |
324 | - git clone https://github.com/vishvananda/novascript.git |
325 | - cd novascript |
326 | - ./nova.sh branch |
327 | - ./nova.sh install |
328 | - ./nova.sh run |
329 | - |
330 | -Step 4 Setup Nova environment |
331 | ------------------------------ |
332 | - |
333 | -:: |
334 | - |
335 | - /usr/bin/python /usr/bin/nova-manage user admin <user_name> |
336 | - /usr/bin/python /usr/bin/nova-manage project create <project_name> <user_name> |
337 | - /usr/bin/python /usr/bin/nova-manage project create network |
338 | - |
339 | -Note: The nova-manage service assumes that the first IP address is your network (like 192.168.0.0), that the 2nd IP is your gateway (192.168.0.1), and that the broadcast is the very last IP in the range you defined (192.168.0.255). If this is not the case you will need to manually edit the sql db 'networks' table.o. |
340 | - |
341 | -On running this command, entries are made in the 'networks' and 'fixed_ips' table. However, one of the networks listed in the 'networks' table needs to be marked as bridge in order for the code to know that a bridge exists. The Network is marked as bridged automatically based on the type of network manager selected. |
342 | - |
343 | -More networking details to create a network bridge for flat network |
344 | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
345 | - |
346 | -Nova defaults to a bridge device named 'br100'. This needs to be created and somehow integrated into YOUR network. In my case, I wanted to keep things as simple as possible and have all the vm guests on the same network as the vm hosts (the compute nodes). Thus, I set the compute node's external IP address to be on the bridge and added eth0 to that bridge. To do this, edit your network interfaces config to look like the following:: |
347 | +Detailed explanation of the following example is available above. |
348 | + |
349 | +:: |
350 | + |
351 | +--sql_connection=mysql://root:nova@<CC_ADDR>/nova |
352 | +--s3_host=<CC_ADDR> |
353 | +--rabbit_host=<CC_ADDR> |
354 | +--cc_host=<CC_ADDR> |
355 | +--verbose |
356 | +--ec2_url=http://<CC_ADDR>:8773/services/Cloud |
357 | +--network_manager=nova.network.manager.VlanManager |
358 | +--fixed_range=<network/prefix> |
359 | +--network_size=<# of addrs> |
360 | + |
361 | +2. Create a “nova” group, and set permissions:: |
362 | + |
363 | + addgroup nova |
364 | + |
365 | +The Nova config file should have its owner set to root:nova, and mode set to 0644, since they contain your MySQL server's root password. :: |
366 | + |
367 | + chown -R root:nova /etc/nova |
368 | + chmod 644 /etc/nova/nova.conf |
369 | + |
370 | +Step 3 - Setup the SQL DB (MySQL for this setup) |
371 | +------------------------------------------------ |
372 | + |
373 | +1. First you 'preseed' to bypass all the installation prompts:: |
374 | + |
375 | + bash |
376 | + MYSQL_PASS=nova |
377 | + cat <<MYSQL_PRESEED | debconf-set-selections |
378 | + mysql-server-5.1 mysql-server/root_password password $MYSQL_PASS |
379 | + mysql-server-5.1 mysql-server/root_password_again password $MYSQL_PASS |
380 | + mysql-server-5.1 mysql-server/start_on_boot boolean true |
381 | + MYSQL_PRESEED |
382 | + |
383 | +2. Install MySQL:: |
384 | + |
385 | + apt-get install -y mysql-server |
386 | + |
387 | +3. Edit /etc/mysql/my.cnf to change ‘bind-address’ from localhost to any:: |
388 | + |
389 | + sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf |
390 | + service mysql restart |
391 | + |
392 | +3. Network Configuration |
393 | + |
394 | +If you use FlatManager (as opposed to VlanManager that we set) as your network manager, there are some additional networking changes you’ll have to make to ensure connectivity between your nodes and VMs. If you chose VlanManager or FlatDHCP, you may skip this section, as it’s set up for you automatically. |
395 | + |
396 | +Nova defaults to a bridge device named 'br100'. This needs to be created and somehow integrated into YOUR network. To keep things as simple as possible, have all the VM guests on the same network as the VM hosts (the compute nodes). To do so, set the compute node's external IP address to be on the bridge and add eth0 to that bridge. To do this, edit your network interfaces config to look like the following:: |
397 | |
398 | < begin /etc/network/interfaces > |
399 | # The loopback network interface |
400 | auto lo |
401 | iface lo inet loopback |
402 | - |
403 | + |
404 | # Networking for NOVA |
405 | auto br100 |
406 | - |
407 | + |
408 | iface br100 inet dhcp |
409 | bridge_ports eth0 |
410 | bridge_stp off |
411 | bridge_maxwait 0 |
412 | bridge_fd 0 |
413 | < end /etc/network/interfaces > |
414 | - |
415 | - |
416 | + |
417 | Next, restart networking to apply the changes:: |
418 | - |
419 | - sudo /etc/init.d/networking restart |
420 | - |
421 | -Step 5: Create nova certs. |
422 | --------------------------- |
423 | - |
424 | -Generate the certs as a zip file:: |
425 | - |
426 | - mkdir creds |
427 | - sudo /usr/bin/python /usr/bin/nova-manage project zip admin admin creds/nova.zip |
428 | - |
429 | -you can get the rc file more easily with:: |
430 | - |
431 | - sudo /usr/bin/python /usr/bin/nova-manage project env admin admin creds/novarc |
432 | - |
433 | -unzip them in your home directory, and add them to your environment:: |
434 | - |
435 | - unzip creds/nova.zip |
436 | - echo ". creds/novarc" >> ~/.bashrc |
437 | - ~/.bashrc |
438 | - |
439 | -Step 6 Restart all relevant services |
440 | ------------------------------------- |
441 | - |
442 | -Restart Libvirt:: |
443 | - |
444 | - sudo /etc/init.d/libvirt-bin restart |
445 | - |
446 | -Restart relevant nova services:: |
447 | - |
448 | - sudo /etc/init.d/nova-compute restart |
449 | - sudo /etc/init.d/nova-volume restart |
450 | - |
451 | - |
452 | -.. todo:: do we still need the content below? |
453 | - |
454 | -Bare-metal Provisioning Notes |
455 | ------------------------------ |
456 | - |
457 | -To install the base operating system you can use PXE booting. |
458 | - |
459 | -Types of Hosts |
460 | --------------- |
461 | - |
462 | -A single machine in your cluster can act as one or more of the following types |
463 | -of host: |
464 | - |
465 | -Nova Services |
466 | - |
467 | -* Network |
468 | -* Compute |
469 | -* Volume |
470 | -* API |
471 | -* Objectstore |
472 | - |
473 | -Other supporting services |
474 | - |
475 | -* Message Queue |
476 | -* Database (optional) |
477 | -* Authentication database (optional) |
478 | - |
479 | -Initial Setup |
480 | -------------- |
481 | - |
482 | -* Networking |
483 | -* Cloudadmin User Creation |
484 | - |
485 | -Deployment Technologies |
486 | ------------------------ |
487 | - |
488 | -Once you have machines with a base operating system installation, you can deploy |
489 | -code and configuration with your favorite tools to specify which machines in |
490 | -your cluster have which roles: |
491 | - |
492 | -* Puppet |
493 | -* Chef |
494 | + |
495 | + sudo /etc/init.d/networking restart |
496 | + |
497 | +4. MySQL DB configuration: |
498 | + |
499 | +Create NOVA database:: |
500 | + |
501 | + mysql -uroot -p$MYSQL_PASS -e 'CREATE DATABASE nova;' |
502 | + |
503 | +Update the DB to include user 'root'@'%' with super user privileges:: |
504 | + |
505 | + mysql -uroot -p$MYSQL_PASS -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;" |
506 | + |
507 | +Set mySQL root password:: |
508 | + |
509 | + mysql -uroot -p$MYSQL_PASS -e "SET PASSWORD FOR 'root'@'%' = PASSWORD('$MYSQL_PASS');" |
510 | + |
511 | +Step 4 - Setup Nova environment |
512 | +------------------------------- |
513 | + |
514 | +These are the commands you run to set up a user and project:: |
515 | + |
516 | + /usr/bin/python /usr/bin/nova-manage user admin <user_name> |
517 | + /usr/bin/python /usr/bin/nova-manage project create <project_name> <user_name> |
518 | + /usr/bin/python /usr/bin/nova-manage network create <project-network> <number-of-networks-in-project> <IPs in project> |
519 | + |
520 | +Here is an example of what this looks like with real data:: |
521 | + |
522 | + /usr/bin/python /usr/bin/nova-manage user admin dub |
523 | + /usr/bin/python /usr/bin/nova-manage project create dubproject dub |
524 | + /usr/bin/python /usr/bin/nova-manage network create 192.168.0.0/24 1 255 |
525 | + |
526 | +(I chose a /24 since that falls inside my /12 range I set in ‘fixed-range’ in nova.conf. Currently, there can only be one network, and I am using the max IP’s available in a /24. You can choose to use any valid amount that you would like.) |
527 | + |
528 | +Note: The nova-manage service assumes that the first IP address is your network (like 192.168.0.0), that the 2nd IP is your gateway (192.168.0.1), and that the broadcast is the very last IP in the range you defined (192.168.0.255). If this is not the case you will need to manually edit the sql db 'networks' table.o. |
529 | + |
530 | +On running this command, entries are made in the 'networks' and 'fixed_ips' table. However, one of the networks listed in the 'networks' table needs to be marked as bridge in order for the code to know that a bridge exists. The Network is marked as bridged automatically based on the type of network manager selected. This is ONLY necessary if you chose FlatManager as your network type. More information can be found at the end of this document discussing setting up the bridge device. |
531 | + |
532 | + |
533 | +Step 5 - Create Nova certifications |
534 | +----------------------------------- |
535 | + |
536 | +1. Generate the certs as a zip file. These are the certs you will use to launch instances, bundle images, and all the other assorted api functions. |
537 | + |
538 | +:: |
539 | + |
540 | + mkdir –p /root/creds |
541 | + /usr/bin/python /usr/bin/nova-manage project zipfile $NOVA_PROJECT $NOVA_PROJECT_USER /root/creds/novacreds.zip |
542 | + |
543 | +2. Unzip them in your home directory, and add them to your environment. |
544 | + |
545 | +:: |
546 | + |
547 | + unzip /root/creds/novacreds.zip -d /root/creds/ |
548 | + cat /root/creds/novarc >> ~/.bashrc |
549 | + source ~/.bashrc |
550 | + |
551 | +Step 6 - Restart all relevant services |
552 | +-------------------------------------- |
553 | + |
554 | +Restart all six services in total, just to cover the entire spectrum:: |
555 | + |
556 | + libvirtd restart; service nova-network restart; service nova-compute restart; service nova-api restart; service nova-objectstore restart; service nova-scheduler restart |
557 | + |
558 | +Step 7 - Closing steps, and cleaning up |
559 | +--------------------------------------- |
560 | + |
561 | +One of the most commonly missed configuration areas is not allowing the proper access to VMs. Use the 'euca-authorize' command to enable access. Below, you will find the commands to allow 'ping' and 'ssh' to your VMs:: |
562 | + |
563 | + euca-authorize -P icmp -t -1:-1 default |
564 | + euca-authorize -P tcp -p 22 default |
565 | + |
566 | +Another common issue is you cannot ping or SSH your instances after issusing the 'euca-authorize' commands. Something to look at is the amount of 'dnsmasq' processes that are running. If you have a running instance, check to see that TWO 'dnsmasq' processes are running. If not, perform the following:: |
567 | + |
568 | + killall dnsmasq |
569 | + service nova-network restart |
570 | + |
571 | +Step 8 – Testing the installation |
572 | +--------------------------------- |
573 | + |
574 | +You can then use `euca2ools` to test some items:: |
575 | + |
576 | + euca-describe-images |
577 | + euca-describe-instances |
578 | + |
579 | +If you have issues with the API key, you may need to re-source your creds file:: |
580 | + |
581 | + . /root/creds/novarc |
582 | + |
583 | +If you don’t get any immediate errors, you’re successfully making calls to your cloud! |
584 | + |
585 | +Step 9 - Spinning up a VM for testing |
586 | +------------------------------------- |
587 | + |
588 | +(This excerpt is from Thierry Carrez's blog, with reference to http://wiki.openstack.org/GettingImages.) |
589 | + |
590 | +The image that you will use here will be a ttylinux image, so this is a limited function server. You will be able to ping and SSH to this instance, but it is in no way a full production VM. |
591 | + |
592 | +Download the image, and publish to your bucket: |
593 | + |
594 | +:: |
595 | + |
596 | + image="ttylinux-uec-amd64-12.1_2.6.35-22_1.tar.gz" |
597 | + wget http://smoser.brickies.net/ubuntu/ttylinux-uec/$image |
598 | + uec-publish-tarball $image mybucket |
599 | + |
600 | +This will output three references, an "emi", an "eri" and an "eki." (Image, ramdisk, and kernel) The emi is the one we use to launch instances, so take note of this. |
601 | + |
602 | +Create a keypair to SSH to the server: |
603 | + |
604 | +:: |
605 | + |
606 | + euca-add-keypair mykey > mykey.priv |
607 | + |
608 | + chmod 0600 mykey.priv |
609 | + |
610 | +Boot your instance: |
611 | + |
612 | +:: |
613 | + |
614 | + euca-run-instances $emi -k mykey -t m1.tiny |
615 | + |
616 | +($emi is replaced with the output from the previous command) |
617 | + |
618 | +Checking status, and confirming communication: |
619 | + |
620 | +Once you have booted the instance, you can check the status the the `euca-describe-instances` command. Here you can view the instance ID, IP, and current status of the VM. |
621 | + |
622 | +:: |
623 | + |
624 | + euca-describe-instances |
625 | + |
626 | +Once in a "running" state, you can use your SSH key connect: |
627 | + |
628 | +:: |
629 | + |
630 | + ssh -i mykey.priv root@$ipaddress |
631 | + |
632 | +When you are ready to terminate the instance, you may do so with the `euca-terminate-instances` command: |
633 | + |
634 | +:: |
635 | + |
636 | + euca-terminate-instances $instance-id |
637 | + |
638 | +You can determine the instance-id with `euca-describe-instances`, and the format is "i-" with a series of letter and numbers following: e.g. i-a4g9d. |
639 | + |
640 | +For more information in creating you own custom (production ready) instance images, please visit http://wiki.openstack.org/GettingImages for more information! |
641 | + |
642 | +Enjoy your new private cloud, and play responsibly! |
643 | + |
644 | |
645 | === modified file 'doc/source/adminguide/network.flat.rst' |
646 | --- doc/source/adminguide/network.flat.rst 2010-11-12 17:02:20 +0000 |
647 | +++ doc/source/adminguide/network.flat.rst 2011-01-11 22:27:12 +0000 |
648 | @@ -1,5 +1,5 @@ |
649 | .. |
650 | - Copyright 2010 United States Government as represented by the |
651 | + Copyright 2010-2011 United States Government as represented by the |
652 | Administrator of the National Aeronautics and Space Administration. |
653 | All Rights Reserved. |
654 | |
655 | |
656 | === modified file 'doc/source/adminguide/network.vlan.rst' |
657 | --- doc/source/adminguide/network.vlan.rst 2010-11-22 22:43:17 +0000 |
658 | +++ doc/source/adminguide/network.vlan.rst 2011-01-11 22:27:12 +0000 |
659 | @@ -1,5 +1,5 @@ |
660 | .. |
661 | - Copyright 2010 United States Government as represented by the |
662 | + Copyright 2010-2011 United States Government as represented by the |
663 | Administrator of the National Aeronautics and Space Administration. |
664 | All Rights Reserved. |
665 | |
666 | @@ -91,11 +91,10 @@ |
667 | Compute nodes have iptables/ebtables entries created per project and |
668 | instance to protect against IP/MAC address spoofing and ARP poisoning. |
669 | |
670 | -The network assignment to a project, and IP address assignment to a VM instance, are triggered when a user starts to run a VM instance. When running a VM instance, a user needs to specify a project for the instances, and the security groups (described in Security Groups) when the instance wants to join. If this is the first instance to be created for the project, then Nova (the cloud controller) needs to find a network controller to be the network host for the project; it then sets up a private network by finding an unused VLAN id, an unused subnet, and then the controller assigns them to the project, it also assigns a name to the project's Linux bridge, and allocating a private IP within the project's subnet for the new instance. |
671 | +The network assignment to a project, and IP address assignment to a VM instance, are triggered when a user starts to run a VM instance. When running a VM instance, a user needs to specify a project for the instances, and the security groups (described in Security Groups) when the instance wants to join. If this is the first instance to be created for the project, then Nova (the cloud controller) needs to find a network controller to be the network host for the project; it then sets up a private network by finding an unused VLAN id, an unused subnet, and then the controller assigns them to the project, it also assigns a name to the project's Linux bridge (br100 stored in the Nova database), and allocating a private IP within the project's subnet for the new instance. |
672 | |
673 | If the instance the user wants to start is not the project's first, a subnet and a VLAN must have already been assigned to the project; therefore the system needs only to find an available IP address within the subnet and assign it to the new starting instance. If there is no private IP available within the subnet, an exception will be raised to the cloud controller, and the VM creation cannot proceed. |
674 | |
675 | -.. todo:: insert the name of the Linux bridge, is it always named bridge? |
676 | |
677 | External Infrastructure |
678 | ----------------------- |
679 | |
680 | === modified file 'doc/source/adminguide/nova.manage.rst' |
681 | --- doc/source/adminguide/nova.manage.rst 2010-11-17 22:02:11 +0000 |
682 | +++ doc/source/adminguide/nova.manage.rst 2011-01-11 22:27:12 +0000 |
683 | @@ -1,5 +1,5 @@ |
684 | .. |
685 | - Copyright 2010 United States Government as represented by the |
686 | + Copyright 2010-2011 United States Government as represented by the |
687 | Administrator of the National Aeronautics and Space Administration. |
688 | All Rights Reserved. |
689 | |
690 | |
691 | === modified file 'doc/source/cloud101.rst' |
692 | --- doc/source/cloud101.rst 2010-12-07 22:48:42 +0000 |
693 | +++ doc/source/cloud101.rst 2011-01-11 22:27:12 +0000 |
694 | @@ -1,5 +1,5 @@ |
695 | .. |
696 | - Copyright 2010 United States Government as represented by the |
697 | + Copyright 2010-2011 United States Government as represented by the |
698 | Administrator of the National Aeronautics and Space Administration. |
699 | All Rights Reserved. |
700 | |
701 | @@ -54,7 +54,7 @@ |
702 | The US-based National Institute of Standards and Technology offers definitions for cloud computing |
703 | and the service models that are emerging. |
704 | |
705 | -These definitions are summarized from http://csrc.nist.gov/groups/SNS/cloud-computing/. |
706 | +These definitions are summarized from the `U.S. National Institute of Standards and Technology (NIST) cloud computing research group <http://csrc.nist.gov/groups/SNS/cloud-computing/>`_. |
707 | |
708 | SaaS - Software as a Service |
709 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
710 | @@ -74,7 +74,6 @@ |
711 | Provides infrastructure such as computer instances, network connections, and storage so that people |
712 | can run any software or operating system. |
713 | |
714 | - |
715 | Types of Cloud Deployments |
716 | -------------------------- |
717 | |
718 | @@ -87,4 +86,5 @@ |
719 | Work in the Clouds |
720 | ------------------ |
721 | |
722 | -.. todo:: What people have done/sample projects |
723 | +What have people done with cloud computing? Cloud computing can help with large-scale computing needs or can lead consolidation efforts by virtualizing servers to make more use of existing hardware (and possibly release old hardware from service.) People also use cloud computing for collaboration because of the high availability through networked computers. Productivity suites for word processing, number crunching, and email communications, and more are also available through cloud computing. Cloud computing also avails additional storage to the cloud user, avoiding the need for additional hard drives on your desktop and enabling access to large data storage capacity online in the cloud. |
724 | + |
725 | |
726 | === modified file 'doc/source/community.rst' |
727 | --- doc/source/community.rst 2010-12-30 17:10:31 +0000 |
728 | +++ doc/source/community.rst 2011-01-11 22:27:12 +0000 |
729 | @@ -1,5 +1,5 @@ |
730 | .. |
731 | - Copyright 2010 United States Government as represented by the |
732 | + Copyright 2010-2011 United States Government as represented by the |
733 | Administrator of the National Aeronautics and Space Administration. |
734 | All Rights Reserved. |
735 | |
736 | |
737 | === modified file 'doc/source/devref/addmethod.openstackapi.rst' |
738 | --- doc/source/devref/addmethod.openstackapi.rst 2010-12-30 19:23:52 +0000 |
739 | +++ doc/source/devref/addmethod.openstackapi.rst 2011-01-11 22:27:12 +0000 |
740 | @@ -1,5 +1,5 @@ |
741 | .. |
742 | - Copyright 2010 OpenStack LLC |
743 | + Copyright 2010-2011 OpenStack LLC |
744 | All Rights Reserved. |
745 | |
746 | Licensed under the Apache License, Version 2.0 (the "License"); you may |
747 | |
748 | === modified file 'doc/source/devref/api.rst' |
749 | --- doc/source/devref/api.rst 2010-11-09 04:38:21 +0000 |
750 | +++ doc/source/devref/api.rst 2011-01-11 22:27:12 +0000 |
751 | @@ -1,5 +1,5 @@ |
752 | .. |
753 | - Copyright 2010 United States Government as represented by the |
754 | + Copyright 2010-2011 United States Government as represented by the |
755 | Administrator of the National Aeronautics and Space Administration. |
756 | All Rights Reserved. |
757 | |
758 | |
759 | === modified file 'doc/source/devref/architecture.rst' |
760 | --- doc/source/devref/architecture.rst 2010-11-04 23:00:46 +0000 |
761 | +++ doc/source/devref/architecture.rst 2011-01-11 22:27:12 +0000 |
762 | @@ -1,5 +1,5 @@ |
763 | .. |
764 | - Copyright 2010 United States Government as represented by the |
765 | + Copyright 2010-2011 United States Government as represented by the |
766 | Administrator of the National Aeronautics and Space Administration. |
767 | All Rights Reserved. |
768 | |
769 | |
770 | === modified file 'doc/source/devref/auth.rst' |
771 | --- doc/source/devref/auth.rst 2010-11-09 04:38:21 +0000 |
772 | +++ doc/source/devref/auth.rst 2011-01-11 22:27:12 +0000 |
773 | @@ -1,5 +1,5 @@ |
774 | .. |
775 | - Copyright 2010 United States Government as represented by the |
776 | + Copyright 2010-2011 United States Government as represented by the |
777 | Administrator of the National Aeronautics and Space Administration. |
778 | All Rights Reserved. |
779 | |
780 | |
781 | === modified file 'doc/source/devref/cloudpipe.rst' |
782 | --- doc/source/devref/cloudpipe.rst 2010-11-22 23:03:54 +0000 |
783 | +++ doc/source/devref/cloudpipe.rst 2011-01-11 22:27:12 +0000 |
784 | @@ -1,5 +1,5 @@ |
785 | .. |
786 | - Copyright 2010 United States Government as represented by the |
787 | + Copyright 2010-2011 United States Government as represented by the |
788 | Administrator of the National Aeronautics and Space Administration. |
789 | All Rights Reserved. |
790 | |
791 | |
792 | === modified file 'doc/source/devref/compute.rst' |
793 | --- doc/source/devref/compute.rst 2010-11-09 04:38:21 +0000 |
794 | +++ doc/source/devref/compute.rst 2011-01-11 22:27:12 +0000 |
795 | @@ -1,5 +1,5 @@ |
796 | .. |
797 | - Copyright 2010 United States Government as represented by the |
798 | + Copyright 2010-2011 United States Government as represented by the |
799 | Administrator of the National Aeronautics and Space Administration. |
800 | All Rights Reserved. |
801 | |
802 | |
803 | === modified file 'doc/source/devref/database.rst' |
804 | --- doc/source/devref/database.rst 2010-11-09 04:38:21 +0000 |
805 | +++ doc/source/devref/database.rst 2011-01-11 22:27:12 +0000 |
806 | @@ -1,5 +1,5 @@ |
807 | .. |
808 | - Copyright 2010 United States Government as represented by the |
809 | + Copyright 2010-2011 United States Government as represented by the |
810 | Administrator of the National Aeronautics and Space Administration. |
811 | All Rights Reserved. |
812 | |
813 | @@ -60,4 +60,4 @@ |
814 | ----- |
815 | |
816 | Tests are lacking for the db api layer and for the sqlalchemy driver. |
817 | -Failures in the drivers would be dectected in other test cases, though. |
818 | +Failures in the drivers would be detected in other test cases, though. |
819 | |
820 | === modified file 'doc/source/devref/development.environment.rst' |
821 | --- doc/source/devref/development.environment.rst 2010-12-30 17:25:14 +0000 |
822 | +++ doc/source/devref/development.environment.rst 2011-01-11 22:27:12 +0000 |
823 | @@ -1,5 +1,5 @@ |
824 | .. |
825 | - Copyright 2010 United States Government as represented by the |
826 | + Copyright 2010-2011 United States Government as represented by the |
827 | Administrator of the National Aeronautics and Space Administration. |
828 | All Rights Reserved. |
829 | |
830 | |
831 | === modified file 'doc/source/devref/fakes.rst' |
832 | --- doc/source/devref/fakes.rst 2010-11-09 04:38:21 +0000 |
833 | +++ doc/source/devref/fakes.rst 2011-01-11 22:27:12 +0000 |
834 | @@ -1,5 +1,5 @@ |
835 | .. |
836 | - Copyright 2010 United States Government as represented by the |
837 | + Copyright 2010-2011 United States Government as represented by the |
838 | Administrator of the National Aeronautics and Space Administration. |
839 | All Rights Reserved. |
840 | |
841 | |
842 | === modified file 'doc/source/devref/glance.rst' |
843 | --- doc/source/devref/glance.rst 2010-11-09 04:38:21 +0000 |
844 | +++ doc/source/devref/glance.rst 2011-01-11 22:27:12 +0000 |
845 | @@ -1,5 +1,5 @@ |
846 | .. |
847 | - Copyright 2010 United States Government as represented by the |
848 | + Copyright 2010-2011 United States Government as represented by the |
849 | Administrator of the National Aeronautics and Space Administration. |
850 | All Rights Reserved. |
851 | |
852 | |
853 | === modified file 'doc/source/devref/index.rst' |
854 | --- doc/source/devref/index.rst 2010-11-23 18:49:28 +0000 |
855 | +++ doc/source/devref/index.rst 2011-01-11 22:27:12 +0000 |
856 | @@ -1,5 +1,5 @@ |
857 | .. |
858 | - Copyright 2010 United States Government as represented by the |
859 | + Copyright 2010-2011 United States Government as represented by the |
860 | Administrator of the National Aeronautics and Space Administration. |
861 | All Rights Reserved. |
862 | |
863 | |
864 | === modified file 'doc/source/devref/network.rst' |
865 | --- doc/source/devref/network.rst 2010-11-09 04:38:21 +0000 |
866 | +++ doc/source/devref/network.rst 2011-01-11 22:27:12 +0000 |
867 | @@ -1,5 +1,5 @@ |
868 | .. |
869 | - Copyright 2010 United States Government as represented by the |
870 | + Copyright 2010-2011 United States Government as represented by the |
871 | Administrator of the National Aeronautics and Space Administration. |
872 | All Rights Reserved. |
873 | |
874 | |
875 | === modified file 'doc/source/devref/nova.rst' |
876 | --- doc/source/devref/nova.rst 2010-11-09 04:38:21 +0000 |
877 | +++ doc/source/devref/nova.rst 2011-01-11 22:27:12 +0000 |
878 | @@ -1,5 +1,5 @@ |
879 | .. |
880 | - Copyright 2010 United States Government as represented by the |
881 | + Copyright 2010-2011 United States Government as represented by the |
882 | Administrator of the National Aeronautics and Space Administration. |
883 | All Rights Reserved. |
884 | |
885 | |
886 | === modified file 'doc/source/devref/objectstore.rst' |
887 | --- doc/source/devref/objectstore.rst 2010-11-09 04:38:21 +0000 |
888 | +++ doc/source/devref/objectstore.rst 2011-01-11 22:27:12 +0000 |
889 | @@ -1,5 +1,5 @@ |
890 | .. |
891 | - Copyright 2010 United States Government as represented by the |
892 | + Copyright 2010-2011 United States Government as represented by the |
893 | Administrator of the National Aeronautics and Space Administration. |
894 | All Rights Reserved. |
895 | |
896 | |
897 | === modified file 'doc/source/devref/rabbit.rst' |
898 | --- doc/source/devref/rabbit.rst 2010-12-30 19:23:52 +0000 |
899 | +++ doc/source/devref/rabbit.rst 2011-01-11 22:27:12 +0000 |
900 | @@ -1,5 +1,6 @@ |
901 | .. |
902 | Copyright (c) 2010 Citrix Systems, Inc. |
903 | + All Rights Reserved. |
904 | |
905 | Licensed under the Apache License, Version 2.0 (the "License"); you may |
906 | not use this file except in compliance with the License. You may obtain |
907 | @@ -29,7 +30,7 @@ |
908 | |
909 | .. |
910 | |
911 | -Nova implements RPC (both request+response, and one-way, respectively nicknamed 'rpc.call' and 'rpc.cast') over AMQP by providing an adapter class which take cares of marshalling and unmarshalling of messages into function calls. Each Nova service (for example Compute, Volume, etc.) create two queues at the initialization time, one which accepts messages with routing keys 'NODE-TYPE.NODE-ID' (for example compute.hostname) and another, which accepts messages with routing keys as generic 'NODE-TYPE' (for example compute). The former is used specifically when Nova-API needs to redirect commands to a specific node like 'euca-terminate instance'. In this case, only the compute node whose host's hypervisor is running the virtual machine can kill the instance. The API acts as a consumer when RPC calls are request/response, otherwise is acts as publisher only. |
912 | +Nova implements RPC (both request+response, and one-way, respectively nicknamed 'rpc.call' and 'rpc.cast') over AMQP by providing an adapter class which take cares of marshaling and unmarshaling of messages into function calls. Each Nova service (for example Compute, Volume, etc.) create two queues at the initialization time, one which accepts messages with routing keys 'NODE-TYPE.NODE-ID' (for example compute.hostname) and another, which accepts messages with routing keys as generic 'NODE-TYPE' (for example compute). The former is used specifically when Nova-API needs to redirect commands to a specific node like 'euca-terminate instance'. In this case, only the compute node whose host's hypervisor is running the virtual machine can kill the instance. The API acts as a consumer when RPC calls are request/response, otherwise is acts as publisher only. |
913 | |
914 | Nova RPC Mappings |
915 | ----------------- |
916 | @@ -39,7 +40,7 @@ |
917 | Figure 2 shows the following internal elements: |
918 | |
919 | * Topic Publisher: a Topic Publisher comes to life when an rpc.call or an rpc.cast operation is executed; this object is instantiated and used to push a message to the queuing system. Every publisher connects always to the same topic-based exchange; its life-cycle is limited to the message delivery. |
920 | - * Direct Consumer: a Direct Consumer comes to life if (an only if) a rpc.call operation is executed; this object is instantiated and used to receive a response message from the queuing system; Every consumer connects to a unique direct-based exchange via a unique exclusive queue; its life-cycle is limited to the message delivery; the exchange and queue identifiers are determined by a UUID generator, and are marshalled in the message sent by the Topic Publisher (only rpc.call operations). |
921 | + * Direct Consumer: a Direct Consumer comes to life if (an only if) a rpc.call operation is executed; this object is instantiated and used to receive a response message from the queuing system; Every consumer connects to a unique direct-based exchange via a unique exclusive queue; its life-cycle is limited to the message delivery; the exchange and queue identifiers are determined by a UUID generator, and are marshaled in the message sent by the Topic Publisher (only rpc.call operations). |
922 | * Topic Consumer: a Topic Consumer comes to life as soon as a Worker is instantiated and exists throughout its life-cycle; this object is used to receive messages from the queue and it invokes the appropriate action as defined by the Worker role. A Topic Consumer connects to the same topic-based exchange either via a shared queue or via a unique exclusive queue. Every Worker has two topic consumers, one that is addressed only during rpc.cast operations (and it connects to a shared queue whose exchange key is 'topic') and the other that is addressed only during rpc.call operations (and it connects to a unique queue whose exchange key is 'topic.host'). |
923 | * Direct Publisher: a Direct Publisher comes to life only during rpc.call operations and it is instantiated to return the message required by the request/response operation. The object connects to a direct-based exchange whose identity is dictated by the incoming message. |
924 | * Topic Exchange: The Exchange is a routing table that exists in the context of a virtual host (the multi-tenancy mechanism provided by RabbitMQ); its type (such as topic vs. direct) determines the routing policy; a RabbitMQ node will have only one topic-based exchange for every topic in Nova. |
925 | |
926 | === modified file 'doc/source/devref/scheduler.rst' |
927 | --- doc/source/devref/scheduler.rst 2010-11-09 04:38:21 +0000 |
928 | +++ doc/source/devref/scheduler.rst 2011-01-11 22:27:12 +0000 |
929 | @@ -1,5 +1,5 @@ |
930 | .. |
931 | - Copyright 2010 United States Government as represented by the |
932 | + Copyright 2010-2011 United States Government as represented by the |
933 | Administrator of the National Aeronautics and Space Administration. |
934 | All Rights Reserved. |
935 | |
936 | |
937 | === modified file 'doc/source/devref/services.rst' |
938 | --- doc/source/devref/services.rst 2010-11-07 19:58:02 +0000 |
939 | +++ doc/source/devref/services.rst 2011-01-11 22:27:12 +0000 |
940 | @@ -1,5 +1,5 @@ |
941 | .. |
942 | - Copyright 2010 United States Government as represented by the |
943 | + Copyright 2010-2011 United States Government as represented by the |
944 | Administrator of the National Aeronautics and Space Administration. |
945 | All Rights Reserved. |
946 | |
947 | |
948 | === modified file 'doc/source/devref/volume.rst' |
949 | --- doc/source/devref/volume.rst 2010-11-09 04:38:21 +0000 |
950 | +++ doc/source/devref/volume.rst 2011-01-11 22:27:12 +0000 |
951 | @@ -1,5 +1,5 @@ |
952 | .. |
953 | - Copyright 2010 United States Government as represented by the |
954 | + Copyright 2010-2011 United States Government as represented by the |
955 | Administrator of the National Aeronautics and Space Administration. |
956 | All Rights Reserved. |
957 | |
958 | |
959 | === modified file 'doc/source/index.rst' |
960 | --- doc/source/index.rst 2010-12-10 22:03:30 +0000 |
961 | +++ doc/source/index.rst 2011-01-11 22:27:12 +0000 |
962 | @@ -1,5 +1,5 @@ |
963 | .. |
964 | - Copyright 2010 United States Government as represented by the |
965 | + Copyright 2010-2011 United States Government as represented by the |
966 | Administrator of the National Aeronautics and Space Administration. |
967 | All Rights Reserved. |
968 | |
969 | |
970 | === modified file 'doc/source/livecd.rst' |
971 | --- doc/source/livecd.rst 2010-12-07 22:48:42 +0000 |
972 | +++ doc/source/livecd.rst 2011-01-11 22:27:12 +0000 |
973 | @@ -1,3 +1,20 @@ |
974 | +.. |
975 | + Copyright 2010-2011 OpenStack LLC |
976 | + |
977 | + All Rights Reserved. |
978 | + |
979 | + Licensed under the Apache License, Version 2.0 (the "License"); you may |
980 | + not use this file except in compliance with the License. You may obtain |
981 | + a copy of the License at |
982 | + |
983 | + http://www.apache.org/licenses/LICENSE-2.0 |
984 | + |
985 | + Unless required by applicable law or agreed to in writing, software |
986 | + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
987 | + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
988 | + License for the specific language governing permissions and limitations |
989 | + under the License. |
990 | + |
991 | Installing the Live CD |
992 | ====================== |
993 | |
994 | |
995 | === modified file 'doc/source/nova.concepts.rst' |
996 | --- doc/source/nova.concepts.rst 2010-12-30 19:23:52 +0000 |
997 | +++ doc/source/nova.concepts.rst 2011-01-11 22:27:12 +0000 |
998 | @@ -1,5 +1,5 @@ |
999 | .. |
1000 | - Copyright 2010 United States Government as represented by the |
1001 | + Copyright 2010-2011 United States Government as represented by the |
1002 | Administrator of the National Aeronautics and Space Administration. |
1003 | All Rights Reserved. |
1004 | |
1005 | @@ -105,7 +105,7 @@ |
1006 | |
1007 | For example: A user can access api commands allowed to the netadmin role (like allocate_address) only if he has the user-specific netadmin role AND the project-specific netadmin role. |
1008 | |
1009 | -More information about RBAC can be found in the :ref:`auth`. |
1010 | +More information about RBAC can be found in :ref:`auth`. |
1011 | |
1012 | Concept: API |
1013 | ------------ |
1014 | @@ -159,12 +159,10 @@ |
1015 | |
1016 | See :doc:`nova.manage` in the Administration Guide for more details. |
1017 | |
1018 | - |
1019 | Concept: Flags |
1020 | -------------- |
1021 | |
1022 | -Nova uses python-gflags for a distributed command line system, and the flags can either be set when running a command at the command line or within flag files. When you install Nova packages, each Nova service gets its own flag file. For example, nova-network.conf is used for configuring the nova-network service, and so forth. |
1023 | - |
1024 | +Nova uses python-gflags for a distributed command line system, and the flags can either be set when running a command at the command line or within a flag file. When you install Nova packages for the Austin release, each nova service gets its own flag file. For example, nova-network.conf is used for configuring the nova-network service, and so forth. In releases beyond Austin which was released in October 2010, all flags are set in nova.conf. |
1025 | |
1026 | Concept: Plugins |
1027 | ---------------- |
1028 | |
1029 | === modified file 'doc/source/object.model.rst' |
1030 | --- doc/source/object.model.rst 2010-11-09 18:11:36 +0000 |
1031 | +++ doc/source/object.model.rst 2011-01-11 22:27:12 +0000 |
1032 | @@ -1,3 +1,20 @@ |
1033 | +.. |
1034 | + Copyright 2010-2011 OpenStack LLC |
1035 | + |
1036 | + All Rights Reserved. |
1037 | + |
1038 | + Licensed under the Apache License, Version 2.0 (the "License"); you may |
1039 | + not use this file except in compliance with the License. You may obtain |
1040 | + a copy of the License at |
1041 | + |
1042 | + http://www.apache.org/licenses/LICENSE-2.0 |
1043 | + |
1044 | + Unless required by applicable law or agreed to in writing, software |
1045 | + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
1046 | + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
1047 | + License for the specific language governing permissions and limitations |
1048 | + under the License. |
1049 | + |
1050 | Object Model |
1051 | ============ |
1052 | |
1053 | @@ -25,29 +42,38 @@ |
1054 | Users |
1055 | ----- |
1056 | |
1057 | +Each Nova User is authorized based on their access key and secret key, assigned per-user. Read more at :doc:`/adminguide/managing.users`. |
1058 | + |
1059 | Projects |
1060 | -------- |
1061 | |
1062 | +For Nova, access to images is based on the project. Read more at :doc:`/adminguide/managing.projects`. |
1063 | |
1064 | Images |
1065 | ------ |
1066 | |
1067 | +Images are binary files that run the operating system. Read more at :doc:`/adminguide/managing.images`. |
1068 | |
1069 | Instances |
1070 | --------- |
1071 | |
1072 | +Instances are running virtual servers. Read more at :doc:`/adminguide/managing.instances`. |
1073 | |
1074 | Volumes |
1075 | ------- |
1076 | |
1077 | +.. todo:: Write doc about volumes |
1078 | |
1079 | Security Groups |
1080 | --------------- |
1081 | |
1082 | +In Nova, a security group is a named collection of network access rules, like firewall policies. Read more at `Security Groups <http://nova.openstack.org/nova.concepts.html#concept-security-groups>`_. |
1083 | |
1084 | VLANs |
1085 | ----- |
1086 | |
1087 | +VLAN is the default network mode for Nova. Read more at :doc:`/adminguide/network.vlan`. |
1088 | |
1089 | IP Addresses |
1090 | ------------ |
1091 | +Nova enables floating IP management. |
1092 | \ No newline at end of file |
1093 | |
1094 | === modified file 'doc/source/quickstart.rst' |
1095 | --- doc/source/quickstart.rst 2010-12-30 19:23:52 +0000 |
1096 | +++ doc/source/quickstart.rst 2011-01-11 22:27:12 +0000 |
1097 | @@ -1,5 +1,5 @@ |
1098 | .. |
1099 | - Copyright 2010 United States Government as represented by the |
1100 | + Copyright 2010-2011 United States Government as represented by the |
1101 | Administrator of the National Aeronautics and Space Administration. |
1102 | All Rights Reserved. |
1103 | |
1104 | |
1105 | === modified file 'doc/source/service.architecture.rst' |
1106 | --- doc/source/service.architecture.rst 2010-11-12 19:42:07 +0000 |
1107 | +++ doc/source/service.architecture.rst 2011-01-11 22:27:12 +0000 |
1108 | @@ -1,3 +1,20 @@ |
1109 | +.. |
1110 | + Copyright 2010-2011 OpenStack LLC |
1111 | + |
1112 | + All Rights Reserved. |
1113 | + |
1114 | + Licensed under the Apache License, Version 2.0 (the "License"); you may |
1115 | + not use this file except in compliance with the License. You may obtain |
1116 | + a copy of the License at |
1117 | + |
1118 | + http://www.apache.org/licenses/LICENSE-2.0 |
1119 | + |
1120 | + Unless required by applicable law or agreed to in writing, software |
1121 | + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
1122 | + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
1123 | + License for the specific language governing permissions and limitations |
1124 | + under the License. |
1125 | + |
1126 | Service Architecture |
1127 | ==================== |
1128 |
lgtm. Going to mark the other branch rejected so it stops showing up.