Merge duplicate code for network quotas tests

There is some duplicate code between test_quotas and test_lbaas_quotas.
To clearify the difference between them and the purpose, this patch merges
most code of them into a single internal method.

Change-Id: I05a9c92d052ea2f99694a588c2a3cebbde625166
Read template's expected value orchest test Part-1

In tests under /tempest/api/orchestration/, resources gets
created based on parameters defined in template (yaml, json).
But while verification of output, expected values are hard coded
in tests. Expected values should be read from template only.

This patch adds the helper to load the values from template
(yaml, json) and apply the changes in
tempest/api/orchestration/test_volumes.py

This patch also rename the existing load_template() function
as it read the template and newly added function load the template
This rename the load_template() to read_template in
tempest/api/orchestration/base.py and corresponding calling files.

Partial-Bug: #1327919

Change-Id: Ie0817e20cb7bacdf33b16fb222a7ee9c91109fc8
Avoid conflicts with other tests instances

Avoid conflicts with other instances that exist, for example when
weren't deleted in other tests. Just filter out them in test that
check instances amount by server IDs

Closes-Bug: #1340382
Change-Id: I51494c9f47745810583f682caadcd8772805733a
Re-enable 'check_trust_roles'

Re-enable the 'check_trust_roles' method. This can be
merged after the patches for change id
I13ce159cbe9739d4bf5d321fc4bd069245f32734 are merged
(master and stable/icehouse for Keystone).

This changeset updates the new location for the check_trust_role
HTTP status validation (in services/identity/v3/json/identity_client.py).
Previously this was located in identity/admin/v3/test_trusts.py.

Commented code indicating the above location change occurred has been
removed.

Change-Id: If1b7f18d7a357f4b3a4b478e300a17f2cc4a6159
Closes-Bug: #1334368
Create test images via Glance instead of Nova

When possible, create blank test images in Glance instead of relying on
snapshotting, which may not be supported on the hypervisors under test.

Change-Id: I56f79b0ae718b2dcc43853bed3a792f15eccc313
Removed deprecated command from glance cli

Member-add is no longer a command in python-glanceclient and
should be removed since it has been deprecated. We are removing
all the deprecated glance client commands in this patch 
https://review.openstack.org/#/c/98862/.

Change-Id: I69f7ca5ca0e1d9505334f081b7de1f43e6b2f86c
Add base class for all credential providers

Defines the base interface of all credential providers. User of this
will be the existing isolated_cread provider and the a new user_list
provider.

Change-Id: If382b549428c15ebb2ed850be9e0405e84226f6c
Partially-implements: bp/test-accounts
Fix a few bugs when running with -u

The default conf file locator needed to reference the file another level up.

The config file set/write did not work if more than one option was changed.
I'm not sure why but think it would be better to just read once, set the
options, and write at the end anyway.

If we are updating and a service is there but not mentioned in the conf file,
we change the conf to True so should also add the service to the available
services.

Change-Id: I261f4ba08083cb7ed60c0a5bdd48a4dc16f4c23d
Base class for scenario test using Tempest clients

Define a very simple base class for migrating all scenario
tests to using tempest own clients.
This patch is the first step required to allow us to migrate
all tests one by one in dedicated changes, and finally drop
the unused Official Client pieces once migration is complete.

The various functions that are available in the OfficialClientTest
shall be migrated if / when needed by a specific test.

Change-Id: Ie82c8d8628ab50d6461a756713d56f78a2daa1dd
Partially-implements: bp:tempest-client-scenarios
Migrate test_dashboard_basic_ops to tempest clients

Just switched from OfficialClientTest to ScenarioTest because
TestDashboardBasicOps does not use methods of OfficialClientTest.

Change-Id: I3b8eb90e058cde03cb40f120bb2c268f31ae078c
Partially-implements: bp:tempest-client-scenarios
Make sure cli CommandFailed prints out stdout and stderr

Having a CommandFailed exception without stdout is very confusing, lets
fix that.

subprocess.CalledProcessError doesn't print out stderr or stdout so use
our own error that does.

Change-Id: I3bf75d6f526bdc58e64bbc7d83911e9d63e4b801
Skip migrate server invalid state if resize is off

The migrate (aka cold migration) can be considered a special case of the
resize with a flavor_id equals to None. For that reason to perform
the migrate tests we need to be sure that the resize is enabled.
This patch adds a skip decorators to verify that.

Change-Id: I3a02b1bd210e3934dfd61d4182b301cc33d8a962
Updated from global requirements

Change-Id: I1c05c375be86dffd8b4fadd536c170df3c2cd3ed
Merge "Create test images via Glance instead of Nova"
Make javelin resources optional

The resources is configurable, so we shouldn't blow up if a section is empty

Change-Id: I40b25eadfc75783528805c94008005900ca74da5
Log when javelin2 finishes running successfully

Make it clear when javelin2 is finished running.

Change-Id: I913588e48477d7278f6db01f810c90ae76ea08c1
Add config file flag to javelin

Instead of playing around with environmental variables, since javelin
is a CLI, add a flag to set the config file path.

Change-Id: I1e82e0a8e72117ba55048b2dab7aa9a8ba00c1cb
Delete unused class Service

The base class 'Service' in tempest/__init__ seems not to be used any
longer due to various reworks in the code.

Change-Id: I491293e4adf8239f1426baa5432aad4f67001ac0
Merge "Base class for scenario test using Tempest clients"
Merge "Delete unused class Service"