https://github.com/monolithprojects/orphantracker
Script which helps identify orphaned instances in the OpenStack.
https://github.com/monolithprojects/orphantracker
instances openstack orphaned vm
Last synced: 12 months ago
JSON representation
Script which helps identify orphaned instances in the OpenStack.
- Host: GitHub
- URL: https://github.com/monolithprojects/orphantracker
- Owner: MonolithProjects
- Created: 2018-09-17T20:30:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-16T16:13:37.000Z (over 7 years ago)
- Last Synced: 2025-01-23T06:45:17.048Z (over 1 year ago)
- Topics: instances, openstack, orphaned, vm
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# orphantracker
Script helps to identify orphaned VMs in the OpenStack.
It runs trough all VMs and checks if they are assigned to an existing Openstack Project/Tenant.
Result will be a list of orphaned VMs. Script will NOT delete any VM.
# Usage
Install `openstack` client and just load your `openrc` file for user with `admin role` and run the script.
# Usage and output example
```
$ ./orphantracker.sh
Searching for orphaned VMs...
Checked 2 of total 2 VMs...
I have found 2 orphaned VMs:
+----------------------------------+--------------------------------------+------------------------------+
| Project ID | VirtualMachine ID | VirtualMachine Name |
+----------------------------------+--------------------------------------+------------------------------+
| 3c4c71840ea0407dabdb22b72bc50f12 40eca4a7-0696-41a0-9ca4-1a0bdd0e778a virtual-machine_RedHatEnt... |
| 3c4c71840ea0407dabdb22b72bc50f12 f47de21a-9005-4b38-87dc-07497261a82e testVM_db |
+----------------------------------+--------------------------------------+------------------------------+
```