mistral unit tests failing in dlrn build of tripleo-common

Bug #1805870 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Won't Fix
Critical
Adriano Petrich

Bug Description

http://logs.openstack.org/39/619039/1/gate/tripleo-ci-centos-7-containers-multinode/56bf0b8/logs/delorean_logs/7f/63/7f638090124fd8cbacf9390ce5b26e72215a7761_dev/build.log.txt.gz

several issues, but e.g.

tripleo_common.tests.actions.test_heat_capabilities.GetCapabilitiesActionTest.test_run_env_missing ... ERROR [tripleo_common.actions.heat_capabilities] Error retrieving environment for plan test-container: test-container
Traceback (most recent call last):
  File "/builddir/build/BUILD/tripleo-common-10.1.1.dev90/tripleo_common/actions/heat_capabilities.py", line 65, in run
    env = plan_utils.get_env(swift, self.container)
  File "/builddir/build/BUILD/tripleo-common-10.1.1.dev90/tripleo_common/utils/plan.py", line 47, in get_env
    swift.get_object(name, constants.PLAN_ENVIRONMENT)[1]
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1062, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1123, in _mock_call
    raise result
ClientException: test-container
ok
test_run_yaml_error (tripleo_common.

See log stash
http://logstash.openstack.org/#dashboard/file/logstash.json?query=(message%3A%5C%22ERROR%3Adlrn%3AReceived%20exception%20Error%20in%20build_rpm_wrapper%5C%22)%20AND%20tags%3Aconsole%20AND%20voting%3A1

Revision history for this message
wes hayutin (weshayutin) wrote :
Revision history for this message
Adriano Petrich (apetrich) wrote :
Changed in tripleo:
assignee: nobody → Adriano Petrich (apetrich)
Revision history for this message
Adriano Petrich (apetrich) wrote :

So the error is that somehow we are receiving an string with an extra new line

Like:

reference = Result [data=None, error='Error during stack creation: ERROR: Oops', cancel=False]
actual = Result [data=None, error=u'Error during stack creation: ERROR: Oops\n', cancel=False]

Reference was what the test was expecting and actual is the actual call. The difference is thean extra new line ("\n") at the end.

The problem is that I can't reproduce that on local tests. If I add that new line to the tests the local call to tox fails

THIS IS LOCAL TOX IF WE ADD THE NEWLINE
reference = Result [data=None, error='Error during stack update: ERROR: Oops\n', cancel=False]
actual = Result [data=None, error=u'Error during stack update: ERROR: Oops', cancel=False]

I've tried to see what has changed on tripleo-common or python-heatclient but was unable to find a smoking gun.

Any ideas would be very welcome.

Revision history for this message
Thomas Herve (therve) wrote :

That's not an issue. The tests failures are correct, in particular https://review.openstack.org/#/c/619039/ has broken tests.

tags: removed: alert
Revision history for this message
Adriano Petrich (apetrich) wrote :

Oh the errors were related to that patch alone.

Revision history for this message
Adriano Petrich (apetrich) wrote :

The bug is related to a unmerged patch. The bug the patch addresses (https://bugs.launchpad.net/tripleo/+bug/1804268) has no relation to this error. Any unit test errors introduced by the patch will fixed by the patch itself before merging.

Changed in tripleo:
status: Triaged → Won't Fix
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.