From Fedora Project Wiki

Description

Setup OpenStack dashboard and perform an initial login.

Setup

These 4 steps are already completed if the other test cases have been completed, but for reference:

How to test

Check that there is a F17-x86_64-cfntools JEOS in glance:

 glance index

Create an SSH key and register it with nova

 ssh-keygen
 nova keypair-add --pub_key ~/.ssh/id_rsa.pub ${USER}_key
 

Launch a Wordpress instance:

 heat create wordpress --template-url=https://raw.github.com/heat-api/heat/master/templates/WordPress_Single_Instance.template --parameters="InstanceType=m2.xlarge;DBUsername=${USER};DBPassword=verybadpass;KeyName=${USER}_key"

Note: InstanceType (m2.xlarge) must match the flavor created in the setup.

List stacks:

 heat list

Describe the wordpress stack

 heat describe wordpress

Delete the instance when done:

 heat delete wordpress
 heat list

Expected Results

glance index should return

 [root@localhost images]# glance index
 ID                                   Name                           Disk Format          Container Format     Size          
 ------------------------------------ ------------------------------ -------------------- -------------------- --------------
 a485aeb3-abbc-45d3-8a70-13bed62895dc F17-x86_64-cfntools            qcow2                bare                      647228928

Adding a key sould return

 [sdake@localhost ~]$ nova keypair-list
  +----------+-------------------------------------------------+
  |   Name   |                   Fingerprint                   |
  +----------+-------------------------------------------------+
  | nova_key | 71:51:17:7c:37:fa:4c:19:96:a9:39:a9:74:1e:d3:82 |
  +----------+-------------------------------------------------+
  [sdake@localhost ~]$ ssh-keygen
  Generating public/private rsa key pair.
  Enter file in which to save the key (/home/sdake/.ssh/id_rsa): 
  Created directory '/home/sdake/.ssh'.
  Enter passphrase (empty for no passphrase): 
  Enter same passphrase again: 
  Your identification has been saved in /home/sdake/.ssh/id_rsa.
  Your public key has been saved in /home/sdake/.ssh/id_rsa.pub.
  The key fingerprint is:
  c5:6e:66:fe:c7:19:ab:91:94:ad:61:43:e4:f6:b7:bb sdake@localhost
  The key's randomart image is:
  +--[ RSA 2048]----+
  |            .    |
  |         . o     |
  |          o +    |
  |         o o +   |
  |        S = * o .|
  |         = o =...|
  |          . +. = |
  |           . .= .|
  |            oo E.|
  +-----------------+
  [sdake@localhost ~]$  nova keypair-add --pub_key ~/.ssh/id_rsa.pub ${USER}_key

Validate the key exists with nova keypair-list

 [sdake@localhost ~]$ nova keypair-list
  +-----------+-------------------------------------------------+
  |    Name   |                   Fingerprint                   |
  +-----------+-------------------------------------------------+
  |  nova_key | 71:51:17:7c:37:fa:4c:19:96:a9:39:a9:74:1e:d3:82 |
  | sdake_key | c5:6e:66:fe:c7:19:ab:91:94:ad:61:43:e4:f6:b7:bb |
  +-----------+-------------------------------------------------+