Tempest test: "test_create_second_image_when_first_image_is_being_saved" failing in featureset020 periodic job

Bug #1744907 reported by yatin
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Committed
High
Unassigned

Bug Description

1 Tempest test(test_create_second_image_when_first_image_is_being_saved) is failing in featureset020 master periodic job.

Failure logs:-
https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset020-master/3f97360/undercloud/home/jenkins/tempest/tempest.html.gz
https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset020-master/3f97360/undercloud/home/jenkins/tempest_output.log.txt.gz#_2018-01-23_07_27_56

For comparison logs of job which passed this test:-
https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset020-master/60f5231/undercloud/home/jenkins/tempest_output.log.txt.gz#_2018-01-20_10_59_44_536
https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset020-master/5937f4f/undercloud/home/jenkins/tempest_output.log.txt.gz#_2018-01-20_16_01_49_345
https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset020-master/f4445e9/undercloud/home/jenkins/tempest_output.log.txt.gz#_2018-01-19_10_58_02_075

The test tries to create an image from server twice: 1st should pass(return 202) and 2nd should return 409(as server task state is image_pending_upload).

In the failing job 2nd try also return 202 so the test is failing.
The thing i noted is that 2nd request in failing job is taking 4+second while in passing jobs it takes less than .5 seconds, so it might be related to some performance.

Tags: ci tempest
tags: added: ci promotion-blocker
Changed in tripleo:
importance: Undecided → Critical
yatin (yatinkarel)
description: updated
Revision history for this message
Alan Pevec (apevec) wrote :

This is a race that failing negative testcase [1] is supposed to catch
# Disallow creating another image when first image is being saved
and failing test taking longer is an indication that another image is created when it should not.

[1] https://git.openstack.org/cgit/openstack/tempest/tree/tempest/api/compute/images/test_images_oneserver_negative.py#n96

Revision history for this message
yatin (yatinkarel) wrote :
wes hayutin (weshayutin)
tags: removed: promotion-blocker
Changed in tripleo:
status: New → Triaged
milestone: none → queens-3
Revision history for this message
melanie witt (melwitt) wrote :

Agreed, test_create_second_image_when_first_image_is_being_saved appears brittle as it expects the first image is still busy being created when the second image create is attempted and expects to fail the second image create.

If there is unexpected delay in the CI environment between the first image create and the second image create attempt, the second image create will succeed if the first image has already finished.

Changed in tripleo:
milestone: queens-3 → queens-rc1
Revision history for this message
Alex Schultz (alex-schultz) wrote :

Since this is not currently failing consistently I think it's a High bug. If it starts failing consistently we need to figure out a plan to address it and should raid the priority.

Changed in tripleo:
importance: Critical → High
Revision history for this message
wes hayutin (weshayutin) wrote :

The quality of this tests is still uncertain. It has passed the last three attempts where tempest was executed [1]. It passed twice on the 20th and once on the 21st.

If this test fails in tempest again it will be moved to the skip list [2]

[1] https://review.rdoproject.org/jenkins/job/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset020-queens/
[2] https://github.com/openstack/tripleo-quickstart-extras/blob/master/roles/validate-tempest/vars/tempest_skip_queens.yml

Changed in tripleo:
milestone: queens-rc1 → rocky-1
Revision history for this message
yatin (yatinkarel) wrote :
Changed in tripleo:
milestone: rocky-1 → rocky-2
Revision history for this message
yatin (yatinkarel) wrote :
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
milestone: stein-3 → stein-rc1
Changed in tripleo:
milestone: stein-rc1 → train-1
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Changed in tripleo:
milestone: ussuri-1 → ussuri-2
wes hayutin (weshayutin)
tags: added: tempest
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
wes hayutin (weshayutin)
Changed in tripleo:
status: Triaged → Incomplete
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-rc3 → victoria-1
Changed in tripleo:
milestone: victoria-1 → victoria-3
Changed in tripleo:
status: Incomplete → Fix Committed
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.