Project

General

Profile

Actions

Bug #7671

closed

Propagate promises error when no nodes behind a relay

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

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

Description

When there are no nodes behind a relay, it produces an error:

2015-12-21T16:34:22+0000  verbose: /default/propagatePromises/methods/'any'/default/rudder_common_report/methods/'report'/default/rudder_common_report_index/reports/'@@DistributePolicy@@result_error@@f5ac864b-b01b-465c-a2a0-b6c024916ac0-DP@@f5ac864b-b01b-465c-a2a0-b6c024916ac0-distributePolicy@@1@@Propagate promises@@None@@2015-12-21 16:34:20+00:00..f5ac864b-b01b-465c-a2a0-b6c024916ac0@.Cannot propagate policy files'[0]: Comment 'Reporting for DistributePolicy message Cannot propagate policy files for index '

Happens at least on 3.1 (with Centos 7)


Subtasks 1 (0 open1 closed)

Bug #10267: Adapt parent ticket for branch 4.0ReleasedAlexis MoussetActions

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #9881: Error in relay promises when there are no shared filesReleasedAlexis MoussetActions
Actions #1

Updated by Alexis Mousset over 8 years ago

2015-12-21T16:34:21+0000  verbose: /default/propagatePromises/files/'/var/rudder/share/'[0]: .....................[.h.a.i.l.].................................
2015-12-21T16:34:21+0000  verbose: /default/propagatePromises/files/'/var/rudder/share/'[0]: Strong authentication of server 'server.rudder.local' connection confirmed
2015-12-21T16:34:21+0000  verbose: /default/propagatePromises/files/'/var/rudder/share/'[0]: Public key identity of host '192.168.43.2' is: MD5=c0e16f5da15ba203e237f2ad58e5f1e3
2015-12-21T16:34:22+0000  verbose: /default/propagatePromises/files/'/var/rudder/share/'[0]: Server returned error: Unspecified server refusal (see verbose server output)
2015-12-21T16:34:22+0000     info: /default/propagatePromises/files/'/var/rudder/share/'[0]: Can't stat file '/var/rudder/share/f5ac864b-b01b-465c-a2a0-b6c024916ac0/share' on '192.168.43.2' in files.copy_from promise
2015-12-21T16:34:22+0000  verbose: /default/propagatePromises/files/'/var/rudder/share/'[0]: Defining promise result class 'could_not_propagate_promise'
Actions #2

Updated by Alexis Mousset over 8 years ago

On the server:

2015-12-21T16:46:27+0000  verbose: 192.168.43.3> Requested file is a dead symbolic link (filename: /var/rudder/share/f5ac864b-b01b-465c-a2a0-b6c024916ac0/share)
2015-12-21T16:46:27+0000     info: 192.168.43.3> Couldn't stat (lstat: No such file or directory) filename: /var/rudder/share/f5ac864b-b01b-465c-a2a0-b6c024916ac0/share
2015-12-21T16:46:27+0000     info: 192.168.43.3> Access control in sync
2015-12-21T16:46:27+0000  verbose: 192.168.43.3> REFUSAL to (user=root,ip=192.168.43.3) of request: SYNCH 1450716387 STAT /var/rudder/share/f5ac864b-b01b-465c-a2a0-b6c024916ac0/share

And:

root@server:/home/vagrant# ls -ahl  /var/rudder/share/f5ac864b-b01b-465c-a2a0-b6c024916ac0
total 0
drwxrwx---. 3 root root 18 Dec 21 16:25 .
drwxrwx---. 3 root root 49 Dec 21 16:25 ..
drwxrwx---. 3 root root 31 Dec 21 16:25 rules
Actions #3

Updated by Alexis Mousset over 8 years ago

  • Description updated (diff)
Actions #4

Updated by Alexis Mousset over 8 years ago

  • Subject changed from Propagate promises error on relay fresh install to Propagate promises error when no nodes behind a relay
Actions #5

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.6 to 3.1.7
Actions #6

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.7 to 3.1.8
Actions #7

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.8 to 3.1.9
Actions #8

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.9 to 3.1.10
Actions #9

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.10 to 3.1.11
Actions #10

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.11 to 3.1.12
Actions #11

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.12 to 3.1.13
Actions #12

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.13 to 3.1.14
Actions #13

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.14 to 3.1.15
Actions #14

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.15 to 3.1.16
Actions #15

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.16 to 3.1.17
Actions #16

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.17 to 3.1.18
Actions #17

Updated by Alexis Mousset about 7 years ago

  • Related to Bug #9881: Error in relay promises when there are no shared files added
Actions #18

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.18 to 3.1.19
Actions #19

Updated by Nicolas CHARLES about 7 years ago

If there are no promises to propagate (no files there), no class is defined.
We assume in this case that if update was ok, then this is ok as well

Ok transfert class condition is

(rudder_ncf_hash_update_ok|(rudder_ncf_hash_update_repaired.rudder_ncf_common_updated_ok.rudder_ncf_local_updated_ok)).(rudder_promises_generated_ok|(rudder_promises_generated_repaired.config_ok)).!(rudder_promises_generated_repaired|rudder_promises_generated_error|rudder_t
ools_updated_error|rudder_tools_updated|rudder_tools_update_error|rudder_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_has
h_update_repaired)

Actions #20

Updated by Nicolas CHARLES about 7 years ago

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

Updated by Nicolas CHARLES about 7 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/1119
Actions #22

Updated by Nicolas CHARLES about 7 years ago

actually, condition is

root_server|((rudder_ncf_hash_update_ok|(rudder_ncf_hash_update_repaired.rudder_ncf_common_updated_ok.rudder_ncf_local_updated_ok)).(rudder_promises_generated_ok|(rudder_promises_generated_repaired.config_ok)).!(rudder_promises_generated_error|rudder_tools_updated_error|rudder_tools_update_error|rudder_ncf_common_update_error|rudder_ncf_local_update_error|no_update|rudder_ncf_hash_update_error))

Actions #23

Updated by Nicolas CHARLES about 7 years ago

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

Updated by Vincent MEMBRÉ almost 7 years ago

  • Status changed from Pending release to Released
  • Priority set to 0

This bug has been fixed in Rudder 3.1.19, 4.0.4 and 4.1.1 which were released today.

Actions

Also available in: Atom PDF