Project

General

Profile

Actions

Bug #9087

closed

Error on promises generation when there are no properties files

Bug #9087: Error on promises generation when there are no properties files

Added by Nicolas CHARLES about 9 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
System techniques
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Small
Priority:
47
Name check:
Fix check:
Regression:

Description

If there are no properties defined, we have the following error at generation:

Command to check generated promises is: '/var/rudder/cfengine-community/bin/cf-promises -f /var/rudder/cfengine-community/inputs.new/promises.cf'
⇨ error: readjson: data error parsing JSON file 'cf_null': No data
⇨ error: readjson: data error parsing JSON file 'cf_null': No data
⇨ error: readjson: data error parsing JSON file 'cf_null': No data

issue is we don't check that there are any files in the findfiles in common/1.0/properties.cf - if folder is empty, then it returns cf_null
This is pretty impacting as when doing update of Rudder, we come from a state with no properties to a state with properties, but we check the previous generated properties (${sys.workdir}/inputs/properties.d/*.json)


Related issues 3 (0 open3 closed)

Related to Rudder - Bug #8756: Expose node properties in properties.d not propertiesReleasedNicolas CHARLESActions
Related to Rudder - User story #8737: Expose node properties as a global CFEngine data variableReleasedNicolas CHARLESActions
Has duplicate Rudder - Bug #9106: If properties.d doesn't exists, cf-promises fails with an "error 'cf_null'"RejectedActions

Updated by Nicolas CHARLES about 9 years ago Actions #1

  • Related to Bug #8756: Expose node properties in properties.d not properties added

Updated by Nicolas CHARLES about 9 years ago Actions #2

  • Related to User story #8737: Expose node properties as a global CFEngine data variable added

Updated by Nicolas CHARLES about 9 years ago Actions #3

  • How to reproduce updated (diff)

Updated by Nicolas CHARLES about 9 years ago Actions #4

  • Related to Bug #9106: If properties.d doesn't exists, cf-promises fails with an "error 'cf_null'" added

Updated by François ARMAND about 9 years ago Actions #5

  • Related to deleted (Bug #9106: If properties.d doesn't exists, cf-promises fails with an "error 'cf_null'")

Updated by François ARMAND about 9 years ago Actions #6

  • Has duplicate Bug #9106: If properties.d doesn't exists, cf-promises fails with an "error 'cf_null'" added

Updated by Vincent MEMBRÉ about 9 years ago Actions #7

  • Target version changed from 3.1.14 to 3.1.15

Updated by Vincent MEMBRÉ about 9 years ago Actions #8

  • Target version changed from 3.1.15 to 3.1.16

Updated by Vincent MEMBRÉ about 9 years ago Actions #9

  • Target version changed from 3.1.16 to 3.1.17

Updated by Vincent MEMBRÉ almost 9 years ago Actions #10

  • Target version changed from 3.1.17 to 3.1.18

Updated by Vincent MEMBRÉ over 8 years ago Actions #11

  • Target version changed from 3.1.18 to 3.1.19

Updated by Benoît PECCATTE over 8 years ago Actions #12

  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings

Updated by François ARMAND over 8 years ago Actions #13

  • User visibility changed from Operational - other Techniques | Technique editor | Rudder settings to Infrequent - complex configurations | third party integrations
  • Effort required set to Small

Updated by Benoît PECCATTE over 8 years ago Actions #14

  • Priority set to 31

Updated by Vincent MEMBRÉ over 8 years ago Actions #15

  • Target version changed from 3.1.19 to 3.1.20

Updated by Jonathan CLARKE over 8 years ago Actions #16

  • Priority changed from 31 to 30

Updated by Vincent MEMBRÉ over 8 years ago Actions #17

  • Target version changed from 3.1.20 to 3.1.21

Updated by Vincent MEMBRÉ over 8 years ago Actions #18

  • Target version changed from 3.1.21 to 3.1.22

Updated by Benoît PECCATTE over 8 years ago Actions #19

  • Priority changed from 30 to 39

Updated by Vincent MEMBRÉ over 8 years ago Actions #20

  • Target version changed from 3.1.22 to 3.1.23
  • Priority changed from 39 to 38

Updated by Vincent MEMBRÉ about 8 years ago Actions #21

  • Target version changed from 3.1.23 to 3.1.24
  • Priority changed from 38 to 37

Updated by Vincent MEMBRÉ about 8 years ago Actions #22

  • Target version changed from 3.1.24 to 3.1.25

Updated by Benoît PECCATTE about 8 years ago Actions #23

  • Priority changed from 37 to 47

Updated by Vincent MEMBRÉ almost 8 years ago Actions #24

  • Target version changed from 3.1.25 to 387

Updated by Vincent MEMBRÉ almost 8 years ago Actions #25

  • Target version changed from 387 to 4.1.10

Updated by Vincent MEMBRÉ over 7 years ago Actions #26

  • Target version changed from 4.1.10 to 4.1.11

Updated by Vincent MEMBRÉ over 7 years ago Actions #27

  • Target version changed from 4.1.11 to 4.1.12

Updated by Vincent MEMBRÉ over 7 years ago Actions #28

  • Target version changed from 4.1.12 to 4.1.13

Updated by Vincent MEMBRÉ over 7 years ago Actions #29

  • Target version changed from 4.1.13 to 4.1.14

Updated by Benoît PECCATTE over 7 years ago Actions #30

  • Target version changed from 4.1.14 to 4.1.15

Updated by Vincent MEMBRÉ about 7 years ago Actions #31

  • Target version changed from 4.1.15 to 4.1.16

Updated by Vincent MEMBRÉ about 7 years ago Actions #32

  • Target version changed from 4.1.16 to 4.1.17

Updated by Nicolas CHARLES about 7 years ago Actions #33

  • Status changed from New to Rejected
Actions

Also available in: PDF Atom