<div dir="ltr">

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I know this has been a day, but it took me a while to circle back around to it. But in case anyone else runs into this, I have successfully gotten an IBM AIX system, to use IBM's yum/rpm to retrieve content from IBM mirror'd repositories in Foreman and Red Hat Satellite.</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">What was missing were the libxml2 rpms , though yum wouldn't say exactly that, and there isn't a fancy ldconfig command I know on AIX</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">In the end, needed these:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div>/ # uname -a</div><div>AIX hostname  2 7 00FAF6804C00</div><div><br></div><div>/ # rpm -qa | egrep 'libxml|python|yum|rpm' | sort<br></div><div>AIX-rpm-7.2.2.0-6.ppc</div><div>libxml2-2.9.5-1.ppc</div><div>libxml2-python-2.9.5-1.ppc</div><span class="gmail-im" style="color:rgb(80,0,80)"><div>python-2.7.10-1.ppc</div><div>python-devel-2.7.10-1.ppc</div><div>python-iniparse-0.4-1.noarch</div><div>python-pycurl-7.19.3-1.ppc</div><div>python-tools-2.7.10-1.ppc</div><div>python-urlgrabber-3.10.1-1.<wbr>noarch</div></span><div>yum-3.4.3-5.noarch</div><div>yum-metadata-parser-1.1.4-2.<wbr>ppc</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">And a repo conf such as this:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div>[Satellite_AIX_Toolbox_noarch]</div><div>name=AIX noarch repository</div><div>sslclientcert = /opt/freeware/etc/pki/<wbr>entitlement.pem</div><div>sslclientkey = /opt/freeware/etc/pki/<wbr>entitlement-key.pem</div><div>sslcacert = /opt/freeware/etc/pki/cacert.<wbr>pem</div><div>sslverify=1</div><div>baseurl=<a href="https://capsule.example.com/pulp/repos/ORG/LAB/eue-aix72-server-ppc/custom/eue_ibm_aix/noarch/" target="_blank" style="color:rgb(17,85,204)">https://capsule.<wbr>example.com/pulp/repos/ORG/<wbr>LAB/eue-aix72-server-ppc/<wbr>custom/eue_ibm_aix/noarch/</a></div><div>enabled=1</div><div>gpgcheck=0</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div># yum repolist </div><div>repo id                                                                        repo name                                                                status</div><div>AIX_Toolbox_noarch                                                             AIX noarch mirror                                                         79</div><div>AIX_Toolbox_ppc                                                                AIX PPC mirror                                                           355</div><div>AIX_Toolbox_ppc-7.2                                                            AIX PPC mirror                                                            10</div><div>Satellite_AIX_Toolbox_noarch                                                   AIX noarch repository                                                     79</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">now off to conquer subscription-manager</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Thanks for the advise!</div>

<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 29, 2018 at 10:58 AM, Will Darton <span dir="ltr"><<a href="mailto:willdarton@gmail.com" target="_blank">willdarton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">https://public.dhe.ibm.com/<wbr>aix/freeSoftware/aixtoolbox/<wbr>RPMS/ppc-7.2/repodata/<wbr>9d2f104b8df5e04cb901daf712e21d<wbr>547df7cebc383eca3a4c757afa0370<wbr>8df3-primary.xml.gz</a></div><div><br></div>And I extracted the downloaded primary<br><a href="https://pastebin.com/Wm9XNzph" target="_blank">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"><span class=""><br clear="all"><div><div class="m_734964887726548327gmail_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><a href="tel:(703)%20232-2344" value="+17032322344" target="_blank">7032322344</a></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></span><div class="gmail_quote"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><span>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="m_734964887726548327h5"><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/m<wbr>etadata/common</a>"<br>
> xmlns:rpm="<a href="http://linux.duke.edu/metadata/rpm" rel="noreferrer" target="_blank">http://linux.duke.e<wbr>du/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">081c485b68e30e6c<wbr>3f53a3b0932f3b<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">081c485b68e30e6c3f<wbr>53a3b0932f3b<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><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><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></div></div><span class="">______________________________<wbr>_________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com" target="_blank">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/pulp-dev</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>