Running create_and_list_routers task fails: TypeError: string indices must be integers

Bug #1523417 reported by Itzik Brown
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Medium
Alexander Maretskiy

Bug Description

Test fails when running rally -d -v task start create_and_list_routers.yaml
with the YAML:
---
  NeutronNetworks.create_and_list_routers:
    -
      args:
        network_create_args: {}
        subnet_create_args: {}
        subnet_cidr_start: "1.1.0.0/30"
        subnets_per_network: 1
        router_create_args: {}
      runner:
        type: "constant"
        times: 1
        concurrency: 1
      context:
        network: {}
        users:
          tenants: 1
          users_per_tenant: 1
        quotas:
          neutron:
            network: -1
            subnet: -1
            router: -1

Version
======
rally 0.1.2~dev328
RHEL7.2
Openstack Kilo

Seems like the failure comes from:

rally/plugins/openstack/scenarios/neutron/utils.py", line 369, in _create_network_structure
self._add_interface_router(subnet["subnet"],
ERROR rally.task.runner TypeError: string indices must be integers

Revision history for this message
Itzik Brown (itzikb1) wrote :
Changed in rally:
status: New → Triaged
Changed in rally:
assignee: nobody → Alexander Maretskiy (maretskiy)
Revision history for this message
Alexander Maretskiy (maretskiy) wrote :

Scenario NeutronNetworks.create_and_list_routers does not work correctly with `network' context.

However it can be run without `network' context as workaround.

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/254776

Changed in rally:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on rally (master)

Change abandoned by Alexander Maretskiy (<email address hidden>) on branch: master
Review: https://review.openstack.org/254776
Reason: There is a duplicate patch https://review.openstack.org/#/c/257479/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

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

commit f1e28c3dc639e259b8ad002fc7ba7ce28b3e613c
Author: Chris St. Pierre <email address hidden>
Date: Mon Dec 14 10:47:36 2015 -0600

    Make Neutron router scenarios work with network context

    Usage of NeutronNetworks.create_and_*_routers without network context
    is deprecated (ref. https://goo.gl/peijFT), however these scenario can
    not be run with network context due to a bug.

    This patch fixes the bug and also enables the network context in gates
    for all Neutron scenarios that should be using it.

    Change-Id: I5783ea110290332234b94ed8adbdbe8a1d9d0f14
    Co-Authored-By: Alexander Maretskiy <email address hidden>
    Closes-Bug: #1523417

Changed in rally:
status: In Progress → Fix Released
Changed in rally:
milestone: none → 0.2.0
importance: Undecided → Medium
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.