<div dir="ltr"><div><div>So the source of the mirror is here:</div><div><br></div><div><a href="https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/repodata/9d2f104b8df5e04cb901daf712e21d547df7cebc383eca3a4c757afa03708df3-primary.xml.gz">https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/repodata/9d2f104b8df5e04cb901daf712e21d547df7cebc383eca3a4c757afa03708df3-primary.xml.gz</a></div><div><br></div>And I extracted the downloaded primary<br><a href="https://pastebin.com/Wm9XNzph">https://pastebin.com/Wm9XNzph</a><br><br></div>Appreciate any guidance. I got distracted working on some other foreman things for AIX<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Will Darton<br>7032322344</div><div dir="ltr"><span style="color:rgb(255,0,0);font-family:"arial black",sans-serif">RHC{A,DS,E,VA,SA} </span><font color="#ff0000" face="arial black, sans-serif">130-047-673</font><br><span style="font-size:small;font-family:"arial black",sans-serif;color:rgb(255,0,0)"><br></span><font style="font-size:small">“<span style="color:rgb(51,51,51);font-family:Verdana,Arial,sans-serif;font-size:13px;line-height:18.2px;background-color:rgb(246,246,245)">There is excellence all around you. You need only to be aware to stop and savor it.</span>” - Anton Ego</font><span style="font-size:small"> </span><span style="font-family:arial black,sans-serif;color:rgb(255,0,0)"><br></span>  </div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jan 22, 2018 at 5:20 PM, Sean Myers <span dir="ltr"><<a href="mailto:sean.myers@redhat.com" target="_blank">sean.myers@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 01/19/2018 02:36 PM, Will Darton wrote:<br>
> Brian thanks for the response<br>
> So pardon my newb question here, but I've not delved this deep in yum repo<br>
> xmls..<br>
> Would the formatting of the xml make a difference?<br>
<br>
</span>Not Brian, but the short answer is "no". Long answer below.<br>
<div><div class="h5"><br>
> In the foreman generated primary.xml I have a stanza such as this<br>
> <?xml version="1.0" encoding="UTF-8"?><br>
> <metadata packages="10" xmlns="<a href="http://linux.duke.edu/metadata/common" rel="noreferrer" target="_blank">http://linux.duke.edu/<wbr>metadata/common</a>"<br>
> xmlns:rpm="<a href="http://linux.duke.edu/metadata/rpm" rel="noreferrer" target="_blank">http://linux.duke.<wbr>edu/metadata/rpm</a>"><package type="rpm"><br>
>   <name>libgomp</name><br>
>   <arch>ppc</arch><br>
>   <version epoch="0" rel="1" ver="6.3.0" /><br>
>   <checksum pkgid="YES" type="sha256"><wbr>081c485b68e30e6c3f53a3b0932f3b<br>
> 0067d687797713303734060e6c555d<wbr>a745</checksum><br>
>   <summary>GCC OpenMP 2.5 shared support library</summary><br>
>   <description>This package contains GCC shared support library which is<br>
> needed<br>
> for OpenMP 2.5 support.<br>
><br>
><br>
> if [ "0" == 1 ]<br>
> then<br>
><br>
> Work in Progress</description><br>
>   <packager /><br>
><br>
><br>
> And then in the direct mirrored primary.xml I have the same stanza but with<br>
> proper formatting<br>
> <package type="rpm"><br>
>   <name>libgomp</name><br>
>   <arch>ppc</arch><br>
>   <version epoch="0" ver="6.3.0" rel="1"/><br>
>   <checksum type="sha256" pkgid="YES"><wbr>081c485b68e30e6c3f53a3b0932f3b<br>
> 0067d687797713303734060e6c555d<wbr>a745</checksum><br>
>   <summary>GCC OpenMP 2.5 shared support library</summary><br>
>   <description>This package contains GCC shared support library which is<br>
> needed<br>
> for OpenMP 2.5 support.<br>
><br>
><br>
> if [ "0" == 1 ]<br>
> then<br>
><br>
> Work in Progress</description><br>
>   <packager></packager><br>
><br>
><br>
><br>
> I do notice also in the foreman/pulp generated primary.xml, there appears<br>
> to be a missing <packager> stanza after the </description>  So I'm guessing<br>
> the xml is getting misread as its ingested and regenerated by pulp<br>
<br>
</div></div><packager /> is functionally identical to <packager></packager>[0]; the location<br>
of the slashes matters there.<br>
<br>
Additionally, whitespace between tags should't matter[1][2], so the newline<br>
before "<package" doesn't matter.<br>
<br>
I think it's unlikely that those two things are the cause of the problem here.<br>
The original error does indicate a malformed xml document, unfortunately doesn't<br>
go into detail about exactly where:<br>
<span class=""><br>
> TypeError: Parsing primary.xml error: Start tag expected, '<' not<br>
> found<br>
<br>
</span>I suspect it's failing on the very start of the document, though, since that's<br>
the only real place a parser can be sure it needs to see a start tag.<br>
<br>
In your direct mirrored xml example, the xml declaration [0] and the outer<br>
metadata tag as seen in the foreman-generated xml seem to be missing:<br>
<span class=""><br>
> <?xml version="1.0" encoding="UTF-8"?><br>
</span>> <metadata ... ><br>
<br>
It might be useful to debugging to paste that mirrored primary.xml somewhere, in<br>
its entirety.<br>
<br>
[0]: <a href="https://www.w3.org/TR/REC-xml/#sec-prolog-dtd" rel="noreferrer" target="_blank">https://www.w3.org/TR/REC-xml/<wbr>#sec-prolog-dtd</a><br>
<br>
[1]: <a href="https://www.w3.org/TR/REC-xml/#NT-EmptyElemTag" rel="noreferrer" target="_blank">https://www.w3.org/TR/REC-xml/<wbr>#NT-EmptyElemTag</a> - Note that the definition<br>
there implicitly supports only "<tag/>" or "<tag />", but support for<br>
"<tag></tag>" is demonstrated in the examples.<br>
<br>
[2]: <a href="https://www.w3.org/TR/REC-xml/#sec-white-space" rel="noreferrer" target="_blank">https://www.w3.org/TR/REC-xml/<wbr>#sec-white-space</a> - "In editing XML documents,<br>
it is often convenient to use "white space" (spaces, tabs, and blank lines) to<br>
set apart the markup for greater readability. Such white space is *typically not<br>
intended for inclusion in the delivered version of the document*.[emphasis mine]"<br>
<br>
[3]: <a href="https://www.w3.org/TR/REC-xml/#sec-element-content" rel="noreferrer" target="_blank">https://www.w3.org/TR/REC-xml/<wbr>#sec-element-content</a> - "An element type has<br>
element content when elements of that type MUST contain only child elements (no<br>
character data), *optionally separated by white space*[emphasis mine]"<br>
<br>
<br>______________________________<wbr>_________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/pulp-dev</a><br>
<br></blockquote></div><br></div>