Clean up LOG import in floating_ips_bulk v2 api

Remove useless code of LOG in floating_ips_bulk.py

Change-Id: I66f20a23d75b2c9c2e7cc2425f015a95fefb62d8
Add unit test for add_floating_ip API

Currently, add_floating_ip API has no unit test for body's key test,
this patch adds the test cases.

Change-Id: I32a32514c68fcd8717011d37724a20993aa8ed20
ironic: Clean LOG usage

*Remove unused LOG import
*Use nova.i18n instead of oslo-incubator code

Change-Id: I2305787b72ae6843abec8a4ad6d3f51bd8d35b3d
Remove all redundant `setUp` methods.

It would be better if we remove all redundant `setUp` methods
and should be added as needed.

Change-Id: If6072894f1ced83c8bcf7fd44f8b67ea17a847f1
Update ironic states and documentation

This adds doc strings for the various states, and updates the documentation
header to reflect the current state of states.

In addition, this removes the following unused states:
  - INIT
  - BUILDING
  - SUSPEND

Change-Id: I917f1819066520a81cfaac1c9e884a1bf359d59c
Closes-Bug: #1370184
Don't list entire module autoindex on docs index

Don't list entire api/autoindex under Developer Docs,  we already have a
model index link at the  bottom of the page, showing the entire
autoindex on the home page is makes the page overwhelming.

Change-Id: I25c5b50412881b55aa745ce3da2c22466e879fcf
move integrated api client to requests library

The integrated api client previously did the HTTPConnection /
HTTPSConnection url parsing dance. In python 2.x HTTPSConnection
doesn't care about SSL certs at all. While not actually an issue for
these tests, it does mean we keep around an example in the code that
uses HTTPSConnection, which will prevent us from creating a hacking
rule to keep those out once the other 4 actual security issues with
HTTPSConnection are removed.

Change-Id: Idd7d5a055600dda663f9c56b39883510f8688b12
Related-Bug: #1188189
Adds openSUSE support for developer documentation

Support for openSUSE documentation is updated in this patch.

Change-Id: Id238900382e574836f7832e6907a3e51d62f859d
Typo in exception name - CellsUpdateProhibited

Change-Id: Ia96cf5c2ac1ce36c6499dc85b2884e68023c6ec3
Remove local version of generate_request_id

It's part of oslo context module, so let's use it instead.

Change-Id: I5227a99abc711c468a7178ee19332657004f4661
console: introduce a new exception InvalidToken

Introduces a new exception InvalidToken used when an effectively
invalid token has be sent to a console proxy.
Updates the code to take advantage of this new one.

Change-Id: I9eb18541847e0ce22d5a449268876043ed8eb3a1
console: fix bug when invalid connection info

Fixes bug when checking response returned from the server during
a connection with internal_access_path, if the response's status
is not 200 we should raise the exception.

Closes-Bug: #1375379
Change-Id: Icafcad52cb4e6d9ec4d270e93b89cf13df6b8f61
remove scary error message in tox

Found an interesting cantrip in the devstack tox.ini that gets rid of
the scary can't find bash error message at the beginning of test
runs. Reducing non error looking error things make it easier to see
real errors.

Change-Id: I4e1b826626063bf8d5a15531f5768f9ce0eea6a5
Merge "remove scary error message in tox"
libvirt: convert utils test case to avoid DB usage

The LibvirtUtilsTestCase test case has no need to access the
database. It is also located in the wrong file, as mosts of
the tests for nova.virt.libvirt.utils are in test_utils.py
instead of test_driver.py. Move all the tests into test_utils.py
which already uses NoDBTestCase. This improve performance from
2s to ~0.2s

Partial-bug: #1369516
Change-Id: Id5db3146c524d0208266f754493226856389a722
libvirt: split firewall tests out into test_firewall.py

The test_driver.py test module had a couple of classes which
were testing functionality from firewall.py. Since test_driver.py
is a really huge file, it is better for the firewall class tests
to live in a separate test_firewall.py module

Related-bug: #1369516
Change-Id: Ibb347780b7b79521ce87b08023771381726b0d53
libvirt: convert HostStateTestCase to avoid DB usage

The HostStateTestCase test case does not do anything DB
related. Convert it to NoDBTestCase to avoid DB setup penalty.
This improves perf from 1.7s to 0.2s

Partial-bug: #1369516
Change-Id: I0b1030b8a4e8c32f24c5b3a08ff86fa5bad06937
Merge "move integrated api client to requests library"
Ensure files are closed promptly when generating a key pair

On Python's without reference counting (e.g. PyPy) the current code will keep
the file descriptors open for an arbitrary length of time, until the GC runs.

Change-Id: Idf81df95894fed1d13a68705ef490d5a29367ff1
Merge "Remove local version of generate_request_id"