Fix an error in affinity filters

Fix a call to compute_api.get_all to properly exclude deleted instances.
Add tests to prohibit this error in the future.

After some thought, this can be further optimized to let the instance
query do all the filtering/matching.

Resolves bug 1107156.

Change-Id: I6d6a6ba44d38d363489853d0407ad4cc94046656
Fix authorized_keys file permissions

Explicitly set the file permissions to be 0600

Fixes LP# 1107908

Change-Id: Ife44deff41959180d31e7e88c29233e9b8cb0af2
Change ''' to """ in bin/nova-{novncproxy,spicehtml5proxy}

Standard practice is for doc comment strings to be enclosed
in """ rather than '''. bin/nova-{novncproxy,spicehtml5proxy}
were exceptions to this.

Change-Id: I689063af2a51b26c971336b6fdbe60d5695b3ebc
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Adds API Sample tests for os-instance_usage_audit_log extension.

Fixes Bug 1091752.
Partially implements bp nova-api-samples.

Change-Id: I2db83ac32283795ab0cbf254c6adbd352806b297
Keep flavor information in system_metadata

This patch copies the instance_type information into an
instance's system_metadata on creation. This provides a way
for us to recall the attributes used to create the instance
even after the type may have been deleted.

This adds db migration 153, which generates flavor information in
system_metadata for existing instances in the database, as well as
brings a test to make sure that works.

Change-Id: Iad9d640b44df5f3831de58f9e800bcf42bc0610e
erase outdated comment

the (0,0) is no longer only used by tests, the _modify_rules method uses
it; see commit 7d7fcf1d

Change-Id: I3fdee5677ee92ab80ab85202805a4e9bbfca2d20
Libvirt: Add support for live snapshots

blueprint libvirt-live-snapshots

Implements support for live snapshots when QEMU 1.3 and Libvirt
1.0.0 are available. This implementation may function with other
hypervisors, at which point _check_use_live_snapshots can be
adjusted accordingly.

At a high level, the process is as follows. First we create a
destination file for the snapshot. This file uses the same backing
file as the origin disk and is of the same virtual size. We do this
since the combination of blockRebase and "shallow" copies are the
only bug-free method available as of QEMU 1.3 (Vish has submitted
patches upstream). This process ultimately produces a CoW file,
representing only the current delta between the root disk and
backing file. The final step converts the CoW delta to a backless
image matching the format of the origin disk.

Flags: DocImpact
Change-Id: Icba53336556295722c3f8b7345e6cd09d8ccfed9
Fix get and update in FlavorExtraSpecs

Fixes bug 1105170
Added serializer test
Change-Id: I365a81e17319fa96d53b53eafb6326fff8bde288
Removed print stmts in test cases

Fixes bug 1108978

Change-Id: I5113e67bad1aaafdbaa0adc202cac97ba8d0dfdb
Merge "Keep flavor information in system_metadata"
Merge "Removed print stmts in test cases"
Merge "erase outdated comment"
Merge "Libvirt: Add support for live snapshots"
Merge "Adds API Sample tests for os-instance_usage_audit_log extension."
Merge "Fix authorized_keys file permissions"
Merge "Change ''' to """ in bin/nova-{novncproxy,spicehtml5proxy}"
Merge "Fix an error in affinity filters"