Project

General

Profile

Bug #6468

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

Added by Nicolas CHARLES about 5 years ago. Updated almost 4 years ago.

Status:
Released
Priority:
2
Category:
Packaging
Target version:
Severity:
User visibility:
Effort required:
Priority:

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

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

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 3.0.4 to 3.0.5
#2

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 3.0.5 to 3.0.6
#3

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 3.0.6 to 3.0.7
#4

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 3.0.7 to 3.0.8
#5

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 3.0.8 to 3.0.9
#6

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 3.0.9 to 3.0.10
#7

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 3.0.10 to 3.0.11
#8

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 3.0.11 to 3.0.12
#9

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 3.0.12 to 3.0.13
#10

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 3.0.13 to 3.0.14
#11

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 3.0.14 to 3.0.15
#12

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 3.0.15 to 3.0.16
#13

Updated by Jonathan CLARKE about 4 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.

#14

Updated by Jonathan CLARKE about 4 years ago

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

Updated by Jonathan CLARKE about 4 years ago

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

Updated by François ARMAND about 4 years ago

  • Tags 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.

#17

Updated by François ARMAND about 4 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).

#18

Updated by Jonathan CLARKE about 4 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.

#19

Updated by Jonathan CLARKE about 4 years ago

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

Updated by Jonathan CLARKE about 4 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
#21

Updated by Jonathan CLARKE about 4 years ago

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

Updated by Vincent MEMBRÉ almost 4 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.

Also available in: Atom PDF