tempest tests fail to run

Bug #1568413 reported by Emilien Macchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Undecided
Emilien Macchi

Bug Description

Using RDO packaging to run Tempest:

2016-04-09 22:20:49.307 | setUpClass (mistral_tempest_tests.tests.scenario.engine.actions.v2.test_openstack_actions.OpenStackActionsTestsV2)
2016-04-09 22:20:49.307 | ------------------------------------------------------------------------------------------------------------------
2016-04-09 22:20:49.307 |
2016-04-09 22:20:49.307 | Captured traceback:
2016-04-09 22:20:49.308 | ~~~~~~~~~~~~~~~~~~~
2016-04-09 22:20:49.308 | Traceback (most recent call last):
2016-04-09 22:20:49.308 | File "tempest/test.py", line 280, in setUpClass
2016-04-09 22:20:49.308 | six.reraise(etype, value, trace)
2016-04-09 22:20:49.308 | File "tempest/test.py", line 273, in setUpClass
2016-04-09 22:20:49.308 | cls.resource_setup()
2016-04-09 22:20:49.308 | File "/usr/lib/python2.7/site-packages/mistral_tempest_tests/tests/scenario/engine/actions/v2/test_openstack_actions.py", line 32, in resource_setup
2016-04-09 22:20:49.308 | 'openstack/action_collection_wb.yaml')
2016-04-09 22:20:49.308 | File "/usr/lib/python2.7/site-packages/mistral_tempest_tests/services/base.py", line 143, in create_workbook
2016-04-09 22:20:49.309 | resp, body = self.post_request('workbooks', yaml_file)
2016-04-09 22:20:49.309 | File "/usr/lib/python2.7/site-packages/mistral_tempest_tests/services/base.py", line 123, in post_request
2016-04-09 22:20:49.309 | return self.post(url, get_resource(file_name), headers=headers)
2016-04-09 22:20:49.309 | File "/usr/lib/python2.7/site-packages/mistral_tempest_tests/services/base.py", line 37, in get_resource
2016-04-09 22:20:49.309 | return open(dir_path + 'mistral/tests/resources/' + path).read()
2016-04-09 22:20:49.309 | IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/site-packages/mistral_mistral/tests/resources/openstack/action_collection_wb.yaml'

get_resource in mistral_tempest_tests/services/base.py is computing a wrong path to get a file path and run tempest tests.

Revision history for this message
Emilien Macchi (emilienm) wrote :
Changed in mistral:
assignee: nobody → Emilien Macchi (emilienm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on mistral (master)

Change abandoned by Emilien Macchi (<email address hidden>) on branch: master
Review: https://review.openstack.org/303792
Reason: it's a packaging thing, my patch is actually breaking tempest tests for mistral gate (running devstack).
I'll abandon the patch and investigate what needs to be done in packaging.

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

Reviewed: https://review.openstack.org/303792
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=99edd171057daf29d4bf66cafdf282259fbd1e8b
Submitter: Jenkins
Branch: master

commit 99edd171057daf29d4bf66cafdf282259fbd1e8b
Author: Emilien Macchi <email address hidden>
Date: Sun Apr 10 00:09:33 2016 -0400

    tempest: fix dir_path

    This patch fix the dir_path that helps to get the directory of
    Mistral resources.

    Without this patch, this is what we get when running Tempest:

    IOError: [Errno 2] No such file or directory:
    '/usr/lib/python2.7/site-packages/mistral_mistral/tests/resources/openstack/action_collection_wb.yaml'

    With this patch:
    /usr/lib/python2.7/site-packages/mistral/tests/resources/openstack/action_collection_wb.yaml
    This path is correct and Tempest runs successfully.

    Change-Id: Ie4bd3db8a4e729f7937a6f3c099d7c25abffcb1b
    Closes-Bug: #1568413

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/304558

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (stable/mitaka)

Reviewed: https://review.openstack.org/304558
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=25aae034738eda7c00fb3745aa85b96c6768c0f8
Submitter: Jenkins
Branch: stable/mitaka

commit 25aae034738eda7c00fb3745aa85b96c6768c0f8
Author: Emilien Macchi <email address hidden>
Date: Sun Apr 10 00:09:33 2016 -0400

    tempest: fix dir_path

    This patch fix the dir_path that helps to get the directory of
    Mistral resources.

    Without this patch, this is what we get when running Tempest:

    IOError: [Errno 2] No such file or directory:
    '/usr/lib/python2.7/site-packages/mistral_mistral/tests/resources/openstack/action_collection_wb.yaml'

    With this patch:
    /usr/lib/python2.7/site-packages/mistral/tests/resources/openstack/action_collection_wb.yaml
    This path is correct and Tempest runs successfully.

    Change-Id: Ie4bd3db8a4e729f7937a6f3c099d7c25abffcb1b
    Closes-Bug: #1568413
    (cherry picked from commit 99edd171057daf29d4bf66cafdf282259fbd1e8b)

tags: added: in-stable-mitaka
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/mistral 3.0.0.0b1

This issue was fixed in the openstack/mistral 3.0.0.0b1 development milestone.

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.