Project

General

Profile

Actions

Bug #17303

closed

File from local source with check: diff error

Added by Alexander Brunhirl almost 4 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
54
Name check:
To do
Fix check:
Checked
Regression:

Description

Hi,

during the first run of the methode "File from local source with check" there is shown a diff error "No such file or directory".

Best regards,
Alex

OS : SLES12 SP4
Rudder agent : 6.0.4
Rudder server : 6.0.4

rudder:~ # cat /var/rudder/cfengine-community/inputs/copy_error/1.0/technique.cf
# @name copy error
# @description
# @version 1.0

bundle agent copy_error
{
  vars:
    "resources_dir" string => "${this.promise_dirname}/resources";
  methods:
    "File copy from Rudder shared folder_${report_data.directive_id}_0" usebundle => _method_reporting_context("File copy from Rudder shared folder", "/tmp/example.file"),
                                                                               if => concat("any");
    "File copy from Rudder shared folder_${report_data.directive_id}_0" usebundle => file_from_shared_folder("example.file", "/tmp/example.file", "sha256"),
                                                                               if => concat("any");
    "File from local source with check_${report_data.directive_id}_1" usebundle => _method_reporting_context("File from local source with check", "/tmp/example.file.2"),
                                                                             if => concat("any");
    "File from local source with check_${report_data.directive_id}_1" usebundle => file_from_local_source_with_check("/tmp/example.file", "/tmp/example.file.2", "/bin/true", ""),
                                                                             if => concat("any");
}
rudder:~ # rm /tmp/example.file.*
rudder:~ # rudder agent run -q
Rudder agent 6.0.4.release
Node uuid: 482b8e65-XXXX-XXXX-XXXX-9797247f8098
Start execution with config [20200430-142911-f15ca904]

/usr/bin/diff: /tmp/example.file.2: No such file or directory
M| State         Technique                 Component                 Key                Message
E| repaired      copy_error                File from local source w| /tmp/example.file| Copying /tmp/example.file.2 from local /tmp/example.file with check was repaired

## Summary #####################################################################
128 components verified in 21 directives
        [...]
rudder:~ # 
Actions

Also available in: Atom PDF