Zun

TestCapsule:test_create_capsule_with_init_container failed in CI

Bug #1850007 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Triaged
Medium
Unassigned

Bug Description

The error:

2019-10-26 21:17:00.402388 | controller | zun_tempest_plugin.tests.tempest.api.test_capsules.TestCapsule.test_create_capsule_with_init_container[id-3534116a-fa85-4da5-b5a3-4ef20f9479b4]
2019-10-26 21:17:00.402580 | controller | -----------------------------------------------------------------------------------------------------------------------------------------------
2019-10-26 21:17:00.402606 | controller |
2019-10-26 21:17:00.402648 | controller | Captured traceback:
2019-10-26 21:17:00.402700 | controller | ~~~~~~~~~~~~~~~~~~~
2019-10-26 21:17:00.402770 | controller | Traceback (most recent call last):
2019-10-26 21:17:00.402911 | controller | File "/opt/stack/zun-tempest-plugin/zun_tempest_plugin/tests/tempest/utils.py", line 54, in wrapper
2019-10-26 21:17:00.403009 | controller | return func(self, *func_args, **func_kwargs)
2019-10-26 21:17:00.403192 | controller | File "/opt/stack/zun-tempest-plugin/zun_tempest_plugin/tests/tempest/api/test_capsules.py", line 225, in test_create_capsule_with_init_container
2019-10-26 21:17:00.403294 | controller | self.assertTrue('hello' in encodeutils.safe_decode(body))
2019-10-26 21:17:00.403411 | controller | File "/usr/local/lib/python2.7/dist-packages/unittest2/case.py", line 702, in assertTrue
2019-10-26 21:17:00.403485 | controller | raise self.failureException(msg)
2019-10-26 21:17:00.403546 | controller | AssertionError: False is not true

The assertion is failed because a container tried to curl the IP addres of another container but failed:

2019-10-26 21:05:00.929363 | controller | 2019-10-26 21:04:54,531 10951 INFO [tempest.lib.common.rest_client] Request (TestCapsule:test_create_capsule_with_init_container): 200 GET https://10.4.70.34/container/v1/containers/8363ebc8-b4fe-4377-ab21-76d86c8039ad/logs 0.096s
2019-10-26 21:05:00.929668 | controller | 2019-10-26 21:04:54,531 10951 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'OpenStack-API-Version': 'container 1.37', 'Content-Type': 'application/json', 'X-Auth-Token': '<omitted>', 'Accept': 'application/json'}
2019-10-26 21:05:00.929722 | controller | Body: None
2019-10-26 21:05:00.930332 | controller | Response - Headers: {u'content-length': '309', u'x-openstack-request-id': 'req-a357170a-9478-4ecc-99f2-52f72b518806', u'openstack-api-maximum-version': 'container 1.37', u'openstack-api-version': 'container 1.37', u'vary': 'OpenStack-API-Version', 'status': '200', u'date': 'Sat, 26 Oct 2019 21:04:54 GMT', u'content-type': 'application/json', u'openstack-api-minimum-version': 'container 1.1', 'content-location': 'https://10.4.70.34/container/v1/containers/8363ebc8-b4fe-4377-ab21-76d86c8039ad/logs', u'server': 'Apache/2.4.29 (Ubuntu)', u'connection': 'close'}
2019-10-26 21:05:00.930699 | controller | Body: " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 10.1.0.4 port 80: No route to host\n"

hongbin (hongbin034)
Changed in zun:
status: New → Triaged
importance: Undecided → Medium
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.