python-novaclient/novaclient
Matt Riedemann ae69976802 Fix functional tests to deal with multiple networks
There was a change in the openstacksdk 0.9.11 which
python-openstackclient uses to create networks in a devstack
run with Neutron. Because of this change, the admin tenant
has access to both the 'public' and 'private' network setup
in devstack which before used to just be the 'public' network,
which exposed a bug in the novaclient functional testing where
the admin user is attempting to create a server but not
specify a specific network to use, but multiple networks
are available to the admin (it can list multiple networks).
In this case the networks are the standard public and private
networks that are created in devstack. Since a network isn't
specified when creating the server, the nova API fails with a
409 error because it can't determine which network to use.

This patch fixes the testing in novaclient by checking to see
if there are multiple networks available and if so, specifies
one for the legacy BDM tests that weren't specifying a network
ID (those tests don't really care about the networking).

The auto-network test is skipped if there are multiple networks
available because passing in a specific network would defeat
the purpose of that test.

Change-Id: I22ee148581a94b153cf7e733563cfafaa56b1ffd
Closes-Bug: #1654806
2017-01-24 18:44:37 -05:00
..
tests Fix functional tests to deal with multiple networks 2017-01-24 18:44:37 -05:00
v2 ListExtResource given in place of ListExtManager 2017-01-24 15:57:09 +01:00
__init__.py Add support for showing aggregate UUIDs (v2.41) 2017-01-05 22:11:09 -05:00
api_versions.py Cap image API deprecated methods at 2.35 2016-08-19 16:25:07 -04:00
base.py Merge "Fixed the __ne__ implementation in base.Resource" 2016-12-21 01:24:06 +00:00
client.py Pass relevant parameters to Token based authentication 2017-01-24 15:52:22 +02:00
crypto.py Corrects typos "coearse," "proejct," and "unecrypts" 2014-09-18 15:24:54 -07:00
exceptions.py Make _console() public 2017-01-18 09:36:43 +08:00
extension.py Cleanup needless code from oslo-incubator 2015-12-18 08:46:12 +00:00
i18n.py Remove all imports from oslo namespace 2015-04-20 13:52:38 +03:00
shell.py Add profiling support to novaclient 2017-01-19 03:50:06 +00:00
utils.py Replace six.iteritems() with .items() 2016-12-09 11:04:16 +08:00