View Issue Details

IDProjectCategoryView StatusLast Update
0000651bareos-corevmware pluginpublic2016-04-28 10:54
Reportermheinz Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
PlatformLinuxOSCentOSOS Version7
Product Version15.2.2 
Fixed in Version15.2.3 
Summary0000651: VMware Backup Restore Problem
DescriptionHi,

i have the Problem that i cannot restore the Backup of a VM.
The Restore Job run in error every time with the Following Error Message:

26-Apr 17:52 devbareosfd01-fd JobId 5: Fatal error: Traceback (most recent call last):
  File "/usr/lib64/bareos/plugins/BareosFdWrapper.py", line 66, in create_file
    return bareos_fd_plugin_object.create_file(context, restorepkt)
  File "/usr/lib64/bareos/plugins/vmware_plugin/BareosFdPluginVMware.py", line 245, in create_file
    cbt_data = self.vadp.restore_objects_by_objectname[objectname]['data']
KeyError: ('/../VMS/ADACOR Shared/NOP-MHE/[svm24_datastore] NOP-MHE/NOP-MHE.vmdk',)

Configuration vom Client and Fileset is from the Documentation.
The User for VMware has administration rights.
All Backup Server are in the same Network range.

Is there something wrong configured ?

Best Regards,
Marc
Additional InformationClient Config:
## VM Job
Job {
  Name = "Backup BAK_DEV_NOP-MHE01_01"
  Type = Backup
  Level = differential
  Client = BAK_DEV_devbareosfd01-fd
  FileSet = "vm-NOP-MHE01_fileset"
  Schedule = "Schedule Project BAK_DEV1"
  Storage = BAK_DEV1
  Messages = Standard
  Pool = BAK_DEV01
  Priority = 10
  Write Bootstrap = "/var/lib/bareos/bak_dev_vm-NOP-MHE01.bsr"
}

# Client (File Services) to backup
Client {
  Name = BAK_DEV_devbareosfd01-fd
  Address = xxxxxxxxxxxxxxxx
  FDPort = 9102
  Catalog = Catalog_BAK_DEV
  Password = "xxxxxxxxxxxxxx"
  File Retention = 14 days # 30 days
  Job Retention = 14 days # 14 days
  AutoPrune = yes # Prune expired Jobs/Files
}

## VM Fileset
FileSet {
  Name = "vm-NOP-MHE01_fileset"

  Include {
    Options {
         signature = MD5
    }
    Plugin = "python:module_path=/usr/lib64/bareos/plugins/vmware_plugin:module_name=bareos-fd-vmware:dc=ADACOR Shared:folder=/:vmname=NOP-MHE:vcserver=xxxxxx:vcuser=bareos@vsphere.local:vcpass=xxxxxxxx"
  }
}
TagsNo tags attached.

Activities

mvwieringen

mvwieringen

2016-04-27 18:35

developer   ~0002247

You most likely run into this problem

https://github.com/bareos/bareos-vmware/commit/346d6b8bb282439a8fd96fe70fb496766e6c9773
mheinz

mheinz

2016-04-28 10:42

reporter   ~0002249

Hi,

yes this Change in BareosFdPluginVMware.py was helping.
I restored sucessfully the VM.

Is this Change commited in Bareos 15.2.3 ?

Best Regards,
Marc
mvwieringen

mvwieringen

2016-04-28 10:53

developer   ~0002250

There is no 15.2.3 branch for the vmware repo only a master but 15.2.3
has a newer plugin in our internal build system there is a
bareos-vmware-plugin-15.2.2-27.1.el7.x86_64.rpm which is from February so
before the release of 15.2.3 which already includes the patch and all other
new stuff like restore to local VMDK etc. So I'm fairly sure its part of the
15.2.3 release as that publishes the content of the repo I checked.

Issue History

Date Modified Username Field Change
2016-04-27 15:41 mheinz New Issue
2016-04-27 18:35 mvwieringen Note Added: 0002247
2016-04-27 18:35 mvwieringen Status new => feedback
2016-04-28 10:42 mheinz Note Added: 0002249
2016-04-28 10:42 mheinz Status feedback => new
2016-04-28 10:53 mvwieringen Note Added: 0002250
2016-04-28 10:54 mvwieringen Status new => closed
2016-04-28 10:54 mvwieringen Resolution open => duplicate
2016-04-28 10:54 mvwieringen Fixed in Version => 15.2.3