Correct InvalidAggregateAction reason for Xen

Currently the xenapi will report InvalidAggregateAction
when add aggreate under some conditions. But the reason
didn't use the pre-defined reason list.

Change-Id: I2cd65f26097f154f1a4f794916c74cd1730ae142
Use hypervisor hostname for compute trust level

In XenAPI, service hostname and compute node hostname is different
because the Nova compute service may run in a separated VM and is
different with the hostname of the compute node.

The remote attestation service use the compute node's hostname because
it's the compute node that will run the servers.

Closes-Bug: #1223452

Change-Id: I9a7ce74d595531196804615a8947e253b0bd3f1a
Move check_image_exists out of try in _inject_data

Move check_image_exists out of try in _inject_data and some typo fixes

Change-Id: I9a6de0f993222c1921a0fc4d13ec14d875af2ed1
Make nova-api use quotas object for reservations

This makes nova-api use the quotas object for reservations;
more work needs to be done to convert the rest.

Partial-Bug: #1131395
Change-Id: I3e4d233278966c79019235ac8836a825c46c27ea
Enable terminate for EC2 InstanceInitiatedShutdownBehavior

The EC2 API supports an instance attribute called
InstanceInitiatedShutdownBehavior (IISB) which can be set to
'stop' or 'terminate' (default: 'stop').  When the instance
initiates its own shutdown, this determines whether or not
the instance hangs around in the Shutoff state or is
terminated by the system.

In nova, this is handled by the shutdown_terminate boolean.
IISB = stop      => shutdown_terminate = False
IISB = terminate => shutdown_terminate = True

sync_instance_power_state now invokes compute_api.delete if
shutdown_terminate = True and we detect the instance power state
has gone from Running to Shutdown.

Closes-Bug: #1131395
Change-Id: I284ae7a84384f19131703c4ad44e0e5f5b03f5d4
Merge "Make nova-api use quotas object for reservations"
Merge "Enable terminate for EC2 InstanceInitiatedShutdownBehavior"
Merge "Use hypervisor hostname for compute trust level"
Merge "Move check_image_exists out of try in _inject_data"
Merge "Correct InvalidAggregateAction reason for Xen"