View Issue Details

IDProjectCategoryView StatusLast Update
0000919bareos-coreGeneralpublic2018-09-28 10:45
ReporterGratien Dhaese Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSCentOSOS Version7
Product Version17.2.5 
Summary0000919: The capabilities of ping command are lost after the restore with bareos
DescriptionUsing the 'rear-automated-testing' project to verify the latest Bareos version 17.2.5 with Relax-and-Recover 2.3-git.0.4e40a7b.unknown.changed / 2018-01-24

Compliance test of the recovered client system shows:
  × iputils integrity: RPM integrity test on iputils package (1 failed)
     ✔ System Package iputils should be installed
     × Command rpm -V iputils stdout should eq ""
     
     expected: ""
          got: "........P /usr/bin/ping\n........P /usr/sbin/arping\n........P /usr/sbin/clockdiff\n"
     
     (compared using ==)
     
     Diff:
     @@ -1 +1,4 @@
     +........P /usr/bin/ping
     +........P /usr/sbin/arping
     +........P /usr/sbin/clockdiff

We had this issue also with tar before - see ReaR issues https://github.com/rear/rear/issues/1175 and https://github.com/rear/rear/issues/1411
Steps To ReproduceSee the logs from the rear-automated-testing.sh script:

https://gist.github.com/cda26d43c4cc255c573a22a64af136a5
Additional InformationPerhaps we miss a configuration setting on Bareos - see https://github.com/gdha/rear-automated-testing/blob/master/centos7/ansible/server/roles/rear-test/tasks/setup-bareos-server.yml
TagsNo tags attached.

Activities

joergs

joergs

2018-02-21 16:57

developer   ~0002935

Hello Gratien,

thank you for the hint. We will check on this.
pstorz

pstorz

2018-09-28 10:44

administrator   ~0003123

I have just checked the details with the file capabilities.

Please add "xattrsupport = yes" to your fileset like this:


FileSet {
  Name = "SelfTest"
  Description = "fileset just to backup some files for selftest"
  Include {
    Options {
      Signature = MD5 # calculate md5 checksum per file
      xattrsupport = yes
    }
    File = "/usr/bin/ping"
  }
}


This also restores the capabilities of the files.

We will investigate if we can set the xattribute support to on per default
pstorz

pstorz

2018-09-28 10:45

administrator   ~0003124

xattrsupport needs to be enabled to also restore capabilities

Issue History

Date Modified Username Field Change
2018-02-21 14:53 Gratien Dhaese New Issue
2018-02-21 16:57 joergs Note Added: 0002935
2018-02-21 16:57 joergs Status new => acknowledged
2018-09-28 10:44 pstorz Note Added: 0003123
2018-09-28 10:45 pstorz Note Added: 0003124
2018-09-28 10:45 pstorz Status acknowledged => closed
2018-09-28 10:45 pstorz Resolution open => no change required