Project

General

Profile

Actions

Task #7650

closed

Synchronise opennebula VMs with etcd

Added by Nico Schottelius about 4 years ago. Updated 3 months ago.

Status:
Rejected
Priority:
Normal
Target version:
-
Start date:
01/24/2020
Due date:
% Done:

0%

Estimated time:
PM Check date:

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
Actions #1

Updated by Nico Schottelius about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Nico Schottelius about 4 years ago

  • Description updated (diff)
Actions #3

Updated by Nico Schottelius about 4 years ago

  • Description updated (diff)
Actions #4

Updated by Nico Schottelius about 4 years ago

  • Assignee changed from Mondi Ravi to Ahmed Bilal

I actually created this ticket some time ago

Actions #5

Updated by Ahmed Bilal about 4 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

Actions #6

Updated by Ahmed Bilal about 4 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.

Actions #7

Updated by Ahmed Bilal about 4 years ago

  • Assignee changed from Ahmed Bilal to Nico Schottelius
Actions #8

Updated by Nico Schottelius 3 months ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF