Project

General

Profile

Actions

Bug #4706

closed

Reloading Technique library doesn't apply changes to generated promises

Added by Jonathan CLARKE about 10 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
2
Category:
Web - Maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

I have seen this happen several times now, using 2.10 (it may exist on older versions, but I don't use them regularly, so I don't know).

To reproduce:
  • Go to a running Rudder server
  • cd /var/rudder/configuration-repository/techniques/
  • Edit the contents of a .st file
  • git add <that .st file> && git commit -m "Test change"
  • Go back to the web interface, Administration tab, click on "Reload techniques"
  • Watch the promise generation happen

Then, you can go and see the .cf file generated from the .st file you changed. It won't contain the change.

The simple workaround is to go to the web interface, Administration tab, click on "Clear caches", and the newly generated files will contain the change.


Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #4829: When updating the Technique file (the .st), clicking on Update Technique doesn't detect that the template changed, and we need to clear cacheRejected2014-05-07Actions
Actions #1

Updated by François ARMAND about 10 years ago

  • Subject changed from Reloading Technique library doesn't apply changes to generated promises to Reloading Technique library doesn't apply changes to generated system promises
  • Status changed from 8 to Discussion
  • Assignee changed from François ARMAND to Nicolas CHARLES

More information: the problem is on system techniques.

The cause is that reload technique only reload user technique (more preciselly, ignore system technique).

Nicolas, I think you were aware of that. Do you know if there is a reason, or if it's just a bug ?

Thanks,

Actions #2

Updated by François ARMAND about 10 years ago

  • Subject changed from Reloading Technique library doesn't apply changes to generated system promises to Reloading Technique library doesn't apply changes to generated promises
  • Assignee changed from Nicolas CHARLES to François ARMAND

More tests by Jon shows that it is not specific to system techniques. So Nicolas, I think my question was irrelevant.

Actions #3

Updated by Matthieu CERDA almost 10 years ago

The problem has been encountered again while helping someone to update his system AND normal Techniques, this problem is annoying. Maybe a quick win would be to trigger a clear caches too when reloading promises ?

Of course, the underlying issue would still require a fix.

Actions #4

Updated by Nicolas CHARLES almost 10 years ago

  • Status changed from Discussion to In progress
  • Assignee changed from François ARMAND to Nicolas CHARLES

it's quite hard to reproduce, hence the lack of fix yet.
I'll try to find a solution/workaround for this one.

Actions #5

Updated by François ARMAND almost 10 years ago

  • Status changed from In progress to Discussion
  • Assignee changed from Nicolas CHARLES to François ARMAND

So, I succeeded in reproducing it for motd.

I didn't find the root cause, but at least I can assure that:

- for the corresponding activeTechnique, the acceptationTimestamp is correctly updated,
- the techniqueLibraryVersion is correctly updated,
- the technique update is correctly logged (in debug level)
- the technique update correctly fire checks on directives using it

Actions #6

Updated by François ARMAND almost 10 years ago

  • Status changed from Discussion to In progress
Actions #7

Updated by François ARMAND almost 10 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder/pull/522
Actions #8

Updated by François ARMAND almost 10 years ago

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

Updated by Vincent MEMBRÉ almost 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.1, which was released today.
Check out:

Actions

Also available in: Atom PDF