Bug 215106 - Config Client doesnot do meta diffs on files OR dirs
Config Client doesnot do meta diffs on files OR dirs
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Configuration Management (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Todd Sanders
Red Hat Satellite QA List
Depends On:
Blocks: 215108
  Show dependency treegraph
Reported: 2006-11-10 18:14 EST by Partha Aji
Modified: 2011-01-05 17:48 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-01-05 17:48:21 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Partha Aji 2006-11-10 18:14:56 EST
Scheduled Diff action on client files do not report the meta data attributes of
a path as a diff.. i.e. if client has a file with filemode = 644 and the channel
configuration file with the same name has a filemode = 755 .. This difference
does not get reported .. This becomes all the more important when diffing

1) On the command line 
%touch /tmp/foo
%ls -l /tmp/foo
-rw-rw-r--  1 paji paji 0 Nov 10 15:45 /tmp/foo  (s/paji/yourusername)
%chmod 700 /tmp/foo
%ls -l /tmp/foo
-rwx------  1 paji paji 0 Nov 10 15:45 /tmp/foo

2) Go to the SDC Configuration page for that system.. Select Add Files + create
3) Set the following values
File Type: Text File
Filename/Path: /tmp/foo
File Permissions Mode:644
User or User ID: root
Group or Group ID: root
4) Click on create configuration file
5) Go View/Modify Files + Local Sandbox
6) Select the file you just added and click on "Copy Latest to System Config
7) Click on Compare Files
8) Select the file you just copied and click on "Compare Files"
9) Select "Schedule configuration actions as soon as possible." and hit 
Schedule Compare..
10) On the commandline
%sudo /usr/sbin/rhn_check -vv
D: Sending back response (0, 'Files successfully diffed', {'diffs': {'/tmp/foo':
D: do_call packages.checkNeedUpdate ('rhnsd=1',)
D: local action status:  (0, 'rpm database not modified since last update (or
package list recently updated)', {})

11) Notice - "D: Sending back response (0, 'Files successfully diffed',
{'diffs': {'/tmp/foo': ''}})"

There are no diff's reported... What should have been reported was the fact that
the file mode values, the user id and group id all were different...
Comment 1 Red Hat Bugzilla 2007-04-11 21:41:52 EDT
User bnackash@redhat.com's account has been closed
Comment 2 Red Hat Bugzilla 2007-05-03 01:42:45 EDT
User wregglej@redhat.com's account has been closed
Comment 4 Clifford Perry 2011-01-05 17:48:21 EST
The RHN Satellite 4.x and RHN Proxy 4.x products have reached their end of
life. Please see:

Satellite 4 EOL Errata
 - https://rhn.redhat.com/errata/RHSA-2011-0001.html

RHN Proxy 4 EOL Errata
 - https://rhn.redhat.com/errata/RHSA-2011-0002.html

This bugzilla was reported for an unspecified version of the product, but was created prior to the release of 5.x - as such we assume this bug was reported for the 4.x version of the product - which is no longer supported. 

RHN Satellite and Proxy Server 5
General availability: 	June 26, 2007

We are closing this bugzilla out. If you feel this bug report should be
reviewed again since it is valid for a currently supported product version,
then please feel free to re-open this bug report. 


Note You need to log in before you can comment on or make changes to this bug.