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>
Merge "Implement user-api"
Add support for Folsom version of Swift

This fixes bug #1095897

Change-Id: Idb7a94f103ffd23356938712ed9d2185eed22b98
Signed-off-by: Julien Danjou <julien@danjou.info>
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>
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
Merge "Handle finish and revert resize notifications."
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>
Add pyflakes

Add ability to use pyflakes to tox.ini

Change-Id: If334cb1ac64a5fe7aabb17af0048a20aa2cdd921
Signed-off-by: Chuck Short <chuck.short@canonical.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>
Merge "Fix warnings in the documentation build"
Merge "Add pyflakes"
Merge "Make the v2 API date query parameters consistent"
Merge "Remove the _initialize_config_options"