Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

heat "stack check"

Hi colleagues,

two questions:

  1. what "stack check" command supposed to do?
  2. check of suspended stack leads to unrecoverable error with stack - is it ok?
# openstack stack list
... | vt         | CREATE_COMPLETE |
# openstack stack check vt
... | vt         | CREATE_COMPLETE |
# openstack stack list
... | vt         | CHECK_COMPLETE  |
# openstack stack suspend vt
# openstack stack list
... | vt         | SUSPEND_COMPLETE |
# openstack stack check vt
# openstack stack list
... | vt         | CHECK_FAILED    |
# openstack stack resume vt
# openstack stack list
... | vt         | RESUME_FAILED   |

while heat-engine.log says the following:

INFO heat.engine.resource [ ... ] CHECK: Server "n1" [fb12928c-fa46-4575-8aa3-9cc9dd16f57f] Stack "vt" [7519dba6-85e4-4320-8f41-1c1a6a762dde]
ERROR heat.engine.resource Traceback (most recent call last):
ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 831, in _action_recorder
ERROR heat.engine.resource     yield
ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 939, in _do_action
ERROR heat.engine.resource     yield self.action_handler_task(action, args=handler_args)
ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/scheduler.py", line 334, in wrapper
ERROR heat.engine.resource     step = next(subtask)
ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 884, in action_handler_task
ERROR heat.engine.resource     handler_data = handler(*args)
ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resources/openstack/nova/server.py", line 885, in handle_check
ERROR heat.engine.resource     self._verify_check_conditions(checks)
ERROR heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 1643, in _verify_check_conditions
ERROR heat.engine.resource     raise exception.Error('; '.join(invalid_checks))
ERROR heat.engine.resource Error: 'status': expected 'ACTIVE', got 'SUSPENDED'
ERROR heat.engine.resource
WARNING heat.engine.resource [ ... ] no calling_engine_id in store {'status': 'FAILED', 'updated_at': None, 'needed_by': [], 'properties_data': None, 'replaced_by': None, 'status_reason': u"Error: resources.n1: 'status': expected 'ACTIVE', got 'SUSPENDED'", 'replaces': None, 'current_template_id': 1510, 'name': u'n1', 'stack_id': u'7519dba6-85e4-4320-8f41-1c1a6a762dde', 'requires': [6940, 6934], 'root_stack_id': u'7519dba6-85e4-4320-8f41-1c1a6a762dde', 'physical_resource_id': u'fb12928c-fa46-4575-8aa3-9cc9dd16f57f', 'action': 'CHECK', 'rsrc_prop_data_id': 7657}: Error: 'status': expected 'ACTIVE', got 'SUSPENDED'
INFO heat.engine.stack [ ... ] Stack CHECK FAILED (vt): Resource CHECK failed: ["Error: resources.n1: 'status': expected 'ACTIVE', got 'SUSPENDED'"]
INFO heat.engine.stack [ ... ] Stack CHECK FAILED (vt): Resource CHECK failed: ["Error: resources.n1: 'status': expected 'ACTIVE', got 'SUSPENDED'"]. 'CHECK' not fully supported (see resources)
INFO heat.engine.stack [ ... ] Stack RESUME IN_PROGRESS (vt): Stack RESUME started
INFO heat.engine.stack [ ... ] Stack RESUME FAILED (vt): Resource RESUME failed: Error: resources.e-secgroup: State (u'CHECK', u'COMPLETE') invalid for resume

Is Q2 is a case for raising bug or this is documented behaviour?

Thank you!