gcloud

ERROR: (gcloud.compute.os-config.vulnerability-reports.describe) NOT_FOUND on gcloud compute os-config vulnerability-reports describe


We have several vms at google gcloud in the same project some give a nice vulerability report but some give:

gcloud compute os-config vulnerability-reports describe [vm-name] --location=[zone] --project=[project]

ERROR: (gcloud.compute.os-config.vulnerability-reports.describe) NOT_FOUND: Requested entity was not found. This command is authenticated as [email] which is the active account specified by the [core/account] property.

we do have the google-osconfig-agent installed on those vm's. The command gcloud compute instances os-inventory describe [vm-name] --zone [zone] --project=[project] does work on all vm's

What can cause this?


Solution

  • Probably you have a problem with the OS agent on the machine. You can stop and start them and check that they are running with the following commando:

    sudo systemctl stop google-osconfig-agent
    sudo systemctl start google-osconfig-agent