gate fails on test_nested_stack_adopt_fail

Bug #1491773 reported by Oleksii Chuprykov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Thomas Herve

Bug Description

Gate fails with the following exception:

    Traceback (most recent call last):
       File "heat_integrationtests/functional/test_aws_stack.py", line 173, in test_nested_stack_adopt_fail
         wait_for_status='ADOPT_FAILED')
       File "heat_integrationtests/common/test.py", line 459, in stack_adopt
         adopt_stack_data=adopt_data,
      File "/opt/stack/new/heat/.tox/integration/local/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 136, in create
         data=kwargs, headers=headers)
       File "/opt/stack/new/heat/.tox/integration/local/lib/python2.7/site-packages/heatclient/common/http.py", line 287, in post
        return self.client_request("POST", url, **kwargs)
      File "/opt/stack/new/heat/.tox/integration/local/lib/python2.7/site-packages/heatclient/common/http.py", line 277, in client_request
         resp, body = self.json_request(method, url, **kwargs)
      File "/opt/stack/new/heat/.tox/integration/local/lib/python2.7/site-packages/heatclient/common/http.py", line 266, in json_request
         resp = self._http_request(url, method, **kwargs)
       File "/opt/stack/new/heat/.tox/integration/local/lib/python2.7/site-packages/heatclient/common/http.py", line 221, in _http_request
         raise exc.from_response(resp)
    heatclient.exc.HTTPBadRequest: ERROR: Failed to validate: : resources.the_nested: : Could not fetch remote template 'http://127.0.0.1:8080/v1/AUTH_1f61625712c4417d9812e351d8f0dac9/AwsStackTest/1344709351.yaml?temp_url_sig=9f1898248e082bd35d72aa0355020587bd33f435&temp_url_expires=1441239201': Failed to retrieve template: 401 Client Error: Unauthorized

Changed in heat:
status: New → Triaged
importance: Undecided → Medium
milestone: none → liberty-rc1
Revision history for this message
Angus Salkeld (asalkeld) wrote :

That is using swift to store the template (to test adopt from a url). Maybe we just need to first wait to make sure the swift object is available.

tags: added: gate-failure
Changed in heat:
milestone: liberty-rc1 → ongoing
Revision history for this message
Angus Salkeld (asalkeld) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/231295

Changed in heat:
assignee: nobody → Angus Salkeld (asalkeld)
status: Triaged → In Progress
Changed in heat:
milestone: ongoing → mitaka-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/231295
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=e9c6115ec90fb8193ac99b5f0e240decc15c7766
Submitter: Jenkins
Branch: master

commit e9c6115ec90fb8193ac99b5f0e240decc15c7766
Author: Angus Salkeld <email address hidden>
Date: Tue Oct 6 13:58:34 2015 +1000

    Try polling swift object before creating stack

    Change-Id: I185d13c8c89df7ee27a7b4740d8895b3367fafa6
    Closes-bug: #1491773

Changed in heat:
status: In Progress → Fix Committed
Revision history for this message
Sergey Kraynev (skraynev) wrote :

I think, that we need to backport it to liberty, to make the gate for liberty more stable.

tags: added: liberty-rc-potential
tags: added: liberty-backport-potential
removed: liberty-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/242290

Revision history for this message
Rabi Mishra (rabi) wrote :

I'm still seeing this error for heat_integrationtests.functional.test_aws_stack.AwsStackTest.test_nested_stack_create

I'm reopening this. Please close, if you think otherwise.

1. http://logs.openstack.org/50/242350/1/check/gate-heat-dsvm-functional-orig-mysql/345ecee/console.html#_2015-11-06_07_07_38_474

2. http://logs.openstack.org/50/242350/1/check/gate-heat-dsvm-functional-orig-mysql/345ecee/logs/screen-h-eng.txt.gz?#_2015-11-06_06_54_10_890

Changed in heat:
status: Fix Committed → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/liberty)

Reviewed: https://review.openstack.org/242290
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=d4c7e3ae3940aeee624bf5c2f9f7659c684d59a5
Submitter: Jenkins
Branch: stable/liberty

commit d4c7e3ae3940aeee624bf5c2f9f7659c684d59a5
Author: Angus Salkeld <email address hidden>
Date: Tue Oct 6 13:58:34 2015 +1000

    Try polling swift object before creating stack

    Change-Id: I185d13c8c89df7ee27a7b4740d8895b3367fafa6
    Closes-bug: #1491773
    (cherry picked from commit e9c6115ec90fb8193ac99b5f0e240decc15c7766)

tags: added: in-stable-liberty
tags: removed: liberty-backport-potential
Changed in heat:
milestone: mitaka-1 → mitaka-2
Changed in heat:
assignee: Angus Salkeld (asalkeld) → Thomas Herve (therve)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/263749
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=0e9f78df8251c7648d9c803d4a2b5c694767928a
Submitter: Jenkins
Branch: master

commit 0e9f78df8251c7648d9c803d4a2b5c694767928a
Author: Thomas Herve <email address hidden>
Date: Tue Jan 5 15:29:03 2016 +0100

    Fix race condition in tests with swift key

    In integration we publish templates in Swift using temporary URLs.
    Unfortunately there is a race condition in the way we setup the key, as
    we use the key global to the account. This switches to a container per
    test and a key per container to work around that.

    Change-Id: Ia19967696811847e5b3ba07df68848a1708c2316
    Closes-Bug: #1491773

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/heat 6.0.0.0b2

This issue was fixed in the openstack/heat 6.0.0.0b2 development milestone.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

This issue was fixed in the openstack/heat 6.0.0.0b2 development milestone.

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.