Initial skeleton project
Rajaram/Vinkesh|Added nova's serializaiton classes into common
Rajaram/Vinkesh|increased tests for Request and Response serializers
ignore cover's html directory
Added .gitreview file.
Updated tox config for multi-python testing.

Change-Id: Ib1f768c6783db0e63cb51dfc767ae5a31a295c76
.gitignore updates for generated files

Ignore files created by packaging, builds, etc.

Change-Id: I9c1eed8c9791548b46e1532b345d80f3d84d4890
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Update .gitreview for oslo.

At the Design Summit it was decided that the OpenStack common modules
would be named Oslo as part of an effort to convert them into a core
project housing a collection of library dependencies. This handles the
necessary update to .gitreview reflecting the new remote name.

Change-Id: I350ff95213efe85579bc6fdce125237cb1f7f614
Correcting openstack-common mv to oslo-incubator.

The earlier rename of openstack-common to oslo was incorrect; it should
have been oslo-incubator instead per the 2102-11-06 Project meeting log.
This change corrects its .gitreview file to match CI changes already
merged.

Change-Id: I9720387576a52654383bfc14f557ed1e06cc0a91
updating sphinx documentation

* adding openstack theming (copied from keystone project theme)
* updating .gitignore to ignore generated API docs
* updated formatting in index.rst page
* updaed openstack/common/processutils.py to match hacking docstring
* updated docstrings to resolve sphinx warnings

Change-Id: Ie89afe20eeab1efd2daf440fc65ccdf90f723c51
Import sqlalchemy session/models/utils

Bring in session, base model, utilities, and tests for sqlalchemy
from Nova.

Add sqlalchemy to pip-requires and and python-mysql to test-requires.

Partially implements blueprint common-db

Change-Id: I3e0065cdac87e10c4e0742d66c293c72bb3acbb2
Eliminate gratuitous DB difference vs Nova

Looks like this was an abritrary cleanup done as part of the import. It
conflicts with a more recent change in Nova.

We can move to using try_import() once we've killed the Nova copy
of this code.

Change-Id: I5c67d3fbd846a262feb724e26b14447a76561ae6
Remove duplicate DB options

sql_dbpool_enable and sql_connection_trace are declared twice.

Looks like this was a merge conflict when sql_dbpool_enable changed
from int to bool.

Change-Id: I553c5beea916e0ee296648342324fd53167c073a
Be explicit about set_default() parameters

We probably only want to support people using set_defaults() for a
limited set of config options, so explicitly list those as parameters
to the method. This is what we do for rpc and log options too.

Change-Id: I3bfc5355e82eec17480b9547662e847dc0d74138
Add missing DBDuplicateEntry

The session.py part of nova's 8835866 was imported, but not the newly
added exception.

Change-Id: I0d79a8536f0c8f14cb062dc61c5fce100b63fd64
Fix eventlet/mysql db pooling code

Eventlet versions >= 0.10 return a tuple from
db_pool.ConnectionPool().create(), not a scalar.

Also, set the FOUND_ROWS client flag, which sqlalchemy
appears to require to sanity check the number of rows
touch.

bug 1097992

Change-Id: I64e798660c506fcd13947a232cb7832db0318360
Fix missing wrap_db_error for Session.execute() method

We should add wrap_db_error for Session.execute() method, because
Query.update() method will call Session.execute() and it is not inside
Session.flush(), so exceptions from Query.update() wouldn't be wrapped.

Add test for Session.flush() wrapper
Add test for Session.execute() wrapper

Fixes bug 1107890

Change-Id: I96894e502f9f279999b61a1e66469e34a07a022d
Provide creating real unique constraints for columns

Main issue is that we can't create unique constraint for columns, because
we are using soft deletion of entries (set `deleted` column to True).

The main idea is to use `deleted` columns to create unique constraint for
columns. For example (`col1`, `deleted`).

To make (`col1`, `deleted`) unique after entry deletion, we should assign the
value of `id` to `deleted` column.

Change type of `deleted` column from Boolean to table.id.type for all tables.

Change models.soft_delete() method to assign table.id instead of True to
`deleted` column.

Change query.soft_delete() method to assign literal_column("id") instead of True

blueprint db-unique-keys

Change-Id: Ie1f67f49a5d085e6371efb63fc23a1c8b25d9464
Remove openstack.common.db.common

Since this only contains exceptions that are either used in session.py
or utils.py (not both), it seems sensible to move them into the modules
where they are used.

Also, remove the use of the Invalid base exception class since we don't
seem to be making use of the base class anywhere by catching it rather
than the more specialized exceptions.

Change-Id: Ib05bb2e0a9494e1dc60c60b8eee0e76b5d2ee555
Remove unused context from test_sqlalchemy

Change-Id: I0b3c7341e91cfc57aed625754bc9bf009ef70b14