Project

General

Profile

Actions

Bug #1645

closed

after purge of rudder-agent package, some files not removed + new version of promises.cf not applied on package upgrade

Added by Fabrice FLORE-THÉBAULT over 13 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
4
Assignee:
Matthieu CERDA
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

There was a problem with reference to repoCheck.cf in /var/rudder/cfengine-community/inputs/promises.cf at first installation of rudder-agent.

Then i updated the agent where this was fixed.

Afterwards there was still a reference to repoCheck.cf in /var/rudder/cfengine-community/inputs/promises.cf

=> First problem : this file was not updated as expected

Then I purged rudder-agent, but this file was still present

=> second problem : purge of the package don't remove every files, these directories were not removed :

  1. /opt/rudder
  2. /var/rudder
root@debian-squeeze:~# apt-get purge rudder-agent 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  rudder-agent*
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 85.3 MB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 75605 files and directories currently installed.)

Removing rudder-agent ...
Purging configuration files for rudder-agent ...
dpkg: warning: while removing rudder-agent, directory '/opt/rudder/etc' not empty so not removed.
dpkg: warning: while removing rudder-agent, directory '/opt/rudder' not empty so not removed.
dpkg: warning: while removing rudder-agent, directory '/opt' not empty so not removed.
dpkg: warning: while removing rudder-agent, directory '/var/rudder/cfengine-community/bin' not empty so not removed.
dpkg: warning: while removing rudder-agent, directory '/var/rudder/cfengine-community/inputs' not empty so not removed.
dpkg: warning: while removing rudder-agent, directory '/var/rudder/cfengine-community' not empty so not removed.
dpkg: warning: while removing rudder-agent, directory '/var/rudder' not empty so not removed.
root@debian-squeeze:~# updatedb
root@debian-squeeze:~# locate rudder
/opt/rudder
/opt/rudder/etc
/opt/rudder/etc/uuid.hive
/var/cache/apt/archives/rudder-agent_2.3.0~beta1~git201108220425-squeeze0_i386.deb
/var/cache/apt/archives/rudder-agent_2.3.0~beta1~git201108240428-squeeze0_i386.deb
/var/rudder
/var/rudder/cfengine-community
/var/rudder/cfengine-community/bin
/var/rudder/cfengine-community/bin/cf-agent
/var/rudder/cfengine-community/bin/cf-execd
/var/rudder/cfengine-community/bin/cf-key
/var/rudder/cfengine-community/bin/cf-know
/var/rudder/cfengine-community/bin/cf-monitord
/var/rudder/cfengine-community/bin/cf-promises
/var/rudder/cfengine-community/bin/cf-report
/var/rudder/cfengine-community/bin/cf-runagent
/var/rudder/cfengine-community/bin/cf-serverd
/var/rudder/cfengine-community/cf3.debian-squeeze.runlog
/var/rudder/cfengine-community/cf-execd.pid
/var/rudder/cfengine-community/cf-serverd.pid
/var/rudder/cfengine-community/inputs
/var/rudder/cfengine-community/inputs/cfengine_stdlib.cf
/var/rudder/cfengine-community/inputs/core-lib.cf
/var/rudder/cfengine-community/inputs/failsafe.cf
/var/rudder/cfengine-community/inputs/fetchFusionTools.cf
/var/rudder/cfengine-community/inputs/files
/var/rudder/cfengine-community/inputs/files/fusion_repo.key
/var/rudder/cfengine-community/inputs/fusionAgent.cf
/var/rudder/cfengine-community/inputs/getUuid.cf
/var/rudder/cfengine-community/inputs/library.cf
/var/rudder/cfengine-community/inputs/license.dat
/var/rudder/cfengine-community/inputs/process_matching.cf
/var/rudder/cfengine-community/inputs/promises.cf
/var/rudder/cfengine-community/inputs/site.cf
/var/rudder/cfengine-community/inputs/update.cf
/var/rudder/cfengine-community/inputs/virtual-machines.cf
/var/rudder/cfengine-community/lastseen
/var/rudder/cfengine-community/masterfiles
/var/rudder/cfengine-community/masterfiles/cf_promises_validated
/var/rudder/cfengine-community/modules
/var/rudder/cfengine-community/outputs
/var/rudder/cfengine-community/policy_server.dat
/var/rudder/cfengine-community/ppkeys
/var/rudder/cfengine-community/ppkeys/localhost.priv
/var/rudder/cfengine-community/ppkeys/localhost.pub
/var/rudder/cfengine-community/randseed
/var/rudder/cfengine-community/reports
/var/rudder/cfengine-community/state
/var/rudder/cfengine-community/state/cf_lock.db
/var/rudder/cfengine-community/state/cf_otherprocs
/var/rudder/cfengine-community/state/cf_procs
/var/rudder/cfengine-community/state/cf_rootprocs
/var/rudder/cfengine-community/state/cf_state.db

