Project

General

Profile

Actions

Bug #10623

closed

Hooks content/permissions are changed during Rudder upgrade (for ex /opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check is replaced)

Added by Nicolas CHARLES over 7 years ago. Updated over 5 years ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
43
Name check:
Fix check:
To do
Regression:

Description

I upgraded Rudder from 4.1.0 to 4.1.1 and I had a custom /opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check file
after upgrading, file was restored to default content, which was super surprising

it should at least be documented so that I know it might punch me.

In fact, we should distinguish between several hooks provided by Rudder:

- 1/ the one absolutly needed to make Rudder works, like `policy-generation-node-ready/90-change-perm`. These one need to be updated by rudder at each upgrade and made executable. And we should make it clear in them that an user should not change them,
- 2/ the one that a user can enable/disable. We still don't want the content to be modifiable by an user (to allow update and bug correction), but an user should be allowed to change its perm, like in the example in that ticket. In fact, Rudder should even provide an UI setting to allow the user to change the hook perms.
- 3/ the one that we allow the user to modify.

For case 3/, in fact, we don't want any like that, because by allowing it, we forbid forever bug correction. So for that case, we should advice the user to provide his own hook and fill a bug upstream. If we want the user to be able to parametrize a hook, the parameter must be in a non executable file "XX-hook-name.properties" (which should be sourced by the hook).

Case 1/ is the current behavior (modulo the warning in hook content about the fact that the hook will be reseted on next upgrade).

Case 2/ need to be handled.


Subtasks 1 (0 open1 closed)

Bug #15687: check if hook-upgrades path existsReleasedAlexis MoussetActions

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #14331: Trigger agent update and run after policy server has finished policy generationReleasedAlexis MoussetActions
Actions #1

Updated by François ARMAND over 7 years ago

  • Priority changed from 0 to 17
Actions #2

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.1.2 to 4.1.3
Actions #3

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.1.3 to 4.1.4
Actions #4

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.1.4 to 4.1.5
Actions #5

Updated by Alexis Mousset over 7 years ago

  • Target version changed from 4.1.5 to 4.1.6
Actions #6

Updated by Benoît PECCATTE over 7 years ago

  • Priority changed from 17 to 16
Actions #7

Updated by Benoît PECCATTE over 7 years ago

  • Priority changed from 16 to 32
Actions #8

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.1.6 to 4.1.7
  • Priority changed from 32 to 31
Actions #9

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.1.7 to 4.1.8
Actions #10

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.1.8 to 4.1.9
  • Priority changed from 31 to 30
Actions #11

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.1.9 to 4.1.10
  • Priority changed from 30 to 29
Actions #12

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.1.10 to 4.1.11
  • Priority changed from 29 to 28
Actions #13

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.11 to 4.1.12
  • Priority changed from 28 to 27
Actions #14

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.12 to 4.1.13
Actions #15

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.13 to 4.1.14
Actions #16

Updated by Benoît PECCATTE over 6 years ago

  • Target version changed from 4.1.14 to 4.1.15
Actions #17

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.15 to 4.1.16
Actions #18

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.16 to 4.1.17
Actions #19

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 4.1.17 to 4.1.18
  • Priority changed from 27 to 0
Actions #20

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 4.1.18 to 4.1.19
Actions #21

Updated by Alexis Mousset almost 6 years ago

  • Target version changed from 4.1.19 to 4.1.20
Actions #22

Updated by François ARMAND almost 6 years ago

  • Subject changed from When upgrading Rudder from 4.1.0 to 4.1.1, file /opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check is replaced to Hooks content/permissions are changed during Rudder upgrade (for ex /opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check is replaced)
  • Description updated (diff)
  • Target version changed from 4.1.20 to 4.3.10
  • Severity changed from Minor - inconvenience | misleading | easy workaround to Major - prevents use of part of Rudder | no simple workaround

Idea to handle the case 2 (user allow to enable/disable hook):

- register in pre-install hook exsitance and current perm,
- restore perm in post-install

Actions #23

Updated by François ARMAND almost 6 years ago

  • Related to Bug #14331: Trigger agent update and run after policy server has finished policy generation added
Actions #24

Updated by François ARMAND almost 6 years ago

  • Target version changed from 4.3.10 to 4.3.11
Actions #25

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 4.3.11 to 4.3.12
Actions #26

Updated by Benoît PECCATTE over 5 years ago

  • User visibility changed from Operational - other Techniques | Technique editor | Rudder settings to Getting started - demo | first install | Technique editor and level 1 Techniques
  • Priority changed from 0 to 58
Actions #27

Updated by Benoît PECCATTE over 5 years ago

  • User visibility changed from Getting started - demo | first install | Technique editor and level 1 Techniques to Operational - other Techniques | Rudder settings | Plugins
  • Priority changed from 58 to 43
Actions #28

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 4.3.12 to 4.3.13
Actions #29

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 4.3.13 to 4.3.14
Actions #30

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 4.3.14 to 587
Actions #31

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 587 to 4.3.14
Actions #32

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 4.3.14 to 5.0.13
Actions #33

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.13 to 5.0.14
Actions #34

Updated by Benoît PECCATTE over 5 years ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE
Actions #35

Updated by Benoît PECCATTE over 5 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2063
Actions #36

Updated by Benoît PECCATTE over 5 years ago

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

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.14 to 5.0.13
Actions #38

Updated by Vincent MEMBRÉ over 5 years ago

  • Fix check set to To do
Actions #39

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.13 which was released today.

Actions

Also available in: Atom PDF