Bug 1642353 - ValueError: math domain error while runing "AttachVolumeMultiAttachTest" tempest test
Summary: ValueError: math domain error while runing "AttachVolumeMultiAttachTest" temp...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-stestr
Version: 14.0 (Rocky)
Hardware: x86_64
OS: Linux
high
high
Target Milestone: beta
: 14.0 (Rocky)
Assignee: Chandan Kumar
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-24 08:41 UTC by viksss
Modified: 2019-01-11 11:54 UTC (History)
7 users (show)

Fixed In Version: python-stestr-2.1.0-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-11 11:54:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
traceback screenshot (63.35 KB, image/png)
2018-10-24 08:41 UTC, viksss
no flags Details
tempest.conf file (5.75 KB, text/plain)
2018-10-24 08:46 UTC, viksss
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:0045 0 None None None 2019-01-11 11:54:19 UTC

Description viksss 2018-10-24 08:41:24 UTC
Created attachment 1496952 [details]
traceback screenshot

Description of problem:
ValueError: math domain error while runing "AttachVolumeMultiAttachTest" tempest test 
getting traceback 

Traceback (most recent call last):
  File "/bin/ostestr", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 263, in main
    exit(ostestr(sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 259, in ostestr
    return _select_and_call_runner(opts, regex, others)
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 212, in _select_and_call_runner
    black_regex=opts.black_regex)
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 171, in call_testr
    commands.slowest_command()
  File "/usr/lib/python2.7/site-packages/stestr/commands/slowest.py", line 93, in slowest
    known_times = format_times(known_times)
  File "/usr/lib/python2.7/site-packages/stestr/commands/slowest.py", line 42, in format_times
    math.log10(times[0][1])) + 1
ValueError: math domain error

Version-Release number of selected component (if applicable):

openstack-tempest-19.0.0-0.20180914114331.8316f96.el7ost.noarch

How reproducible:
everytime
Steps to Reproduce:
1.execute tempest test AttachVolumeMultiAttachTest 
2.
3.

Actual results:

Traceback (most recent call last):
  File "/bin/ostestr", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 263, in main
    exit(ostestr(sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 259, in ostestr
    return _select_and_call_runner(opts, regex, others)
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 212, in _select_and_call_runner
    black_regex=opts.black_regex)
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 171, in call_testr
    commands.slowest_command()
  File "/usr/lib/python2.7/site-packages/stestr/commands/slowest.py", line 93, in slowest
    known_times = format_times(known_times)
  File "/usr/lib/python2.7/site-packages/stestr/commands/slowest.py", line 42, in format_times
    math.log10(times[0][1])) + 1
ValueError: math domain error
Expected results:
it should not give traceback while executing test

Additional info:

python-octavia-tests-tempest-golang-0.1.1-0.20180901220303.921ed42.el7ost.x86_64
python2-manila-tests-tempest-0.1.1-0.20180830035250.4c91b6e.el7ost.noarch
python2-tempest-19.0.0-0.20180914114331.8316f96.el7ost.noarch
openstack-tempest-19.0.0-0.20180914114331.8316f96.el7ost.noarch
python2-sahara-tempest-0.6.1-0.20180903183308.bb23a5b.el7ost.noarch
python2-sahara-tests-tempest-0.6.1-0.20180903183308.bb23a5b.el7ost.noarch
python2-tempestconf-2.0.0-0.20180821043805.d7db90e.el7ost.noarch
python2-cinder-tests-tempest-0.1.0-0.20180822115300.08a3851.el7ost.noarch
python2-neutron-tests-tempest-0.2.1-0.20180905004815.f785dd4.el7ost.noarch
python2-octavia-tests-tempest-0.1.1-0.20180901220303.921ed42.el7ost.noarch

Comment 1 viksss 2018-10-24 08:46:09 UTC
Created attachment 1496953 [details]
tempest.conf file

Comment 2 Chandan Kumar 2018-10-24 11:06:03 UTC
Hello,

Thanks for filling the bug, It appears that you are hitting this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1597040

Please pass the output of following command:
$ rpm -qa | grep stestr

Thanks,

Chandan Kumar

Comment 3 viksss 2018-10-24 11:28:10 UTC
[root@controller-0 heat-admin]#  rpm -qa | grep stestr
python2-stestr-1.1.0-1.el7ost.1.noarch
[root@controller-0 heat-admin]#

