View Issue Details

IDProjectCategoryView StatusLast Update
0001171bareos-core[All Projects] Generalpublic2020-02-11 09:08
ReporterhasalahAssigned To 
Status confirmedResolutionopen 
PlatformLinuxOSCentOSOS Version7
Product Version19.2.4~pre 
Fixed in Version 
Summary0001171: Backup the VM using UUID in oVirt-Plugin for Bareos
DescriptionHi All;
Is there a way to backup the VM using UUID, because the name of the VM may be changed?
I tried to do that but not work, the config file below:
vim /etc/bareos/bareos-dir.d/fileset/vm-backup.conf
FileSet {
   Name = "testvm1_fileset"

   Include {
      Options {
         signature = MD5
         Compression = LZ4
      Plugin = "python:module_path=/usr/lib64/bareos/plugins:module_name=bareos-fd-ovirt:ca=/etc/bareos/"
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action




2020-02-04 14:51

developer   ~0003728

You're right. This is a currently limitation the plugin has.


2020-02-10 21:14

reporter   ~0003769

Hello Arogge;
It's fixed by replacing the "uuid" with "id" in the plugin as shown below:

def get_vm(self, context):
        search = None
        if "uuid" in self.options:
            search = "uuid=%s" % str(self.options["uuid"])
Must be:
    def get_vm(self, context):
        search = None
        if "uuid" in self.options:
            search = "id=%s" % str(self.options["uuid"])

Thanks (71,466 bytes)


2020-02-11 09:08

developer   ~0003773

Thanks for your PR#415 -

Issue History

Date Modified Username Field Change
2020-02-03 10:08 hasalah New Issue
2020-02-04 14:51 arogge Status new => confirmed
2020-02-04 14:51 arogge Note Added: 0003728
2020-02-10 21:14 hasalah File Added:
2020-02-10 21:14 hasalah Note Added: 0003769
2020-02-11 09:08 arogge Note Added: 0003773