RestClient to target specific services in Keystone catalog

Previously, the rest client had no notion of specific services
other than nova, since that is all the current tests cover.  It
also assumed the first row in the keystone.services was the service
that provides the nova endpoint.  This change allows the RestClient
to target specific services in the keystone catalog by name.  Current
nova services are updated to find the nova endpoint.  Future services
that hit glance or swift directly can make use of this as well.

Cleanup pep8 in exceptions.py

Fixes bug 911528

Change-Id: I4d885d96a1d360021b4c8f6aa562f863c6df3608
Create a Tempest conf from a Devstack env

Adds a new script in tempest/tools/conf_from_devstack
that constructs a Tempest configuration file based on
the values in a devstack directory and its localrc
file.

Change-Id: I44626b0e5a10aaae22f03176cf21b6835e9f2500
Fixes LP Bug #912596 - image_ref_alt not found

* Adds skippers to tempest to enable skipping tests
  that don't meet certain conditions
* Adds a check in test_list_servers.ServerDetailsTest.setUpClass
  that checks if the image with ID image_ref_alt actually exists
  and if it does not, marks a specific test as skipped.

This is what the resulting test run looks like after adding
the skip:

jpipes@librebox:~/repos/tempest$ nosetests -sv tempest.tests.test_list_servers
Return the full details of a single server ... ok
Filter the detailed list of servers by flavor ... ok
Filter the detailed list of servers by image ... SKIP: Only one image found
Filter the detailed list of servers by server name ... ok
Filter the detailed list of servers by server status ... ok
Return a detailed list of all servers ... ok

----------------------------------------------------------------------
Ran 6 tests in 108.909s

OK (SKIP=1)

Change-Id: Ia6178ca8201acc03566b785ec096eda51d0425c9
Merge "Create a Tempest conf from a Devstack env"
Patch4 corrected typo - for server. not changing try except block
Patch3 removed wait time
Patch 2. Incorporated Jay's review comments
fix for bug903970 create image from deleted server. Verified Pep8 formats. Verified that the test run fine . No image created

Change-Id: I48ef0f66cf7c10817326c60993690e9aa968bbbe
Merge "RestClient to target specific services in Keystone catalog"
LP Bug#914770 - NameError in test_images

Thanks to bcwaldon for making me look silly :)

Now checks the location header returned from createImage
call in the case when the image is erroneously created
and should then be deleted...

Change-Id: Iec303355ccb7d19fd4667462b82fc8e95bdafde7
Minor style related change in strings
Changed indentation to 4 space width
Added nonexistant tests for server metadata operations

Change-Id: I830c2a03b006f39b62504a13c1b611c8fe55722f
Removed an invalid test
Added nonexistant tests for list images operations

Change-Id: I10a8432e9a9b7e6d142693834b3c7f01b865c625
Merge "Minor style related change in strings Changed indentation to 4 space width Added nonexistant tests for server metadata operations"
Fix for bug917490
* Adds a wait for the image to become active before deleting it

Change-Id: I56c05dc8239a284210eaafb0ead14171abc263a8
incorporated Jay's suggestion
bug915695 security groups client - to list

Change-Id: I7f9ab59557c8cb20e7e67468925e4666dd981541
import error on security groups clientfix 917867

Change-Id: I93d75cfb613c83764ad60ee9badb0053b7e4a2f9
Merge "Fix for bug917490 * Adds a wait for the image to become active before deleting it"
Rework exceptions in Tempest

* Add base exception class similar to other OS projects
* Catch certain HTTP errors and raise exceptions in base
  client classes
* Fixes LP Bug#899701 by adding tearDownClass() method
  to the test_list_images.ListImagesTest class to destroy
  images and instances the test case creates

Change-Id: I0f616813539b31da27e5106a59c2ca3765b1919f
Fixes LP Bug#903969 - Image metadata boundary tests

Adds boundary tests for image metadata in Compute API

Changed the indentation to 4 space width.
Added nonexistant tests for image metadata operations

Change-Id: Ife6324f7eb55ef71315a9775993c431849ad2d45
Don't set multiple images if image_ref_alt is the same as image_ref. Fix typo
in skip_unless_addr.

Change-Id: Ib106fc4a8ac895f44c903aa3ba6f66765bd5f121
Adds Images API tests

* Adds new images API tests in tempest/tests/images
* Adds tempest.openstack.ServiceManager class to deal with non-Compute API
  clients
* Adds an [image] section to the configuration file and manager
  that deals with Image API stuff
* Updates the tools/conf_from_devstack script to write an image
  section to the generated tempest.conf

This is all in preparation for removing the functional integration
tests from Glance and putting them in Tempest...

Change-Id: I6caf50e5cab97794204472151acc88fcdd0fc224
Added Keypair extension (os-keypairs) client and tests LP#900139

Change-Id: I34c7e9aa6a1796b8d4c3ac9b3b69438796752866
KeyPairsClient: Configure client to query nova service from Keystone catalog

Change-Id: Ibf2fe805a92d178de0792bb42c2cd3df721c625e