When running a nova scenario against an Openstack cloud in which multiple neutron networks exists, VMs cannot be properly booted (they reach an ERROR state) as there is no single network to which can be defaulted.
To reproduce:
Use devstack with neutron installed, created 2 networks (neutron net-create test, neutron net-create test2) and run a simple rally task that uses a nova scenario.
Note that this issue is similar to the following bug in tempest/tripleo: https://bugs.launchpad.net/tempest/+bug/1250866
Example:
rally --verbose task start --deploy-id=10a534df-d825-4f70-840f-9f9cd47ce5d6 --task boot-and-delete.json
Output:
(.venv)cisco@devstack:~/rally-setup$ rally --verbose task start --deploy-id=10a534df-d825-4f70-840f-9f9cd47ce5d6 --task boot-and-delete.json
+--------------------------------------+----------------------------+--------+--------+
| uuid | created_at | status | failed |
+--------------------------------------+----------------------------+--------+--------+
| 7fafb5cb-1146-4e10-bb51-521d3dcbd98f | 2014-02-11 12:13:35.346600 | init | False |
+--------------------------------------+----------------------------+--------+--------+
2014-02-11 13:13:35.370 32593 INFO rally.benchmark.engine [-] Task 7fafb5cb-1146-4e10-bb51-521d3dcbd98f | Starting: Benchmark configs validation.
2014-02-11 13:13:35.382 32593 INFO rally.benchmark.engine [-] Task 7fafb5cb-1146-4e10-bb51-521d3dcbd98f | Completed: Benchmark configs validation.
2014-02-11 13:13:35.390 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:35.571 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:35.741 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:35.933 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:36.308 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:36.844 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:36.960 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:37.073 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:37.220 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:37.382 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:37.566 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:37.795 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:38.061 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:38.861 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:38.982 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:39.438 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:39.582 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:40.384 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:40.499 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:41.003 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:41.144 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:42.222 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:42.340 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:43.047 549 INFO rally.benchmark.runner [-] ITER: 0
Traceback (most recent call last):
File "/home/cisco/rally/.venv/local/lib/python2.7/site-packages/rally/benchmark/scenarios/utils.py", line 139, in func_atomic_actions
f = func(self, *args, **kwargs)
File "/home/cisco/rally/.venv/local/lib/python2.7/site-packages/rally/benchmark/scenarios/nova/utils.py", line 91, in _boot_server
flavor_id, **kwargs)
File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 852, in create
**boot_kwargs)
File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 526, in _boot
return_raw=return_raw, **kwargs)
File "/opt/stack/python-novaclient/novaclient/base.py", line 152, in _create
_resp, body = self.api.client.post(url, body=body)
File "/opt/stack/python-novaclient/novaclient/client.py", line 257, in post
return self._cs_request(url, 'POST', **kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 231, in _cs_request
**kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 213, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 207, in request
raise exceptions.from_response(resp, body, url, method)
BadRequest: Multiple possible networks found, use a Network ID to be more specific. (HTTP 400) (Request-ID: req-88c9f6b6-fea5-4ef9-9ff2-92cef300c0be)
Traceback (most recent call last):
File "/home/cisco/rally/.venv/local/lib/python2.7/site-packages/rally/benchmark/runner.py", line 51, in _run_scenario_loop
scenario_output = getattr(scenario, method_name)(**kwargs)
File "/home/cisco/rally/.venv/local/lib/python2.7/site-packages/rally/benchmark/scenarios/nova/servers.py", line 45, in boot_and_delete_server
server = self._boot_server(server_name, image_id, flavor_id, **kwargs)
File "/home/cisco/rally/.venv/local/lib/python2.7/site-packages/rally/benchmark/scenarios/utils.py", line 139, in func_atomic_actions
f = func(self, *args, **kwargs)
File "/home/cisco/rally/.venv/local/lib/python2.7/site-packages/rally/benchmark/scenarios/nova/utils.py", line 91, in _boot_server
flavor_id, **kwargs)
File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 852, in create
**boot_kwargs)
File "/opt/stack/python-novaclient/novaclient/v1_1/servers.py", line 526, in _boot
return_raw=return_raw, **kwargs)
File "/opt/stack/python-novaclient/novaclient/base.py", line 152, in _create
_resp, body = self.api.client.post(url, body=body)
File "/opt/stack/python-novaclient/novaclient/client.py", line 257, in post
return self._cs_request(url, 'POST', **kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 231, in _cs_request
**kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 213, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/opt/stack/python-novaclient/novaclient/client.py", line 207, in request
raise exceptions.from_response(resp, body, url, method)
BadRequest: Multiple possible networks found, use a Network ID to be more specific. (HTTP 400) (Request-ID: req-88c9f6b6-fea5-4ef9-9ff2-92cef300c0be)
2014-02-11 13:13:43.748 32593 WARNING rally.benchmark.runner [-] Unable to fully cleanup the cloud:
409-{u'NeutronError': {u'message': u'Removing default security group not allowed.', u'type': u'SecurityGroupCannotRemoveDefault', u'detail': u''}}
2014-02-11 13:13:43.916 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.073 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.169 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.188 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.218 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.241 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.257 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.282 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.311 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.338 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.352 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.575 32593 WARNING rally.benchmark.runner [-] Unable to fully cleanup the cloud:
409-{u'NeutronError': {u'message': u'Removing default security group not allowed.', u'type': u'SecurityGroupCannotRemoveDefault', u'detail': u''}}
2014-02-11 13:13:44.794 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:44.943 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.007 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.027 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.049 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.068 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.090 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.123 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.155 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.187 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.217 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.505 32593 WARNING rally.benchmark.runner [-] Unable to fully cleanup the cloud:
409-{u'NeutronError': {u'message': u'Removing default security group not allowed.', u'type': u'SecurityGroupCannotRemoveDefault', u'detail': u''}}
2014-02-11 13:13:45.741 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:45.882 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.053 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.091 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.134 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.159 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.175 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.199 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.227 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.252 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.266 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.496 32593 WARNING rally.benchmark.runner [-] Unable to fully cleanup the cloud:
409-{u'NeutronError': {u'message': u'Removing default security group not allowed.', u'type': u'SecurityGroupCannotRemoveDefault', u'detail': u''}}
2014-02-11 13:13:46.733 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.851 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.892 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.911 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.934 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.959 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.973 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:46.986 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.006 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.026 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.039 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.290 32593 WARNING rally.benchmark.runner [-] Unable to fully cleanup the cloud:
409-{u'NeutronError': {u'message': u'Removing default security group not allowed.', u'type': u'SecurityGroupCannotRemoveDefault', u'detail': u''}}
2014-02-11 13:13:47.451 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.594 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.748 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.776 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.798 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.825 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.851 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.879 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.911 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.944 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:47.961 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.213 32593 WARNING rally.benchmark.runner [-] Unable to fully cleanup the cloud:
409-{u'NeutronError': {u'message': u'Removing default security group not allowed.', u'type': u'SecurityGroupCannotRemoveDefault', u'detail': u''}}
2014-02-11 13:13:48.430 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.540 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.575 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.600 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.619 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.638 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.652 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.667 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.685 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.704 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
2014-02-11 13:13:48.716 32593 INFO requests.packages.urllib3.connectionpool [-] Starting new HTTP connection (1): 10.0.2.15
================================================================================
Task 7fafb5cb-1146-4e10-bb51-521d3dcbd98f is finished. Failed: False
--------------------------------------------------------------------------------
test scenario NovaServers.boot_and_delete_server
args position 0
args values:
{u'args': {u'flavor_id': 1,
u'image_id': u'64153e42-ebb2-4ebf-ba01-4ddd3d26180e'},
u'config': {u'active_users': 2,
u'tenants': 3,
u'times': 1,
u'users_per_tenant': 2},
u'execution': u'continuous'}
+-----------+-----------+-----------+---------------+-------------+
| max (sec) | avg (sec) | min (sec) | success/total | total times |
+-----------+-----------+-----------+---------------+-------------+
| n/a | n/a | n/a | 0 | 1 |
+-----------+-----------+-----------+---------------+-------------+
Critical line is "BadRequest: Multiple possible networks found, use a Network ID to be more specific."