<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Christina,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">For what it's worth, I sync the rhel6-server repo nightly (from cdn.redhat.com) and my distributions are working correctly:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Id:                  rhel5-server-x86_64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Display Name:        rhel5-server-x86_64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Description:         None<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Content Unit Counts:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Distribution:           1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Erratum:                2856<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Package Category:       6<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Package Group:          99<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Rpm:                    8172<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Yum Repo Metadata File: 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Id:                  rhel6-server-x86_64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Display Name:        rhel6-server-x86_64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Description:         None<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Content Unit Counts:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Distribution:           1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Erratum:                2243<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Package Category:       10<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Package Group:          202<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Rpm:                    8165<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">  Yum Repo Metadata File: 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I did notice that my distributions have not been updated to 6.5/5.10, but I have not actually verified and tested this yet:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">root@fc-d1pulp01:/var/lib/pulp/content/distribution$ ll<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">total 8<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">drwxrwxr-x 4 apache apache 4096 Nov 12 08:11 ks-Red Hat Enterprise Linux Server-5.9-x86_64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">drwxrwxr-x 3 apache apache 4096 Nov 20 18:12 ks-Red Hat Enterprise Linux-Server-6.4-x86_64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">There was a bug with the RHEL5 distribution on cdn.redhat.com that was causing syncs to fail, however this was recently fixed.  We are running Pulp 2.3.0-final. 
 Regarding Oracle Linux 6; syncing via Pulp to their repos is currently broken [1].  Hopefully, this will get fixed soon.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[1] - https://bugzilla.redhat.com/show_bug.cgi?id=1039597<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Josh<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> pulp-list-bounces@redhat.com [mailto:pulp-list-bounces@redhat.com]
<b>On Behalf Of </b>Christina Plummer<br>
<b>Sent:</b> Monday, December 16, 2013 11:12 AM<br>
<b>To:</b> Barnaby Court<br>
<b>Cc:</b> pulp-list@redhat.com<br>
<b>Subject:</b> Re: [Pulp-list] Questions about "distributions" and "yum repo metadata files"<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Barnaby,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks a lot for your reply - I got swamped last week and didn't get an opportunity to circle back on this until today, so I apologize for the delay.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">1. I am still trying to understand what a "distribution" is.  It sounds like what defines a distribution is the existence of an upstream treeinfo file - is that right?  Why would a repository created from install media not also be a distribution? 
 Is there just no method for importing boot images at this point?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">2. When you say that distributions are required for kickstart - is that just if you need to use PXE to boot?  If you were booting in some other way, I can't think why the treeinfo, etc. would be required for install.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">3. Regarding the "Yum Metadata Files" - so those would only exist if the upstream repositority had a repomd/ directory - not a repodata/ ?  When I create a new repo and publish it, there is (of course) a repodata/ created - what is the
 difference between this and "Yum Metadata Files" as listed by Pulp?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">4. I don't see any treeinfo in the Oracle upstream repository, so that makes sense that I don't have a distribution there. 
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">5. I can't easily browse the Red Hat repositories, due to the certificates required - I would expect that the 5.10 and 6.5 distributions would be there now, but when I sync I am not getting them.  It also looks like I had 5.9 and 6.4 at
 one time (based on the files under /var/lib/pulp/content/distributions), but as you can see from my repolist output below, the 6.4 distribution is not being listed any more. 
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I made a copy of everything (including the distribution) from my RHEL6 repo before I synced it on 12/2 (the last time it was synced before that was probably September).  The copied repo still shows the 6.4 distribution present.  But the
 one that is fed from RH no longer has that one - and 6.5 is not there either.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Slightly differently, my RHEL5 repo seems to contain the 5.9 distribution, but 5.10 hasn't shown up.  My feed URLs are:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os">https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I did get some 404 errors when I tried to sync RHEL5 again this morning on these files, though it showed "Tree Files: 6/6 items":<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/908500781155e417f50c845157ee922d22008961-primary.sqlite.bz2">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/908500781155e417f50c845157ee922d22008961-primary.sqlite.bz2</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/4ec225f636e39c137f8330c4ac2618f0020e85d6-other.xml.gz">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/4ec225f636e39c137f8330c4ac2618f0020e85d6-other.xml.gz</a><br>
