Skip to content

[Omi desktop backend] get_agent_status: VM deleted in GCP but Firestore record still exists is not handled #6891

Closed

Description

@thainguyensunya

Summary

When a GCE VM is hard-deleted from GCP (via console, cleanup script, billing event, etc.) while its Firestore record still exists, get_agent_status returns stale data (e.g. Ready + old IP) instead of indicating the VM is gone.

Root cause

check_gce_instance_status doesn't check the HTTP status code before parsing the response body. A GCP 404 (instance not found) gets parsed as Ok("UNKNOWN"), which falls into the catch-all debug log arm and is silently ignored.

Impact

The user receives a stale Ready status with an invalid IP, and cannot re-provision because Firestore still holds the old record. Manual Firestore cleanup is required to recover.

Activity

  1. added
    p2
    intelligence
    on Apr 21, 2026
  2. aryanorastar commented on Sep 20, 2026

    @aryanorastar
    Collaborator

    Closing as already fixed on current main.

    #6892 merged (NOT_FOUND + stale Firestore). current main get_agent_status is now a 200/null stub (VM retirement) — original stale-Ready path is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    intelligencep2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions