<div dir="ltr"><div>Thanks, Dennis, for the clarification.  I've now setup repos in Pulp pointing to the 2 new kickstart feeds, with --relative-url set to "ks/rhel5/x86_64" and "ks/rhel6/x86_64".  The repos synced just fine and I'm now showing both the 5.10 and 6.5 distributions.<br>

<br></div><div>However, when I go to kickstart a 5.10 server, it is failing with errors about not being able to download the packages from <a href="http://my-pulp-server/repos/ks/rhel5/x86_64//Server/" target="_blank">http://my-pulp-server/repos/ks/rhel5/x86_64//Server/</a><specific-rpm><br>

<br></div><div>This makes sense, because there are no RPMs under Server.  The published Pulp repo tree looks like this:<br>ks/rhel5/x86_64/<br><div style="margin-left:40px">images/<br></div><div style="margin-left:80px">
pxeboot/<br>
</div><div style="margin-left:40px">Packages -> /var/lib/pulp/working/repos/live-rhel-5-x86_64-ks/distributors/yum_distributor<br></div><div style="margin-left:40px">repodata/<br></div><div style="margin-left:40px">Server/<br>

</div><div style="margin-left:80px">repodata/<br></div><div style="margin-left:80px"><div style="margin-left:40px"><links to files under /var/lib/pulp/content/distribution/ks-Red Hat Enterprise Linux Server-5.10-x86_64/Server/repodata/><br>
</div></div><div style="margin-left:40px"><some-rpm-1><br></div><div style="margin-left:40px"><some-rpm-2><br><...><br></div><div style="margin-left:40px"><br></div><br></div><div>All the RPMs are accessible either under the ks/rhel5/x86_64/ top level, or under ks/rhel5/x86_64/Packages (why are they in 2 locations, anyway?) - but not under Server.  So the distribution Server/repodata files are wrong. <br>
<br></div><div>Not sure if this is an upstream problem or a Pulp problem.  FWIW, the primary.xml.gz under the 5.9 distribution seems to point to location href="../Packages/<specific-rpm>" for all the packages, while the 5.10 distribution just points to location href="<specific-rpm>".<br>
<br></div><div>Any thoughts?<br></div><div>Christina<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 2:00 PM, Dennis Gregorovic <span dir="ltr"><<a href="mailto:dgregor@redhat.com" target="_blank">dgregor@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
This is actually intentional.  As of 6.5 we have moved the kickstart<br>
content into a separate repo.  Having the installation files intermixed<br>
with errata and update RPMs all under os/ was not a clean model.<br>
Apologies for not announcing this to pulp-list before; I didn't realize<br>
that folks were actually syncing the "distributions" from<br>
<a href="http://cdn.redhat.com" target="_blank">cdn.redhat.com</a>.<br>
<br>
So, the path that you now want to use is:<br>
<br>
<a href="https://cdn.redhat.com/content/dist/rhel/server/6/6.5/x86_64/kickstart/" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/6/6.5/x86_64/kickstart/</a><br>
<a href="https://cdn.redhat.com/content/dist/rhel/server/5/5.10/x86_64/kickstart/" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/5/5.10/x86_64/kickstart/</a><br>
<br>
The kickstart repos are there for all variants, arches, and minor<br>
releases of RHEL back to 5.7 and 6.1.<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">-- Dennis<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, 2013-12-16 at 18:27 +0000, Baird, Josh wrote:<br>
> Arnold,<br>
><br>
> Do you have BZ id for this issue?  I would like to follow this case as well.  There may be a chance some of the RH guys here can get that escalated.  :)<br>
><br>
> Thanks,<br>
><br>
> Josh<br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:pulp-list-bounces@redhat.com">pulp-list-bounces@redhat.com</a> [mailto:<a href="mailto:pulp-list-bounces@redhat.com">pulp-list-bounces@redhat.com</a>] On Behalf Of Arnold Bechtoldt<br>
> Sent: Monday, December 16, 2013 1:26 PM<br>
> To: <a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a><br>
> Subject: Re: [Pulp-list] Questions about "distributions" and "yum repo metadata files"<br>
><br>
> Hi Christina,<br>
><br>
> We do have a similar issue on RHEL 6.5 which RHEL 6/ 6Server should also point to.<br>
><br>
> The file <a href="https://cdn.redhat.com/.../x86_64/treeinfo" target="_blank">https://cdn.redhat.com/.../x86_64/treeinfo</a> is present on RHEL<br>
> 6.4 but on RHEL 6.5 (aka 6) it's missing. As you may already know this file contains some special data like the path and metadata to the images/ folder which itself is necessary to kickstart.<br>
><br>
> We already have reported it to Red Hat but they're still debugging the problem for days...<br>
><br>
> > The RHEL6 repo didn't have any errors on the sync but still no<br>
> > distribution - is showed 0/0 items for Tree Files.<br>
><br>
><br>
> Yours sincerely,<br>
><br>
> Arnold<br>
><br>
> --<br>
> Arnold Bechtoldt<br>
> Magdeburger Str. 29<br>
> 76139 Karlsruhe<br>
> Germany<br>
><br>
> Am 16.12.13 17:12, schrieb Christina Plummer:<br>
> > Hi Barnaby,<br>
> ><br>
> > Thanks a lot for your reply - I got swamped last week and didn't get<br>
> > an opportunity to circle back on this until today, so I apologize for<br>
> > the delay.<br>
> > 1. I am still trying to understand what a "distribution" is.  It<br>
> > sounds like what defines a distribution is the existence of an<br>
> > upstream treeinfo file - is that right?  Why would a repository<br>
> > created from install media not also be a distribution?  Is there just<br>
> > no method for importing boot images at this point?<br>
> > 2. When you say that distributions are required for kickstart - is<br>
> > that just if you need to use PXE to boot?  If you were booting in some<br>
> > other way, I can't think why the treeinfo, etc. would be required for install.<br>
> > 3. Regarding the "Yum Metadata Files" - so those would only exist if<br>
> > the upstream repositority had a repomd/ directory - not a repodata/ ?<br>
> > When I create a new repo and publish it, there is (of course) a<br>
> > repodata/ created - what is the difference between this and "Yum Metadata Files"<br>
> > as listed by Pulp?<br>
> > 4. I don't see any treeinfo in the Oracle upstream repository, so that<br>
> > makes sense that I don't have a distribution there.<br>
> > 5. I can't easily browse the Red Hat repositories, due to the<br>
> > certificates required - I would expect that the 5.10 and 6.5<br>
> > distributions would be there now, but when I sync I am not getting<br>
> > them.  It also looks like I had 5.9 and 6.4 at one time (based on the<br>
> > files under /var/lib/pulp/content/distributions), but as you can see<br>
> > from my repolist output below, the 6.4 distribution is not being<br>
> > listed any more.<br>
> ><br>
> > I made a copy of everything (including the distribution) from my RHEL6<br>
> > repo before I synced it on 12/2 (the last time it was synced before<br>
> > that was probably September).  The copied repo still shows the 6.4<br>
> > distribution present.  But the one that is fed from RH no longer has<br>
> > that one - and 6.5 is not there either.<br>
> ><br>
> > Slightly differently, my RHEL5 repo seems to contain the 5.9<br>
> > distribution, but 5.10 hasn't shown up.  My feed URLs are:<br>
> > <a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os</a><br>
> > <a href="https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os</a><br>
> ><br>
> > I did get some 404 errors when I tried to sync RHEL5 again this<br>
> > morning on these files, though it showed "Tree Files: 6/6 items":<br>
> > <a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Se" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Se</a><br>
> > rver/repodata/908500781155e417f50c845157ee922d22008961-primary.sqlite.<br>
> > bz2<br>
> > <a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Se" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Se</a><br>
> > rver/repodata/4ec225f636e39c137f8330c4ac2618f0020e85d6-other.xml.gz<br>
> > <a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Se" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Se</a><br>
> > rver/repodata/<a href="http://53939e47b5c6e5e960f18fc7c209d60ce37ccc01-other.sqlite.bz" target="_blank">53939e47b5c6e5e960f18fc7c209d60ce37ccc01-other.sqlite.bz</a><br>
> > 2<br>
> > <a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Se" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Se</a><br>
> > rver/repodata/d984304da8889ba9e906d8a0455418f4b7edc206-primary.xml.gz<br>
> > <a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Se" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Se</a><br>
> > rver/repodata/101ecad62a146f3ab4e06ca16104cdb90b225a48-filelists.xml.g<br>
> > z<br>
> ><br>
> > The RHEL6 repo didn't have any errors on the sync but still no<br>
> > distribution - is showed 0/0 items for Tree Files.<br>
> ><br>
> > Please let me know if I can provide more information that would be helpful.<br>
> ><br>
> > Thanks,<br>
> > Christina<br>
> ><br>
> > On Wed, Dec 11, 2013 at 2:04 PM, Barnaby Court <<a href="mailto:bcourt@redhat.com">bcourt@redhat.com</a><br>
> > <mailto:<a href="mailto:bcourt@redhat.com">bcourt@redhat.com</a>>> wrote:<br>
> ><br>
> >     Hi Chris,<br>
> ><br>
> >     You have a few questions in here so I'll try to hit all of them.  V2<br>
> >     definitely supports distributions.  Distributions are required for<br>
> >     kickstart.  I'm not sure why you would be seeing the listing for a<br>
> >     distribution type if there is no treeinfo file in the upstream<br>
> >     repository.  If you have a treeinfo file in the upstream repository<br>
> >     you should have a distribution created in your repository in pulp.<br>
> >      Copying the distribution from one repo to another should work.<br>
> >      Creating a distribution by hand and uploading to a repository in<br>
> >     pulp is not currently supported.  However, if the upstream<br>
> >     repository has a distribution it should be synced automatically and<br>
> >     can then be copied from one pulp-repo to another.<br>
> ><br>
> >     API information about distributions can be found at:<br>
> ><br>
> > <a href="http://pulp-rpm-dev-guide.readthedocs.org/en/latest/yum-plugins.html#d" target="_blank">http://pulp-rpm-dev-guide.readthedocs.org/en/latest/yum-plugins.html#d</a><br>
> > istribution<br>
> ><br>
> >     The yum repo metadata files (generally) are the files in the<br>
> >     /repomd/ subdirectory of a repository.  They contain information<br>
> >     about the repository ant its contents.<br>
> ><br>
> >     My primary concern would be if you are syncing a repo that has a<br>
> >     treeinfo or .treeinfo file upstream and you are not getting a<br>
> >     distribution in your pulp repo.  RHEL 6.4 absolutely does have a<br>
> >     treeinfo included in the CDN and we use it for testing regularly.<br>
> >      If you are running into trouble there I definitely want to know<br>
> >     about it.<br>
> ><br>
> >     Regards,<br>
> ><br>
> >     Barnaby<br>
> ><br>
> >     ----- Original Message -----<br>
> >     From: "Christina Plummer" <<a href="mailto:cplummer@gmail.com">cplummer@gmail.com</a><br>
> >     <mailto:<a href="mailto:cplummer@gmail.com">cplummer@gmail.com</a>>><br>
> >     To: <a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a> <mailto:<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
> >     Sent: Wednesday, December 11, 2013 10:47:07 AM<br>
> >     Subject: [Pulp-list] Questions about "distributions" and "yum repo<br>
> >     metadata     files"<br>
> ><br>
> >     Hello all,<br>
> ><br>
> >     I am using Pulp 2.1.3. I've created a few feeds synced from vendor<br>
> >     repos (Oracle and Red Hat), and then have been creating clones<br>
> >     (copies) of those repos to use as a stable "patch set" for each<br>
> >     release by copying each of the content types. I've noticed that the<br>
> >     repos synced from Red Hat display content types of "Distribution"<br>
> >     and "Yum Repo Metadata File", while the ones from Oracle do not.<br>
> >     Also, I've noticed that the RHEL5 repo actually contains a<br>
> >     Distribution, while the RHEL6 repo shows the content type but with a<br>
> >     count of 0:<br>
> ><br>
> >     Id: live-rhel-6-x86_64-os<br>
> >     Display Name: live-rhel-6-x86_64-os<br>
> >     Description: None<br>
> >     Content Unit Counts:<br>
> >     Distribution: 0<br>
> >     Erratum: 2228<br>
> >     Package Category: 10<br>
> >     Package Group: 201<br>
> >     Rpm: 3788<br>
> >     Yum Repo Metadata File: 1<br>
> ><br>
> >     I found these files:<br>
> >     /var/lib/pulp/content/distribution/ks-Red Hat Enterprise Linux<br>
> >     Server-5.9-x86_64/treeinfo<br>
> >     /var/lib/pulp/content/distribution/ks-Red Hat Enterprise<br>
> >     Linux-Server-6.4-x86_64/treeinfo<br>
> ><br>
> >     I found this documentation from Pulp v1 discussing Distributions:<br>
> >     <a href="http://www.pulpproject.org/ug/UGDistributions.html" target="_blank">http://www.pulpproject.org/ug/UGDistributions.html</a><br>
> >     <a href="https://fedorahosted.org/pulp/wiki/UGRepo" target="_blank">https://fedorahosted.org/pulp/wiki/UGRepo</a><br>
> ><br>
> >     But I couldn't find any reference to Distributions or Yum Repo<br>
> >     Metadata Files in the Pulp v2 documentation at all.<br>
> ><br>
> >     Is there a good explanation of these somewhere? Do I need the<br>
> >     distribution in order to kickstart? If I wanted to create one in<br>
> >     each of my cloned repos for the distros that were missing from the<br>
> >     vendor feeds, how would I do that?<br>
> ><br>
> >     Also, what is the yum repo metadata file?<br>
> ><br>
> >     Thanks for any assistance in understanding.<br>
> ><br>
> >     Christina<br>
> ><br>
> >     _______________________________________________<br>
> >     Pulp-list mailing list<br>
> >     <a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a> <mailto:<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>><br>
> >     <a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
> ><br>
> ><br>
> ><br>
> ><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" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
> ><br>
><br>
><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" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
<br>
<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" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
</div></div></blockquote></div><br></div>