Deployer noop handler rename to delete_assembly

Bug #1350579 reported by Ed Cranford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Fix Released
Low
Unassigned

Bug Description

Looking at deployer/api.py, I notice there's a method delete_heat_stack defined. The noop handler, deployer/handlers/noop.py, does not have this method.

An easy fix is to add the missing method to noop and call it a day, but I don't think that's correct--handlers besides heat should bear no references to heat.

I think the method should instead be renamed to delete_assembly, and in the case of the heat handler, should continue to involve the deletion of related stacks as necessary. But for noop, the most it should do is delete the assembly, if that.

The shell_nobuild handler marks an assembly as READY despite there not actually being an instance or heat stack to back it up--it's mainly for keeping track of unittest results. Deploying solum with shell_nobuild handling worker requests and noop handling deployer requests means that unless noop deletes assemblies, those assemblies will stay DELETING forever.

Adrian Otto (aotto)
summary: - Deployer noop handler missing delete_heat_stack method
+ Deployer noop handler rename to delete_assembly
Changed in solum:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to solum (master)

Reviewed: https://review.openstack.org/127296
Committed: https://git.openstack.org/cgit/stackforge/solum/commit/?id=3cff5b409fa9124fe6c44eaab82f0947b973595a
Submitter: Jenkins
Branch: master

commit 3cff5b409fa9124fe6c44eaab82f0947b973595a
Author: Ed Cranford <email address hidden>
Date: Thu Oct 9 12:00:14 2014 -0500

    Rename deployer delete_heat_stack to destroy

    It doesn't make any sense that all deployers regardless of
    their use of heat should have a method naming heat.
    This patch renames the method to the more generic 'destroy',
    and also adds the missing method to deployer's noop handler.
    Without the method noop was in violation of its API.

    Change-Id: Ia525678055a40474413dbe2f4a5a062da7d92121
    Closes-Bug: 1350579

Changed in solum:
status: Triaged → Fix Committed
Adrian Otto (aotto)
Changed in solum:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.