Seek network resources from tempest

In order to do DHSS=True testing, we need
share networks. Share networks are really
useful only when testing with self-service
project/tenant neutron networks.

Manila tempest tests are executed
by using different projects - these can
be created on the fly using tempest's dynamic
test credential generation framework. We
have always controlled what type of
projects/credentials are created by tempest
to run a test class when using dynamic
credential generation. However, we were
so far not asking tempest to create network
resources (neutron network, subnet, router, etc)
when creating these credentials.

We can do so now, and delete all the code we
had to create neutron networks ourselves.

With this change, we will raise a "skipException"
if tests are required to use neutron networks
(configuration option:
"[share]/create_networks_when_multitenancy_enabled=True"),
but we somehow can't find them. This error can ONLY occur if:
- tempest is mis-configured, or
- pre-provisioned test credentials are used and
  networks aren't created beforehand.

Change-Id: Id5323a5c38842dbf706aec75459d2086ca142635
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
1 file changed