Bug 1679615

Summary: Kickstarting a new host using Satellite 5.8 get stuck on missing comps.xml file.
Product: Red Hat Satellite 5 Reporter: Prakash Ghadge <pghadge>
Component: ProvisioningAssignee: Michael Mráka <mmraka>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 580CC: ktordeur, pghadge, rdrazny, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-08 18:26:07 UTC 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:

Description Prakash Ghadge 2019-02-21 15:03:56 UTC
Description of problem:

- Kickstarting a new host using Satellite 5.8 get stuck on missing comps.xml

Version-Release number of selected component (if applicable):

- Satellite 5.8

How reproducible:

- Always
- This issue is not present on satellite 5.6 or 5.7.

Steps to Reproduce:
1. Create a kickstart profile and make sure that you add child channels in it. For example, RHN-tools

2. Build the new system

3. The system build halts and search for missing comps.xml which cause unnecessary delay in a build.

Actual results:

- The system build halts and search for missing comps.xml which cause unnecessary delay in a build with the following messages.
~~~
20:10:24,658 DEBUG   : Grabbing  http://satellite.examople.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml
20:10:24,672 DEBUG   : Grabbing  http://satellite.examople.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml
20:10:24,689 DEBUG   : Grabbing  http://satellite.examople.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml
20:10:24,716 DEBUG   : Grabbing  http://satellite.examople.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml
20:10:24,732 DEBUG   : Grabbing  http://satellite.examople.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml
20:10:24,748 DEBUG   : Grabbing  http://satellite.examople.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml
20:10:24,762 DEBUG   : Grabbing  http://satellite.examople.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml
20:10:24,778 DEBUG   : Grabbing  http://satellite.examople.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml
20:10:24,792 DEBUG   : Grabbing  http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml
20:10:24,809 DEBUG   : Grabbing  http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml
20:10:25,024 WARNING : Try 1/10 for http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml failed: [Errno -1] Metadata file does not match checksum
20:10:25,290 WARNING : Try 2/10 for http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml failed: [Errno -1] Metadata file does not match checksum
20:10:25,809 WARNING : Try 3/10 for http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml failed: [Errno -1] Metadata file does not match checksum
20:10:26,829 WARNING : Try 4/10 for http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml failed: [Errno -1] Metadata file does not match checksum
20:10:28,856 WARNING : Try 5/10 for http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml failed: [Errno -1] Metadata file does not match checksum
20:10:32,882 WARNING : Try 6/10 for http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml failed: [Errno -1] Metadata file does not match checksum
20:10:40,913 WARNING : Try 7/10 for http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml failed: [Errno -1] Metadata file does not match checksum
20:10:56,947 WARNING : Try 8/10 for http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml failed: [Errno -1] Metadata file does not match checksum
20:11:29,002 WARNING : Try 9/10 for http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml failed: [Errno -1] Metadata file does not match checksum
20:12:33,088 WARNING : Try 10/10 for http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml failed: [Errno -1] Metadata file does not match checksum
20:12:33,088 WARNING : Failed to get http://satellite.example.com/ks/dist/child/exp-dev-rhn-tools-rhel-x86_64-server-6/exp-dev-rhel6/repodata/comps.xml from mirror 1/1, or downloaded file is corrupt
~~~


Expected results:

- The system should build without any delay.

Additional info:

- The comps.xml reference can be found in "/var/cache/rhn/repodata/rhn-tools-rhel-x86_64-server-7/repomd.xml"
~~~
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo"><data type="primary"><location href="repodata/primary.xml.gz"/><checksum type="sha256">bc089d9ef95d412d941c9f68673e01bd521f3b05bfc8491899a33f79153dcdd3</checksum><open-checksum type="sha256">d8ebe796000a537754a1b6c8ccc5fac51ca486aae8940e7c69dd7ac832e58e58</open-checksum><timestamp>1548228850</timestamp></data><data type="filelists"><location href="repodata/filelists.xml.gz"/><checksum type="sha256">cd06ba723f37df678749c14e0a0f9abde4b4a69a4167ee843d3a793d7c600eaa</checksum><open-checksum type="sha256">02e80fe7da834561760440065f498ae4f7113c2b2b466e84e8733d3406bd6a1d</open-checksum><timestamp>1548228850</timestamp></data><data type="other"><location href="repodata/other.xml.gz"/><checksum type="sha256">207b25f525577e2d788eebcdc21ad47a65f24fc2ac5140af55edfe98bf62d33e</checksum><open-checksum type="sha256">bb4b0823f942bfc0956d6257efcdcfd53a591e187a6dc26d826efc4ed446ae72</open-checksum><timestamp>1548228850</timestamp></data><data type="updateinfo"><location href="repodata/updateinfo.xml.gz"/><checksum type="sha256">4b7c014771d035c314000ee2df4c4e7a9d071cc55c535c095a3ba1dd90cf1894</checksum><open-checksum type="sha256">c229fa0e1cdcc41cbf9a8a8a25e5615b10c83c1d48eb37652b8fcd0caeade957</open-checksum><timestamp>1548228850</timestamp></data></repomd>
~~~

