OS::Heat::Delay heat resource doesn't work

Solution In Progress - Updated -

Issue

  • The OS::Heat::Delay heat resource doesn't work in heat 13.0.2-0. The issue can be reproduced by the following stack template:
heat_template_version: '2018-08-31'

resources:
  delay:
    type: OS::Heat::Delay
  • It just fails with error:
> o stack event list 66627608-67dd-4756-8f71-4c926b0501b9
2020-09-09 08:18:49Z [delay]: CREATE_IN_PROGRESS  Stack CREATE started
2020-09-09 08:18:49Z [delay]: CREATE_FAILED  Invalid action CREATE from actions
  • heat stack-show shows a CREATE_FAILED stack_status:
(overcloud) [stack@undercloud-0-rhosp16 heat]$ heat stack-show test
WARNING (shell) "heat stack-show" is deprecated, please use "openstack stack show" instead
+-----------------------+-------------------------------------------------------------------------------------------------------------------------+
| Property              | Value                                                                                                                   |
+-----------------------+-------------------------------------------------------------------------------------------------------------------------+
| capabilities          | []                                                                                                                      |
| creation_time         | 2020-09-11T13:48:04Z                                                                                                    |
| deletion_time         | None                                                                                                                    |
| description           | No description                                                                                                          |
| disable_rollback      | True                                                                                                                    |
| id                    | 90bd5c7c-11f4-48ba-9368-771395781456                                                                                    |
| links                 | http://192.168.122.143:8004/v1/bed8859bb8114b2eba5a1de80c299709/stacks/test/90bd5c7c-11f4-48ba-9368-771395781456 (self) |
| notification_topics   | []                                                                                                                      |
| outputs               | []                                                                                                                      |
| parameters            | {                                                                                                                       |
|                       |   "OS::stack_id": "90bd5c7c-11f4-48ba-9368-771395781456",                                                               |
|                       |   "OS::project_id": "bed8859bb8114b2eba5a1de80c299709",                                                                 |
|                       |   "OS::stack_name": "test",                                                                                             |
|                       |   "index": "0",                                                                                                         |
|                       |   "ssh_key": "test",                                                                                                    |
|                       |   "image": "cirros-0.4.0-x86_64-disk.img",                                                                              |
|                       |   "network": "test",                                                                                                    |
|                       |   "flavor": "m1.micro",                                                                                                 |
|                       |   "ext_net": "ext-net",                                                                                                 |
|                       |   "network_subnet": "test-subnet",                                                                                      |
|                       |   "security_group": "default"                                                                                           |
|                       | }                                                                                                                       |
| parent                | None                                                                                                                    |
| stack_name            | test                                                                                                                    |
| stack_owner           | None                                                                                                                    |
| stack_status          | CREATE_FAILED                                                                                                           |
| stack_status_reason   | Invalid action CREATE                                                                                                   |
| stack_user_project_id | 7efa73c920fd41b0bea3dc793feebe84                                                                                        |
| tags                  | null                                                                                                                    |
| template_description  | No description                                                                                                          |
| timeout_mins          | None                                                                                                                    |
| updated_time          | None                                                                                                                    |
+-----------------------+-------------------------------------------------------------------------------------------------------------------------+
  • We see the following error in /var/log/containers/heat/heat-engine.log :
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource [req-49bbb209-bf6e-4a00-8f21-25547566ea4f - admin - default default] Unexpected exception in resource check.: AssertionError: Invalid action CREATE
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource Traceback (most recent call last):
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/check_resource.py", line 313, in check
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     adopt_stack_data)
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/check_resource.py", line 152, in _do_check_resource
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     stack, self.msg_queue)
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/check_resource.py", line 391, in check_resource_update
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     stack.time_remaining(), check_message)
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/resource.py", line 1176, in create_convergence
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     runner(timeout=timeout, progress_callback=progress_callback)
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/scheduler.py", line 163, in __call__
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     progress_callback=progress_callback):
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/scheduler.py", line 239, in as_task
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     self.start(timeout=timeout)
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/scheduler.py", line 185, in start
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     self.step()
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/scheduler.py", line 212, in step
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     poll_period = next(self._runner)
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/scheduler.py", line 356, in wrapper
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     subtask = parent.throw(*sys.exc_info())
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/resource.py", line 1250, in create
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     yield self._do_action(action, pre_func)
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/scheduler.py", line 329, in wrapper
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     step = next(subtask)
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/scheduler.py", line 320, in wrapper
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     subtask = next(parent)
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource   File "/usr/lib/python3.6/site-packages/heat/engine/resource.py", line 1026, in _do_action
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource     assert action in self.ACTIONS, 'Invalid action %s' % action
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource AssertionError: Invalid action CREATE
2020-09-11 13:48:08.611 24 ERROR heat.engine.check_resource 

Environment

  • Red Hat OpenStack Platform 16.1 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content