Bug 743121
Summary: | rhn_check "show differences" fails when binary files differ | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Brian <hiryuu> | ||||||||||
Component: | Clients | Assignee: | Milan Zázrivec <mzazrivec> | ||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | unspecified | ||||||||||||
Version: | 1.5 | CC: | slukasik | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2011-12-22 16:47:03 UTC | Type: | --- | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Bug Depends On: | |||||||||||||
Bug Blocks: | 723481 | ||||||||||||
Attachments: |
|
Description
Brian
2011-10-03 21:55:54 UTC
Unfortunately, I was not able to reproduce this problem w/ latest Spacewalk (currently nightly, soon to be released as Spacewalk v1.6) -- as in diffing the binary files works all right for me. I'd like to ask you to provide the following info: 1. What's client & server distro & version? (RHEL 5, RHEL-6, ...) 2. rpm -qa|grep rhncfg on the client showing the problem 3. Exact reproducing procedure -- I'm interested in particular what "Run a "show differences" task" means 4. Provided the content of the following log files from the server (for the problematic requests): /var/log/rhn/rhn_config_management.log /var/log/httpd/*_log Thank you! Created attachment 526962 [details]
Client side (corrupt) test file.
Created attachment 526963 [details]
Spacewalk side (intact) test file.
Created attachment 526964 [details]
Apache requst/error logs for XMLPRC requests
Created attachment 526966 [details]
Raw tcpdump of XMLPRC request
1. Client/Server versions -- Spacewalk 1.5 on RHEL 5.7 on both sides 2. rhncfg versions (client side): rhncfg-actions-5.10.9-1.el5 rhncfg-5.10.9-1.el5 rhncfg-client-5.10.9-1.el5 rhncfg-management-5.10.9-1.el5 3. More procedure details In this case, my client is one of the Spacewalk Proxy servers. That shouldn't make a difference, but it may. From the client command line: * dd if=/dev/urandom of=config_test.bin bs=1k count=5 * rhncfg-manager add --channel=sw-proxy /var/www/html/pub/config_test.bin * perl -pi -e 's/M/q%/' config_test.bin At this point "rhncfg-client diff" produces a correct (if messy) result. From the Spacewalk web interface: * Go to the sw-proxy Configuration channel * Click "Compare all files in channel to files on all subscribed systems" * This should trigger a "Show differences between profiled config files and deployed config files" task In my experience, clients in the sw-proxy channel that either do not have config_test.bin or have an unmodified copy of it will complete this task without issue. The one where I mangled it with perl will eventually end the task with Failed status and an error of "This action has been picked up multiple times without a successful transaction; this action is now failed for this system." In reality, it picked up and ran the task, but uploading the results to XMLRPC failed. Running rhn_check manually from the command line also fails. 4. Logs Nothing is logged in /var/log/rhn/rhn_config_management.log for the failed task The httpd logs are attached. The two test files and a raw tcpdump of the XMLRPC request are also attached. Fixed in spacewalk.git master: 04699a1b65ef0acacd79f0ac4453280b076eabd7 In case the differences that are about to be reported to server contain invalid UTF-8 characters, client won't report full diffs, but rather just a string stating: 'binary files differ'. Thank you for your bug report. Spacewalk 1.6 has been released. |