Project

General

Profile

Bug #12547

Policy update may fail to copy ncf on first run, because /var/rudder/ncf/common or local don't exists

Added by Nicolas CHARLES about 2 years ago. Updated about 2 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Techniques
Target version:
Pull Request:
Severity:
User visibility:
Effort required:
Priority:
0

Description

Policy update, via failsafe, may not correctly copy ncf, if agent didn't run before. It's an unlikely event in normal operation, but may happen with plugin

It fails because

rudder  verbose: P: BEGIN promise 'promise_update_cf_213' of type "files" (pass 1)
rudder  verbose: P:    Promiser/affected object: '/var/rudder/ncf/common/ncf_hash_file'
rudder  verbose: P:    Part of bundle: update_action
rudder  verbose: P:    Base context class: !root_server
rudder  verbose: P:    Stack path: /default/update_action/files/'/var/rudder/ncf/common/ncf_hash_file'[1]
   error: Failed to chdir into '/var/rudder/ncf/common'. (chdir: 'No such file or directory')
rudder  verbose: File '/var/rudder/ncf/common/ncf_hash_file' copy_from '/usr/share/ncf/tree/ncf_hash_file'
rudder  verbose: FindIdle: found connection to '192.168.43.5' already open and ready.
rudder  verbose: Server returned error: Unspecified server refusal (see verbose server output)
rudder     info: Can't stat file '/usr/share/ncf/tree/ncf_hash_file' on '192.168.43.5' in files.copy_from promise
rudder     info: Automatically promoting context scope for 'rudder_ncf_hash_update_error' to namespace visibility, due to persistence
rudder  verbose: C:    + persistent outcome class 'rudder_ncf_hash_update_error'
rudder  verbose: Updating persistent class 'rudder_ncf_hash_update_error'
rudder  verbose: A: Promise NOT KEPT!
rudder  verbose: P: END files promise (/var/rudder/ncf/common/ncf_has...)
rudder  verbose: P: BEGIN promise 'promise_update_cf_219' of type "files" (pass 1)
rudder  verbose: P:    Promiser/affected object: '/var/rudder/ncf/local/ncf_hash_file'
rudder  verbose: P:    Part of bundle: update_action
rudder  verbose: P:    Base context class: !root_server
rudder  verbose: P:    Stack path: /default/update_action/files/'/var/rudder/ncf/local/ncf_hash_file'[1]
   error: Failed to chdir into '/var/rudder/ncf/local'. (chdir: 'No such file or directory')
rudder  verbose: File '/var/rudder/ncf/local/ncf_hash_file' copy_from '/var/rudder/configuration-repository/ncf/ncf_hash_file'
rudder  verbose: FindIdle: found connection to '192.168.43.5' already open and ready.
rudder  verbose: Server returned error: Unspecified server refusal (see verbose server output)
rudder     info: Can't stat file '/var/rudder/configuration-repository/ncf/ncf_hash_file' on '192.168.43.5' in files.copy_from promise
rudder     info: Automatically promoting context scope for 'rudder_ncf_hash_update_error' to namespace visibility, due to persistence
rudder  verbose: C:    + persistent outcome class 'rudder_ncf_hash_update_error'
rudder  verbose: Updating persistent class 'rudder_ncf_hash_update_error'
rudder  verbose: A: Promise NOT KEPT!
rudder  verbose: P: END files promise (/var/rudder/ncf/local/ncf_hash...)

We should enforce existance of these folders

Targeting 4.3 bcause it only happens with plugins

#1

Updated by Nicolas CHARLES about 2 years ago

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

Updated by Nicolas CHARLES about 2 years ago

  • Status changed from In progress to Rejected
  • Assignee deleted (Nicolas CHARLES)

actually, this is not necessary at all (it was ncf that was not authorized on the server)

Also available in: Atom PDF