Project

General

Profile

Bug #9156

ncf compatibility cache not updated after Rudder upgrade

Added by Alexis MOUSSET over 4 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

cf-promises gives:

2016-09-28T10:52:29+0200    error: Can't stat file '/var/rudder/cfengine-community/inputs/10_ncf_internals/configuration.cf' for parsing. (stat: No such file or directory)
2016-09-28T10:52:29+0200    error: Policy failed validation with command '"/var/rudder/cfengine-community/bin/cf-promises" -c "/var/rudder/cfengine-community/inputs/promises.cf"'
2016-09-28T10:52:29+0200    error: CFEngine was not able to get confirmation of promises from cf-promises, so going to failsafe

And promises generation:

⇨ cf-promise check fails for promises generated at '/var/rudder/share/95f8a35f-7ba0-4227-a0ea-a114a7f0321a/rules.new/cfengine-community'
⇨ /var/rudder/ncf/common/20_cfe_basics/cfengine/files.39p.cf:27:22: error: Unknown selection 'select_end_match_eof' for body type 'select_region'
⇨ select_end_match_eof => "true";
⇨ ^

which should not be loaded in CFEngine < 3.9...

#1

Updated by Alexis MOUSSET over 4 years ago

The problem is that the exclude cache in ncf was not regenerated after upgrade.

#2

Updated by Alexis MOUSSET over 4 years ago

root@server:/var/rudder/ncf# ll /usr/share/ncf/tree/20_cfe_basics/cfengine/
total 200
-rw-r--r-- 1 root root  3645 Sep 28 03:14 bundles.cf
-rw-r--r-- 1 root root  4789 Sep 28 03:14 commands.cf
-rw-r--r-- 1 root root  6350 Sep 28 03:14 common.cf
-rw-r--r-- 1 root root  2527 Sep 28 03:14 databases.cf
-rw-r--r-- 1 root root  1102 Sep 28 03:14 files.39m.cf
-rw-r--r-- 1 root root  1230 Sep 28 03:14 files.39p.cf
-rw-r--r-- 1 root root 30268 Sep 28 03:14 files.cf
-rw-r--r-- 1 root root  2901 Sep 28 03:14 guest_environments.cf
-rw-r--r-- 1 root root  2540 Sep 28 03:14 monitor.cf
-rw-r--r-- 1 root root 56013 Sep 28 03:14 packages.cf
-rw-r--r-- 1 root root 22387 Sep 28 03:14 paths.cf
-rw-r--r-- 1 root root  3050 Sep 28 03:14 processes.cf
-rw-r--r-- 1 root root 35777 Sep 28 03:14 services.cf
-rw-r--r-- 1 root root  2615 Sep 28 03:14 storage.cf
root@server:/var/rudder/ncf# ll common/20_cfe_basics/cfengine/
total 200
-rw-r--r-- 1 root root  3645 Sep 28 03:14 bundles.cf
-rw-r--r-- 1 root root  4789 Sep 28 03:14 commands.cf
-rw-r--r-- 1 root root  6350 Sep 28 03:14 common.cf
-rw-r--r-- 1 root root  2527 Sep 28 03:14 databases.cf
-rw-r--r-- 1 root root  1102 Sep 28 03:14 files.39m.cf
-rw-r--r-- 1 root root  1230 Sep 28 03:14 files.39p.cf
-rw-r--r-- 1 root root 30268 Sep 28 03:14 files.cf
-rw-r--r-- 1 root root  2901 Sep 28 03:14 guest_environments.cf
-rw-r--r-- 1 root root  2540 Sep 28 03:14 monitor.cf
-rw-r--r-- 1 root root 56013 Sep 28 03:14 packages.cf
-rw-r--r-- 1 root root 22387 Sep 28 03:14 paths.cf
-rw-r--r-- 1 root root  3050 Sep 28 03:14 processes.cf
-rw-r--r-- 1 root root 35777 Sep 28 03:14 services.cf
-rw-r--r-- 1 root root  2615 Sep 28 03:14 storage.cf

and

root@server:/var/rudder/ncf# ll /var/rudder/cfengine-community/state/ncf-exclude-cache-3.6.5/_var_rudder_ncf_common_20_cfe_basics
-rw-rw---- 1 root root 0 Sep 28 10:18 /var/rudder/cfengine-community/state/ncf-exclude-cache-3.6.5/_var_rudder_ncf_common_20_cfe_basics

which is newer, so the cache is not updated.

#3

Updated by Alexis MOUSSET over 4 years ago

rudder-upgrade contains:

rsync --delete -rptgoq ${RUDDER_NCF_SOURCE_DIRECTORY}/tree/ ${RUDDER_VAR}/ncf/common/

The -t is for "preserve time"...

#4

Updated by Alexis MOUSSET over 4 years ago

Comes from initial ncf packaging.

#5

Updated by Alexis MOUSSET over 4 years ago

  • Status changed from New to In progress
#6

Updated by Alexis MOUSSET over 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis MOUSSET to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1088
#7

Updated by Alexis MOUSSET over 4 years ago

  • Subject changed from Broken promises agter 3.1.10 -> 3.1.14rc1 update to NCF compatibility cache not updated after Rudder upgrade
#8

Updated by Alexis MOUSSET over 4 years ago

A possible workaround for nightlies:

touch /var/rudder/ncf/common/20_cfe_basics/cfengine/files.39p.cf

An update promises.

#9

Updated by Alexis MOUSSET over 4 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
#10

Updated by Alexis MOUSSET over 4 years ago

  • Subject changed from NCF compatibility cache not updated after Rudder upgrade to ncf compatibility cache not updated after Rudder upgrade
#11

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.15/14 and 3.2.8/7 which were released today.

Also available in: Atom PDF