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

Also available in: Atom PDF