Project

General

Profile

Bug #13669

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

Added by Thomas CAILHE 2 months ago. Updated about 1 month ago.

Status:
Released
Priority:
N/A
Category:
Generic methods - File Management
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

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.

Associated revisions

Revision b6c24d1f (diff)
Added by Félix DALLIDET 2 months ago

Fixes #13669: Missing status when I use `File copy from Rudder shared folder`

History

#1 Updated by Alexis MOUSSET 2 months ago

  • Project changed from Rudder to ncf
  • 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?

#2 Updated by Thomas CAILHE 2 months ago

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

Rudder agent 5.0.0-stretch0

#3 Updated by Thomas CAILHE 2 months ago

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

#4 Updated by Alexis MOUSSET 2 months ago

Thanks, we will try to reproduce.

#5 Updated by Félix DALLIDET 2 months ago

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

#6 Updated by Félix DALLIDET 2 months ago

  • 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

#7 Updated by Alexis MOUSSET 2 months ago

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!

#8 Updated by Thomas CAILHE 2 months ago

Perfect, you can close ;)
Thank you very much

#9 Updated by Félix DALLIDET about 2 months ago

  • Status changed from Pending technical review to Pending release

#10 Updated by Thomas CAILHE about 2 months ago

Bug still present in 5.0.1

#11 Updated by Alexis MOUSSET about 2 months ago

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.

#12 Updated by Vincent MEMBRÉ about 1 month ago

  • 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

#13 Updated by Vincent MEMBRÉ about 1 month ago

  • 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

Also available in: Atom PDF