The seed instance expects to run with its eth0 connected to the outside world, via whatever IP range you choose to setup. You can run NAT, or not, as you choose. This is how we connect to it to run scripts etc - though you can equally log in on its console if you like.
We use flat networking with all machines on one broadcast domain for dev-test.
The eth1 of your seed instance should be connected to your bare metal cloud LAN. The seed VM uses the rfc5735 TEST-NET-1 range - 192.0.2.0/24 for bringing up nodes, and does its own DHCP etc, so do not connect it to a network shared with other DHCP servers or the like. The instructions in this document create a bridge device (‘brbm’) on your machine to emulate this with virtual machine ‘bare metal’ nodes.
Devtest uses a JSON file to describe the test environment that OpenStack will run within. The JSON file path is given by $TE_DATAFILE. The JSON file contains the following keys:
(Note: all of the following commands should be run on your host machine, not inside the seed VM)
Before you start, check to see that your machine supports hardware virtualization, otherwise performance of the test environment will be poor. We are currently bringing up an LXC based alternative testing story, which will mitigate this, though the deployed instances will still be full virtual machines and so performance will be significantly less there without hardware virtualization.
As you step through the instructions several environment variables are set in your shell. These variables will be lost if you exit out of your shell. After setting variables, use scripts/write-tripleorc to write out the variables to a file that can be sourced later to restore the environment.
Also check ssh server is running on the host machine and port 22 is open for connections from virbr0 - VirtPowerManager will boot VMs by sshing into the host machine and issuing libvirt/virsh commands. The user these instructions use is your own, but you can also setup a dedicated user if you choose.
mkdir -p $TRIPLEO_ROOT
cd $TRIPLEO_ROOT
git clone this repository to your local machine.
git clone https://git.openstack.org/openstack/tripleo-incubator
Ensure dependencies are installed and required virsh configuration is performed:
install-dependencies
(Optional) Run cleanup-env to delete VM’s and storage pools from previous devtest runs. Use this if you are creating a new test environment.
cleanup-env
Clone/update the other needed tools which are not available as packages.
pull-tools
Footnotes
[1] | Setting Up Squid Proxy
|