TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Bug #1835511 reported by Anandprakash
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Invalid
Undecided
Unassigned

Bug Description

Tempest is failing on Stein with python 3.6 and following packages-
openstack-tempest-20.0.0-0.20190610090414.a955095.el8ost.noarch
python3-neutron-tests-tempest-0.3.0-0.20190621140455.e40f601.el8ost.noarch
python3-octavia-tests-tempest-golang-1.0.0-0.20190621170400.c9414e8.el8ost.x86_64
python3-tempestconf-2.2.1-0.20190701090409.aa20435.el8ost.noarch
python3-sahara-tests-tempest-0.8.0-0.20190618120402.7e39b7b.el8ost.noarch
python3-tempest-20.0.0-0.20190610090414.a955095.el8ost.noarch
python3-manila-tests-tempest-0.2.0-0.20190401201905.53927a9.el8ost.noarch
python3-sahara-tempest-0.8.0-0.20190618120402.7e39b7b.el8ost.noarch
python3-octavia-tests-tempest-1.0.0-0.20190621170400.c9414e8.el8ost.noarch
python3-cinder-tests-tempest-0.2.1-0.20190410010400.6a37884.el8ost.noarch

Logs from the console-
[root@controller-0 new]# ostestr --regex 'manila.tempest.api'
Traceback (most recent call last):
  File "/bin/ostestr", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/os_testr/ostestr.py", line 263, in main
    exit(ostestr(sys.argv[1:]))
  File "/usr/lib/python3.6/site-packages/os_testr/ostestr.py", line 259, in ostestr
    return _select_and_call_runner(opts, regex, others)
  File "/usr/lib/python3.6/site-packages/os_testr/ostestr.py", line 212, in _select_and_call_runner
    black_regex=opts.black_regex)
  File "/usr/lib/python3.6/site-packages/os_testr/ostestr.py", line 167, in call_testr
    black_regex=black_regex)
  File "/usr/lib/python3.6/site-packages/stestr/commands/run.py", line 334, in run_command
    concurrency = _to_int(concurrency)
  File "/usr/lib/python3.6/site-packages/stestr/commands/run.py", line 39, in _to_int
    i = int(possible)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Anandprakash (atandale)
description: updated
Anandprakash (atandale)
description: updated
Revision history for this message
Martin Kopec (mkopec) wrote :

I talked with Anandprakash and we came to a resolution:
The problem was that the tests were executed by ostestr which is already deprecated in favor of stestr.
When the tests were executed by tempest run command, everything worked as expected.
Therefore the bug can be closed as not a bug.
If needed feel free to reopen the bug.

Changed in tempest:
assignee: nobody → Martin Kopec (mkopec)
assignee: Martin Kopec (mkopec) → nobody
status: New → Invalid
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.