Bug 1259255
Summary: | heat results in error state when parameter changes and there is an underlying issue during stack-update | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Martin Schuppert <mschuppe> | ||||||||||
Component: | openstack-heat | Assignee: | Zane Bitter <zbitter> | ||||||||||
Status: | CLOSED ERRATA | QA Contact: | Amit Ugol <augol> | ||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | medium | ||||||||||||
Version: | 6.0 (Juno) | CC: | mburns, pablo.iranzo, rhel-osp-director-maint, sbaker, shardy, yeylon | ||||||||||
Target Milestone: | --- | Keywords: | Triaged, ZStream | ||||||||||
Target Release: | 6.0 (Juno) | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | openstack-heat-2014.2.3-9.el7ost | Doc Type: | Bug Fix | ||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2016-01-14 13:53:05 UTC | Type: | Bug | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
Martin Schuppert
2015-09-02 09:52:07 UTC
The second issue to reproduce this is to change the flavor in the new template to a non existing flavor in nova. 2015-09-02 11:43:09.583 2893 INFO heat.engine.resource [-] updating Server "external_server_1" [b8fddfcc-5375-4f77-945a-a75f9a2f51a2] Stack "stack1" [28d647bd-67d6-41a0-a822-a9ace5489a16] 2015-09-02 11:43:09.606 2893 DEBUG glanceclient.common.http [-] curl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}6fa1275045afdead33e580e56a723f5f50273540' -H 'Content-Type: application/octet-stream' http://192.168.200.5:9292/v1/images/detail?limit=20&name=cirros log_curl_request /usr/lib/python2.7/site-packages/glanceclient/common/http.py:120 2015-09-02 11:43:09.820 2893 DEBUG glanceclient.common.http [-] HTTP/1.1 200 OK date: Wed, 02 Sep 2015 09:43:09 GMT connection: keep-alive content-type: application/json; charset=UTF-8 content-length: 481 x-openstack-request-id: req-198c1ece-2f6a-4f00-a52c-1980ab756365 {"images": [{"status": "active", "deleted_at": null, "name": "cirros", "deleted": false, "container_format": "bare", "created_at": "2015-08-21T16:19:06", "disk_format": "qcow2", "updated_at": "2015-08-21T16:19:11", "min_disk": 0, "protected": false, "id": "11a7a0da-37a7-4299-b26a-4d7c97715261", "min_ram": 0, "checksum": "133eae9fb1c98f45894a4e60d8736619", "owner": "53a66750dda6498c9c3989da706c1113", "is_public": true, "virtual_size": null, "properties": {}, "size": 13200896}]} log_http_response /usr/lib/python2.7/site-packages/glanceclient/common/http.py:133 2015-09-02 11:43:10.079 2893 INFO heat.engine.resource [-] UPDATE: Server "external_server_1" [b8fddfcc-5375-4f77-945a-a75f9a2f51a2] Stack "stack1" [28d647bd-67d6-41a0-a822-a9ace5489a16] 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource Traceback (most recent call last): 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 439, in _action_recorder 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource yield 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 694, in update 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource args=[after, tmpl_diff, prop_diff]) 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 286, in wrapper 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource step = next(subtask) 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 480, in action_handler_task 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource handler_data = handler(*args) 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resources/server.py", line 759, in handle_update 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource flavor_id = self.client_plugin().get_flavor_id(flavor) 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/clients/os/nova.py", line 154, in get_flavor_id 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource raise exception.FlavorMissing(flavor_id=flavor) 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource FlavorMissing: The Flavor ID (dd) could not be found. 2015-09-02 11:43:10.079 2893 TRACE heat.engine.resource # heat stack-list ERROR: The Parameter (username) was not provided. Created attachment 1069331 [details]
orig template
Created attachment 1069332 [details]
orig params
Created attachment 1069333 [details]
stack change
Created attachment 1069334 [details]
stack change params
I just raised bug 1258967 yesterday to fix this issue in RHOS 7 (it's already fixed upstream in Liberty); the fix is relatively simple, so it may be possible to backport to RHOS 6 also, but I suspect it relies on some other changes between Juno and Kilo so it will require some investigation. *** Bug 1263091 has been marked as a duplicate of this bug. *** Upstream backport looks good. I tried the exact same steps to reproduce and was unable to issue an update unless I had all the default parameters as with the original create. This bypasses any subsequent issues that might occur later. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0037.html |