context cleanup error when using lbaas v2

Bug #1470330 reported by Liyingjun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Medium
eon

Bug Description

rally task start --task tasks/scenarios/neutron/create_and_list_routers.yaml
--------------------------------------------------------------------------------
 Preparing input task
--------------------------------------------------------------------------------

Input task is:
---
  NeutronNetworks.create_and_list_routers:
    -
      args:
        network_create_args: {}
        subnet_create_args: {}
        subnet_cidr_start: "1.1.0.0/30"
        subnets_per_network: 2
        router_create_args: {}
      runner:
        type: "constant"
        times: 2
        concurrency: 2
      context:
        users:
          tenants: 1
          users_per_tenant: 1
        quotas:
          neutron:
            network: -1
            subnet: -1
            router: -1

--------------------------------------------------------------------------------
 Task 44000476-f0d7-4f3c-8d9c-d0e6eb3d355b: started
--------------------------------------------------------------------------------

Benchmarking... This can take a while...

To track task status use:

 rally task status
 or
 rally task detailed

Using task: 44000476-f0d7-4f3c-8d9c-d0e6eb3d355b
2015-07-01 11:30:57.563 31730 WARNING rally.plugins.openstack.context.cleanup.manager [-] Seems like rally.plugins.openstack.context.cleanup.resources.NeutronV1Pool.list(self) method is broken. It shouldn't raise any exceptions.
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager [-] 404 Not Found

The resource could not be found.

2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager Traceback (most recent call last):
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/data/stack/rally/rally/plugins/openstack/context/cleanup/manager.py", line 134, in _publish
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager for raw_resource in rutils.retry(3, manager.list):
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/data/stack/rally/rally/common/utils.py", line 384, in retry
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager return func(*args, **kwargs)
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/data/stack/rally/rally/plugins/openstack/context/cleanup/resources.py", line 164, in list
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager list_method({"tenant_id": self.tenant_uuid})[resources])
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 102, in with_params
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager ret = self.function(instance, *args, **kwargs)
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1057, in list_pools
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager **_params)
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 307, in list
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager for r in self._pagination(collection, path, **params):
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 320, in _pagination
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager res = self.get(path, params=params)
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 293, in get
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager headers=headers, params=params)
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 270, in retry_request
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager headers=headers, params=params)
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 211, in do_request
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager self._handle_fault_response(status_code, replybody)
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 185, in _handle_fault_response
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager exception_handler_v20(status_code, des_error_body)
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 83, in exception_handler_v20
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager message=message)
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager NeutronClientException: 404 Not Found
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager The resource could not be found.
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager
2015-07-01 11:30:57.564 31730 ERROR rally.plugins.openstack.context.cleanup.manager

Revision history for this message
Kun Huang (academicgareth) wrote :

http://paste.openstack.org/show/334647/

A clear version of output in my devkstack

Changed in rally:
status: New → Confirmed
eon (eon-5)
Changed in rally:
assignee: nobody → eon (eon-5)
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/216614

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

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

commit 3b82dceaa80ede1e5d03f0f44e71b3f09a9d9047
Author: Jean-Philippe Braun <email address hidden>
Date: Tue Aug 25 10:29:45 2015 +0200

    Fix lbaas resources cleanup

    Even if the extension is not available rally tries to list lbaas resources
    to delete them. This results in a 404 exception.

    This commit introduces NeutronLbaasV1Mixin that checks first if the
    extension is available. If it's not it returns an empty list of
    resources to delete.

    All lbaas resources (only pools currently) must inherit from this mixin.

    Change-Id: I94a8457c3026c1859413c867369cae49889f29e1
    Closes-Bug: #1470330

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

Change abandoned by Kun Huang (<email address hidden>) on branch: master
Review: https://review.openstack.org/214998
Reason: this is fixed by https://review.openstack.org/#/c/216614/

Changed in rally:
status: Fix Committed → 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.