Ticket #586 (closed enhancement: fixed)
Client should ignore checksum on files that are replaced
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | bcfg2-client | Version: | |
Keywords: | Ignore checksum | Cc: |
Description
Bcfg2 client should do auto-ignore of all Configfile and Symlink of the configuration that fail the checksum check of the package manager for any package that are/will be installed. This way sysadmin would not need to add Ignore tags to Pakcage every time they push a custom file to client.
Attachments
Change History
comment:1 Changed 15 years ago by [email protected]…
comment:2 Changed 15 years ago by [email protected]…
Finally here is a real test case :
have an install of the package firefox by bcfg2
<Package name='firefox' /> <Package name='firefox-2' /> <ConfigFile name='/usr/lib/firefox/defaults/pref/firefox-branding.js' />
this will generate the following log:
[email protected]:~# bcfg2 -v no server x509 fingerprint; no server verification performed! Reading package lists... Done Building dependency tree Reading state information... Done Loaded tool drivers: APT Action DebInit FreeBSDInit POSIX Package firefox-2 failed validation. Bad files are: /usr/share/firefox/defaults/pref/firefox-branding.js Phase: initial Correct entries: 78 Incorrect entries: 1 Total managed entries: 79 Unmanaged entries: 266 Trying single pass package install for pkgtype deb Single Pass Succeded Reading package lists... Done Building dependency tree Reading state information... Done The Following Bundles have been modified: firefox-only Installing ConfigFile /usr/lib/firefox/browserconfig.properties Installing ConfigFile /usr/lib/firefox/defaults/pref/firefox-branding.js Phase: final Correct entries: 79 Incorrect entries: 0 Total managed entries: 79 Unmanaged entries: 266 [email protected]:~# bcfg2 -v no server x509 fingerprint; no server verification performed! Reading package lists... Done Building dependency tree Reading state information... Done Loaded tool drivers: APT Action DebInit FreeBSDInit POSIX Package firefox-2 failed validation. Bad files are: /usr/share/firefox/defaults/pref/firefox-branding.js Phase: initial Correct entries: 78 Incorrect entries: 1 Total managed entries: 79 Unmanaged entries: 266 Trying single pass package install for pkgtype deb Single Pass Succeded Reading package lists... Done Building dependency tree Reading state information... Done The Following Bundles have been modified: firefox-only Installing ConfigFile /usr/lib/firefox/browserconfig.properties Installing ConfigFile /usr/lib/firefox/defaults/pref/firefox-branding.js Phase: final Correct entries: 79 Incorrect entries: 0 Total managed entries: 79 Unmanaged entries: 266
Changed 15 years ago by [email protected]…
- Attachment debsums-fix.diff added
Fix for recursive install, help filters files that are modified in there symlinks path
comment:3 Changed 15 years ago by tousigna
- Status changed from new to closed
- Resolution set to fixed
Fixed in commit [a5cba4e222f4ef89518bebea9b0ac447730fcdb1] (SVN r4901)
Simply ensure that path with symlink are corrected with the realpath for comparaison with newer debsums list of failed checksums
this ain't an issue anymore with the trunk.
I suggest a close of this ticket