Determine Which User Deleted VM instance
PreviousDetermine which user deleted the OpenStack instance from nova-api logsNextVM instance is deleted from OpenStack, but not from the underlying host causing IP duplication
Last updated
mysql> select display_name,created_at,updated_at,deleted_at,uuid,node from instances where display_name="<INSTANCE_NAME>" and updated_at >='<TENTATIVE_DATE>';
+-----------------+---------------------+---------------------+---------------------+-----------------+------------+
| display_name | created_at | updated_at | deleted_at | uuid | node |
+-----------------+---------------------+---------------------+---------------------+-----------------+------------+
| [INSTANCE_NAME] | [CREATED_TIMESTAMP] | [UPDATED_TIMESTAMP] | [DELETED_TIMESTAMP] | [INSTANCE_UUID] | [HOSTNAME] |
+-----------------+---------------------+---------------------+---------------------+-----------------+------------+
1 row in set (0.00 sec)# grep "<INSTANCE_UUID>" /var/log/pf9/ostackhost.log* | grep -i "destroy the instance"
[TIMESTAMP] INFO nova.compute.manager [[REQ_ID] [USERNAME_WHO_DELETED] [OTHER_DETAILS] [instance: [INSTANCE_UUID]] Took 1.56 seconds to destroy the instance on the hypervisor.