Related issues 2 (1 open1 closed)

Related to Rudder - User story #2732: Be able to remove and reinstall a serverNewActions
Related to Rudder - Bug #3145: directory '/opt' not empty so not removed.Rejected2013-01-07Actions
Actions #1

Updated by Fabrice FLORE-THÉBAULT over 13 years ago

at purge of rudder* packages on the server side, files are left in /opt/rudder, /var/rudder, /var/log/rudder.

Actions #2

Updated by Fabrice FLORE-THÉBAULT over 13 years ago

apache2 website rudder-default is not disabled at purge of package, causing apache startup error

Starting web server: apache2apache2: Syntax error on line 230 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/rudder-default: No such file or directory
Action 'start' failed.
The Apache error log may have more information.
 failed!

Actions #3

Updated by François ARMAND about 13 years ago

  • Target version set to 18
Actions #4

Updated by François ARMAND about 13 years ago

  • Target version changed from 18 to 24
Actions #5

Updated by Jonathan CLARKE over 12 years ago

  • Target version changed from 24 to 18
Actions #6

Updated by Jonathan CLARKE over 12 years ago

  • Assignee set to Nicolas PERRON
  • Target version changed from 18 to 2.4.0~rc1
Actions #7

Updated by Jonathan CLARKE over 12 years ago

  • Status changed from New to 2
  • Priority changed from N/A to 4
Actions #8

Updated by Jonathan CLARKE over 12 years ago

  • Target version changed from 2.4.0~rc1 to 2.4.0~rc2
Actions #9

Updated by Nicolas PERRON over 12 years ago

  • Status changed from 2 to In progress
I will add postrm script to all packages in order to:
  • remove all files expect config files for instruction remove
  • remove all files for instruction purge
Actions #10

Updated by Nicolas PERRON over 12 years ago

Nicolas PERRON wrote:

I will add postrm script to all packages in order to:
  • remove all files expect config files for instruction remove
  • remove all files for instruction purge

I did it wrong. This is not the way to use package manager.

The problem appear at the moment of the remove because of the presence of files which are not handled by the package. These files are created by some postinst scripts or by the user ('policy_server.dat'). besides, purge should be able to remove the rudder Database.

Actions #11

Updated by Nicolas PERRON over 12 years ago

  • Target version changed from 2.4.0~rc2 to 2.4.0~rc1
Actions #12

Updated by Nicolas PERRON about 12 years ago

  • Target version changed from 2.4.0~rc1 to 2.4.0~rc2

This ticket have to be postponed to 2.4.0~rc2

Actions #13

Updated by Nicolas PERRON about 12 years ago

  • Target version changed from 2.4.0~rc2 to 2.4.0
Actions #14

Updated by François ARMAND about 12 years ago

  • Status changed from In progress to 14
Actions #15

Updated by Nicolas PERRON about 12 years ago

  • Target version changed from 2.4.0 to 61
Actions #16

Updated by François ARMAND about 12 years ago

  • Target version changed from 61 to 2.4.2
Actions #17

Updated by Nicolas PERRON almost 12 years ago

  • Target version changed from 2.4.2 to 2.4.3
Actions #18

Updated by Matthieu CERDA almost 12 years ago

  • Target version changed from 2.4.3 to 2.4.4
Actions #19

