Project

General

Profile

Actions

Bug #27950

open

Broken agent postinst on RPM servers

Bug #27950: Broken agent postinst on RPM servers

Added by Alexis Mousset 9 days ago. Updated 1 day ago.

Status:
Pending release
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 open1 closed)

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

Updated by Alexis Mousset 9 days ago Actions #1

Updated by Alexis Mousset 9 days ago Actions #2

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

Updated by Alexis Mousset 9 days ago Actions #3

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

Updated by Alexis Mousset 9 days 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 9 days ago Actions #5

  • Status changed from Pending technical review to Pending release

Updated by Martin HART 1 day ago Actions #6

  • Fix check changed from To do to Checked
Actions

Also available in: PDF Atom