python-tempestconf: 409 Conflict Image status transition from active to saving is not allowed'

Bug #1885311 reported by wes hayutin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Triaged
Critical
Unassigned

Bug Description

2020-06-26 15:55:40.730404 | primary | 2020-06-26 15:55:37.626 252527 INFO tempest.lib.common.rest_client [req-3e92b379-7af0-44e3-9b5a-b01c645fbdf0 ] Request (main): 200 GET http://192.168.24.1:9292/v2/images 0.054s
2020-06-26 15:55:40.730432 | primary | 2020-06-26 15:55:37.626 252527 INFO config_tempest.constants [-] Creating image 'cirros-0.4.0-x86_64-disk.img_alt'
2020-06-26 15:55:40.730458 | primary | 2020-06-26 15:55:37.627 252527 INFO config_tempest.constants [-] Image 'http://images.rdoproject.org/cirros/cirros-0.4.0-x86_64-disk.img' already fetched to 'etc/cirros-0.4.0-x86_64-disk.img'.
2020-06-26 15:55:40.730485 | primary | 2020-06-26 15:55:37.627 252527 INFO config_tempest.constants [-] Uploading image 'cirros-0.4.0-x86_64-disk.img_alt' from '/home/zuul/tempest/etc/cirros-0.4.0-x86_64-disk.img'
2020-06-26 15:55:40.730513 | primary | 2020-06-26 15:55:37.682 252527 INFO tempest.lib.common.rest_client [req-6a7a13eb-be44-4175-b5ae-073329249d3a ] Request (main): 201 POST http://192.168.24.1:9292/v2/images 0.055s
2020-06-26 15:55:40.730541 | primary | 2020-06-26 15:55:40.144 252527 WARNING urllib3.connectionpool [-] Retrying (Retry(total=9, connect=None, read=None, redirect=5, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))': /v2/images/fc25e1f2-3763-40a6-a670-49bcf40978a4/file
2020-06-26 15:55:40.730574 | primary | 2020-06-26 15:55:40.486 252527 INFO tempest.lib.common.rest_client [req-42288e7b-1fd8-4248-bc24-bab5f36de4de ] Request (main): 409 PUT http://192.168.24.1:9292/v2/images/fc25e1f2-3763-40a6-a670-49bcf40978a4/file 2.803s
2020-06-26 15:55:40.730602 | primary | 2020-06-26 15:55:40.486 252527 CRITICAL tempest [-] Unhandled error: tempest.lib.exceptions.Conflict: Conflict with state of target resource
2020-06-26 15:55:40.730628 | primary | Details: b'409 Conflict\n\nImage status transition from active to saving is not allowed\n\n '
2020-06-26 15:55:40.730652 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest Traceback (most recent call last):
2020-06-26 15:55:40.730677 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest File "/bin/discover-tempest-config", line 10, in <module>
2020-06-26 15:55:40.730702 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest sys.exit(main())
2020-06-26 15:55:40.730727 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest File "/usr/lib/python3.6/site-packages/config_tempest/main.py", line 605, in main
2020-06-26 15:55:40.730752 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest verbose=args.verbose
2020-06-26 15:55:40.730777 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest File "/usr/lib/python3.6/site-packages/config_tempest/main.py", line 545, in config_tempest
2020-06-26 15:55:40.730802 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest image.create_tempest_images(conf)
2020-06-26 15:55:40.730828 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest File "/usr/lib/python3.6/site-packages/config_tempest/services/image.py", line 119, in create_tempest_images
2020-06-26 15:55:40.730852 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest image_dest=img_path)
2020-06-26 15:55:40.730876 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest File "/usr/lib/python3.6/site-packages/config_tempest/services/image.py", line 161, in find_or_upload_image
2020-06-26 15:55:40.730901 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest image = self._upload_image(image_name, image_dest)
2020-06-26 15:55:40.730935 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest File "/usr/lib/python3.6/site-packages/config_tempest/services/image.py", line 212, in _upload_image
2020-06-26 15:55:40.730965 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest self.client.store_image_file(image['id'], data)
2020-06-26 15:55:40.731030 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest File "/usr/lib/python3.6/site-packages/tempest/lib/services/image/v2/images_client.py", line 151, in store_image_file
2020-06-26 15:55:40.731060 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest body=data, chunked=True)
2020-06-26 15:55:40.731088 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 687, in request
2020-06-26 15:55:40.731116 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest self._error_checker(resp, resp_body)
2020-06-26 15:55:40.731142 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 808, in _error_checker
2020-06-26 15:55:40.731168 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest raise exceptions.Conflict(resp_body, resp=resp)
2020-06-26 15:55:40.731193 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest tempest.lib.exceptions.Conflict: Conflict with state of target resource
2020-06-26 15:55:40.731231 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest Details: b'409 Conflict\n\nImage status transition from active to saving is not allowed\n\n '
2020-06-26 15:55:40.731258 | primary | 2020-06-26 15:55:40.486 252527 ERROR tempest 
2020-06-26 15:55:40.731284 | primary |
2020-06-26 15:55:40.731310 | primary |

https://6b5c7688254ddf6bc600-1e37d93b1287908e0942eb2641078389.ssl.cf5.rackcdn.com/737774/2/gate/tripleo-ci-centos-8-scenario010-standalone/5e1471f/job-output.txt

Looks like the cirros 4.x image may already be uploaded and active in glance.
Perhaps tempestconf needs to handle this scenario. More investigation needed.

Tags: alert tempest
wes hayutin (weshayutin)
summary: - python-tempestconf: 409 Conflict\n\nImage status transition from active
- to saving is not allowed\n\n '
+ python-tempestconf: 409 Conflict Image status transition from active to
+ saving is not allowed'
Changed in tripleo:
milestone: victoria-1 → victoria-3
Changed in tripleo:
milestone: victoria-3 → wallaby-1
Changed in tripleo:
milestone: wallaby-1 → wallaby-2
Changed in tripleo:
milestone: wallaby-2 → wallaby-3
Changed in tripleo:
milestone: wallaby-3 → wallaby-rc1
Changed in tripleo:
milestone: wallaby-rc1 → xena-1
Changed in tripleo:
milestone: xena-1 → xena-2
Changed in tripleo:
milestone: xena-2 → xena-3
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.