vmwareapi: raise on get_console_output

Commit 2ce3461595a490c9a02272ee4a1ab1eb55c27f60 updated
get_console_output() in the vmwareapi driver to return a static string.
Since this isn't supported, I think the most correct thing to do here is
to raise NotImplementedError.  That will get properly propogated back
through the API.

The original change was concerned with getting a friendly message to the
user.  That should be done by the consumer of the API.  For example, if
Horizon got that as an error back, it could present a special message to
the user indicating that the operation is not supported for that
instance.

Change-Id: Ia17330b9084bf3e82219a0c143485174c3e8f6db
Initialize iptables rules on initialization of MetadataManager

To avoid multiple initialization of iptables rules if there are a few
workers for metadata service, perform iptables configuration in
__init__() of MetadataManager.

Change-Id: I674c04f973318f06cbb98693f0a884c824af8748
Closes-Bug: #1097999
Add boolean convertor to cells sync_instances API

cells sync_instances API contains "deleted" as the parameter, and the
parameter should be boolean. There are the other boolean parameters
such as "on_shared_storage" of evacuate API, they can be passed with
either boolean or string(e.g. "True").
For the consistency of whole Nova APIs, this patch adds boolean conv-
ertors to cells sync_instances API.

Change-Id: I4776539cfd723f302d10350757e1c341384c9ba2
Closes-Bug: #1261287
Fix race in unit tests, which can cause gate job to fail

The FakeLibvirtTests.test_openAuth_can_refuse_None_uri test changes the value
of the global variable allow_default_uri_connection. We need to clean up this
change up after running this test so as we don't effect other tests that
expect the value of this variable to be the default.

In particular this test was running before the
LibvirtNonblockingTestCase.test_tpool_execute_calls_libvirt which ran when
the value was changed causing this test to fail. This only occurred when we
the test_libvirt used the fake libvirt driver, which happens when the tests
run inside a virtualenv environment.

Change-Id: I68c30dffd05daae6c0d5fbc6ec005c0fab4f09be
Closes-Bug: 1258553
Enable remote debugging for nova

This patch added 2 command line parameters which are used to
connect to an external debugger such as pycharm or eclipse.
This feature is used when you want to connect to a nova
service via a debugger running on a different host.
To use it you start the nova service with  the following
command line parameters

--remote_debug-host <where the debugger is running>
--remote_debug-port <port> it's listening on>.

DocImpact
Closes-bug: #1251021
Change-Id: I6ede9bf0813eafbeb91d858c297d4c160aafceba
Handle InstanceUserDataMalformed in create server v2 api

The following patch adds missing support for handling
InstanceUserDataMalformed. In addition, it also adds test cases
in both the v2 and v3 api.

Change-Id: I1b474318248f64eed994f67c6d91db38d5579a63
Closes-bug: #1257146
Revert graceful shutdown patch

aka: "Stop, Rescue, and Delete should give guest a chance to shutdown"

This reverts commit b32d01d44ca5711c96d192df51bf7acd34f52556.

Unfortunately this patch had an unintended side effect that we didn't
notice until after it was merged.  It adds about 25 minutes to tempest
runs, which isn't really acceptable in the gate.  We need to revert this
until we can sort that out.

Change-Id: Ibdd5c86e60b5ede4ec1a38d9efa7c94d60de1720
Remove smoketests

We don't use them anymore. Also remove boto_v6 since only smoketests
have was using it.

Change-Id: Iee206fd4ba6cd502ded794f2de302062604d4186
Merge "Normalize the weights instead of using raw values"
Merge "VMware: fix bug when more than one datacenter exists"
Merge "Make Serializer/Conductor able to backlevel objects"
Merge "Make it possible to override test timeout value"
Merge "Give migrations tests more time to run"
Merge "Revert graceful shutdown patch"
Merge "Fix race in unit tests, which can cause gate job to fail"
Merge "api: handle NotImplementedError for console output"
Merge "List NotImplementedError as client exception"
Merge "hyperv: remove get_console_output method"
Merge "vmwareapi: raise on get_console_output"
Fixes ConfigDrive bug on Windows

Files must be written specifying "wb" instead of "w"
to support binary files on both Windows and Linux.

Change-Id: I069845136df4a11b54c931a71575ca3efb9bc6d0
Closes-Bug: #1261585