Sachin Patil

Sachin

Free software developer & Emacser

Test tripleo-quickstart environment

The Last post explains how to setup tripleo-quickstart environment. In this post we will see how to test the environment by using heat template.

Below is the sample template that can be used to deploy a stack which will deploy an instance using cirros image.

Download the template using,

wget https://gist.githubusercontent.com/psachin/85b89e125007bca0b4fc2d5bd2d19fa6/raw/test-stack.yml

Download and create glance image,

curl http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img -o cirros-0.3.5-x86_64-disk.img
openstack image create --public --container-format bare --file cirros-0.3.5-x86_64-disk.img cirros

Finally create a stack using,

openstack stack create --template test-stack.yml test-stack

Once stack creation is completed, get IP address of an instance using comment openstack server list (should be in range 192.168.24.0/24) as show in example below,

[stack@undercloud ]$ openstack server list
+--------------------------------------+-----------------------------------------------+--------+------------------------------------+------------+
| ID                                   | Name                                          | Status | Networks                           | Image Name |
+--------------------------------------+-----------------------------------------------+--------+------------------------------------+------------+
| c14904d2-bc35-48a3-bc75-7b778eb02acd | test-stack-test_instance-1-adgli2qymnzm       | ACTIVE | int-green=30.0.0.8, 192.168.24.110 | cirros     |
+--------------------------------------+-----------------------------------------------+--------+------------------------------------+------------+