Completes the power_state mapping from compute driver and manager

Fixes bug 1166906

Added extra states to constants module together with test
cases checking every state map.

Also added some debug statements under blockdev and operator
to be able to spot obvious issues with images at deploy time.

Change-Id: I77ebb4d417a3875b761f5fb220d9274b79611ff0
Allow listing fixed_ips for a given compute host.

nova.db.fixed_ip_get_all_by_instance_host was removed in commit
bb867ce3948ddc23cf928ca3dda100a1a977896a, but was still used in
nova-manage. This patch works around the removal of the foreign
key that led to this method being removed.

Resolves bug 1163660.

Change-Id: Ieccd37c752e245558827615c098604d11ad3d945
Map internal S3 image state to EC2 API values

Fixes the EC2 API so it maps internal S3 image state values to
ones defined by the EC2 API rather than returning the internally
used values.

Fixes bug #1074904

Change-Id: Iabbda0e5fcbe4d572c76367c6f98d4bece050e73
Fix fixed_ip_count_by_project in DB API

Fix "by project" filtering in fixed_ip_count_by_project
method of SQLAlchemy DB API implementation.

Fixes: bug #1171161
Change-Id: Id408aba6db4dd953945feba36d17b056266ca4b7
Add an rpc API common to all services.

This patch adds an rpc API that is exposed by all services.  The methods
in this API exist in their own namespace and are versioned independently
of the main API for the service.

The first method for this API is a simple ping() method.  This method
exists in the conductor rpc API already, and could be more generally
useful.  Other methods will be added in later patches.

The base rpc API will be exposed from all services automatically unless
they override the create_rpc_dispatcher method in the base manager
class.  All services need to pass a service_name into the base manager
constructor.  Some services already did this, but now it's needed for
all of them.

Implements blueprint base-rpc-api.

Change-Id: I02ab1970578bc53ba26461b533d06d1055c2d88e
Deprecate conductor ping method.

Deprecate the ping() method of the conductor API in favor of the one
that comes with the base rpc API.

Part of blueprint base-rpc-api.

Change-Id: Iea46b7f6ce70f4919d0121433af2fd64d6346941
Fix powervm driver resize instance error

During a resize operation in powervm, the logical volume
of the instance will be copied and compressed to a file.
Current logic decompresses it twice before copying this file
to a new volume which will cause the new instance to not
boot properly.

Fixes bug #1169848

Change-Id: I91f536919511aafbf7dbe14abbee48dbceb189b2
Move get_backdoor_port to base rpc API.

Each service implemented the get_backdoor_port method individually.  This
patch moves the implementation of this method to the base rpc API
instead, and removes the now unnecessary code from each of the services.
The server side method was left on all of the managers for rpc backwards
copmatibility.  They can be removed on the next major rpc version bump
of those APIs.

Part of blueprint base-rpc-api.

Change-Id: Ia8838fafd80eb86a1c2d66f5e97370042d8d8c53
Fix bug in db.instance_type_destroy

Fix db.instance_type_destroy()
Corresponding instance_type_projects weren't deleted

Fix db.instance_type_acces_get_by_flavor_id method
Return [] list if there is no such instance_type
instead of AttributeError

Fixes bug 1172153

Change-Id: Ib1a9a23aa6e26711c198bf4a5059797044c44426
Merge "Fix powervm driver resize instance error"
Merge "Add an rpc API common to all services."
Merge "Deprecate conductor ping method."
Merge "Move get_backdoor_port to base rpc API."
Merge "Fix bug in db.instance_type_destroy"
Wrong proxy port in nova.conf for Spice proxy

If we look at nova/cmd/spicehtml5proxy.py, we use 6082 port for Spice proxy.

In nova.conf, the default port for html5proxy_base_url is 6080 which fails console
service.

Fix bug #1172957

Change-Id: I52ca37f76e7a6abd085b079ae42e7914cb619ad5
Imported Translations from Transifex

Change-Id: I5a7d1d82cea596426c5a5caeaa5d4a0389e833db
Merge "Allow listing fixed_ips for a given compute host."
Merge "Imported Translations from Transifex"
Merge "Wrong proxy port in nova.conf for Spice proxy"
set bdm['volume_id'] to None rather than delete it

bdm is a sqlalchemy model object, it doesn't make sense to delete
an attribute, so just set it to None

Fix bug 1166160

Change-Id: I41017af602f0c8369d442b4a6936e1a829d2f9a9