all dsvm tests fail: Failed to call load_tests

Bug #1657960 reported by Eric K
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Thomas Herve
congress
Fix Released
Critical
Unassigned

Bug Description

Seems like an issue in heat integration tests or a congress test configuration problem causing auth_url to fail being set correctly. More investigation needed.

File "/opt/stack/new/heat/heat_integrationtests/common/clients.py", line 74, in __init__
if self.conf.auth_url.find('/v'):
AttributeError: 'NoneType' object has no attribute 'find'

Critical for congress because we can't merge code until this is resolved.

Selected console.log below. Full logs here: http://logs.openstack.org/52/422952/1/check/gate-congress-dsvm-api-mysql-ubuntu-xenial/3fbffe6/

2017-01-20 02:12:42.935914 | all-plugin runtests: commands[1] | tempest run --regex congress_tempest_tests --concurrency=4
2017-01-20 02:12:48.357247 | running=OS_STDOUT File "/usr/local/lib/python2.7/dist-packages/testrepository/commands/__init__.py", line 143, in execute
2017-01-20 02:12:48.357301 | result = self.run()
2017-01-20 02:12:48.357332 | File "/usr/local/lib/python2.7/dist-packages/testrepository/commands/run.py", line 213, in run
2017-01-20 02:12:48.357348 | return self._run_tests(cmd)
2017-01-20 02:12:48.357377 | File "/usr/local/lib/python2.7/dist-packages/testrepository/commands/run.py", line 345, in _run_tests
2017-01-20 02:12:48.357389 | cmd.setUp()
2017-01-20 02:12:48.357417 | File "/usr/local/lib/python2.7/dist-packages/testrepository/testcommand.py", line 234, in setUp
2017-01-20 02:12:48.357431 | self.test_ids = self.list_tests()
2017-01-20 02:12:48.357460 | File "/usr/local/lib/python2.7/dist-packages/testrepository/testcommand.py", line 312, in list_tests
2017-01-20 02:12:48.357472 | % (run_proc.returncode))
2017-01-20 02:12:48.357478 | _
2017-01-20 02:12:48.364243 | CNon-zero exit code (2) from test listing.
2017-01-20 02:12:48.367079 | APTURE=${OS_STDOUT_CAPTURE:-1} \
2017-01-20 02:12:48.367112 | OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
2017-01-20 02:12:48.367130 | OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
2017-01-20 02:12:48.367149 | OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \
2017-01-20 02:12:48.367181 | ${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --list
2017-01-20 02:12:48.367192 | --- import errors ---
2017-01-20 02:12:48.367204 | Failed to call load_tests:
2017-01-20 02:12:48.367218 | Traceback (most recent call last):
2017-01-20 02:12:48.367247 | File "/usr/local/lib/python2.7/dist-packages/unittest2/loader.py", line 147, in loadTestsFromModule
2017-01-20 02:12:48.367263 | return load_tests(self, tests, pattern)
2017-01-20 02:12:48.367289 | File "/opt/stack/new/heat/heat_integrationtests/api/test_heat_api.py", line 33, in load_tests
2017-01-20 02:12:48.367304 | manager = clients.ClientManager(conf)
2017-01-20 02:12:48.367330 | File "/opt/stack/new/heat/heat_integrationtests/common/clients.py", line 74, in __init__
2017-01-20 02:12:48.367345 | if self.conf.auth_url.find('/v'):
2017-01-20 02:12:48.367375 | AttributeError: 'NoneType' object has no attribute 'find'
2017-01-20 02:12:48.367399 | > /usr/local/lib/python2.7/dist-packages/testrepository/testcommand.py(312)list_tests()
2017-01-20 02:12:48.367412 | -> % (run_proc.returncode))
2017-01-20 02:12:48.367419 | (Pdb)
2017-01-20 02:12:48.367434 | The test run didn't actually run any tests
2017-01-20 02:12:48.403890 | ERROR: InvocationError: '/opt/stack/new/tempest/.tox/all-plugin/bin/tempest run --regex congress_tempest_tests --concurrency=4'

Eric K (ekcs)
description: updated
description: updated
description: updated
Revision history for this message
Rabi Mishra (rabi) wrote :

https://review.openstack.org/#/c/422710/ in review queue to fix this.

Thomas Herve (therve)
Changed in heat:
assignee: nobody → Thomas Herve (therve)
status: New → Fix Committed
milestone: none → ocata-3
importance: Undecided → High
Eric K (ekcs)
Changed in congress:
status: New → Fix Released
Rabi Mishra (rabi)
Changed in heat:
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.