Project

General

Profile

Bug #17303

File from local source with check: diff error

Added by Alexander Brunhirl 4 months ago. Updated 7 days ago.

Status:
Pending release
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
63
Tags:

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:~ # 
#1

Updated by Fran├žois ARMAND about 1 month ago

  • Tags set to Sponsored
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
  • Priority changed from 0 to 64
#2

Updated by Nicolas CHARLES 7 days ago

  • Assignee set to Nicolas CHARLES
  • Target version set to 5.0.19
  • Priority changed from 64 to 63
#3

Updated by Nicolas CHARLES 7 days ago

  • Status changed from New to In progress
#4

Updated by Nicolas CHARLES 7 days ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/ncf/pull/1234
#5

Updated by Nicolas CHARLES 7 days ago

  • Status changed from Pending technical review to Pending release

Also available in: Atom PDF