Merge lp:~annegentle/nova/docwork into lp:~hudson-openstack/nova/trunk

Proposed by Anne Gentle
Status: Merged
Approved by: Vish Ishaya
Approved revision: 651
Merged at revision: 653
Proposed branch: lp:~annegentle/nova/docwork
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 76 lines (+34/-6)
1 file modified
doc/source/adminguide/multi.node.install.rst (+34/-6)
To merge this branch: bzr merge lp:~annegentle/nova/docwork
Reviewer Review Type Date Requested Status
Vish Ishaya (community) Approve
Devin Carlen (community) Approve
Review via email: mp+48856@code.launchpad.net

Description of the change

Updates to the multinode install doc based on Wayne's findings. Merged with trunk so should easily merge in.

To post a comment you must log in.
Revision history for this message
Devin Carlen (devcamcar) wrote :

lgtm

review: Approve
Revision history for this message
Vish Ishaya (vishvananda) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/source/adminguide/multi.node.install.rst'
--- doc/source/adminguide/multi.node.install.rst 2011-01-21 23:53:44 +0000
+++ doc/source/adminguide/multi.node.install.rst 2011-02-07 22:39:58 +0000
@@ -37,20 +37,22 @@
3737
38::38::
3939
40 wget --no-check-certificate https://github.com/dubsquared/OpenStack-NOVA-Installer-Script/raw/master/Nova_CC_Installer_v0.140 wget --no-check-certificate https://github.com/dubsquared/OpenStack-NOVA-Installer-Script/raw/master/nova-CC-install-v1.1.sh
4141
42Ensure you can execute the script by modifying the permissions on the script file.42Ensure you can execute the script by modifying the permissions on the script file.
4343
44::44::
4545
46 sudo chmod 755 Nova_CC_Installer_v0.146 sudo chmod 755 nova-CC-install-v1.1.sh
4747
4848
49::49::
5050
51 sudo ./Nova_CC_Installer_v0.151 sudo ./nova-CC-install-v1.1.sh
5252
53Next, from a server you intend to use as a compute node (doesn't contain the database), install the nova services. Copy the nova.conf from the cloud controller node to the compute node.53Next, from a server you intend to use as a compute node (doesn't contain the database), install the nova services. You can use the nova-NODE-installer.sh script from the above github-hosted project for the compute node installation.
54
55Copy the nova.conf from the cloud controller node to the compute node.
5456
55Restart related services::57Restart related services::
5658
@@ -247,7 +249,7 @@
247249
248Note: 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.250Note: 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.
249251
250On 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.252On running the "nova-manage network create" 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. You only need to mark the network as a bridge 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.
251253
252254
253Step 2 - Create Nova certifications255Step 2 - Create Nova certifications
@@ -288,9 +290,35 @@
288 killall dnsmasq290 killall dnsmasq
289 service nova-network restart291 service nova-network restart
290292
293To avoid issues with KVM and permissions with Nova, run the following commands to ensure we have VM's that are running optimally::
294
295 chgrp kvm /dev/kvm
296 chmod g+rwx /dev/kvm
297
298If you want to use the 10.04 Ubuntu Enterprise Cloud images that are readily available at http://uec-images.ubuntu.com/releases/10.04/release/, you may run into delays with booting. Any server that does not have nova-api running on it needs this iptables entry so that UEC images can get metadata info. On compute nodes, configure the iptables with this next step::
299
300 # iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination $NOVA_API_IP:8773
301
291Testing the Installation302Testing the Installation
292````````````````````````303````````````````````````
293304
305You can confirm that your compute node is talking to your cloud controller. From the cloud controller, run this database query::
306
307 mysql -u$MYSQL_USER -p$MYSQL_PASS nova -e 'select * from services;'
308
309In return, you should see something similar to this::
310 +---------------------+---------------------+------------+---------+----+----------+----------------+-----------+--------------+----------+-------------------+
311 | created_at | updated_at | deleted_at | deleted | id | host | binary | topic | report_count | disabled | availability_zone |
312 +---------------------+---------------------+------------+---------+----+----------+----------------+-----------+--------------+----------+-------------------+
313 | 2011-01-28 22:52:46 | 2011-02-03 06:55:48 | NULL | 0 | 1 | osdemo02 | nova-network | network | 46064 | 0 | nova |
314 | 2011-01-28 22:52:48 | 2011-02-03 06:55:57 | NULL | 0 | 2 | osdemo02 | nova-compute | compute | 46056 | 0 | nova |
315 | 2011-01-28 22:52:52 | 2011-02-03 06:55:50 | NULL | 0 | 3 | osdemo02 | nova-scheduler | scheduler | 46065 | 0 | nova |
316 | 2011-01-29 23:49:29 | 2011-02-03 06:54:26 | NULL | 0 | 4 | osdemo01 | nova-compute | compute | 37050 | 0 | nova |
317 | 2011-01-30 23:42:24 | 2011-02-03 06:55:44 | NULL | 0 | 9 | osdemo04 | nova-compute | compute | 28484 | 0 | nova |
318 | 2011-01-30 21:27:28 | 2011-02-03 06:54:23 | NULL | 0 | 8 | osdemo05 | nova-compute | compute | 29284 | 0 | nova |
319 +---------------------+---------------------+------------+---------+----+----------+----------------+-----------+--------------+----------+-------------------+
320You can see that 'osdemo0{1,2,4,5} are all running 'nova-compute.' When you start spinning up instances, they will allocate on any node that is running nova-compute from this list.
321
294You can then use `euca2ools` to test some items::322You can then use `euca2ools` to test some items::
295323
296 euca-describe-images324 euca-describe-images