List hidden stacks during cleanup
Sahara uses hidden Heat stacks to provision clusters, so cleanup script should also list hidden stacks Change-Id: Ic9d2e3a4a547493f376b824b6404f395fc6f9ff2
This commit is contained in:
parent
3312f72cc1
commit
2456742e4a
@ -49,7 +49,7 @@ def get_cinder_client():
|
||||
def cleanup_heat():
|
||||
current_name = sys.argv[2]
|
||||
client = get_heat_client()
|
||||
stacks = client.stacks.list()
|
||||
stacks = client.stacks.list(show_hidden=True)
|
||||
name_regex = re.compile(current_name)
|
||||
deleted_stacks = []
|
||||
|
||||
@ -64,7 +64,7 @@ def cleanup_heat():
|
||||
# Let Heat delete stacks
|
||||
time.sleep(60)
|
||||
|
||||
stacks = client.stacks.list()
|
||||
stacks = client.stacks.list(show_hidden=True)
|
||||
for stack in stacks:
|
||||
if stack.stack_name in deleted_stacks:
|
||||
# Resource cleanup is required
|
||||
|
Loading…
x
Reference in New Issue
Block a user