Delete InstanceSystemMetadata on instance deletion

Thanks to no-db-compute only pre-delete instance data is used in
notifications. So now we can go back to deleting InstanceSystemMetadata
when an instance is deleted.

Fixes bug 1153827

Change-Id: Ic66b998cde2a15a24f302f08c34753a8b57da73d
Add an index to compute_node_stats

This will improve the performance of scheduler lookups of compute nodes
and their associated stats.

bug 1177487

Change-Id: I0e04849543916e874ea0ddfc76c3d70ff71c09d0
Sync oslo-incubator print statement changes

Just changes openstack.common to use the new print statements.

This is in preparation for another sync coming shortly for the
scheduler library.

Change-Id: I17a86ef87f3253d6bb756cbd40a3ff5df9be23ff
libvirt: ignore NOSTATE in resume_state_on_host_boot() method.

Occasionally, libvirt would get NOSTATE from hypervisor as instance
state. Thus if we don't ignore instances in NOSTATE in
resume_state_on_host_boot() method, we would mistakenly reboot such
instances when we restart nova-compute service or on host boot. This
patch fixes this by adding NOSTATE into ignored_states.

Bug 1176897

Change-Id: I651cb043d7f97fde29b2a62e6ead8222062f01f7
Remove referances to LegacyFormatter in example logging.conf.

A recent change (Ibe41afc6e9d7b432453785819821b3c8f0078613), removed
nova.openstack.common.log.LegacyFormatter, and replaced it with
ContextFormatter.

This change updates the example logging config file to reflect this
change, as any reference to the now-removed LegacyFormatter causes
nova services to fail to start.

Change-Id: I55a984ed7ea12c1dde49c4eb13d5b4f47471bf95
Imported Translations from Transifex

Change-Id: I870caf5258a16e00134d22d1e6757b1e3deab41d
Remove security_group_handler

Now that nova's security groups are more plugable and decoupled from the
database the security_group_handler code is not very useful so this patch
removes it.

A little info about the security_group_handler:
The security_group_handle code was added to provide a hook into nova security
groups so that one could get security group add/delete/update notification
and proxy them somewhere else (i.e quantum). Trying to actually using this
method opens one up to several transactional issues because in the current
implemenation the security group is commited to the nova database before
security_group_handler is called.

Implements blueprint: remove-security-group-handler

Change-Id: I45047fe8dbb81555505e03309838910113080c37
Remove random print statements

Noticed a random print statement in the code and then grep around for the rest.
Might as well remove these.

Change-Id: Ieb2d72cf55cbf077c2e824d430707211d1f87b8e
Merge "Delete InstanceSystemMetadata on instance deletion"
Merge "Sync oslo-incubator print statement changes"
Transition from openstack.common.setup to pbr.

Declarative approach to packaging, obviates the need for copying files.
Also, removes the need for setup.py to import files from the nova
module.

./run_tests.sh now ensure's that nova.egg-info/entry_points.txt is up to
date before running tests.

Change-Id: I7b7a18e065a62491ade54fbed5d8400db1d4e6c7
Merge "Imported Translations from Transifex"
Merge "Remove random print statements"
Nova evacuate failed when VM is in SHUTOFF status

When the VM is in SHUTOFF status and the original compute host is
down, issue the "nova evacuate" command to rebuild the VM on
another host, it is failed due to a type error: string indices
must be integers.

Fix bug 1176773
Change-Id: I76ebce6882198365717167f29a484e4ec994db0c
Merge "Remove security_group_handler"
Merge "Nova evacuate failed when VM is in SHUTOFF status"
Imported Translations from Transifex

Change-Id: Ic42793b5844219cdc2dfed82a5e3b8aad0d88136
Merge "Add an index to compute_node_stats"
Merge "libvirt: ignore NOSTATE in resume_state_on_host_boot() method."
Merge "Transition from openstack.common.setup to pbr."