View Issue Details

IDProjectCategoryView StatusLast Update
0001171bareos-core[All Projects] Generalpublic2020-02-11 09:08
ReporterhasalahAssigned To 
PrioritynormalSeverityfeatureReproducibilityalways
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/ovirt-ca.cert:server=rhv.xx.com:username=admin@internal:password=XXXXXX:uuid=184f361e-fe51-48ef-bad2-a7012babd880"
   }
}
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

Activities

arogge

arogge

2020-02-04 14:51

developer   ~0003728

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

hasalah

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

BareosFdPluginOvirt.py (71,466 bytes)
arogge

arogge

2020-02-11 09:08

developer   ~0003773

Thanks for your PR#415 - https://github.com/bareos/bareos/pull/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: BareosFdPluginOvirt.py
2020-02-10 21:14 hasalah Note Added: 0003769
2020-02-11 09:08 arogge Note Added: 0003773