Updated by Nicolas PERRON almost 12 years ago

  • Project changed from Rudder to 34
  • Category deleted (11)
Actions #20

Updated by Nicolas CHARLES almost 12 years ago

Nicolas,

This ticket is labelled as "in progress", however there is no activity on it; could you tell what you are doing on it please ?

Actions #21

Updated by Nicolas PERRON almost 12 years ago

  • Assignee deleted (Nicolas PERRON)

Nicolas CHARLES wrote:

Nicolas,

This ticket is labelled as "in progress", however there is no activity on it; could you tell what you are doing on it please ?

You're right, there is no activity since I'm not working on it. I should have not be still assigned to this task. Besides, I can't change the status from "In progress" to "To be started".

Actions #22

Updated by Jonathan CLARKE almost 12 years ago

  • Status changed from 14 to 8
Actions #23

Updated by Nicolas PERRON almost 12 years ago

  • Target version changed from 2.4.4 to 2.4.5
Actions #24

Updated by Nicolas PERRON over 11 years ago

  • Target version changed from 2.4.5 to 2.4.6
Actions #25

Updated by Nicolas PERRON over 11 years ago

  • Target version changed from 2.4.6 to 2.4.7
Actions #26

Updated by Nicolas PERRON over 11 years ago

  • Target version changed from 2.4.7 to 2.4.8
Actions #27

Updated by Nicolas PERRON over 11 years ago

  • Target version changed from 2.4.8 to 2.4.9
Actions #28

Updated by Nicolas PERRON about 11 years ago

  • Target version changed from 2.4.9 to 2.4.10
Actions #29

Updated by Nicolas PERRON about 11 years ago

  • Target version changed from 2.4.10 to 2.4.11
Actions #30

Updated by Nicolas PERRON about 11 years ago

  • Target version changed from 2.4.11 to 2.4.12
Actions #31

Updated by Nicolas PERRON about 11 years ago

  • Target version changed from 2.4.12 to 2.4.13
Actions #32

Updated by Vincent MEMBRÉ almost 11 years ago

  • Target version changed from 2.4.13 to 2.6.11

Since version 2.4 is not maintained anymore, retageting this issue to 2.6

Actions #33

Updated by Vincent MEMBRÉ almost 11 years ago

  • Target version changed from 2.6.11 to 2.6.12
Actions #34

Updated by Vincent MEMBRÉ almost 11 years ago

  • Target version changed from 2.6.12 to 2.6.13
Actions #35

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.6.13 to 2.6.14
Actions #36

Updated by Jonathan CLARKE over 10 years ago

  • Target version changed from 2.6.14 to 2.6.16
Actions #37

Updated by Jonathan CLARKE over 10 years ago

  • Target version changed from 2.6.16 to 2.6.17
Actions #38

Updated by Nicolas PERRON over 10 years ago

  • Target version changed from 2.6.17 to 2.6.18
Actions #39

Updated by Matthieu CERDA about 10 years ago

  • Target version changed from 2.6.18 to 2.6.19
Actions #40

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.6.19 to 2.6.20
Actions #41

Updated by François ARMAND almost 10 years ago

  • Status changed from 8 to New
  • Assignee set to Matthieu CERDA

Matthieu, could you please give us on overwiew of that one:
- am I correct that the second problem (purge) is still present in 2.10 and up, and tracked in #2732 ?
- what about the first problem ?

Actions #42

Updated by François ARMAND almost 10 years ago

  • Target version changed from 2.6.20 to 2.10.10
Actions #43

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.10.10 to 2.10.11
Actions #44

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.10.11 to 2.10.12
Actions #45

Updated by Benoît PECCATTE almost 10 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions #46

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.10.12 to 2.10.13
Actions #47

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.13 to 2.10.14
Actions #48

Updated by Benoît PECCATTE over 9 years ago

  • Tracker changed from User story to Bug
Actions #49

Updated by Benoît PECCATTE over 9 years ago

  • Status changed from New to Rejected

The first problem doesn't exist anymore and the second is tracked by #2732
Closing

Actions

Also available in: Atom PDF