FAIL: glance.tests.unit.v1.test_api.TestGlanceAPI.test_add_copy_from_image_authorized_upload_image_authorized

Bug #1326899 reported by Anita Kuno
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Won't Fix
Medium
Alexander Tivelkov

Bug Description

2014-05-27 22:27:18.106 | ${PYTHON:-python} -m subunit.run discover -t ./ ./glance/tests
2014-05-27 22:27:18.106 | ======================================================================
2014-05-27 22:27:18.106 | FAIL: glance.tests.unit.v1.test_api.TestGlanceAPI.test_add_copy_from_image_authorized_upload_image_authorized
2014-05-27 22:27:18.106 | tags: worker-0
2014-05-27 22:27:18.106 | ----------------------------------------------------------------------
2014-05-27 22:27:18.106 | Traceback (most recent call last):
2014-05-27 22:27:18.106 | File "glance/tests/unit/v1/test_api.py", line 904, in test_add_copy_from_image_authorized_upload_image_authorized
2014-05-27 22:27:18.107 | self.assertEqual(res.status_int, 201)
2014-05-27 22:27:18.107 | File "/home/jenkins/workspace/gate-glance-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 321, in assertEqual
2014-05-27 22:27:18.107 | self.assertThat(observed, matcher, message)
2014-05-27 22:27:18.107 | File "/home/jenkins/workspace/gate-glance-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 406, in assertThat
2014-05-27 22:27:18.107 | raise mismatch_error
2014-05-27 22:27:18.107 | MismatchError: 400 != 201
2014-05-27 22:27:18.107 | ======================================================================
2014-05-27 22:27:18.107 | FAIL: process-returncode
2014-05-27 22:27:18.107 | tags: worker-0
2014-05-27 22:27:18.107 | ----------------------------------------------------------------------
2014-05-27 22:27:18.107 | Binary content:
2014-05-27 22:27:18.108 | traceback (test/plain; charset="utf8")
2014-05-27 22:27:18.108 | Ran 2249 tests in 777.846s
2014-05-27 22:27:18.108 | FAILED (id=0, failures=2, skips=33)
2014-05-27 22:27:18.108 | error: testr failed (1)
2014-05-27 22:27:18.190 | ERROR: InvocationError: '/home/jenkins/workspace/gate-glance-python26/.tox/py26/bin/python -m glance.openstack.common.lockutils python setup.py test --slowest --testr-args=--concurrency 1 '
2014-05-27 22:27:18.190 | ___________________________________ summary ____________________________________
2014-05-27 22:27:18.190 | ERROR: py26: commands failed

Tags: testing
Revision history for this message
Anita Kuno (anteaya) wrote :

e-r query:
message:"FAIL: glance.tests.unit.v1.test_api.TestGlanceAPI.test_add_copy_from_image_authorized_upload_image_authorized" AND tags:"console" AND project:"openstack/glance" AND build_queue:"gate"

https://review.openstack.org/#/c/98189/1/queries/1326899.yaml

Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Joe Gordon (jogo) wrote :

Not seeing this in CI anymore, removing from elastic-recheck

Revision history for this message
Erno Kuvaja (jokke) wrote :

Haven't been seen for a while and by the details looks like this was on check Q only. Proposing closure.

tags: added: propose-close
Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :

IFY, frankly I just met this issue in my local dev env yesterday, it is my third time for this week.

Revision history for this message
Nick Bartos (bartos) wrote :

The problem would seem to be DNS/network related. The unit test is making a DNS query for glance.com and trying to connect to the resulting host on port 80. If you are running in an environment without DNS, or disconnected from the internet, you should run into this problem. Here's a tcpdump log of what the test is doing:

13:11:10.768268 IP 10.1.10.12.60026 > 8.8.8.8.53: 17481+ A? glance.com. (28)
13:11:10.768286 IP 10.1.10.12.60026 > 8.8.8.8.53: 63563+ AAAA? glance.com. (28)
13:11:10.792886 IP 10.1.10.12.55560 > 50.63.202.44.80: Flags [S], seq 2188719652, win 29200, options [mss 1460,sackOK,TS val 3099209 ecr 0,nop,wscale 7], length 0
13:11:10.821401 IP 10.1.10.12.55560 > 50.63.202.44.80: Flags [.], ack 4237148574, win 229, options [nop,nop,TS val 3099216 ecr 1915308919], length 0
13:11:10.821532 IP 10.1.10.12.55560 > 50.63.202.44.80: Flags [P.], seq 0:88, ack 1, win 229, options [nop,nop,TS val 3099216 ecr 1915308919], length 88
13:11:10.862721 IP 10.1.10.12.55560 > 50.63.202.44.80: Flags [.], ack 284, win 237, options [nop,nop,TS val 3099227 ecr 1915308993], length 0
13:11:10.865220 IP 10.1.10.12.55560 > 50.63.202.44.80: Flags [F.], seq 88, ack 284, win 237, options [nop,nop,TS val 3099227 ecr 1915308993], length 0
13:11:10.887338 IP 10.1.10.12.44043 > 8.8.8.8.53: 42818+ A? glance.com. (28)
13:11:10.887346 IP 10.1.10.12.44043 > 8.8.8.8.53: 35143+ AAAA? glance.com. (28)
13:11:10.893752 IP 10.1.10.12.55560 > 50.63.202.44.80: Flags [.], ack 285, win 237, options [nop,nop,TS val 3099235 ecr 1915309024], length 0
13:11:10.914469 IP 10.1.10.12.55561 > 50.63.202.44.80: Flags [S], seq 199963881, win 29200, options [mss 1460,sackOK,TS val 3099240 ecr 0,nop,wscale 7], length 0
13:11:10.941791 IP 10.1.10.12.55561 > 50.63.202.44.80: Flags [.], ack 1154583435, win 229, options [nop,nop,TS val 3099247 ecr 1914082679], length 0
13:11:11.008830 IP 10.1.10.12.55561 > 50.63.202.44.80: Flags [F.], seq 0, ack 1, win 229, options [nop,nop,TS val 3099263 ecr 1914082679], length 0
13:11:11.043143 IP 10.1.10.12.55561 > 50.63.202.44.80: Flags [.], ack 2, win 229, options [nop,nop,TS val 3099272 ecr 1914083283], length 0

This test should really be fixed so it's not contacting external hosts, which may or may not be up. I don't even thing glance.com is related to openstack. If the owner of that domain changes DNS or shuts down the webserver listening on port 80, this test will probably start failing everywhere.

Zhi Yan Liu (lzy-dev)
Changed in glance:
status: New → Triaged
importance: Undecided → Medium
tags: added: testing
tags: removed: propose-close
Changed in glance:
assignee: nobody → Alexander Tivelkov (ativelkov)
Revision history for this message
Abhishek Kekane (abhishek-kekane) wrote :

V1 tests will be removed in Rocky so no need to keep this open.

Changed in glance:
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.