Merge "Optimize some of compute/manager's periodic tasks' DB queries"
Don't join metadata twice in instance_get_all()

Change-Id: I2952243b093cda3d397f239ebe0db19246443a00
Merge "Imported Translations from Transifex"
Merge "Fix issues with check_instance_shared_storage."
baremetal: Change node api related to prov_mac_address

Now prov_mac_address is going to be dropped from bm_nodes table. This patch
adjust api to the change.

A user is expected to create a node without specifying prov_mac_address, then add
an interface having the address to the node. However, for compatibility, a user
still can specify prov_mac_address when create a node. In this case, an interface
having prov_mac_address is automatically added to the node.

In response body of create, index and show, "prov_mac_address" field no longer
exists since they are showed as a member of "interfaces" fileld.

DocImpact

Change-Id: I6653829364b0a641442d45e766493180d6f2a880
Remove unnecessary db call in scheduler driver live-migration code

When the scheduler selects a destination host for live-migration, a db
call is made to get instance_type info for the instance. To avoid the
db call, this should instead call instance_types.extract_instance_type
on the instance.

Resolves bug 1167811.

Change-Id: I2025fdf1d34e70158360ff71e8545c8e3bc6bc80
Merge "Remove "undefined name" pyflake errors"
Fix bug in os-availability-zone extension.

Fixes bug 1167956.
The call to get the list of availability zones (GET V2/os-availability-zone)
doesn't hide internal availability zone if all services in that zone are
disabled.

Change-Id: I2c49ad68c2ee5ddea0536dfa770f649fbb392b63
Merge "baremetal: Change node api related to prov_mac_address"
Merge "Remove multi scheduler."
Imported Translations from Transifex

Change-Id: I662a2904bc8abff0ec4f24edae6194f04cf95738
Allow for the power state interval to be configured.

The power state interval right now is hard coded to 600 seconds.
In order to allow deployers to change this timing (and determine)
the side-effects of that change it is useful to allow this value
to be configured instead of static.

DocImpact

Change-Id: I9baf34f9b132dc20fcc096f86fa0e5794fc06312
Merge "Remove unnecessary db call in scheduler driver live-migration code"
Merge "Imported Translations from Transifex"
Cleans up orphan compute_nodes not cleaned up by compute manager

Fixes bug 1161193

Orphan compute_node records can cause the scheduler to pick
compute nodes that are not handled by driver anymore. This
can happen if you rename your hypervisor_hostname or in a
multi-node support where driver does not support a node
anymore for whatever reason (hardare failure for example).

Also, removing resource tracker logic to delete nodes since
resource trackers built in compute manager will never accept
nodes not reported by driver

Change-Id: I742d2e81ec0592d952ee5736aa8dce1e5598ef80
Add an extension to show the mac address of a ip in server(s)

This extension adds the OS-EXT-IPS-MAC:mac_addr param
so that users can associate the mac address to the ip of the server in
one API call.

Implement bp: os-ext-ips-mac-api-extension
DocImpact

Change-Id: I01d0b3aa804b5218853a4bb568c85e31b87d04e4
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Merge "Allow for the power state interval to be configured."
Make compute/manager use conductor for unrescue()

The compute_api.unrescue() call makes direct database queries, which means
it can't be called directly from compute manager. This patch adds support
in conductor for proxying this request and makes compute manager utilize
it.

Fixes bug 1167619

Change-Id: I158c64cabdfe436462f5669047fb930819a13c50
Merge "Define LOG globally in baremetal_deploy_helper"
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