- The same reference is not present in repomd.xml on satellite 5.6 or 5.7
~~~
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo"><data type="primary"><location href="repodata/primary.xml.gz"/><checksum type="sha256">bc089d9ef95d412d941c9f68673e01bd521f3b05bfc8491899a33f79153dcdd3</checksum><open-checksum type="sha256">d8ebe796000a537754a1b6c8ccc5fac51ca486aae8940e7c69dd7ac832e58e58</open-checksum><timestamp>1548228850</timestamp></data><data type="filelists"><location href="repodata/filelists.xml.gz"/><checksum type="sha256">cd06ba723f37df678749c14e0a0f9abde4b4a69a4167ee843d3a793d7c600eaa</checksum><open-checksum type="sha256">02e80fe7da834561760440065f498ae4f7113c2b2b466e84e8733d3406bd6a1d</open-checksum><timestamp>1548228850</timestamp></data><data type="other"><location href="repodata/other.xml.gz"/><checksum type="sha256">207b25f525577e2d788eebcdc21ad47a65f24fc2ac5140af55edfe98bf62d33e</checksum><open-checksum type="sha256">bb4b0823f942bfc0956d6257efcdcfd53a591e187a6dc26d826efc4ed446ae72</open-checksum><timestamp>1548228850</timestamp></data><data type="updateinfo"><location href="repodata/updateinfo.xml.gz"/><checksum type="sha256">4b7c014771d035c314000ee2df4c4e7a9d071cc55c535c095a3ba1dd90cf1894</checksum><open-checksum type="sha256">c229fa0e1cdcc41cbf9a8a8a25e5615b10c83c1d48eb37652b8fcd0caeade957</open-checksum><timestamp>1548228850</timestamp></data></repomd>
~~~

- Because of this comps.xml reference in repomd.xml on satellite 5.8, it causes unnecessary delay in the system build.

Comment 1 Michael Mráka 2019-02-22 08:46:18 UTC
Hello Prakash,

are the file samples in additional info correct? I don't see comps.xml referenced in neither of them.

Comment 2 Prakash Ghadge 2019-02-22 13:05:22 UTC
Hello Michael,

My apologies.
It seems I copied the content from sat57 server and provided in sat58 section.

Here is the correct data from sat58 repomd.xml.
~~~
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo"><data type="primary"><location href="repodata/primary.xml.gz"/><checksum type="sha256">f45aa7241024c8dcce674fbfd578ce9815691a43a06642c58c756ffac4ad17a0</checksum><open-checksum type="sha256">f585edcc1fc7f9a2ca5f715dc2702d8bb5931d137725f48793ae8794cf5c3236</open-checksum><timestamp>1546915367</timestamp></data><data type="filelists"><location href="repodata/filelists.xml.gz"/><checksum type="sha256">9014d0811ff57db557751cdaec26a8a47078b6443e9a2a9942f7bf687e5f92bf</checksum><open-checksum type="sha256">0a4ae66611aa347bd75f5bd630950eb9e90fa1335d81a9b5b443db184358bf9d</open-checksum><timestamp>1546915367</timestamp></data><data type="other"><location href="repodata/other.xml.gz"/><checksum type="sha256">60cdab89880b25d7e7717daac9ff3b910fc4db9bceb588f1eaecefff6f696668</checksum><open-checksum type="sha256">3661d5eb2c45cce577ffa7ef42d181c02572ad64b9ea87fd074e908632883323</open-checksum><timestamp>1546915367</timestamp></data><data type="updateinfo"><location href="repodata/updateinfo.xml.gz"/><checksum type="sha256">65824f355b83cdbd02c00412546e2299dbec2800f4a0d5c0d0844b5233687988</checksum><open-checksum type="sha256">9e75e24ea0c8e8962078cbdaeaa2202b09c34e117c93a7038e80f87f0f27af60</open-checksum><timestamp>1546915367</timestamp></data><data type="group"><location href="repodata/comps.xml"/><checksum type="sha256">cb329cadcd7701d5b4f752e6ef8fbe7fe2bbc3a74b971d47c3ab3682c5e67121</checksum><timestamp>1546915325</timestamp></data></repomd>
~~~

Comment 3 Prakash Ghadge 2019-02-22 13:09:24 UTC
In addition to my last update, the system builds halts for missing comps.xml.
But after 10 tries, the system build continues and eventually completes without any error.

This missing comps.xml is only causing delay and not leading to any kind of failure.