| Summary: | when syncing from dump without KS trees, getting "MissingXmlDiskSourceFileError: unable to process file /root/exp/kickstart_trees/ks-rhel-i386-server-6-6.0.xml" | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Jan Hutař <jhutar> |
| Component: | Satellite Synchronization | Assignee: | Michael Mráka <mmraka> |
| Status: | CLOSED DEFERRED | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 541 | CC: | cperry |
| 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: | 2014-07-04 13:28:01 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 462714 | ||
Description of problem: I have created dump of RHEL6 channel without kickstarts and when I want to sync from it, sync fails because of missing KS definition file. Version-Release number of selected component (if applicable): spacewalk-backend-1.2.13-52.el5sat spacewalk-backend-1.2.13-52.el6sat.noarch How reproducible: always Steps to Reproduce: 1. # mkdir /tmp/export 2. # rhn-satellite-exporter -d /tmp/export -c rhel-x86_64-workstation-6 \ --no-rpms --no-packages --no-kickstarts --print-report 3. # satellite-sync -m /tmp/export -c rhel-x86_64-workstation-6 Actual results: # satellite-sync -m /tmp/export -c rhel-x86_64-workstation-6 03:05:43 Red Hat Network Satellite - file-system synchronization 03:05:43 mp: /tmp/export 03:05:43 db: rhnsat/<password>@rhnsat [...] 03:58:09 Downloading errata data 03:58:09 Retrieving / parsing errata data: rhel-x86_64-workstation-6 (0) 03:58:09 Downloading errata data complete 03:58:09 03:58:09 Downloading kickstartable trees metadata 03:58:09 Retrieving / parsing kickstart data: rhel-x86_64-workstation-6 (2) ________________________________________ Downloading:+++ sending log as an email +++ SYNC ERROR: unhandled exception occurred: (Check logs/email for potentially more detail) MissingXmlDiskSourceFileError('unable to process file /tmp/export/kickstart_trees/ks-rhel-x86_64-workstation-6-6.0.xml',) unable to process file /tmp/export/kickstart_trees/ks-rhel-x86_64-workstation-6-6.0.xml Expected results: Should just skip kickstart sync when it is not available. Additional info: Date: Wed, 8 Jun 2011 03:58:10 -0400 From: rhn-satellite@host Message-Id: <201106080758.p587wAUj019695@host> Subject: RHN Management Satellite sync. report from host To: root@host 03:58:09 SYNC ERROR: unhandled exception occurred: Exception reported from host Time: Wed Jun 8 03:58:09 2011 Exception type <class 'satellite_tools.xmlDiskSource.MissingXmlDiskSourceFileError'> Exception Handler Information Traceback (most recent call last): File "/usr/bin/satellite-sync", line 143, in main return satsync.Runner().main() File "/usr/share/rhn/satellite_tools/satsync.py", line 223, in main ret = method() File "/usr/share/rhn/satellite_tools/satsync.py", line 337, in _step_download_kickstarts return self.syncer.download_kickstarts() File "/usr/share/rhn/satellite_tools/satsync.py", line 1462, in download_kickstarts stream_loader.process(chunk) File "/usr/share/rhn/satellite_tools/satsync.py", line 2140, in process stream = self.disk_loader.load() File "/usr/share/rhn/satellite_tools/xmlDiskSource.py", line 41, in load return self._loadFile(filename) File "/usr/share/rhn/satellite_tools/xmlDiskSource.py", line 59, in _loadFile raise MissingXmlDiskSourceFileError("unable to process file %s" % filename) MissingXmlDiskSourceFileError: unable to process file /tmp/export/kickstart_trees/ks-rhel-x86_64-workstation-6-6.0.xml