From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=A brief description of the functionality being tested. |setup=Optionally include information on preparing the test environment |actions= Be as specifi...")
 
No edit summary
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=A brief description of the functionality being tested.
|description=
|setup=Optionally include information on preparing the test environment
 
Everything so far has been done on a single node.
Here we add another (virtual) node for running VMs.
 
Let's assume the machine you've set up above is called 'controller' and the new machine is called 'node'.
 
|setup=
 
Open the rabbitmq, MySQL and Nova API ports on controller:
 
$ controller> sudo lokkit -p 3306:tcp
$ controller> sudo lokkit -p 5672:tcp
$ controller> sudo lokkit -p 9292:tcp
$ controller> sudo service libvirtd reload
 
Then make sure that ntp is enabled on both machines:
 
$> sudo yum install -y ntp
$> sudo service ntpd start
$> sudo chkconfig ntpd on
 
We only need to install libvirt and nova on the compute node:
 
$ node> sudo yum install --enablerepo=updates-testing openstack-nova
$ node> sudo service libvirtd start
$ node> sudo chkconfig libvirtd on
$ node> sudo setenforce 0
 
Configure nova so that node can find the services on controller:
 
$ node> echo '1.2.3.4 controller' <nowiki>| sudo tee -a /etc/hosts</nowiki>
$ node> echo '--rabbit_host=controller' <nowiki>| sudo tee -a /etc/nova/nova.conf</nowiki>
$ node> echo '--sql_connection=mysql://nova:nova@controller/nova' <nowiki>| sudo tee -a /etc/nova/nova.conf</nowiki>
$ node> echo '--glance_api_servers=controller:9292' <nowiki>| sudo tee -a /etc/nova/nova.conf</nowiki>
 
Enable the compute service:
 
$ node> for svc in compute network; do sudo service openstack-nova-$svc start; done
$ node> for svc in compute network; do sudo chkconfig openstack-nova-$svc on; done
 
Finally, you need to make sure the network is configured with a physical bridge interface:
 
$ controller> sudo nova-manage network create markmc 10.0.0.0/24 --bridge=br0 --bridge_interface=em1
 
 
|actions=
|actions=
Be as specific as required for the target audience.
Everything should be running as before, except the VMs are launched either on controller or node.
# Start here ...
# Next do this ...
# Finally click that
|results=
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.
# Step #1 completes without error
# The system boots into runlevel 5
# Program completes wth exit code 0
}}
}}


[[Category:OpenStack Test Cases]]
[[Category:OpenStack Test Cases]]
[[Category:Cloud SIG]]
[[Category:Cloud SIG]]

Revision as of 12:57, 19 October 2011

Description

Everything so far has been done on a single node. Here we add another (virtual) node for running VMs.

Let's assume the machine you've set up above is called 'controller' and the new machine is called 'node'.

Setup

Open the rabbitmq, MySQL and Nova API ports on controller:

$ controller> sudo lokkit -p 3306:tcp
$ controller> sudo lokkit -p 5672:tcp
$ controller> sudo lokkit -p 9292:tcp
$ controller> sudo service libvirtd reload

Then make sure that ntp is enabled on both machines:

$> sudo yum install -y ntp
$> sudo service ntpd start
$> sudo chkconfig ntpd on

We only need to install libvirt and nova on the compute node:

$ node> sudo yum install --enablerepo=updates-testing openstack-nova
$ node> sudo service libvirtd start
$ node> sudo chkconfig libvirtd on
$ node> sudo setenforce 0

Configure nova so that node can find the services on controller:

$ node> echo '1.2.3.4 controller' | sudo tee -a /etc/hosts
$ node> echo '--rabbit_host=controller' | sudo tee -a /etc/nova/nova.conf
$ node> echo '--sql_connection=mysql://nova:nova@controller/nova' | sudo tee -a /etc/nova/nova.conf
$ node> echo '--glance_api_servers=controller:9292' | sudo tee -a /etc/nova/nova.conf

Enable the compute service:

$ node> for svc in compute network; do sudo service openstack-nova-$svc start; done
$ node> for svc in compute network; do sudo chkconfig openstack-nova-$svc on; done

Finally, you need to make sure the network is configured with a physical bridge interface:

$ controller> sudo nova-manage network create markmc 10.0.0.0/24 --bridge=br0 --bridge_interface=em1 

How to test

Everything should be running as before, except the VMs are launched either on controller or node.

Expected Results