stack-delete/stack-abandon fails with missing resources from global environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Low
|
Peter Razumovsky | ||
Juno |
Fix Released
|
Low
|
Peter Razumovsky | ||
Kilo |
Fix Released
|
Low
|
Peter Razumovsky |
Bug Description
We created a bunch of custom resources for use in global environments. They
work just fine if they are registered from a user's environment (specified
using -e) using resource_registry, both for stack-create and stack-delete. If
the same environment is copied to /etc/heat/
continue to work. stack-delete depends on the continued availability of the
global environment used to create the stack, though. If the global environment
is removed before stack-delete the stack will be remain stuck in state
DELETE_IN_PROGRESS indefinitely. Additionally, stack-abandon will result in an
error message:
$ heat stack-abandon test_delete
ERROR: Unknown resource Type : sys11::bootstrap
Recovery from the error condition is possible through restoring the missing
environment and issuing another stack-delete.
A minimum example template, environment and costum resource to reproduce the
problem we observed is attached. We ran into this problem with the stable/juno
version of heat-engine (Ubuntu Package version 2014.2.
Steps to reproduce with user environment (working):
1. tar -C /tmp -xf test_global_env.tar
2. heat stack-create -e /tmp/test_
3. heat stack-delete test_delete # Works fine.
2. heat stack-create -e /tmp/test_
3. heat stack-abandon test_delete # Works fine.
Steps to reproduce with global environment (breaks upon stack-delete):
1. tar -C /tmp -xf test_global_env.tar # on the machine where heat-engine is running.
2. cp /tmp/test_
3. service heat-engine restart
4. heat stack-create -f /tmp/test_
5. rm /etc/heat/
6. service heat-engine restart
7. heat stack-delete test_delete # Stack gets stuck in state DELETE_IN_PROGRESS.
8. heat stack-abandon test_delete # Results in the error message shown above.
9. cp /tmp/test_
10. service heat-engine restart
11. heat stack-delete test_delete # Will work now.
Changed in heat: | |
assignee: | nobody → Razumovsky Peter (prazumovsky) |
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → kilo-rc1 |
Changed in heat: | |
milestone: | kilo-rc1 → none |
milestone: | none → next |
importance: | Medium → Low |
tags: | added: kilo-rc-potential |
tags: | removed: kilo-rc-potential |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/168865
Review: https:/