handles empty dhcp_domain with hostname in metadata

Fixes bug 1064713.

Currently hostname in metadata is created by concatenating the
instance hostname with the dhcp_domain. When dhcp_domain is empty,
it results in a hostname with a trailing dot.

Change-Id: I52a50ff7f62c0a0dc900ddf707cc3dddce62bcb3
Allow local rbd user and secret_uuid configuration

By default, the rbd_user and rbd_secret_uuid are specified in the
nova-volume/cinder configuration and passed to nova-compute when
volumes are attached to instances.

This change allows these values to be specified locally in
nova-compute which means access control to RADOS devices in ceph
can be managed independently from nova-volume/cinder with no
requirement for consistent uuid's for libvirt secrets.

Fixes bug 1065883.

Change-Id: I9f07d040ae267bfbe8f794a5d22d327106314cc6
Do not call directly vmops.attach_volume

Relates to blueprint xenapi-volume-drivers

Driver already have an attach_volume function call which calls
volumeops.attach_volume. This change replaces the direct
volumeops.attach_volume calls with driver.attach_volume, so that
driver.attach_volume will be the entry point for attaching the volume.

Change-Id: I86e7c7df3d37076d7b7945f3504c7f305dce6820
update kwargs with args in wrap_instance_fault

fix bug: 1067254

If argument 'instance' is in args rather than kwargs,
we will get a KeyError exception which will cover up
the real exception. So, we update kwargs with the
values from args first. then, we can get 'instance'
from kwargs easily.

Change-Id: Ife89f9e9629e4b581d96289434e9ececced17915
Create Flavors without Optional Arguments

fixes Bug #1056910

Allows the user to create a flavor without optional arguments.
The variable, ephemeral, is not currently set to a default value.
This none type value causes exceptions in subsequent code, which
occurs when specifying only mandatory parameters.

Change-Id: Ic440136b000dc296bef3bb6f8b0856ff5e7e4e79
Deallocate network if instance is deleted in spawn

If the instance is deleted while the virt driver is spawning, an
InstanceNotFound exception is raised and caught in compute to prevent it
from being rescheduled. This also deallocates the network to prevent
leaking interfaces/mac/ips.

* Fixes LP1068716

Change-Id: I991f5956facf7b105faea137d4a5b48897e68ae6
Avoid leaking BDMs for deleted instances.

Fixes bug 1069099

Previously when an instance was deleted, the corresponding entries
in the block device mappings table were not also marked as deleted.

Change-Id: I0184eb2f02a9ed363019c585efffdfdb95f0bb43
Imported Translations from Transifex

Change-Id: Ic9f29d3a3ba9b046b868bf5986f8bf08fb9d7fe6
Merge "Avoid leaking BDMs for deleted instances."
Merge "Do not call directly vmops.attach_volume"
Merge "handles empty dhcp_domain with hostname in metadata"
Merge "Allow local rbd user and secret_uuid configuration"
Merge branch 'master' of https://github.com/openstack/nova
Add meaningful server diagnostic information to fake hypervisor

Previously the fake hypervisor didn't returned a fake information similar to
the real output so this patch add this sample fake information.

Also removed a duplicated check on the tests

Change-Id: Iab72a867e6e2606beb15db17701375f3c8f61a79
Merge "Deallocate network if instance is deleted in spawn"
Merge "Create Flavors without Optional Arguments"
Merge "Add meaningful server diagnostic information to fake hypervisor"
remove _set_resource_tracker
Merge branch 'master' of https://github.com/openstack/nova