Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How to get Event list and Audit Information of the VM Instances in OpenStack
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
- What is the process to list all the events of the VM (shutdown, migrate, start) in Platform9 Managed OpenStack?
- How to identify which user performed an event on the VM instance.
Environment
- Platform9 Managed OpenStack - v5.0 and Higher
Answer
There are 2 ways to get details of the events for a VM Instance.
Method1:
- Run the below command which list all the VMs.
VM-UUIDcan be found the VM details through web console.
List VMs
xxxxxxxxxx$ openstack server list -all | grep <vm-uuid>- Run the below command to get complete details of the affected VM.
VM details
xxxxxxxxxx$ openstack server show <vm-uuid>- Identify the hypervisor where the VM is running (
OS-EXT-SRV-ATTR:host) and SSH to the hypervisor. This information is also visible in the web console. - Check the ostackhost logs in the hypervisor and grep for the
req-IDto get the details.
ostackhost logs
xxxxxxxxxx$ cat /var/log/pf9/ostackhost.log | grep <req-id> | tail- Observe and identify the example log traces like below which explain the details of the VM.
sample log
INFO nova.virt.libvirt.driver [<req-UUID> example name tenant] [instance: <VM-UUID>] Instance shutdown successfully after 40 seconds.- In the above log, instead of
<example name>and<tenant>, there is information of the user who initiated the action and tenant.
Method2
- Follow till step2 of Method1 to get complete details of the VM Instance.
- Run the below command to get list of the events of the VM Instance.
List events
xxxxxxxxxx$ openstack server event list <vm-uuid>- Identify the
Request IDof event which needs to be investigated. - Get the details of the Request using the below command:
Bash
xxxxxxxxxx$ openstack server event show <vm-uuid> <req-id>- In the output of this command, identify which user had initiated the request in the
<user_id>field. - Run the below command to identify the username of the user who initiated the request
Bash
xxxxxxxxxx$ openstack user list | grep <user-id>VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message