Skip to content

Instantly share code, notes, and snippets.

Created January 19, 2016 14:22
Show Gist options
  • Save anonymous/8e5582417ce87c4cd400 to your computer and use it in GitHub Desktop.
Save anonymous/8e5582417ce87c4cd400 to your computer and use it in GitHub Desktop.
# clone and install https://github.com/openstack/os-testr
cd /opt/stack
git clone https://github.com/openstack/os-testr.git
cd os-testr/
sudo ./setup.py install
#stack as you normally would
create public net and subnet:
neutron net-create ext-net --router:external True --provider:physical_network external --provider:network_type flat
neutron subnet-create ext-net 10.35.6.0/23 --name ext-subnet --gateway 10.35.7.254 --allocation-pool start=10.35.6.120,end=10.35.6.130
edit /opt/stack/tempest/etc/tempest.conf by adding the net_id of the net created just above.
example:
public_network_id = 90245de5-a3ef-4d77-b360-c3e0ad4d94cc
cd /opt/stack/tempest
ostestr --pdb tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_network_basic_ops
it takes a few mins, but eventually you will see test completion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment