Project

General

Profile

Actions

Bug #20356

closed

When upgrading from 6.2 -> 7.0 on centos8, old system technique are still present, and break policy generation

Added by Nicolas CHARLES about 3 years ago. Updated almost 3 years ago.

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

Description

[root@server inputs]# cd /var/rudder/configuration-repository/techniques/system
[root@server system]# ls
category.xml  distributePolicy  rudder-service-apache      rudder-service-relayd  rudder-service-webapp  server-roles
common        inventory         rudder-service-postgresql  rudder-service-slapd   server-common

policy generation says

⇨ Policy update error for process '27' at 2021-12-02 09:45:31 
⇨  Cannot build Rule vals 
⇨  Could not find configuration vals 
⇨  Cannot find directive with id 'common-root' when building rule 'Rule for policy server root' (policy-server-root)

running rudder-upgrade removes them, but doesn't fix the generation issue


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #20359: techniques are seens as deleted even if there are there in Rudder 7.0ReleasedFrançois ARMANDActions
Actions #1

Updated by Nicolas CHARLES about 3 years ago

after restarting the webapp, webapp log say

[2021-12-02 09:49:50+0000] INFO  techniques.reader - Reloading technique library, found modified technique(s): ['rudder
-service-postgresql': deleted (1.0)], ['server-roles': deleted (1.0)], ['server-common': deleted (1.0)], ['common': del
eted (1.0)], ['rudder-service-relayd': deleted (1.0)], ['rudder-service-webapp': deleted (1.0)], ['rudder-service-apache': deleted (1.0)], ['distributePolicy': deleted (1.0)], ['rudder-service-slapd': deleted (1.0)]
[2021-12-02 09:49:51+0000] ERROR application - System technique 'rudder-service-postgresql' (1.0)' is deleted in git base. This will likely cause grave problem. You should investigate.
[2021-12-02 09:49:51+0000] ERROR application - System technique 'server-common' (1.0)' is deleted in git base. This will likely cause grave problem. You should investigate.
[2021-12-02 09:49:51+0000] ERROR application - System technique 'common' (1.0)' is deleted in git base. This will likely cause grave problem. You should investigate.
[2021-12-02 09:49:51+0000] ERROR application - System technique 'rudder-service-relayd' (1.0)' is deleted in git base. This will likely cause grave problem. You should investigate.
[2021-12-02 09:49:51+0000] ERROR application - System technique 'rudder-service-webapp' (1.0)' is deleted in git base. This will likely cause grave problem. You should investigate.
[2021-12-02 09:49:51+0000] ERROR application - System technique 'rudder-service-apache' (1.0)' is deleted in git base. This will likely cause grave problem. You should investigate.
[2021-12-02 09:49:51+0000] ERROR application - System technique 'rudder-service-slapd' (1.0)' is deleted in git base. This will likely cause grave problem. You should investigate.

even thought they are in git
[root@server system]# pwd
/var/rudder/configuration-repository/techniques/system
[root@server system]# 
[root@server system]# ls
category.xml  inventory              rudder-service-postgresql  rudder-service-slapd   server-common
common        rudder-service-apache  rudder-service-relayd      rudder-service-webapp
[root@server system]# git status
On branch master

Actions #2

Updated by Nicolas CHARLES about 3 years ago

deprecated technique were removed

commit 3f67c0ec559644f4858b6b676b7fa079ee1926f6
Author: root user (CLI) <root@localhost>
Date:   Thu Dec 2 09:41:45 2021 +0000

    Remove deprecated system Techniques distributePolicy - automatically done by rudder-upgrade script

and then added back by

commit df3d4ecccf716e29ea43994f6023332da2ccbd2c
Author: root user (CLI) <root@localhost>
Date:   Thu Dec 2 09:41:46 2021 +0000

     Forced technique upgrade from version  on Thu Dec  2 09:41:46 UTC 2021

it's /opt/rudder/bin/rudder server upgrade-techniques --autoupdate-technique-library --during-upgrade
that created this commit

Actions #3

Updated by Nicolas CHARLES about 3 years ago

a watch on /opt/rudder/share/techniques tells me

TIME:12:14:47 total 4
drwxr-xr-x. 12 root root 270 Dec  2 12:13 .
drwxr-xr-x.  9 root root 210 Dec  2 12:13 ..
-rw-r--r--.  1 root root 227 Dec  2 01:58 category.xml
drwxr-xr-x.  3 root root  17 Dec  2 01:58 common
drwxr-xr-x.  3 root root  17 Dec  2 12:06 distributePolicy
drwxr-xr-x.  3 root root  17 Dec  2 01:58 inventory
drwxr-xr-x.  3 root root  17 Dec  2 12:13 rudder-service-apache
drwxr-xr-x.  3 root root  17 Dec  2 12:13 rudder-service-postgresql
drwxr-xr-x.  3 root root  17 Dec  2 12:13 rudder-service-relayd
drwxr-xr-x.  3 root root  17 Dec  2 12:13 rudder-service-slapd
drwxr-xr-x.  3 root root  17 Dec  2 12:13 rudder-service-webapp
drwxr-xr-x.  3 root root  17 Dec  2 12:13 server-common
drwxr-xr-x.  3 root root  17 Dec  2 12:06 server-roles
TIME:12:14:48 total 4
drwxr-xr-x. 10 root root 226 Dec  2 12:14 .
drwxr-xr-x.  9 root root 210 Dec  2 12:13 ..
-rw-r--r--.  1 root root 227 Dec  2 01:58 category.xml
drwxr-xr-x.  3 root root  17 Dec  2 01:58 common
drwxr-xr-x.  3 root root  17 Dec  2 01:58 inventory
drwxr-xr-x.  3 root root  17 Dec  2 12:13 rudder-service-apache
drwxr-xr-x.  3 root root  17 Dec  2 12:13 rudder-service-postgresql
drwxr-xr-x.  3 root root  17 Dec  2 12:13 rudder-service-relayd
drwxr-xr-x.  3 root root  17 Dec  2 12:13 rudder-service-slapd
drwxr-xr-x.  3 root root  17 Dec  2 12:13 rudder-service-webapp
drwxr-xr-x.  3 root root  17 Dec  2 12:13 server-common

so around the very end

Thu Dec  2 12:14:47 UTC 2021 - Starting rudder-server-root post installation script
Thu Dec  2 12:14:47 UTC 2021 - Ending rudder-server-root post installation script

Actions #4

Updated by Nicolas CHARLES about 3 years ago

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

Updated by Nicolas CHARLES about 3 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-packages/pull/2552
Actions #6

Updated by Nicolas CHARLES about 3 years ago

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

Updated by Nicolas CHARLES about 3 years ago

  • Related to Bug #20359: techniques are seens as deleted even if there are there in Rudder 7.0 added
Actions #8

Updated by Vincent MEMBRÉ almost 3 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.0.0~rc2 which was released today.

Actions

Also available in: Atom PDF