xenapi: rpmbuild fixes

Fixes bug 1157695

This fix removes the parted dependency from the rpm specification file,
and also gets rid of the assumption, that the build-rpm.sh is executed
at a specific directory.

Change-Id: I1dcf9096a783a88bc09af0f4f4d5541a7e505748
Fixes argument order of quantumv2.api.get_instance_nw_info

Fixes bug #1159042

Change-Id: I04136707cdf2ca716dabd92aa7a471c291a3b4eb
Fix /servers/<instance-id>os-security-groups using quantum

When using quantum security groups:
	GET /servers/<instance-id>/os-security-groups
aways returns an empty list. This patch adds a call to
get_instance_security_groups in the api implemenation of security groups.
This method passes both the instance_id and instance_uuid so the api layer
does not need to be aware of which underlying implementation is being used.
The instance_id is needed when using nova and when using quantum the
instance_uuid is needed so both need to be passed.

Fixes bug 1159793

Change-Id: I372adcf93c55d4e6469ef08429ec260d3387f9fe
set up FakeLogger for root logger.

A recent change in openstack.common.log was made such that it
initialized the root logger instead of the project specific logger,
'nova' in this case.  Update the unit tests for this to fix the problem
where unit tests spam the console with log output.

Fix bug 1159978.

Change-Id: Id64a5b078b4024c3269086ed5d64940b3a38ddfa
Make more readable error msg on quantum client authentication failure

Fixes bug 1052495

Change-Id: Ia53d1f1db2b2b720509f29ae70b419f6cfabae17
Merge "xenapi: rpmbuild fixes"
Merge "Fixes argument order of quantumv2.api.get_instance_nw_info"
Merge "set up FakeLogger for root logger."
Merge "Make more readable error msg on quantum client authentication failure"
Merge "Fix /servers/<instance-id>os-security-groups using quantum"
Implements Scheduled Images Extension

The extension creates a new resource under servers/id to get, create
and delete it's scheduled image.

On the servers list and detail calls, it adds the system metadata
related to scheduled image service on the server dict in the response
object. It also enables filtering by the system metadata added by the
scheduled images service and if it exists, adds it on the servers
dictonaries.

bp https://blueprints.launchpad.net/nova/+spec/scheduled-images
addresses chris' comments
test cleanup
metadata test cleanup
removing prints and comments