Project

General

Profile

Actions

Bug #17303

closed

File from local source with check: diff error

Added by Alexander Brunhirl over 4 years ago. Updated over 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 #1

Updated by François ARMAND over 4 years ago

  • Translation missing: en.field_tag_list set to Sponsored
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
  • Priority changed from 0 to 64
Actions #2

Updated by Nicolas CHARLES over 4 years ago

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

Updated by Nicolas CHARLES over 4 years ago

  • Status changed from New to In progress
Actions #4

Updated by Nicolas CHARLES over 4 years 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
Actions #5

Updated by Nicolas CHARLES over 4 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset commit:100e953794b9baaf930b58ea7296e17336bcb34f.

Actions #6

Updated by Nicolas CHARLES about 4 years ago

  • Priority changed from 63 to 61
  • Fix check changed from To do to Checked
Actions #7

Updated by Vincent MEMBRÉ about 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.19, 6.0.8 and 6.1.4 which were released today.

Actions #8

Updated by Alexis Mousset over 2 years ago

  • Project changed from 41 to Rudder
  • Category changed from Generic methods to Generic methods
  • Priority changed from 61 to 54
Actions

Also available in: Atom PDF