[tempestmail] --file option should not require log_url or LOG_PATH

Bug #1742139 reported by Rafael Folco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Daniel Bengtsson

Bug Description

Tempestmail allows you to specify --file <tempest_output.log.txt> file containing tempest test results:

tempest.test.x.y.z ... FAIL
tempest.test.x.y.w ... ok

But if you don't specify log_url / LOG_PATH, tempestmail doesn't even run correctly. It just loads config and quits.

LOG_PATH='99/526099/1/openstack-check/gate-tripleo-ci-centos-7-ovb-3ctlr_1comp-featureset001-master/Z2b3cc321ef7e412f903ac4241b5720f6' python tempestmail.py -c /tmp/tempestmail_config.yaml --job gate-tripleo-ci-centos-7-ovb-3ctlr_1comp-featureset001-master --file tempest_output.log.txt.gz --log-url \"http://logs.rdoproject.org\"

The request is to process --file <tempest_output.log.txt> regardless of LOG_PATH. This would allow local tests.

PS: unit tests work because LOG_PATH is mocked

Tags: quickstart
Changed in tripleo:
status: New → Triaged
importance: Undecided → Medium
milestone: none → rocky-1
Arx Cruz (arxcruz)
Changed in tripleo:
assignee: nobody → Arx Cruz (arxcruz)
tags: removed: tempestmail
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
milestone: stein-3 → train-1
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart-extras (master)

Fix proposed to branch: master
Review: https://review.opendev.org/694021

Changed in tripleo:
assignee: Arx Cruz (arxcruz) → Daniel Bengtsson (damani42)
status: Triaged → In Progress
Changed in tripleo:
milestone: ussuri-1 → ussuri-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.opendev.org/694021
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=c0fbe50583cc940894f8929e94c8b554898a470b
Submitter: Zuul
Branch: master

commit c0fbe50583cc940894f8929e94c8b554898a470b
Author: Daniel Bengtsson <email address hidden>
Date: Wed Nov 13 10:28:01 2019 +0100

    The file option should not require environment variable.

    The file option should not require log_url or LOG_PATH. Actually the
    link variable can be an empty string.

    Change-Id: I33439eb4748ef892fcf132d7cab766bc03dff038
    Closes-Bug: #1742139

Changed in tripleo:
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.