Allow skipping exercises.

- Catch a special exit signal 55 to notify that we want to skip an
  excercise.
- Move is_enabled_service to functions.
- Fix bug 928390.

Change-Id: Iebf7a6f30a0f305a2a70173fb6b988bc07e34292
Don't use $USERNAME in openrc.

Fix bug 967429.

Don't use $USERNAME as a variable in openrc.  It's commonly set by
default and can result in $OS_USERNAME getting set to something else
unexpectedly, resulting in an environment that doesn't work.

Change-Id: I6083a871209d30c81ca6876b1ef6c154aef7f598
Add local.sh support and samples of local.sh and locarc

Run $TOP_DIR/local.sh at the end of stack.sh if it exists and is executable.
This allows the user to automatically perform local actions on every re-stack,
such as creating custom flavors or specific tenants/users.  Like localrc, this
file is not distributed with DevStack so user modifications will be undisturbed.

Add local.sh to .gitignore

Examples of local.sh and localrc are in the samples/ directory.

Change-Id: I0be6b4d80ce084981cac8a3a8f1dc9bc8c3bbd4e
blueprint host-aggregates

add some inital tests for the host-aggregates blueprint

Change-Id: I0c07f2e7fd123bbda6d26f4ff64bea3949e57157
Add support for qcow2 images in $IMAGE_URLS.

This patch adds support for loading a qcow2 image and using the 'bare'
container format for all single file images.

I tested this successfully by setting:

IMAGE_URLS="http://berrange.fedorapeople.org/images/2012-02-29/f16-x86_64-openstack-sda.qcow2"

Change-Id: Ia55ffd4957866a3d7b9fd7ba4c62e38663b35080
Handle additional directory structures in image upload

There appear to be multiple forms if AMI archive directory structures
in common use.  Add the one used by the tty-linux so we can get rid of
the special case for it to support UPLOAD_LEGACY_TTY

(new):
image-name/aki-tty/image
image-name/ami-tty/image
image-name/ari-tty/image

and

(existing):
image-name/*.img
image-name/*.initrd
image-name/*.vmlinuz

Change-Id: Ia7d88d53760f571c6a488c3139049502b484d33e
Fix oversight in container format handling

https://review.openstack.org/5934 changed the container and disk format handling,
but I forgot to reset the variables at the top of the loop (DOH!)

Change-Id: I2782c06e7b4da1b69ecb72f847a5593bda522b7d
Merge "Handle additional directory structures in image upload"
Merge "Add local.sh support and samples of local.sh and locarc"
Converts all tables and connections to UTF8.

This is https://review.openstack.org/4221 resurrected as the original
was auto-abandoned.

Nova database is handled in db migrations; this adds the nova.conf
change noted by Naveed Massjouni in the original proposal.

Connections to quantum and melange DB changed to utf8

References bug 933208.

Change-Id: Ifc4e5cd71cafb719da62214aafc394563ed1aa29
Fix quantum deps

* Compile linux headers
* Install quantum before libvirt/n-cpu since openvswitch
  complains if bridges are present during installation
* Fixes bug 968424

Rebased

Change-Id: Iec7c029f264998ad9e23901bdf2129a404d057cd
[+] [stack.sh] Add a dedicated mysql user for openstack components
[*] [stack.sh] Grant privileges to mysql openstack user for nova DB
[*] [stack.sh] Grant privileges to mysql openstack user for glance DB
[*] [stack.sh] Grant privileges to mysql openstack user for keystone DB
[*] [stack.sh] Grant privileges to mysql openstack user for melange DB
[*] [stack.sh] Create user defined variables for Glance api/registry host/port
[*] [stack.sh] Create user defined variables for Swift server port
[*] [stack.sh] Create user defined variables for Nova api/volume/ec2 port
[*] [stack.sh] Make use of already defined variables (quantum, melange, rabbit, keystone)