Make debugging the wsme app a bit easier.

- add a logger so we get exceptions
- setup the port to 8777 so 'pecan serve config.py' works normally

Change-Id: I7374a34ae5534d7d4127e4b405daa11cab5f5547
Fix Glance control exchange

The name used is wrong, this is actually the named of notification topic
that was used until Folsom. The control exchange is and always has been
'glance'.

Change-Id: I86a46d28af22b663af804caf1a224b9dba73d38f
Signed-off-by: Julien Danjou <julien@danjou.info>
Import only once in nova_notifier

Per Doug's suggestion.

Change-Id: I37bcc1de358846d2e90a08de10ddd45b29006a2c
Signed-off-by: Julien Danjou <julien@danjou.info>
Use default configuration file to make test data.

Change-Id: I5edcc31bb9c79874ec925f4bb056cf52d81504fa
Pass a dict configuration file to auth_keystone

This fixes bug #1091754

Change-Id: Iff76a2b499d69fc90c31a23e9c79b1b91f63653e
Signed-off-by: Julien Danjou <julien@danjou.info>
Add support for Swift incoming/outgoing trafic metering

This adds a middleware for Swift that meters incoming and outgoing bytes.

This is part of blueprint pollster-swift.

Change-Id: I94f330ee4cf5df8a743c77fcfae9efd505568060
Signed-off-by: Julien Danjou <julien@danjou.info>
Implement user-api

This implements the blueprint user-api for version 1 of the API.

The ACL checks now don't return access denied on non-admin users.

All requests without a <project> in the URL limit their scope to the tenant
contained into X-Tenant-Id.

All request with a <project> in the URL returns 404 if the <project>
specified is different than the one from X-Tenant-Id.

Change-Id: If1ec55fa491ea5de30036ce7ed75d0f28e925457
Signed-off-by: Julien Danjou <julien@danjou.info>
Add support for Folsom version of Swift

This fixes bug #1095897

Change-Id: Idb7a94f103ffd23356938712ed9d2185eed22b98
Signed-off-by: Julien Danjou <julien@danjou.info>
Fix test blocking issue and pin docutils version.

Mock out more methods of the nova conductor according to the latest nova
changes to fix the test blocking issue of the nova notifier.

Also pin docutils to 0.9.1 as a workaround to fix bug 1091333.

Change-Id: I1c4db4a5f5485dd563c2d48890be0334982e5a26
Handle finish and revert resize notifications.

Fixes bug 1057571

Ensure that the modified instance type is reflected in the
metering data in a more timely fashion than would be allowed
by the default pollster frequency, or the cadance of the
compute.instance.exists notifications.

Change-Id: I34f01eebddfe9732d5bf69c331a0d8a63a8025ca
Fix warnings in the documentation build

Some of the docstrings pulled into the API documentation
were malformatted, so fix those. Also include the API
documentation in a toctree so it is linked in the
"Contributing" section of the documentation.

Change-Id: I8eef6007045d5426299dadb67303102855c15dc2
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Add pyflakes

Add ability to use pyflakes to tox.ini

Change-Id: If334cb1ac64a5fe7aabb17af0048a20aa2cdd921
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Make the v2 API date query parameters consistent

Use a DateRange object to specify the old start_timestamp,
end_timestamp, and search_offset parameters in a consistent
way for all of the v2 API calls.

This change addresses bug 1094337 and fixes problems with
running the v2 API tests against the most current version
of WSME, which expects all arguments to be listed on the
controller methods explicitly.

The changes to the test-requires files install the
spidermonkey component, needed for some of the tests
that were being skipped, causing this problem to go
unnoticed for a while.

Change-Id: I4d8677730f228701b0cb85e2ab4294958243e31e
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Remove the _initialize_config_options

Currently the nova_notifier have a special code to differentiate the
test code and normal execution.

Remove this special code by passing the agent manager as parameter in
test code.

Change-Id: I6e0746e891c7c8006175cb310684dd6caa35ccda
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
Apply the official OpenStack stylesheets and templates to the Doc build.

Fix bug #1084479

Change-Id: I85a264669f9bd7d504e0db0d8cd502100acd5ca4
Fixed erroneous source filter in SQLAlchemy.

Also added test cases for source filter. This fixed bug 1093580.

Change-Id: Ie3d99e7f27064f88196d6b0a7139fba36251b3c0
policy: fix policy_file finding

Currently, the policy.json file is only looked inside current directory.
Let's use cfg.config_dir via the find_file method to find the policy file.

Also add some unit test to catch theses errors.

This fixes bug #1098206

Change-Id: I896108f1bd66d3be6ec32b50d9dddc6c368f3709
Signed-off-by: Julien Danjou <julien@danjou.info>
Remove useless gettext call in sql engine

This fixes bug #1091675

Change-Id: I0bdb07ecbe43e6f6c04626a73cb16bdf580a6a35
Signed-off-by: Julien Danjou <julien@danjou.info>
Fix keystoneclient auth_token middleware changes

Things changed, and the configuration wasn't read anymore. This patch fixes
that. It also remove duplicated code in acl.py, so the problem is fixed only
in one place. Finally, it uses prepare_service() to find the right
configuration file for ceilometer.

This fixes bug #1098204

Change-Id: I0d6c30ad443a4d0db201e60d12b275625a4bee6e
Signed-off-by: Julien Danjou <julien@danjou.info>
Provide the meters unit's in /meters

 * change pollsters and notification handlers to report units
 * modify db storage to store units in counters

Change-Id: Ibd7e52623b84d26ca7bbc9f260c20fdf1d61a4bc
Implements: blueprint provide-meter-units