Project

General

Profile

Actions

Bug #13669

closed

Missing status when I use "File copy from Rudder shared folder" Technique

Bug #13669: Missing status when I use "File copy from Rudder shared folder" Technique

Added by Thomas CAILHE about 7 years ago. Updated over 3 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Hi,

Oyabi
@Oyabi
08:38
hi, I have something weird in my compliance report. Every File copy from Rudder shared folder appear missing. It wakes up my OCD :) and I want to remove this message and have a beautiful green 100% in place. Do you have any idea how can I resolve or debug this issue ?
Alexis Mousset
@amousset
09:03
Hi, this likely comes from a bug in the method (could be https://www.rudder-project.org/redmine/issues/13634). Is the method applied on a directory? Is the target actually copied to its destination?
Rudder Chatbot
@rudderbot
09:03
Helmsman Bug #13634: file_from_shared_folder does not report when trying to copy a directory ( Pending technical review issue assigned to Alexis MOUSSET. URL: https://www.rudder-project.org/redmine//issues/13634 )
Oyabi
@Oyabi
09:26
Hum it's differents files and not a directories. Named /var/rudder/tmp/fusion.key and /etc/zabbix/zabbix_agentd.d/RAID10-12.confbut it maybe the same bug i don't really know. Server version is 5.0.0

I can provide you with more information if you wish.

Regards.

Updated by Alexis Mousset about 7 years ago Actions #1

  • Project changed from Rudder to 41
  • Category set to Generic methods - File Management
  • Target version set to 4.3.6

Which are Rudder agent version?

Can you check if the copy is actually made if the content of the target is incorrect?

Updated by Thomas CAILHE about 7 years ago Actions #2

I've made some tests:
- File is correctly uploaded
- File is correctly updated

Rudder agent 5.0.0-stretch0

Updated by Thomas CAILHE about 7 years ago Actions #3

Additionnals information:

It's a technique:
source : apt/test.txt
destination: /tmp/test.txt
hash_type : md5

ls -lha apt
drwxr-xr-x  2 root rudder 4,0K oct.  17 12:46 apt

ls -lha apt/test
-rw-r--r--  1 root root      9 oct.  17 12:46 test.txt

Updated by Alexis Mousset about 7 years ago Actions #4

Thanks, we will try to reproduce.

Updated by Félix DALLIDET about 7 years ago Actions #5

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET

Updated by Félix DALLIDET about 7 years ago Actions #6

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/ncf/pull/850

Updated by Alexis Mousset about 7 years ago Actions #7

Thomas, you should be able to fix the problem by applying the above patch in /usr/share/ncf/tree on your Rudder server, and it will be fixed in an upcoming release.

Thanks for reporting!

Updated by Thomas CAILHE about 7 years ago Actions #8

Perfect, you can close ;)
Thank you very much

Updated by Félix DALLIDET about 7 years ago Actions #9

  • Status changed from Pending technical review to Pending release

Updated by Thomas CAILHE about 7 years ago Actions #10

Bug still present in 5.0.1

Updated by Alexis Mousset about 7 years ago Actions #11

Indeed, it will be fixed in 5.0.2 (the issue status will then become "released"). You can apply the patch manually on your server in the meantime if you want.

Updated by Vincent MEMBRÉ about 7 years ago Actions #12

  • Subject changed from Missing status when I use `File copy from Rudder shared folder` to Missing status when I use "File copy from Rudder shared folder" Technique

Updated by Vincent MEMBRÉ about 7 years ago Actions #13

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.6 and 5.0.2 which were released today.
Changelog
Changelog

Updated by Alexis Mousset over 3 years ago Actions #14

  • Project changed from 41 to Rudder
  • Category changed from Generic methods - File Management to Generic methods
Actions

Also available in: PDF Atom