<a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/53939e47b5c6e5e960f18fc7c209d60ce37ccc01-other.sqlite.bz2">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/53939e47b5c6e5e960f18fc7c209d60ce37ccc01-other.sqlite.bz2</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/d984304da8889ba9e906d8a0455418f4b7edc206-primary.xml.gz">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/d984304da8889ba9e906d8a0455418f4b7edc206-primary.xml.gz</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/101ecad62a146f3ab4e06ca16104cdb90b225a48-filelists.xml.gz">https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/Server/repodata/101ecad62a146f3ab4e06ca16104cdb90b225a48-filelists.xml.gz</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">The RHEL6 repo didn't have any errors on the sync but still no distribution - is showed 0/0 items for Tree Files.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Please let me know if I can provide more information that would be helpful.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Christina<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">On Wed, Dec 11, 2013 at 2:04 PM, Barnaby Court <<a href="mailto:bcourt@redhat.com" target="_blank">bcourt@redhat.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Hi Chris,<br>
<br>
You have a few questions in here so I'll try to hit all of them.  V2 definitely supports distributions.  Distributions are required for kickstart.  I'm not sure why you would be seeing the listing for a distribution type if there is no treeinfo file in the
 upstream repository.  If you have a treeinfo file in the upstream repository you should have a distribution created in your repository in pulp.  Copying the distribution from one repo to another should work.  Creating a distribution by hand and uploading to
 a repository in pulp is not currently supported.  However, if the upstream repository has a distribution it should be synced automatically and can then be copied from one pulp-repo to another.<br>
<br>
API information about distributions can be found at: <a href="http://pulp-rpm-dev-guide.readthedocs.org/en/latest/yum-plugins.html#distribution" target="_blank">
http://pulp-rpm-dev-guide.readthedocs.org/en/latest/yum-plugins.html#distribution</a><br>
<br>
The yum repo metadata files (generally) are the files in the /repomd/ subdirectory of a repository.  They contain information about the repository ant its contents.<br>
<br>
My primary concern would be if you are syncing a repo that has a treeinfo or .treeinfo file upstream and you are not getting a distribution in your pulp repo.  RHEL 6.4 absolutely does have a treeinfo included in the CDN and we use it for testing regularly.
  If you are running into trouble there I definitely want to know about it.<br>
<br>
Regards,<br>
<br>
Barnaby<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
----- Original Message -----<br>
From: "Christina Plummer" <<a href="mailto:cplummer@gmail.com" target="_blank">cplummer@gmail.com</a>><br>
To: <a href="mailto:pulp-list@redhat.com" target="_blank">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 metadata     files"<br>
<br>
Hello all,<br>
<br>
I am using Pulp 2.1.3. I've created a few feeds synced from vendor repos (Oracle and Red Hat), and then have been creating clones (copies) of those repos to use as a stable "patch set" for each release by copying each of the content types. I've noticed that
 the repos synced from Red Hat display content types of "Distribution" and "Yum Repo Metadata File", while the ones from Oracle do not. Also, I've noticed that the RHEL5 repo actually contains a Distribution, while the RHEL6 repo shows the content type but
 with a 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 Server-5.9-x86_64/treeinfo<br>
/var/lib/pulp/content/distribution/ks-Red Hat Enterprise 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 Metadata Files in the Pulp v2 documentation at all.<br>
<br>
Is there a good explanation of these somewhere? Do I need the distribution in order to kickstart? If I wanted to create one in each of my cloned repos for the distros that were missing from the 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<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<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" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>