Skip to content

fix(range42-context): delete-everything — non-fatal empty VM list #209

@t0kubetsu

Description

@t0kubetsu

Problem

When proxmox_vm.list.to.jsons.sh returns no data — whether because no VMs are deployed, the Proxmox API is unreachable, or the devkit bug (range42-ansible_roles-debug-devkit#111) is triggered — delete-everything aborts immediately with a fatal error.

This means firewall teardown and known_hosts cleanup are skipped entirely, even though neither depends on VM state. The deployer is left in a dirty state that requires manual intervention.

Fix

Demote "no VM data" from a fatal abort to a warning: VM stop/delete is skipped, but the rest of the nuke sequence (firewall teardown, known_hosts cleanup) always runs to completion.

This also improves resilience when debug-devkit#111 is not yet fixed on the deployer — delete-everything degrades gracefully instead of aborting.

Tracked in PR #208.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions