Cope better with out of sync bm data.

The baremetal hypervisor tracks references to instances which are
deleted asynchronously from the commit to the nova bm. As such, its a
normal but rare condition for a bare metal node to refer to a deleted
(and even garbage collected) nova instance. We should treat such
instances are deleted rather than erroring on any call through
list_instances(), permitting starting new instances and listing
instances to work - fixing bug: 1096722.

Pathologically, the database may suffer permanent skew, which means we
need a way to fix it (and thats tracked as a separate bug).

Change-Id: Ic21ff66b1fc0ad64bb5feff26291873b96d20e4e
Enhance wsgi to listen on ipv6 address

* Check if the hostname is ipv6 and set the family appropriately
* Add test case for wsgi.Server and service.WSGIService

Change-Id: I6edd467467fa3d623d62e146750b3a6c42d8833c
fix N402 for nova/db

fixes N402 (single line docstring must end in a period) for nova/db

Change-Id: I31779cbf83fa77c7cc382cce1667812f8cdecd61
fix N402 for nova/c*

fix N402 (single line docstring comments should end in a period)
for nova/cells, nova/compute, and nova/conductor

Change-Id: Ia2d4e64f4dde346a26aeba8cf10dd2000585caa0
fix N402 for rest of nova

fix N402 (single line docstrings should end in a period) for
rest of nova files

Change-Id: I57d0d9ab01345dd83e544e476d79d2c2ca68ee51
fix N402 for nova-manage

fix N402 (docstrings should end in a period) for nova-manage

Change-Id: Ia07796117fb9fce6c098a58aa86a6b47c6f7eda0
fix N402 on tools/

fix N402 (single line docstrings should end in a period)

Change-Id: I2086dfb33a6efeb6ef6edc6a326182b6deda2527
Move vpn_key_suffix into pipelib

Apart from one use in the EC2 API, vpn_key_suffix is only used in
pipelib.

blueprint: scope-config-opts
Change-Id: If90b9e77905161ea8d9263e8bae2c47ac5f79e91
Move service_down_time to nova.service

blueprint: scope-config-opts
Change-Id: I5fddb3768348c43a38b72dbf738b0c7fa2967691
Move memcached_servers opt into common.memorycache

Add a factory function to nova.common.memorycache which consolidates
the code to choose between real or fake memcache. This then means that
memcached_servers is used in just one place and we can move the config
option there.

blueprint: scope-config-opts
Change-Id: I67c191e0db58364eda4162b9e881606063509b9d
Move global service networking opts to new module

The my_ip, host and use_ipv6 options are used all over the codebase
and they're pretty well related to each other. Create a new netconf
module for them to live in.

There are now no options registered globally in nova.config!

blueprint: scope-config-opts
Change-Id: Ifde37839ae6f38e6bf99dff1e80b8e25fd68ed25
Remove unused opt import in scheduler.driver

Reported by Joe Gordon.

Change-Id: I8d48cad8f7f1548d20f0c3c0d8a4b11dcc351cf4
Remove unused baremetal PXE options

These options were introduced by commit a2f260f and appear to never to
have been used.

Change-Id: Idf1387fd453b7b1c392db764934c148dcbfc5d66
Merge "Cope better with out of sync bm data."
Fixed comment typo

Change-Id: I68dd463c7365b536396c6715efa6042b3f102670
Merge "fix N402 for nova/db"
Merge "fix N402 for nova/c*"
Merge "fix N402 for rest of nova"
Merge "fix N402 for nova-manage"
Merge "fix N402 on tools/"