Modify

Ticket #586 (closed enhancement: fixed)

Opened 14 years ago

Last modified 14 years ago

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

debsums-fix.diff (985 bytes) - added by [email protected] 14 years ago.
Fix for recursive install, help filters files that are modified in there symlinks path

Change History

comment:1 Changed 14 years ago by [email protected]

this ain't an issue anymore with the trunk.

I suggest a close of this ticket

comment:2 Changed 14 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 14 years ago by [email protected]

Fix for recursive install, help filters files that are modified in there symlinks path

comment:3 Changed 14 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

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.