Project

General

Profile

Bug #9881

Error in relay promises when there are no shared files

Added by Alexis MOUSSET 9 months ago. Updated 7 months ago.

Status:
Released
Priority:
N/A
Category:
Initial promises & sys tech
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:

Description

E| error         DistributePolicy          Propagate promises                           Cannot propagate shared files
   error: Method 'propagatePromises' failed in some repairs

Related issues

Related to Rudder - Bug #7671: Propagate promises error when no nodes behind a relay Released

Associated revisions

Revision 73cdc136
Added by Nicolas CHARLES 7 months ago

Fixes #9881: Error in relay promises when there are no shared files

History

#1 Updated by Alexis MOUSSET 9 months ago

We could:

  • Consider failing those as normal (but that would hide some issues)
  • Create empty shared-files folders in inputs

#2 Updated by Alexis MOUSSET 9 months ago

rudder  verbose: File '/var/rudder/shared-files/' copy_from '/var/rudder/shared-files/92c03a82-4390-4f42-921e-23ad16c1c033/shared-files'$
rudder  verbose: FindIdle: found connection to 'server' already open and ready.$
rudder    debug: SendTransaction header: t 96$
rudder    debug: SendTransaction data: SYNCH 1483357736 STAT /var/rudder/shared-files/92c03a82-4390-4f42-921e-23ad16c1c033/shared-files$
rudder    debug: ReceiveTransaction header: t 59....$
rudder    debug: ReceiveTransaction data: BAD: Unspecified server refusal (see verbose server output)$
rudder  verbose: Server returned error: Unspecified server refusal (see verbose server output)$
rudder     info: Can't stat file '/var/rudder/shared-files/92c03a82-4390-4f42-921e-23ad16c1c033/shared-files' on '192.168.45.2' in files.copy_from promise$
rudder  verbose: C:    + promise outcome class 'could_not_propagate_shared_files'$
rudder    debug: Setting class: default:could_not_propagate_shared_files$

#3 Updated by Alexis MOUSSET 9 months ago

  • Related to Bug #7671: Propagate promises error when no nodes behind a relay added

#4 Updated by Alexis MOUSSET 9 months ago

Looks like no class is defined when the folder is empty:

rudder  verbose: P:    Comment:  Fetching files shared between agents$
rudder  verbose: File '/var/rudder/shared-files/' copy_from '/var/rudder/shared-files/92c03a82-4390-4f42-921e-23ad16c1c033/shared-files'$
rudder  verbose: FindIdle: found connection to 'server' already open and ready.$
rudder    debug: SendTransaction header: t 96$
rudder    debug: SendTransaction data: SYNCH 1483358607 STAT /var/rudder/shared-files/92c03a82-4390-4f42-921e-23ad16c1c033/shared-files$
rudder    debug: ReceiveTransaction header: t 70....$
rudder    debug: ReceiveTransaction data: OK: 2 493 0 0 0 4096 1483358026 1483358016 1483358016 0 1128471 2 2049$
rudder    debug: ReceiveTransaction header: t 3.....$
rudder    debug: ReceiveTransaction data: OK:$
rudder    debug: Trying to create a parent directory for: /var/rudder/shared-files/.$
rudder    debug: Directory for '/var/rudder/shared-files/.' exists. Okay$
rudder  verbose: Destination purging enabled$
rudder  verbose: Entering directory '/var/rudder/shared-files/92c03a82-4390-4f42-921e-23ad16c1c033/shared-files'$
rudder    debug: Trying to create a parent directory for: /var/rudder/shared-files/dummy$
rudder    debug: Directory for '/var/rudder/shared-files/dummy' exists. Okay$
rudder    debug: SendTransaction header: t 82$
rudder    debug: SendTransaction data: OPENDIR /var/rudder/shared-files/92c03a82-4390-4f42-921e-23ad16c1c033/shared-files$
rudder    debug: ReceiveTransaction header: t 34....$
rudder    debug: ReceiveTransaction data: .....---cfXen/gine/cfXen/gine---..$
rudder  verbose: Filename '/var/rudder/shared-files/92c03a82-4390-4f42-921e-23ad16c1c033/shared-files/.' is classified as ignorable, skipping$
rudder  verbose: Filename '/var/rudder/shared-files/92c03a82-4390-4f42-921e-23ad16c1c033/shared-files/..' is classified as ignorable, skipping$
rudder  verbose: Filename '/var/rudder/shared-files/.' is classified as ignorable, skipping$
rudder  verbose: Filename '/var/rudder/shared-files/..' is classified as ignorable, skipping$
rudder    debug: Searching for specific busy connection to: server$
rudder    debug: Busy connection just became free$
rudder  verbose: A: Promise was KEPT$
rudder  verbose: P: END files promise (/var/rudder/shared-files)

#5 Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 4.1.0~beta1 to 4.1.0~beta2

#6 Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 4.1.0~beta2 to 4.1.0~beta3

#7 Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 4.1.0~beta3 to 4.1.0~rc1

#8 Updated by Nicolas CHARLES 7 months ago

If shared-files couldn't be copied, but promises could, then we assume it is ok
Class condition used is

(rudder_promises_generated_tmp_file_kept|(rudder_promises_generated_tmp_file_repaired.config_ok)).!(rudder_promises_generated_tmp_file_error|rudder_tools_updated_error|rudder_tools_updated|rudder_tools_update_error|r
udder_ncf_common_updated|rudder_ncf_common_update_error|rudder_ncf_local_updated|rudder_ncf_local_update_error|config|no_update|rudder_ncf_hash_update_error|rudder_ncf_hash_update_repaired)

#9 Updated by Nicolas CHARLES 7 months ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES

#10 Updated by Nicolas CHARLES 7 months 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/rudder-techniques/pull/1121

#11 Updated by Nicolas CHARLES 7 months ago

  • Status changed from Pending technical review to Pending release

#12 Updated by Vincent MEMBRÉ 7 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.0~rc1 which was released today.

Also available in: Atom PDF