Project

General

Profile

Actions

Bug #6468

closed

When we install rudder-agent after having removing it, the uuid is not restored on RPM-based systems

Added by Nicolas CHARLES over 9 years ago. Updated over 8 years ago.

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

Description

After purging rudder-agent, and reinstalling it, the uuid is not restored, which completely defeat the idea of backuping it.

At least on 3.0, but probably in 2.10


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #7901: Backup and restore policy_server.dat like we do with uuid.hive fileReleasedBenoît PECCATTE2016-02-24Actions
Actions #1

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 3.0.4 to 3.0.5
Actions #2

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 3.0.5 to 3.0.6
Actions #3

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 3.0.6 to 3.0.7
Actions #4

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 3.0.7 to 3.0.8
Actions #5

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 3.0.8 to 3.0.9
Actions #6

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 3.0.9 to 3.0.10
Actions #7

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 3.0.10 to 3.0.11
Actions #8

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 3.0.11 to 3.0.12
Actions #9

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 3.0.12 to 3.0.13
Actions #10

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 3.0.13 to 3.0.14
Actions #11

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 3.0.14 to 3.0.15
Actions #12

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.0.15 to 3.0.16
Actions #13

Updated by Jonathan CLARKE over 8 years ago

  • Subject changed from When we install rudder-agent after having purged it, the uuid is not restored to When we install rudder-agent after having removing it, the uuid is not restored

Nicolas CHARLES wrote:

After purging rudder-agent, and reinstalling it, the uuid is not restored, which completely defeat the idea of backuping it.

At least on 3.0, but probably in 2.10

There is a vocabulary confusion here: if we are purging a package (apt-get purge), then this is the expected behaviour.

If we did not, but we just removed the package, then this file should indeed be restored. According to #7901 this works.

It needs testing again to confirm.

Actions #14

Updated by Jonathan CLARKE over 8 years ago

  • Related to Bug #7901: Backup and restore policy_server.dat like we do with uuid.hive file added
Actions #15

Updated by Jonathan CLARKE over 8 years ago

  • Assignee changed from Matthieu CERDA to François ARMAND
Actions #16

Updated by François ARMAND over 8 years ago

  • Translation missing: en.field_tag_list set to Next minor release
  • Assignee changed from François ARMAND to Benoît PECCATTE
  • Target version changed from 3.0.16 to 2.11.21
  • How to reproduce updated (diff)

Validated: with a simple remove / install, the uuid is not restored on centos6/7.

The behaviour is consistent on debian: apt-get remove / install => uuid.hive restored ; apt-get purge / install => new uuid.hive.

Actions #17

Updated by François ARMAND over 8 years ago

  • Priority changed from N/A to 2

This is not a big problem, but it is a non-consistence between package, so a maintenance nightmare in the future (so the next minor).

Actions #18

Updated by Jonathan CLARKE over 8 years ago

  • Subject changed from When we install rudder-agent after having removing it, the uuid is not restored to When we install rudder-agent after having removing it, the uuid is not restored on RPM-based systems
This is indeed implemented very differently in RPM and debian packages in all released versions:

However, in master (future 3.3/4.0), this behaviour has been harmonised and all platforms use the approach currently in RPM packages. This actually duplicates the code from check-rudder-agent.

I believe the correct solution here is therefore to follow the deb package approach, and always call check-rudder-agent at the end of postinst to restore existing UUID or create a new one if necessary.

Actions #19

Updated by Jonathan CLARKE over 8 years ago

  • Status changed from New to In progress
  • Assignee changed from Benoît PECCATTE to Jonathan CLARKE
Actions #20

Updated by Jonathan CLARKE over 8 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/912
Actions #21

Updated by Jonathan CLARKE over 8 years ago

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

Updated by Vincent MEMBRÉ over 8 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.21, 3.0.16, 3.1.10 and 3.2.3 which were released on 2016-06-01, but not announced.

Actions

Also available in: Atom PDF