Skip to content

If packer fails to delete a machine the execution is blocked indefinitely #300

@fernflower

Description

@fernflower

Given that IBM Cloud can be unstable at times and vm cleanup may not be finished due to some cloud-related underlying problem we should not be forever blocked imo.

Currently if packer guest termination fails, the packer run will be blocked with

==> powervs: Capturing Instance
    powervs: Job state: queued, progress: , message:
    powervs: Sleeping for 5m0s
    powervs: Job state: completed, progress: capture, message: capture vm has successfully completed
==> powervs: Pausing after run of step 'StepCaptureInstance'. Press enter to continue. 
==> powervs: Pausing before cleanup of step 'StepCaptureInstance'. Press enter to continue. 
==> powervs: Pausing before cleanup of step 'StepPrepare'. Press enter to continue. 
==> powervs: Pausing before cleanup of step 'StepProvision'. Press enter to continue. 
==> powervs: Pausing before cleanup of step 'StepConnect'. Press enter to continue. 
==> powervs: Pausing before cleanup of step 'StepCreateInstance'. Press enter to continue. 
==> powervs: Deleting the Instance
    powervs: VM still exists, state: SHUTOFF
    powervs: VM still exists, state: SHUTOFF
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR
    powervs: VM still exists, state: ERROR

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions