<div dir="ltr">If you don't mind filing an issue about it in our tracker, we'll take a look.<div><br></div><div><a href="https://pulp.plan.io/projects/pulp_rpm/issues/new">https://pulp.plan.io/projects/pulp_rpm/issues/new</a><br></div><div><br></div><div>It should be an easy fix. If you or anyone else reading this is interested in an easy code contribution to pulp, this would be a great candidate!</div><div><br></div><div>Aside from yum's code, did they cite any other specific documentation? I would be very interested in seeing that.<br></div><div><br></div><div>Michael</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 4, 2016 at 1:30 AM, Vaclav Adamec <span dir="ltr"><<a href="mailto:vaclav.adamec@suchy-zleb.cz" target="_blank">vaclav.adamec@suchy-zleb.cz</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">So they response is quite ... unhelpful, based on some documenation for repomd.xml seems that revision can be also null (number or null), any chance to "fix" this on Pulp side or is it something which Pulp really use for repo sync ?<div><br></div><div><p>#/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/metadata.py +168</p>

<p>            if element.tag == REVISION_TAG:<br>
                try:<br>
                    self.revision = int(element.text)</p><p><br></p></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 3, 2016 at 6:40 AM, Vaclav Adamec <span dir="ltr"><<a href="mailto:vaclav.adamec@suchy-zleb.cz" target="_blank">vaclav.adamec@suchy-zleb.cz</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>Revision is empty element: <span style="color:rgb(0,0,0);white-space:pre-wrap"><revision /></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><a href="http://pastebin.com/raw/3YCq7dTN" target="_blank">http://pastebin.com/raw/3YCq7dTN</a>  <br><div><br></div><div>I'll get in touch with Artifactory support, if it's possible to fix this on their side. Thanks for help</div><div><br></div><div>Vasek</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 2, 2016 at 10:26 PM, Michael Hrivnak <span dir="ltr"><<a href="mailto:mhrivnak@redhat.com" target="_blank">mhrivnak@redhat.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>Interesting. Can you provide the contents of <a href="https://artifactory-master.test.com/artifactory/yum-local/test-repo/6/x86_64/repodata/repomd.xml" target="_blank">https://artifactory-master.test.com/artifactory/yum-local/test-repo/6/x86_64/repodata/repomd.xml</a> ?<br></div><div><br></div><div>It should have an element like this: <revision>1456870296</revision></div><div><br></div><div>But based on the error you're seeing, I suspect it does not, or that it is empty. Unfortunately, we haven't been able to identify a documented schema for this file (or any of the other yum repo metadata files), so it is difficult to know what is guaranteed or required to be present.</div><div><br></div><div>Here is an example that does have the revision element, near the top:</div><div><br></div><div><a href="https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/repodata/repomd.xml" target="_blank">https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/repodata/repomd.xml</a><br></div><div><br></div><div>Michael</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Mar 2, 2016 at 10:34 AM, Vaclav Adamec <span dir="ltr"><<a href="mailto:vaclav.adamec@suchy-zleb.cz" target="_blank">vaclav.adamec@suchy-zleb.cz</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><div dir="ltr">Pulp reports any issue with metadata, but I can use this repository directly in yum, without any issues.<div><br></div><div><a href="http://pastebin.com/x1p2zme3" target="_blank">http://pastebin.com/x1p2zme3</a><br></div><div><br></div><div>Any advice ? </div><div><br></div><div>Vasek</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 4:30 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><span>On 02/29/2016 11:11 AM, Vaclav Adamec wrote:<br>
> Hi,<br>
>  it is possible to feed pulp repo from authenticated source ? eg something<br>
> like this:<br>
><br>
> pulp-admin rpm repo create --repo-id=test-repo-x86_64-live<br>
> --display-name="TEST REPO x86_64 (Live)" --description="TEST REPO x86_64<br>
> (Live)" --feed="<br>
> <a href="https://login:pass@artifactory-master.test.com/artifactory/yum-local/test-repo/6/x86_64/" rel="noreferrer" target="_blank">https://login:pass@artifactory-master.test.com/artifactory/yum-local/test-repo/6/x86_64/</a>"<br>
> --serve-http=True --serve-https=False<br>
> --relative-url=/test-repo/6/x86_64/live<br>
><br>
> or<br>
><br>
> pulp-admin rpm repo create --repo-id=test-repo-x86_64-live<br>
> --display-name="TEST REPO x86_64 (Live)" --description="TEST REPO x86_64<br>
> (Live)" --feed="<br>
> <a href="https://login:pass@artifactory-master.test.com/artifactory/yum-local/test-repo/6/x86_64/" rel="noreferrer" target="_blank">https://login:pass@artifactory-master.test.com/artifactory/yum-local/test-repo/6/x86_64/</a>"<br>
> --serve-http=True --serve-https=False<br>
> --relative-url=/test-repo/6/x86_64/live<br>
> --basicauth-user=login --basicauth-pass=pass<br>
><br>
> I'm getting:<br>
><br>
> pulp-admin rpm repo sync run --repo-id=test-repo-x86_64-live<br>
><br>
> Task Failed<br>
> int() argument must be a string or a number, not 'NoneType'<br>
><br>
><br>
> Via curl I can download metadata without any issues, no ssl problems at<br>
> all. Any clue ?<br>
<br>
</span></span>I don't know what's causing that error, but a couple things in those<br>
URLs might be confusing pulp. Some tracebacks related to the error would<br>
probably help to troubleshoot.<br>
<br>
<a href="https://pulp.readthedocs.org/en/latest/user-guide/troubleshooting.html" rel="noreferrer" target="_blank">https://pulp.readthedocs.org/en/latest/user-guide/troubleshooting.html</a><br>
<br>
Here are some guesses that might help in the meantime...<br>
<br>
The second method looks most correct. You don't need the "login:pass@"<br>
out of the feed URL. If I remember right, pulp ignores them. Regardless,<br>
using --basicauth-user and --basicauth-pass is the supported way to get<br>
basic auth working. Also, --relative-url should be a relative URL, and<br>
not have a leading slash. I don't see anything else that would anger the<br>
pulp gods of validation, but my eyes are notoriously bad regex parsers.<br>
Try this out:<span><br>
<span><br>
pulp-admin rpm repo create --repo-id=test-repo-x86_64-live<br>
--display-name="TEST REPO x86_64 (Live)" --description="TEST REPO x86_64<br>
(Live)"<br>
</span></span>--feed="<a href="https://artifactory-master.test.com/artifactory/yum-local/test-repo/6/x86_64/" rel="noreferrer" target="_blank">https://artifactory-master.test.com/artifactory/yum-local/test-repo/6/x86_64/</a>"<br>
--serve-http=True --serve-https=False<br>
--relative-url=test-repo/6/x86_64/live --basicauth-user=login<br>
--basicauth-pass=pass<br>
<br>
The equals signs in args aren't strictly needed (but also aren't hurting<br>
anything), so this should also work:<span><br>
<span><br>
pulp-admin rpm repo create --repo-id=test-repo-x86_64-live<br>
--display-name="TEST REPO x86_64 (Live)" --description="TEST REPO x86_64<br>
(Live)"<br>
</span></span>--feed="<a href="https://artifactory-master.test.com/artifactory/yum-local/test-repo/6/x86_64/" rel="noreferrer" target="_blank">https://artifactory-master.test.com/artifactory/yum-local/test-repo/6/x86_64/</a>"<br>
--serve-http true --serve-https false<br>
--relative-url=test-repo/6/x86_64/live --basicauth-user login<br>
--basicauth-pass pass<br>
<br>
<br><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>-- May the fox be with you ...<br>   /\<br>  (~(<br>   ) )         /\_/\<br>  (_=---_(@ @)<br>    (          \   /  <br>    /|/----\|\  V<br>    " "     " "<br><br><br></div>
</font></span></div>
<br></div></div>_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>-- May the fox be with you ...<br>   /\<br>  (~(<br>   ) )         /\_/\<br>  (_=---_(@ @)<br>    (          \   /  <br>    /|/----\|\  V<br>    " "     " "<br><br><br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>-- May the fox be with you ...<br>   /\<br>  (~(<br>   ) )         /\_/\<br>  (_=---_(@ @)<br>    (          \   /  <br>    /|/----\|\  V<br>    " "     " "<br><br><br></div>
</div>
</div></div><br>_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br></blockquote></div><br></div>