QA:Testcase OpenStack heat setup

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
 
(15 intermediate revisions by 2 users not shown)
Line 9: Line 9:
 
* Get a basic openstack setup: [[Getting started with OpenStack on Fedora 17#Basic_Setup]]
 
* Get a basic openstack setup: [[Getting started with OpenStack on Fedora 17#Basic_Setup]]
 
* Follow the keystone setup steps here: [[Getting started with OpenStack on Fedora 17#Configuring keystone for authentication]]
 
* Follow the keystone setup steps here: [[Getting started with OpenStack on Fedora 17#Configuring keystone for authentication]]
This new setup will need to be performed:
+
 
 +
 
 +
|actions=
 +
 
 +
Install Heat
 
   sudo yum install -y heat
 
   sudo yum install -y heat
 +
 +
Configure the Heat database
 
   sudo heat-db-setup rpm
 
   sudo heat-db-setup rpm
 +
 +
Configure Keystone
 
   source ~/keystonerc
 
   source ~/keystonerc
   sudo -E heat-keystone-service
+
   wget https://raw.github.com/heat-api/heat/master/tools/heat-keystone-service
   for svc in heat-api-cfn heat-api-cloudwatch heat-engine heat-metadata
+
   chmod +x heat-keystone-service
   do
+
  --
    sudo systemctl start $svc.service
+
  Folsom: make sure parameters to user-role-add use --user_id and --role_id
  done
+
   --
 +
  sudo -E ./heat-keystone-service
  
Download JEOS and register with glance:
+
Create a special flavor
 +
  nova flavor-create --ephemeral 10 --swap 0 --rxtx-factor 1 m2.xlarge 7 512 0 1
 +
 
 +
Workaround {{bz|860282}}
 +
  cd /lib/systemd/system
 +
  for f in heat*.service; do sudo sed -i "s/^User=heat/User=openstack-heat/" $f; done
 +
 
 +
Start Heat services
 +
  for svc in heat-api-cfn heat-api-cloudwatch heat-engine heat-metadata; do sudo systemctl start $svc.service; done
 +
 
 +
Download JEOS:
 
   wget https://github.com/downloads/heat-api/prebuilt-jeos-images/F17-x86_64-cfntools.qcow2
 
   wget https://github.com/downloads/heat-api/prebuilt-jeos-images/F17-x86_64-cfntools.qcow2
 +
 +
Register JEOS with glance:
 
   sudo mv F17-x86_64-cfntools.qcow2 /var/lib/libvirt/images
 
   sudo mv F17-x86_64-cfntools.qcow2 /var/lib/libvirt/images
   glance add name=F17-x86_64-cfntools is_public=true disk_format=qcow2 container_format=bare < F17-x86_64-cfntools.qcow2
+
   glance add name=F17-x86_64-cfntools is_public=true disk_format=qcow2 container_format=bare < /var/lib/libvirt/images/F17-x86_64-cfntools.qcow2
 +
 
  
 
Known Issues
 
Known Issues
  
The Heat rpm does not include heat-keystone-service {{bz|860105}}.  Please download heat-keystone-service from https://raw.github.com/heat-api/heat/master/tools/heat-keystone-service.
+
The Heat rpm does not include heat-keystone-service {{bz|860105}}.
  
* Follow the horizon steps in this section: [[Getting started with OpenStack on Fedora 17#Configuring the OpenStack Dashboard]]
+
heat-db-setup deprecation warnings on F18 : [https://github.com/heat-api/heat/issues/251 heat issue #251]
 
+
|actions=
+
  
Follow the operations in this document.
+
systemd service scripts contain the wrong user {{bz|860282}}
  
 
|results=
 
|results=

Latest revision as of 21:21, 25 September 2012

Contents

Description

Setup OpenStack dashboard and perform an initial login.

Setup

These 2 steps are already completed but for reference:

How to test

Install Heat

 sudo yum install -y heat

Configure the Heat database

 sudo heat-db-setup rpm

Configure Keystone

 source ~/keystonerc
 wget https://raw.github.com/heat-api/heat/master/tools/heat-keystone-service
 chmod +x heat-keystone-service
 --
 Folsom: make sure parameters to user-role-add use --user_id and --role_id
 --
 sudo -E ./heat-keystone-service

Create a special flavor

 nova flavor-create --ephemeral 10 --swap 0 --rxtx-factor 1 m2.xlarge 7 512 0 1

Workaround RHBZ #860282

 cd /lib/systemd/system
 for f in heat*.service; do sudo sed -i "s/^User=heat/User=openstack-heat/" $f; done

Start Heat services

 for svc in heat-api-cfn heat-api-cloudwatch heat-engine heat-metadata; do sudo systemctl start $svc.service; done

Download JEOS:

 wget https://github.com/downloads/heat-api/prebuilt-jeos-images/F17-x86_64-cfntools.qcow2

Register JEOS with glance:

 sudo mv F17-x86_64-cfntools.qcow2 /var/lib/libvirt/images
 glance add name=F17-x86_64-cfntools is_public=true disk_format=qcow2 container_format=bare < /var/lib/libvirt/images/F17-x86_64-cfntools.qcow2


Known Issues

The Heat rpm does not include heat-keystone-service RHBZ #860105.

heat-db-setup deprecation warnings on F18 : heat issue #251

systemd service scripts contain the wrong user RHBZ #860282

Expected Results

No obvious errors were displayed.