View Issue Details

IDProjectCategoryView StatusLast Update
0001171bareos-core[All Projects] Generalpublic2020-04-16 19:30
ReporterhasalahAssigned Toarogge 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSCentOSOS Version7
Product Version19.2.4~pre 
Fixed in Version19.2.7 
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: impactyes
bareos-master: actionfixed
bareos-19.2: impactyes
bareos-19.2: actionfixed
bareos-18.2: impactno
bareos-18.2: action
bareos-17.2: impactno
bareos-17.2: action
bareos-16.2: impactno
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

Relationships

related to 0001187 closedarogge_adm Release Bareos 19.2.7 

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
arogge

arogge

2020-04-08 16:36

developer   ~0003929

Patch committed to master and bareos-19.2.
Thanks for the patch!

Related Changesets

bareos: master e5f2e6d8

2020-02-10 21:03:12

hamazasalah


Committer: hasalah

Ported: N/A

Details Diff
Fix bug: Bareos Ovirt Plugin

This patch for backup a VM by using VM id
Affected Issues
0001171
mod - core/src/plugins/filed/BareosFdPluginOvirt.py Diff File

bareos: bareos-19.2 4f81af98

2020-02-10 21:03:12

hamazasalah


Committer: arogge

Ported: N/A

Details Diff
Fix bug: Bareos Ovirt Plugin

This patch for backup a VM by using VM id

(cherry picked from commit e5f2e6d8c7d61491dbd06a74aab88f0912bbc52e)
Affected Issues
0001171
mod - core/src/plugins/filed/BareosFdPluginOvirt.py Diff File

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
2020-04-08 16:09 arogge Relationship added related to 0001187
2020-04-08 16:34 arogge Changeset attached => bareos bareos-19.2 4f81af98
2020-04-08 16:34 arogge Changeset attached => bareos master e5f2e6d8
2020-04-08 16:36 arogge Assigned To => arogge
2020-04-08 16:36 arogge Status confirmed => resolved
2020-04-08 16:36 arogge Resolution open => fixed
2020-04-08 16:36 arogge Fixed in Version => 19.2.7
2020-04-08 16:36 arogge bareos-master: impact => yes
2020-04-08 16:36 arogge bareos-master: action => fixed
2020-04-08 16:36 arogge bareos-19.2: impact => yes
2020-04-08 16:36 arogge bareos-19.2: action => fixed
2020-04-08 16:36 arogge bareos-18.2: impact => no
2020-04-08 16:36 arogge bareos-17.2: impact => no
2020-04-08 16:36 arogge bareos-16.2: impact => no
2020-04-08 16:36 arogge Note Added: 0003929
2020-04-16 19:30 arogge Status resolved => closed