Clean up imports

Remove a bunch of unused imports and grouped/ordered the existing
ones better.

Fixes OS-226

Change-Id: I2f9f14ef70a03f9d48ab371be1f81dbe53b7e38f
Trivial update to .gitreview to reflect correct branch

Change-Id: I54ff5b59865508634d54a726a7db92397a78b80b
Sync pip-requires with OpenStack Havana release (trivial)

Update the pip-requires to reflect the latest version in nova
Havana release.

Change-Id: I035b8a243c232de568a60d00b9a8050a966579a8
Merge "Sync pip-requires with OpenStack Havana release (trivial)" into havana/1.4
Merge branch 'havana/1.4' into havana/1.5

Change-Id: I55c4d15373fffcaf46dea8f1c2e004a6645d2438
Merge branch 'grizzly/1.5' into havana/1.5

Conflicts:
	cobalt/nova/api.py
	cobalt/nova/extension/manager.py

Change-Id: I561dba87b349a1118d54856d1450e6421ef975d5
trivial: private tox venv for cobalt branch

Since pip-requires and test-requires change between OpenStack
releases, tox can't use the same venv for different cobalt branches.
Thus when you switch between cobalt branches and run tests using tox,
tox has to rebuild the venv.

Change-Id: I2a42688709619f137a6290781a4ae273b2ed530a
removed support for vms-2.6 (OS-240)

Change-Id: Icea152458d620b19186f3148e9d966fd91f15085
Merge 'trivial: private tox venv for cobalt branch' from grizzly/1.5

Change-Id: Id25fd83bb8b34e35b7ddaa88332c367d41dc0c45
Merge 'removed support for vms-2.6 (OS-240)' from grizzly/1.5

Change-Id: Ie4a9e5eacbc5a41bcf5b340de31ef21d4f58a646
OS-240, OS-242: patch threading and drop vms-2.6

In Havana, nova's code uses threading, thus requiring it to be
monkeypatched.  Unfortunately, some of vms's python code doesn't work
if threading is monkeypatched. In particular, blessing doesn't work
with monkeypatched threading since it creates threads. Fortunately,
starting with vms-2.7, we use vmsctl to bless, so we can monkeypatch
threading and make nova happy.

To deal with this problem, we've decided to drop vms-2.6 support
entirely and monkeypatch threading. We could have limited this patch
to Havana+, but, in the interest of keeping cobalt versions in sync
with respect to vms compatibility, we've decided to drop vms-2.6
support across the board for cobalt 1.4.

This patch is minimal with repsect to dropping vms-2.6. In upstream
branches (1.5), we remove all of the vms-2.6 related code.

Change-Id: I995231997d513199edb2c97a97ca66508cc2d4c5
Merge 'OS-240, OS-242: patch threading and drop vms-2.6' from grizzly/1.4

Since vms-2.6 support has already been dropped in grizzly/1.5, the
effect of this merge is to just fix OS-242 by patching threading.

Conflicts:
    cobalt/nova/extension/vmsapi.py

Change-Id: I97a513a29914bfd523f5885686a442360deedcba
Merge 'OS-240, OS-242: patch threading and drop vms-2.6' from grizzly/1.4

Change-Id: I932a6d19777fdae56cc97758dce458f6bfca2deb
Merge 'OS-240, OS-242: patch threading and drop vms-2.6' from havana/1.4

Since vms-2.6 support has already been dropped in havana/1.5, the
effect of this merge is to just fix OS-242 by patching threading.

Conflicts:
	cobalt/nova/extension/vmsapi.py
	cobalt/tests/test_vmsapi.py

Change-Id: Icec9aeb2b40b8f18ee596fcb1ced1d39b211ca76
Merge 'OS-240, OS-242: patch threading and drop vms-2.6' from grizzly/1.5

Simply syncing havana/1.5 with grizzly/1.5. No changes introduced.

Change-Id: I25b0ed2f6f9d57ea57a02730bf7f678404bdb43b
Adding compatibility support for the Havana dashboard

fixes OS-243

Updating the cobalt-horizon plugin so that it is compatible with
the Havana dashboard.

Change-Id: Ice49058ff9aa8f49e1af11b0065729ac6b8ee325
Add nova command 'get-policy'.

Returns the policy applied to a launched instance by vmspolicyd.
Relates to OS-182 and GC-92.

Change-Id: I476634afb48ee2634a6794250a13ce89ae0f60a6
OS-246: create valid instance record

We were creating instance database records with
instance['info_cache']['network_info'] == None, then a moment later,
setting the network_info. If you ran a 'nova list' in between these
transactions, nova-api would raise an exception. This patch fixes the
problem by creating the database record with a single transaction.

Change-Id: I75854f17de82b4e6df8f8e7f70673f76c94cf4f6
trivial: dump SIGUSR2 stacks to log, not stderr

Change-Id: I036f8a4cb21e03a8c25eb5d761d724682b2f521c
OS-248: no local db calls from cobalt-compute

This patch forbids local db calls from cobalt-compute if conductor is being
used.

Change-Id: I2920e47abe53b1abd07389b76686f45047cadc20