Test tripleo-quickstart environment
By Sachin
January 3, 2018
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,
1
wget https://gist.githubusercontent.com/psachin/85b89e125007bca0b4fc2d5bd2d19fa6/raw/test-stack.yml
Download and create glance image,
1
2
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,
1
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,
1
2
3
4
5
6
[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 |
+--------------------------------------+-----------------------------------------------+--------+------------------------------------+------------+