Skip to content

Azure returns 404 in queryInstance() call #8314

@lotas

Description

@lotas

Which looks suspicious, we need to double check if the worker is really gone

"reason": "vm not found in state running",

This happens during worker scanner loop and we try to fetch:

const instanceView = await this._enqueue('get', () => this.computeClient.virtualMachines.instanceView(
worker.providerData.resourceGroupName,
worker.providerData.vm.name,
));

if that gives us 404 for some reason we assume VM is dead, and deprovision it right away

Check if we could double-verify this somehow before immediately removing worker

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions