077_convert_to_utf8: Convert *all* FK tables early

The original migration only takes care of migrating the instances
table before all others.  It turns out, when using MySQL with InnoDB
by default, there are many other tables with FKs that need to be converted
early on as well (see bug description for schema diagram).

Fixes bug 931602

Update: Convert all tables in a predefined order from within the same
execution.

Update: Avoid hard-coding database, fixes bug 930863

Update: Fix pep8 spacing

Change-Id: Ideb619eecef2ad067bda5c26612f761674dee924
Run ovs-ofctl as root

Since ovs-ofctl requires root privilege, nova-network would
fail during allocate_for_instance. This fixes the issue.

Change-Id: I188f1a4fdf4998c51f8626b37efd175039d23227
Merge "Completes fix for LP #928910 - libvirt performance"
Merge "077_convert_to_utf8: Convert *all* FK tables early"
Make database downgrade works

Fixes bug #854905

Use sqlalchemy reflection whenever possible:
    http://sqlalchemy-migrate.readthedocs.org/en/latest/versioning.html

Work around sqlalchemy-migrate sqlite 'bool column not deletable' issue:
    http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=143
    Add following sql scripts for sqlite:
        002_sqlite_downgrade.sql
        015_sqlite_downgrade.sql
        033_sqlite_downgrade.sql
        050_sqlite_downgrade.sql
        068_sqlite_downgrade.sql

Work around sqlalchemy-migrate sqlite 'table with foreign key column not
deletable' issue:
    http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=94
    Add following sql scripts for sqlite:
        003_sqlite_downgrade.sql
        006_sqlite_downgrade.sql
        007_sqlite_downgrade.sql
        012_sqlite_upgrade.sql
        013_sqlite_downgrade.sql
        020_sqlite_downgrade.sql
        030_sqlite_downgrade.sql
        038_sqlite_downgrade.sql
        042_sqlite_downgrade.sql
        053_sqlite_downgrade.sql
        067_sqlite_downgrade.sql

Work around sqlalchemy-migrate 'migrate drops engine reference' issue:
    http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=72

Add following sql scripts for long primary key to work with utf-8
mysql table:
    072_mysql_upgrade.sql

Add following sql scripts for postgresql:
    002_postgresql_downgrade.sql

Add snake walk test cases for database migration based on glance migration
test.

Change-Id: Ib454ecb4662bbf47736c1b12d9a4f969f180ceb6
bug 933620: Error during ComputeManager._poll_bandwidth_usage

add missing session to model query.

Change-Id: I3cb8ebcff1fd286ef198f33514d4ce3d884c5921
Merge "Resolve bug/927714 -- get instance names from db."
Merge "Remove all uniqueness constraints in migration 76"
Merge "removed unused method and added another test"
InstanceNotFound exceptions for terminate_intance now Log warning
instead of throwing exeptions.

fixes bug 933012

Change-Id: Ib6c6c33e26125b561bd5a1bc1e710016746e7e44
LOG.exception does not take an exc_info keyword

It will automatically call sys.exc_info() anyway

Change-Id: I6a279bb18d913938d933a486e42a3be38bfaccb4
Merge "Syncs vncviewer mouse cursor when connected to Windows VMs"
Merge "fixed bug 928749"
Merge "Create a flag for force_to_raw for images"
Merge "Fix API extensions documentation, bug 931516."
Allow file logging config

* Fixes lp904305
* remove module level log functions (getLogger to rule them all)
* Move specific Environment logging to the one place it is used
* Wrap getLogger to return a logger wrapped in a NovaContextAdapter
* Do not overwrite the root logger
* save_and_reraise_exception logs via error for passing exc_info
* Uses CommonConfigOptions for compatability across Openstack Projects
* Prefers CommonConfigOptions over legacy options
* Install a NullHandler on the root logger if configured by FLAGS
* Include example logging config file to mimic Nova defaults

Change-Id: Ie59c3f755c142e2b7dc3b94b4e82e142e157bfac
Merge "run_tests.sh fix"
Merge "Adding logging for 500 errors."
Merge "Get rid of distutils.extra."
Merge "InstanceNotFound exceptions for terminate_intance now Log warning instead of throwing exeptions."