Project

General

Profile

Actions

Bug #9881

closed

Error in relay promises when there are no shared files

Added by Alexis Mousset almost 8 years ago. Updated almost 8 years ago.

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

Description

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

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #7671: Propagate promises error when no nodes behind a relayReleasedAlexis MoussetActions
Actions #1

Updated by Alexis Mousset almost 8 years ago

We could:

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

Updated by Alexis Mousset almost 8 years 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$
Actions #3

Updated by Alexis Mousset almost 8 years ago

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

Updated by Alexis Mousset almost 8 years 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)
Actions #5

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 4.1.0~beta1 to 4.1.0~beta2
Actions #6

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 4.1.0~beta2 to 4.1.0~beta3
Actions #7

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 4.1.0~beta3 to 4.1.0~rc1
Actions #8

Updated by Nicolas CHARLES almost 8 years 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)

Actions #9

Updated by Nicolas CHARLES almost 8 years ago

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

Updated by Nicolas CHARLES almost 8 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/rudder-techniques/pull/1121
Actions #11

Updated by Nicolas CHARLES almost 8 years ago

  • Status changed from Pending technical review to Pending release
Actions #12

Updated by Vincent MEMBRÉ almost 8 years ago

  • Status changed from Pending release to Released

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

Actions

Also available in: Atom PDF