Comment 4 Chandan Kumar 2018-10-24 11:30:20 UTC
(In reply to viksss from comment #3)
> [root@controller-0 heat-admin]#  rpm -qa | grep stestr
> python2-stestr-1.1.0-1.el7ost.1.noarch
> [root@controller-0 heat-admin]#

Thanks, It is fixed in python-stestr-2.0.0, we will update the package version.

Comment 5 viksss 2018-10-24 11:39:42 UTC
Thanks for the fix version this is working now.

[root@controller-0 heat-admin]# rpm -qa|grep stestr
python2-stestr-2.1.0-1.el7ost.noarch
[root@controller-0 heat-admin]#

Comment 6 Martin Kopec 2018-10-24 12:51:13 UTC
As mentioned in the comments, the issue should be fixed in python-stestr-2.1.0-1.el7ost, so I'm moving the bug to MODIFIED.

Comment 9 Martin Kopec 2018-10-26 10:09:05 UTC
The python-stestr-2.1.0-1.el7ost package contains fix of the issue. It's available in 2018-10-25.3 puddle and it's also available via latest symlink. 

Steps of verification:

[stack@undercloud-0 ~]$ sudo rpm -qa | grep stestr
python2-stestr-1.1.0-1.el7ost.1.noarch
[stack@undercloud-0 tempest-dir]$ ostestr -r AttachVolumeMultiAttachTest
{1} setUpClass (tempest.api.compute.admin.test_volume_swap.AttachVolumeMultiAttachTest) ... SKIPPED: The microversion range[2.60 - latest] of this test is out of the configuration range[None - None].
{0} setUpClass (tempest.api.compute.volumes.test_attach_volume.AttachVolumeMultiAttachTest) ... SKIPPED: The microversion range[2.60 - latest] of this test is out of the configuration range[None - None].

======
Totals
======
Ran: 2 tests in 1.0000 sec.
 - Passed: 0
 - Skipped: 2
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 0.0000 sec.

==============
Worker Balance
==============
 - Worker 0 (1 tests) => 0:00:00
 - Worker 1 (1 tests) => 0:00:00

Slowest Tests:
Traceback (most recent call last):
  File "/bin/ostestr", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 263, in main
    exit(ostestr(sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 259, in ostestr
    return _select_and_call_runner(opts, regex, others)
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 212, in _select_and_call_runner
    black_regex=opts.black_regex)
  File "/usr/lib/python2.7/site-packages/os_testr/ostestr.py", line 171, in call_testr
    commands.slowest_command()
  File "/usr/lib/python2.7/site-packages/stestr/commands/slowest.py", line 93, in slowest
    known_times = format_times(known_times)
  File "/usr/lib/python2.7/site-packages/stestr/commands/slowest.py", line 42, in format_times
    math.log10(times[0][1])) + 1
ValueError: math domain error

<update the package>

[stack@undercloud-0 tempest-dir]$  sudo rpm -qa | grep stestr
python2-stestr-2.1.0-1.el7ost.noarch
[stack@undercloud-0 tempest-dir]$ ostestr -r AttachVolumeMultiAttachTest
{1} setUpClass (tempest.api.compute.admin.test_volume_swap.AttachVolumeMultiAttachTest) ... SKIPPED: The microversion range[2.60 - latest] of this test is out of the configuration range[None - None].
{0} setUpClass (tempest.api.compute.volumes.test_attach_volume.AttachVolumeMultiAttachTest) ... SKIPPED: The microversion range[2.60 - latest] of this test is out of the configuration range[None - None].

======
Totals
======
Ran: 2 tests in 1.0000 sec.
 - Passed: 0
 - Skipped: 2
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 0.0000 sec.

==============
Worker Balance
==============
 - Worker 0 (1 tests) => 0:00:00
 - Worker 1 (1 tests) => 0:00:00

Slowest Tests:
Test id                                                                                  Runtime (s)
---------------------------------------------------------------------------------------  -----------
setUpClass (tempest.api.compute.admin.test_volume_swap.AttachVolumeMultiAttachTest)      0.000
setUpClass (tempest.api.compute.volumes.test_attach_volume.AttachVolumeMultiAttachTest)  0.000
[stack@undercloud-0 tempest-dir]$

Comment 13 errata-xmlrpc 2019-01-11 11:54:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045


Note You need to log in before you can comment on or make changes to this bug.