Project

General

Profile

Actions

Bug #2443

closed

Policy Server UUID in /var/rudder/tmp

Bug #2443: Policy Server UUID in /var/rudder/tmp

Added by Vincent MEMBRÉ about 14 years ago. Updated over 11 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Information about policy server UUID is located in /var/rudder/tmp/uuid.txt

That directory is shared beetween every agents running, but the information may be different for each of them.
and last running agent will overwrote that file.

That file may be better located in the agent specific directory (/var/rudder/agent-name) to solve that problem.


Subtasks 1 (0 open1 closed)

Bug #6018: Fusion Inventory doesn't find the policy server uuid, and so canno't reports all information correctlyReleasedBenoît PECCATTEActions

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay serverReleasedBenoît PECCATTEActions

Updated by Jonathan CLARKE almost 14 years ago Actions #1

  • Target version changed from 2.4.0~alpha7 to Ideas (not version specific)

Updated by Jonathan CLARKE over 13 years ago Actions #2

  • Assignee deleted (Jonathan CLARKE)

Updated by Nicolas CHARLES over 13 years ago Actions #3

  • Assignee set to Matthieu CERDA
  • Priority changed from N/A to 5 (lowest)

Matthieu, could you do this modification ?

Updated by Jonathan CLARKE about 12 years ago Actions #4

  • Assignee changed from Matthieu CERDA to Nicolas CHARLES

I don't understand what change is needed here. What is meant by "agent-name"? What string should this be, and where do we read it from?

Updated by Nicolas CHARLES about 12 years ago Actions #5

  • Assignee changed from Nicolas CHARLES to Jonathan CLARKE

This file contains the policy server uuid, for the inventory
However, if you have several agent on the system (like enterprise and community), and each one as a different policy server (which is possible with the current set of promises), the value will be erases by the last agent running, hence an invalid value fro the policy server uuid will be the inventory

agent-name could be community on community edition, and enterprise on enterprise edition

Updated by Jonathan CLARKE about 12 years ago Actions #6

  • Assignee deleted (Jonathan CLARKE)

OK, I understand. This would be nice to have, but I see no urgency here. De-assigning.

Updated by Jonathan CLARKE over 11 years ago Actions #7

  • Status changed from New to Pending technical review
  • Assignee set to Nicolas CHARLES
  • Target version changed from Ideas (not version specific) to 3.0.0~beta2
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/608

A very simple way to do this is to just store this file in CFEngine's ${sys.workdir} directory. This will obviously be agent-unique.

PR: https://github.com/Normation/rudder-techniques/pull/608

Updated by Jonathan CLARKE over 11 years ago Actions #8

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

Applied in changeset policy-templates:commit:7ddc31a3d2d524718a007fa9abca30dfccee74e2.

Updated by Nicolas CHARLES over 11 years ago Actions #9

Applied in changeset policy-templates:commit:21c7da7f25727f32383a38c864b8c2d00aa2abde.

Updated by Nicolas CHARLES over 11 years ago Actions #10

Ha, this cause a problem with fusioninventory
Fusioninventory looks for the policy server uuid in /var/rudder/tmp/uuid.txt, but now the file is in ${sys.workdir}/rudder-server-uuid.txt, so the inventory doesn't work as expected

Updated by Vincent MEMBRÉ over 11 years ago Actions #11

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.0.0~beta2, which were these days.

Updated by Nicolas CHARLES about 10 years ago Actions #12

  • Related to Bug #8045: Using Rudder server 3.x + rudder agent 2.11.x, a node doesn't properly detect its change of relay server added
Actions

Also available in: PDF Atom