Task #7650
closedSynchronise opennebula VMs with etcd
0%
Description
- etcd prefix: /opennebula *
What to synchronise¶
- /opennebula/vm/<VM id>
- all information about the VM
- also terminated VMs
Use cases¶
I want to be able to
- Get the current host of the VM
- Get the VNC port of a VM
- get the list of all disk images associated with a VM
- Need to know who is the owner of a VM
- Which VM has the IPv4/IPv6 address xxx?
Step 1¶
- Get the data into etcd
Step 2¶
- Create a script to extract answers to the use cases
Updated by Nico Schottelius almost 5 years ago
- Assignee changed from Mondi Ravi to Ahmed Bilal
I actually created this ticket some time ago
Updated by Ahmed Bilal almost 5 years ago
Nico its done. https://code.ungleich.ch/ungleich-public/ungleich-tools/tree/master/opennebula-vm-etcd
1. Putting VM info into etcd put-vm-info-into-etcd.py
2. VM Queries Example Script vm-queries.py
although slow as I discussed in infra channel.
https://chat.ungleich.ch/ungleich/pl/cy4e5kq48t8ijjttqct9fu1s4h and https://chat.ungleich.ch/ungleich/pl/cougyydbh7rn58bqyqbqh5yisy
Updated by Ahmed Bilal almost 5 years ago
I changed the whole engine, so it is not slow anymore. Previously, I am using pyone library provided by OpenNebula that is in simple words full of bugs. Now, I am directly using XML-RPC client builtin Python to make remote procedural calls to our OpenNebula server to get data or to perform some actions on VM.
Updated by Ahmed Bilal almost 5 years ago
- Assignee changed from Ahmed Bilal to Nico Schottelius