Bug 1385726
| Summary: | Package description encoding issue | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Network | Reporter: | Ondrej Gajdusek <ogajduse> |
| Component: | RHN/Backend | Assignee: | Richard Bernleithner <rbernlei> |
| Status: | CLOSED EOL | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | _unset | CC: | bsaylor, galtukho, sean, tlestach |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| 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: | 1305744, 1391420 | ||
|
Description
Ondrej Gajdusek
2016-10-17 15:15:24 UTC
To be concrete, the patch I mentioned above is patch for the Satellite's "/usr/lib/python2.6/site-packages/spacewalk/common/rhnCache.py". For a better understanding I will mention steps to reproduce more accurately. 1. Have Satellite installed on server 2. Apply the patch to rhnCache.py 3. run satellite-sync: "satellite-sync -c rhel-i386-server-5.0.z". It will take something about 6h. 4. After the process finished, take a look into "/var/log/rhn/rhn_server_satellite.log" and search for 'checkpolicy description'. This output shows the package description entry from the variable which contains the decompressed cachefile (in case of "checkpolicy" it is "rhn-package-387762"). To get the cache file located in /var/cache/rhn/satsync/packages/ Satellite uses RHN API call "packages" from "satellite_exporter/handlers/auth_dumper.py". I threw an eye on this file, but am not sure if this is the correct API call which Satellite uses. After the satellite-sync print "Downloading package metadata" to the log it calls StreamProducer on line 1106 in "/satellite_tools/satsync.py" which call function "getPackageXmlStream" in "/backend/satellite_tools/xmlWireSource.py" (with parameter packageIds="rhn-package-387762" - this is the concrete ID of "checkpolicy" package) and return value of this API call is then stored in variable "stream" in "satsync.py" at line 2014. In this case "stream" is, in essence, gzip file, which is subsequently stored in "/var/cache/rhn/satsync/packages/<last-two-digits-of-packageIds>/<packageIds>". Please check the return value of "packages" API call, especially check if it is correctly encoded. When I look at the "checkpolicy" description at WebUI I see this: http://file.brq.redhat.com/~ogajduse/BZ1385726/Selection_007.png Expected result is: http://file.brq.redhat.com/~ogajduse/BZ1385726/Selection_008.png *** Bug 1437011 has been marked as a duplicate of this bug. *** As you may already be aware, Red Hat is transitioning from the Red Hat Network (RHN) hosted interface to the Red Hat Subscription Management (RHSM) interface in July 2017. Red Hat has invested in and seen success from RHN for many years, and used that experience to build more robust technologies like RHSM. If you have not yet migrated your RHN systems to RHSM or you are a Red Hat Satellite customer, please review the information from. https://access.redhat.com/products/red-hat-subscription-management#migration. Since we are shutting down RHN, no further actions will be taken with this bug or enhancement request. You can find additional information at RHSM product page (https://access.redhat.com/products/red-hat-subscription-management). If you have further questions, please contact support (https://access.redhat.com/products/red-hat-subscription-management#support). As you may already be aware, Red Hat is transitioning from the Red Hat Network (RHN) hosted interface to the Red Hat Subscription Management (RHSM) interface in July 2017. Red Hat has invested in and seen success from RHN for many years, and used that experience to build more robust technologies like RHSM. If you have not yet migrated your RHN systems to RHSM or you are a Red Hat Satellite customer, please review the information from. https://access.redhat.com/products/red-hat-subscription-management#migration. Since we are shutting down RHN, no further actions will be taken with this bug or enhancement request. You can find additional information at RHSM product page (https://access.redhat.com/products/red-hat-subscription-management). If you have further questions, please contact support (https://access.redhat.com/products/red-hat-subscription-management#support). |