Bug #1645
closedafter purge of rudder-agent package, some files not removed + new version of promises.cf not applied on package upgrade
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 :
/opt/rudder
/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
Updated by Fabrice FLORE-THÉBAULT about 13 years ago
at purge of rudder* packages on the server side, files are left in /opt/rudder, /var/rudder, /var/log/rudder.
Updated by Fabrice FLORE-THÉBAULT about 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!
Updated by François ARMAND about 13 years ago
- Target version changed from 18 to 24
Updated by Jonathan CLARKE over 12 years ago
- Target version changed from 24 to 18
Updated by Jonathan CLARKE about 12 years ago
- Assignee set to Nicolas PERRON
- Target version changed from 18 to 2.4.0~rc1
Updated by Jonathan CLARKE about 12 years ago
- Status changed from New to 2
- Priority changed from N/A to 4
Updated by Jonathan CLARKE about 12 years ago
- Target version changed from 2.4.0~rc1 to 2.4.0~rc2
Updated by Nicolas PERRON about 12 years ago
- Status changed from 2 to In progress
- remove all files expect config files for instruction remove
- remove all files for instruction purge
Updated by Nicolas PERRON about 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.
Updated by Nicolas PERRON about 12 years ago
- Target version changed from 2.4.0~rc2 to 2.4.0~rc1
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
Updated by Nicolas PERRON almost 12 years ago
- Target version changed from 2.4.0~rc2 to 2.4.0
Updated by François ARMAND almost 12 years ago
- Status changed from In progress to 14
Updated by Nicolas PERRON almost 12 years ago
- Target version changed from 2.4.0 to 61
Updated by François ARMAND almost 12 years ago
- Target version changed from 61 to 2.4.2
Updated by Nicolas PERRON almost 12 years ago
- Target version changed from 2.4.2 to 2.4.3
Updated by Matthieu CERDA almost 12 years ago
- Target version changed from 2.4.3 to 2.4.4
Updated by Nicolas PERRON almost 12 years ago
- Project changed from Rudder to 34
- Category deleted (
11)
Updated by Nicolas CHARLES over 11 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 ?
Updated by Nicolas PERRON over 11 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".
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.4.4 to 2.4.5
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.4.5 to 2.4.6
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.4.6 to 2.4.7
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.4.7 to 2.4.8
Updated by Nicolas PERRON about 11 years ago
- Target version changed from 2.4.8 to 2.4.9
Updated by Nicolas PERRON about 11 years ago
- Target version changed from 2.4.9 to 2.4.10
Updated by Nicolas PERRON about 11 years ago
- Target version changed from 2.4.10 to 2.4.11
Updated by Nicolas PERRON about 11 years ago
- Target version changed from 2.4.11 to 2.4.12
Updated by Nicolas PERRON about 11 years ago
- Target version changed from 2.4.12 to 2.4.13
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
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.6.11 to 2.6.12
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.6.12 to 2.6.13
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.6.13 to 2.6.14
Updated by Jonathan CLARKE over 10 years ago
- Target version changed from 2.6.14 to 2.6.16
Updated by Jonathan CLARKE over 10 years ago
- Target version changed from 2.6.16 to 2.6.17
Updated by Nicolas PERRON over 10 years ago
- Target version changed from 2.6.17 to 2.6.18
Updated by Matthieu CERDA about 10 years ago
- Target version changed from 2.6.18 to 2.6.19
Updated by Vincent MEMBRÉ about 10 years ago
- Target version changed from 2.6.19 to 2.6.20
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 ?
Updated by François ARMAND almost 10 years ago
- Target version changed from 2.6.20 to 2.10.10
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.10.10 to 2.10.11
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.11 to 2.10.12
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.12 to 2.10.13
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.13 to 2.10.14
Updated by Benoît PECCATTE over 9 years ago
- Tracker changed from User story to Bug
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