the servers context require to set network id when multiple possible networks found

Bug #1592292 reported by chenhb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Undecided
chenhb

Bug Description

The servers context require to set network id when multiple possible networks found. However, there is not the the related argument in the servers context.

yaml file:
{% set flavor_name = flavor_name or "m1.tiny" %}
---
  NovaServers.list_servers:
    -
      args:
        detailed: True
      runner:
        type: "constant"
        times: 1
        concurrency: 1
      context:
        users:
          tenants: 1
          users_per_tenant: 1
        servers:
          flavor:
              name: "{{flavor_name}}"
          image:
              name: "^cirros.*01$"
          servers_per_tenant: 2
          auto_assign_nic: false

Error message:

2016-06-14 15:25:34.069 19616 ERROR rally.task.engine [-] Multiple possible networks found, use a Network ID to be more specific. (HTTP 400) (Request-ID: req-f5f8e085-0910-45c6-ad01-56a70f4ca484)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine Traceback (most recent call last):
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/task/engine.py", line 346, in run
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine with context.ContextManager(context_obj):
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/task/context.py", line 218, in __enter__
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine self.setup()
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/task/context.py", line 181, in setup
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine ctx.setup()
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/common/logging.py", line 197, in wrapper
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine result = f(self, *args, **kwargs)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/plugins/openstack/context/nova/servers.py", line 116, in setup
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine **kwargs)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/task/atomic.py", line 84, in func_atomic_actions
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine f = func(self, *args, **kwargs)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/rally/plugins/openstack/scenarios/nova/utils.py", line 567, in _boot_servers
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine **kwargs)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1242, in create
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine **boot_kwargs)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 676, in _boot
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine return_raw=return_raw, **kwargs)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 345, in _create
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine resp, body = self.api.client.post(url, body=body)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 461, in post
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine return self._cs_request(url, 'POST', **kwargs)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 436, in _cs_request
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine resp, body = self._time_request(url, method, **kwargs)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 409, in _time_request
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine resp, body = self.request(url, method, **kwargs)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 403, in request
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine raise exceptions.from_response(resp, body, url, method)
2016-06-14 15:25:34.069 19616 ERROR rally.task.engine BadRequest: Multiple possible networks found, use a Network ID to be more specific. (HTTP 400) (Request-ID: req-f5f8e085-0910-45c6-ad01-56a70f4ca484)

chenhb (chen-haibing1)
Changed in rally:
assignee: nobody → chenhb (chen-haibing1)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally (master)

Fix proposed to branch: master
Review: https://review.openstack.org/329308

Changed in rally:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

Reviewed: https://review.openstack.org/329308
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=2e557ad97ce4b44fa18e51f31188d5b5bf8915fc
Submitter: Jenkins
Branch: master

commit 2e557ad97ce4b44fa18e51f31188d5b5bf8915fc
Author: chenhb-zte <email address hidden>
Date: Tue Jun 14 15:54:21 2016 -0400

    Add the nics argument in servers context

    The servers context require to set network id
    when multiple possible networks found.

    Change-Id: I2e524ce9683e738fb913b6ce9ed10c10bc708b84
    Closes-Bug:#1592292

Changed in rally:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.