test_asg_scale_up_max_size fails with KeyError

Bug #1653990 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Rabi Mishra

Bug Description

Fails with the below trace:

2017-01-04 12:00:05.478362 | 2017-01-04 12:00:05.476 | Traceback (most recent call last):
2017-01-04 12:00:05.479994 | 2017-01-04 12:00:05.479 | File "/opt/stack/new/heat/heat_integrationtests/functional/test_heat_autoscaling.py", line 120, in test_asg_scale_up_max_size
2017-01-04 12:00:05.482205 | 2017-01-04 12:00:05.481 | asg.physical_resource_id, expected_resources)
2017-01-04 12:00:05.484362 | 2017-01-04 12:00:05.483 | File "/opt/stack/new/heat/heat_integrationtests/common/test.py", line 54, in call_until_true
2017-01-04 12:00:05.486063 | 2017-01-04 12:00:05.485 | if func(*args, **kwargs):
2017-01-04 12:00:05.488806 | 2017-01-04 12:00:05.488 | File "/opt/stack/new/heat/heat_integrationtests/common/test.py", line 649, in check_autoscale_complete
2017-01-04 12:00:05.491046 | 2017-01-04 12:00:05.490 | res_list = self.client.resources.list(stack_id)
2017-01-04 12:00:05.493215 | 2017-01-04 12:00:05.492 | File "/usr/local/lib/python2.7/dist-packages/heatclient/v1/resources.py", line 71, in list
2017-01-04 12:00:05.495393 | 2017-01-04 12:00:05.494 | return self._list(url, "resources")
2017-01-04 12:00:05.497396 | 2017-01-04 12:00:05.496 | File "/usr/local/lib/python2.7/dist-packages/heatclient/common/base.py", line 118, in _list
2017-01-04 12:00:05.499280 | 2017-01-04 12:00:05.498 | body = self.client.get(url).json()
2017-01-04 12:00:05.501352 | 2017-01-04 12:00:05.500 | File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 287, in get
2017-01-04 12:00:05.503475 | 2017-01-04 12:00:05.502 | return self.client_request("GET", url, **kwargs)
2017-01-04 12:00:05.505546 | 2017-01-04 12:00:05.504 | File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 280, in client_request
2017-01-04 12:00:05.507506 | 2017-01-04 12:00:05.507 | resp, body = self.json_request(method, url, **kwargs)
2017-01-04 12:00:05.509742 | 2017-01-04 12:00:05.509 | File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 269, in json_request
2017-01-04 12:00:05.511695 | 2017-01-04 12:00:05.511 | resp = self._http_request(url, method, **kwargs)
2017-01-04 12:00:05.513828 | 2017-01-04 12:00:05.513 | File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 241, in _http_request
2017-01-04 12:00:05.515766 | 2017-01-04 12:00:05.515 | resp = self._http_request(location, method, **kwargs)
2017-01-04 12:00:05.517712 | 2017-01-04 12:00:05.517 | File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 232, in _http_request
2017-01-04 12:00:05.519488 | 2017-01-04 12:00:05.519 | raise exc.from_response(resp)
2017-01-04 12:00:05.521586 | 2017-01-04 12:00:05.521 | heatclient.exc.HTTPInternalServerError: ERROR: u'u\'775lfnyg63f4\'\n

Engine Log.

http://logs.openstack.org/60/415160/3/check/gate-heat-dsvm-functional-orig-mysql-lbaasv2-ubuntu-xenial/95f5b19/logs/screen-h-eng.txt.gz?level=TRACE#_2017-01-04_11_51_33_181

Rabi Mishra (rabi)
Changed in heat:
milestone: none → next
importance: Undecided → Medium
Rabi Mishra (rabi)
Changed in heat:
assignee: nobody → Rabi Mishra (rabi)
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/476901

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

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

commit 3967a93f5de2e147a6d9c3f4fef9fd1a8f5d3498
Author: rabi <email address hidden>
Date: Fri Jun 23 17:43:19 2017 +0530

    Filter out resources not in template when listing

    It's possibile for resource listing of a legacy stack with an update
    in progress to have resources in db but not in template.

    Probably it would not hurt to filter those out.

    Change-Id: I84e56ba88270079acbfcdc6227c4263b39956fe6
    Closes-Bug: #1653990

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/480627

Thomas Herve (therve)
Changed in heat:
milestone: next → pike-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/ocata)

Reviewed: https://review.openstack.org/480627
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=684bd9e38fdd648e64a462ff1c89febff45578e0
Submitter: Jenkins
Branch: stable/ocata

commit 684bd9e38fdd648e64a462ff1c89febff45578e0
Author: rabi <email address hidden>
Date: Fri Jun 23 17:43:19 2017 +0530

    Filter out resources not in template when listing

    It's possibile for resource listing of a legacy stack with an update
    in progress to have resources in db but not in template.

    Probably it would not hurt to filter those out.

    Change-Id: I84e56ba88270079acbfcdc6227c4263b39956fe6
    Closes-Bug: #1653990
    (cherry picked from commit 3967a93f5de2e147a6d9c3f4fef9fd1a8f5d3498)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 9.0.0.0b3

This issue was fixed in the openstack/heat 9.0.0.0b3 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 8.0.3

This issue was fixed in the openstack/heat 8.0.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/499576

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/newton)

Reviewed: https://review.openstack.org/499576
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=1cfa30eb08bab5fc73a808302038b7562ad4161c
Submitter: Jenkins
Branch: stable/newton

commit 1cfa30eb08bab5fc73a808302038b7562ad4161c
Author: rabi <email address hidden>
Date: Thu Aug 31 19:24:13 2017 +0530

    Filter out resources not in template when listing

    It's possibile for resource listing of a legacy stack with an update
    in progress to have resources in db but not in template.

    Probably it would not hurt to filter those out.

    Note: This needed some changes as https://review.openstack.org/#/c/483574
    merged in stable/newton before this.

    Change-Id: I84e56ba88270079acbfcdc6227c4263b39956fe6
    Closes-Bug: #1653990
    (cherry picked from commit 3967a93f5de2e147a6d9c3f4fef9fd1a8f5d3498)

tags: added: in-stable-newton
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.