Determine Which User Deleted VM instance

Problem

To find out which user deleted the VM instance. If the customer is unaware of the instance uuid, underlying host or in case of multiple instance deletion.

Environment

  • Platform9 Managed OpenStack - v4.0 and Higher

Procedure

Either <INSTANCE_NAME> or <INSTANCE_UUID> should be known.

We have divided the steps into two parts as below:

  1. Get the underlying host details of deleted VM instance from DB.
  2. Access ostackhost logs of the underlying host

Lets understand each steps in detail:

  1. Get the underlying host details of deleted VM instance from Nova DB.

If the HOST at which the VM was running is unknown, please reach out to Platform9 Support.

In the nova DB, below command is run to get the hostname.

DB Entry
Copy

Once the underlying Host is identified, please proceed with the next step.

  1. Access ostackhost logs of the underlying host

Login to the host to access ostackhost log or use support bundle logs and search for [INSTANCE_UUID] and "destroy the instance" like shown below:

On HOST
Copy

Look for [USERNAME_WHO_DELETED] that shows who performed the delete action.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard