Sachin Patil

Sachin Patil

Free Software Developer | GNU Emacs Hacker

Test tripleo-quickstart environment
Published on Jan 03, 2018 by Sachin.

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,

1: 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
2: 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 as show in example below,

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