Project

General

Profile

Actions

Bug #27950

closed

Broken agent postinst on RPM servers

Bug #27950: Broken agent postinst on RPM servers

Added by Alexis Mousset 11 months ago. Updated 10 months ago.

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

Description

When installing a server on RHEL9 (ans likyly all other RPM-based systems), the postinst hangs and consumes a lot of resources, with a lot of rudder agent update processes, started in a loop until the installation crashes (too to OOM killer).

This is due to the changes made in #27687 to accomodate the HTTPS-only bootstrap process. The problem is that the policy reset cannot be made, and the creterie for avoiding the loop is the presence of a promises.cf file.

The root cause lies in differences of package installation behavior of dependencies. With dpkg, the server file are installed before the agent postinst is started, allowing the policies reset to work as expected. On RPM systems, the initial-promises folder used on root is not there, leading to a loop.


Related issues 1 (0 open — 1 closed)

Related to Rudder - Architecture #27687: We should not use bootstrap policies in HTTPS modeReleasedBenoît PECCATTEActions

Updated by Alexis Mousset 11 months ago Actions #1

Updated by Alexis Mousset 11 months ago Actions #2

  • Description updated (diff)
  • Category set to Agent
  • Target version set to 9.0.2

Updated by Alexis Mousset 11 months ago Actions #3

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset

Updated by Alexis Mousset 11 months ago Actions #4

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder-agent/pull/446

Updated by Alexis Mousset 11 months ago Actions #5

  • Status changed from Pending technical review to Pending release

Updated by Martin HART 10 months ago Actions #6

  • Fix check changed from To do to Checked

Updated by Vincent MEMBRÉ 10 months ago Actions #7

  • Status changed from Pending release to Released

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

Actions

Also available in: PDF Atom