QA:Testcase OpenStack floating IPs

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
|setup=
 
|setup=
 
# Follow [[QA:Testcase_launch_an_instance_on_OpenStack]]
 
# Follow [[QA:Testcase_launch_an_instance_on_OpenStack]]
 +
 +
Make sure that nova is configured with the correct public network interface. The default is eth0, but you can change it in <code>/etc/nova/nova.conf</code>.
 +
 +
$> sudo bash -c 'echo "--public_interface=em1" >> /etc/nova/nova.conf'
 +
$> sudo service openstack-nova-network restart
 +
 
|actions=
 
|actions=
Be as specific as required for the target audience.  
+
 
# Start here ...
+
Carve out a block of addresses to use for instances:
# Next do this ...
+
 
# Finally click that
+
$> sudo nova-manage floating create 10.0.0.224/28
 +
 
 +
Allocate an address to use for an instance:
 +
 
 +
$> euca-allocate-address
 +
ADDRESS 10.0.0.224
 +
 
 +
Associate the allocated address with a running instance:
 +
 
 +
$> euca-associate-address -i i-00000006 10.0.0.224
 +
ADDRESS 10.0.0.224 i-00000006
 +
 
 
|results=
 
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.  
+
 
# Step #1 completes without error
+
Verify that you can now ssh into the instance using the newly assigned address:
# The system boots into runlevel 5
+
 
# Program completes wth exit code 0
+
$> cd ~/novacreds
 +
$> ssh -i nova_key.priv root@10.0.0.224
 +
 
 +
If you would like, you can now disassociate and release the address assigned for testing.
 +
 
 +
$> euca-disassociate-address 10.0.0.224
 +
ADDRESS 10.0.0.224
 +
$> euca-release-address 10.0.0.224
 +
ADDRESS 10.0.0.224
 +
 
 
}}
 
}}
  
 
[[Category:OpenStack Test Cases]]
 
[[Category:OpenStack Test Cases]]
 
[[Category:Cloud SIG]]
 
[[Category:Cloud SIG]]

Revision as of 15:28, 18 October 2011

Contents

Description

Set up Floating IPs with OpenStack

Setup

  1. Follow QA:Testcase_launch_an_instance_on_OpenStack

Make sure that nova is configured with the correct public network interface. The default is eth0, but you can change it in /etc/nova/nova.conf.

$> sudo bash -c 'echo "--public_interface=em1" >> /etc/nova/nova.conf'
$> sudo service openstack-nova-network restart 

How to test

Carve out a block of addresses to use for instances:

$> sudo nova-manage floating create 10.0.0.224/28

Allocate an address to use for an instance:

$> euca-allocate-address 
ADDRESS	10.0.0.224

Associate the allocated address with a running instance:

$> euca-associate-address -i i-00000006 10.0.0.224
ADDRESS	10.0.0.224	i-00000006

Expected Results

Verify that you can now ssh into the instance using the newly assigned address:

$> cd ~/novacreds
$> ssh -i nova_key.priv root@10.0.0.224

If you would like, you can now disassociate and release the address assigned for testing.

$> euca-disassociate-address 10.0.0.224
ADDRESS	10.0.0.224
$> euca-release-address 10.0.0.224
ADDRESS	10.0.0.224