Distinguish over-quota for volume size and number.

Fixes LP 1020634

Ensure that exceeding the allowed number of volumes is not
mis-represented in log messages and exception handling as
excessive space usage.

Change-Id: I71ec995c77bc447bfc9221084b057bd8d69a4513
fix metadata file injection with xen

The metadata parameter was misordered in commit 1463839f

Fixes Bug: 1022036
Change-Id: Ica0e2f51b6852c8572bdc3c995cc8c2588b9a25c
Update common setup code to latest.

This gets us up to date with common/setup.py and replaces custom nova
autodoc generation with the port of that code found in common.

Change-Id: I2a1c5d2c0fdcf40dbea50cc123b537adb068cdc2
Removed a bunch of cruft files.

Ohai. We dont't uses any of theses anymores. Let's just make buh-bye.

Change-Id: Ib81c92ab9196552150d81d158befb0747966965d
Avoid lazy-loading errors on instance_type

When instances are launched with a source group, the instance_type
is not lazy_loaded in properly.

The issue is intermittent because if another query has already loaded
the instance with a joined instance_type or the instance has not
yet been expunged from the session, then the load succeeds.

Therefore this failure only appears under heavy load. Adding an
explicit joindload fixes the issue.

Change-Id: I450c598c31c416c7be341cbb8cd14e33c6bb2aec
Remove deprecated auth code

* Remove nova.auth.manager -- AuthManager, User, Role, Project, etc.
* Remove nova.auth.dbdriver
* Remove nova.auth.ldapdriver
* Remove nova.auth.signer
* Remove arbitrary scripts and schemas in nova/auth/
* Remove nova/auth/novarc.template
* Remove or update affected tests
* Related to bp remove-deprecated-auth

Change-Id: Ide0fefd0ddf79ae1b3bb74cb242c2893575839e7
flags documentation to deprecate connection_type

connection_type in nova.conf is deprecated for Folsom, provide
additional documentation in the flags to indicate this, and the
new compute_driver options

Part of bp:virt-driver-cleanup

Change has DocImpact for Folsom

Change-Id: Iaff658771b1e992304454368e66ee53f9a0480ff
ensure libguestfs has completed before proceeding

This is a more correct fix than the previous sync(1)
which probably only changed timings, masking the real issue.

The FUSE issue is referenced here:
http://code.google.com/p/s3ql/issues/detail?id=159
which in turn references this thread on the subject from 2006:
http://thread.gmane.org/gmane.comp.file-systems.fuse.devel/3903
And another case from 2008:
http://permalink.gmane.org/gmane.comp.file-systems.fuse.devel/6502

Fixes bug: 1013689

Change-Id: I36fd11d5f01562f65a6b6f07e759ea066490b067
Split xenapi agent code out to nova.virt.xenapi.agent

This refactoring makes the split between driver methods and internal
methods clearer. It also makes all agent methods private instead of
making some private, some public and some both.

Change-Id: I6c6b405942e47a85816e10224d4e6d986a8b06dc
Remove deprecated auth docs

Related to bp remove-deprecated-auth

Change-Id: I2637188e75e1881e6cc5af09d86eaf45581b3e9e
Fixes api fails to unpack metadata using cinder

Fix for bug 1023027

Change-Id: I2d19f461f3734518717b8b54d9d3428b75a2a44d
Refactor instance_usage_audit. Add audit tasklog.

The instance usage audit cronjob that generates periodic
compute.instance.exists notifications is not particularly scalable.
It is run on one server and takes longer as the number of instances grows.

This change moves the generation of those events to a periodic task in
the compute manager. It also adds an api extension that can be used
by administrators to check for errors generating these events.

Change-Id: I856d3d0c73c34e570112f1345d306308ef20a9ae
Merge "Remove deprecated auth docs"
Merge "flags documentation to deprecate connection_type"
Merge "ensure libguestfs has completed before proceeding"
Merge "Update common setup code to latest."
Merge "Remove deprecated auth code"
Merge "Avoid lazy-loading errors on instance_type"
Clarifying which vm_utils functions are private.

This clarification should aid in future refactorings by giving a hint of
which methods are not referenced outside of the file (except for test
stubs).

Change-Id: I574b2caa25d54969a1627fa69f101b2480152b08
Merge "Fixes api fails to unpack metadata using cinder"