<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css">P {
        MARGIN: 0px
}
</style>
<meta content="MSHTML 6.00.6000.17107" name="GENERATOR">
</head>
<body>
<div dir="ltr" align="left"><span class="065202816-20012012"><font face="Arial" color="#0000ff" size="2">Duh.  I forgot to clean the yum cache on the consumer.  That took care of it.  Now... off to get some coffee to kickstart the brain.  Thanks again.</font></span></div>
<div dir="ltr" align="left"><span class="065202816-20012012"><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="065202816-20012012"><font face="Arial" color="#0000ff" size="2">Joel</font></span></div>
<br>
<div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> Pradeep Kilambi [mailto:pkilambi@redhat.com]
<br>
<b>Sent:</b> Friday, January 20, 2012 9:24 AM<br>
<b>To:</b> Golden, Joel<br>
<b>Cc:</b> pulp-list@redhat.com<br>
<b>Subject:</b> Re: [Pulp-list] package filer question<br>
</font><br>
</div>
<div></div>
<div style="FONT-SIZE: 12pt; COLOR: #000000; FONT-FAMILY: Times New Roman">hmm i would have expected the metadata to refresh any filtered packages. Try these,<br>
<br>
* Clear your yum cache on the consumer and try yum check-update? <br>
<br>
* Also check your /var/lib/pulp/repos/rh5-prd/*.rpm and make sure there is no mysql pkg symlinked here. If there is, then probably blacklist filter is not working as expected to being with.<br>
<br>
~ Prad<br>
<br>
<hr id="zwchr">
<div style="FONT-WEIGHT: normal; FONT-SIZE: 12pt; COLOR: #000; FONT-STYLE: normal; FONT-FAMILY: Helvetica,Arial,sans-serif; TEXT-DECORATION: none">
<b>From: </b>"Joel Golden" <Joel.Golden@twtelecom.com><br>
<b>To: </b>"Pradeep Kilambi" <pkilambi@redhat.com><br>
<b>Cc: </b>pulp-list@redhat.com<br>
<b>Sent: </b>Friday, January 20, 2012 11:15:45 AM<br>
<b>Subject: </b>RE: [Pulp-list] package filer question<br>
<br>
<style>P {
        MARGIN: 0px
}
</style>
<div dir="ltr" align="left"><span class="736071416-20012012"><font face="Arial" color="#0000ff" size="2">By "metadata update" do you mean execute the generate_metadata on the cloned repo after the clone process is complete?  If so, that isn't clearing the package
 from the cloned repo's package set.</font></span></div>
<div dir="ltr" align="left"><span class="736071416-20012012"><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="736071416-20012012"><font face="Arial" color="#0000ff" size="2">Joel</font></span></div>
<br>
<div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Pradeep Kilambi [mailto:pkilambi@redhat.com]
<br>
<b>Sent:</b> Friday, January 20, 2012 9:05 AM<br>
<b>To:</b> Golden, Joel<br>
<b>Cc:</b> pulp-list@redhat.com<br>
<b>Subject:</b> Re: [Pulp-list] package filer question<br>
</font><br>
</div>
<div></div>
<div style="FONT-SIZE: 12pt; COLOR: #000000; FONT-FAMILY: Times New Roman">I agree Joel. For now we'll go ahead and do the metadata update until we figure out an efficient way of updating package metadata for a subset of packages. The side effect of this change
 would be your clones might run a bit longer. I opened a bug for this issue here https://bugzilla.redhat.com/show_bug.cgi?id=783485 . i'll try to look into it soon.<br>
<br>
~ Prad<br>
<br>
<hr id="zwchr">
<div style="FONT-WEIGHT: normal; FONT-SIZE: 12pt; COLOR: #000; FONT-STYLE: normal; FONT-FAMILY: Helvetica,Arial,sans-serif; TEXT-DECORATION: none">
<b>From: </b>"Joel Golden" <Joel.Golden@twtelecom.com><br>
<b>To: </b>"Pradeep Kilambi" <pkilambi@redhat.com><br>
<b>Cc: </b>pulp-list@redhat.com<br>
<b>Sent: </b>Friday, January 20, 2012 11:01:28 AM<br>
<b>Subject: </b>RE: [Pulp-list] package filer question<br>
<br>
<style>P {
        MARGIN: 0px
}
</style>
<div dir="ltr" align="left"><span class="628312015-20012012"><font face="Arial" color="#0000ff" size="2">Prad,</font></span></div>
<div dir="ltr" align="left"><span class="628312015-20012012"><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span class="628312015-20012012"><font face="Arial" color="#0000ff" size="2">After I deleted the master and clone repos and recreated them, that is the result I get.  I think I had some corruption earlier.  It would be nice to see
 a repo generation for clones.  One, I'm very apprehensive to schedule a full package set update in production when yum update shows it's going to update packages we want locked.  Two, it can be time consuming to parse through a package update log for a few
 hundred machines when it contains false positives.  Thoughts?</font></span></div>
<div><font face="Arial" color="#0000ff" size="2"></font> </div>
<div><span class="628312015-20012012"><font face="Arial" color="#0000ff" size="2">Thank you,</font></span></div>
<div><span class="628312015-20012012"><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div><span class="628312015-20012012"><font face="Arial" color="#0000ff" size="2">Joel</font></span></div>
<div><br>
</div>
<div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Pradeep Kilambi [mailto:pkilambi@redhat.com]
<br>
<b>Sent:</b> Friday, January 20, 2012 8:14 AM<br>
<b>To:</b> Golden, Joel<br>
<b>Cc:</b> pulp-list@redhat.com<br>
<b>Subject:</b> Re: [Pulp-list] package filer question<br>
</font><br>
</div>
<div></div>
<div style="FONT-SIZE: 12pt; COLOR: #000000; FONT-FAMILY: Times New Roman">Hey Joel:<br>
<br>
This is what I think is happening, Your original repo has no filter, it still has a reference to the package. A clone operation does not regenerate the metadata and it reuses the parents metadata and that probably why you still see that via yum check-update.
 The package is still blacklisted, and will not be served. Try installing the update and see if pulp is serving the package. You should get a 404. We could trigger a repo generation in case a clone operation uses filters. May be thats the solution to keep the
 filesystem + db in sync with metadata in case of filters. The reason we dont currently generate metadata is to keep the clone as close to the parent as possible and also to make the clone fast(as reop generation can be expensive)<br>
<br>
~ Prad<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<hr id="zwchr">
<div style="FONT-WEIGHT: normal; FONT-SIZE: 12pt; COLOR: #000; FONT-STYLE: normal; FONT-FAMILY: Helvetica,Arial,sans-serif; TEXT-DECORATION: none">
<b>From: </b>"Joel Golden" <Joel.Golden@twtelecom.com><br>
<b>To: </b>pulp-list@redhat.com<br>
<b>Sent: </b>Thursday, January 19, 2012 4:45:59 PM<br>
<b>Subject: </b>[Pulp-list] package filer question<br>
<br>
<div><font face="Arial" size="2"><span class="854493716-19012012">I'm having an issue with a repo filter carrying over to the consumer.  This repo is a clone of rh5-live, without the filter.  I've verified the packages have been removed but they still show
 up under yum check-update and are available via yumdownloader from a client bound to the rh5-prd repo.  And the consumer shows the number of packages available higher than the number of packages in the rh5-prd repo.  Any ideas?</span></font></div>
<div><font face="Arial" size="2"><span class="854493716-19012012"></span></font> </div>
<div><font face="Arial" size="2"><span class="854493716-19012012"></span></font> </div>
<div><font face="Arial" size="2">Id                      rh5-prd                 
<br>
Name                    rh5-prd                  <br>
Repo URL                <a href="https://uxspulpplv1/pulp/repos/rh5-prd/" target="_blank">
https://uxspulpplv1/pulp/repos/rh5-prd/</a><br>
Feed URL                <a href="file:///var/lib/pulp//repos/redhat/updates/rhel-5.2-server-x86_64/latest/rhel-x86_64-server-5" target="_blank">
file:///var/lib/pulp//repos/redhat/updates/rhel-5.2-server-x86_64/latest/rhel-x86_64-server-5</a><br>
Feed Type               local                    <br>
Content Type            yum                      <br>
Feed Certs              CA:No   Cert:No<br>
Consumer Certs          CA:No   Cert:No<br>
Architecture            x86_64                   <br>
Sync Schedule           None                     <br>
Packages                4854                     <br>
Files                   0                        <br>
Distributions           None                     <br>
Publish                 True                     <br>
Clones                  []                       <br>
Groups                  [u'prd']                 <br>
Filters                 ['mysql-blacklist']      <br>
Notes                   {}                       <br>
Preserve Metadata       False                    <br>
Checksum Type           sha256          </font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Id                      rh5-live                
<br>
Name                    rh5-live                 <br>
Repo URL                <a href="https://uxspulpplv1/pulp/repos/redhat/updates/rhel-5.2-server-x86_64/latest/rhel-x86_64-server-5/" target="_blank">
https://uxspulpplv1/pulp/repos/redhat/updates/rhel-5.2-server-x86_64/latest/rhel-x86_64-server-5/</a><br>
Feed URL                <a href="http://rhelrepo.twtelecom.com/redhat/updates/rhel-5.2-server-x86_64/latest/rhel-x86_64-server-5/" target="_blank">
http://rhelrepo.twtelecom.com/redhat/updates/rhel-5.2-server-x86_64/latest/rhel-x86_64-server-5/</a><br>
Feed Type               remote                   <br>
Content Type            yum                      <br>
Feed Certs              CA:No   Cert:No<br>
Consumer Certs          CA:No   Cert:No<br>
Architecture            x86_64                   <br>
Sync Schedule           None                     <br>
Packages                4904                     <br>
Files                   0                        <br>
Distributions           None                     <br>
Publish                 True                     <br>
Clones                  [u'rh5-tst', u'rh5-prd', u'rh5-dev']<br>
Groups                  None                     <br>
Filters                 []                       <br>
Notes                   {}                       <br>
Preserve Metadata       False                    <br>
Checksum Type           sha256     </font></div>
<div><font face="Arial" size="2">         </font></div>
<div><font face="Arial" size="2">pulp-admin repo content --id rh5-prd |gawk '/^mysql|^MySQL/'</font></div>
<div><span class="854493716-19012012"><font face="Arial" size="2">reports nothing.</font></span></div>
<div><span class="854493716-19012012"><font face="Arial" size="2"></font></span> </div>
<div><span class="854493716-19012012"><font face="Arial" size="2">pulp-admin filter create --id mysql-blacklist --type blacklist --description "mysql and MySQL package filter" -p "mysql-*" -p "MySQL-*"</font></span></div>
<div><span class="854493716-19012012"><font face="Arial" size="2"></font></span> </div>
<div><span class="854493716-19012012"><font face="Arial" size="2">pulp-admin filter info --id mysql-blacklist</font></span></div>
<div> </div>
<div><span class="854493716-19012012"><font face="Arial" size="2">Id           :                  mysql-blacklist         
<br>
Description  :                  mysql and MySQL package filter<br>
Type         :                  blacklist                <br>
Package List :                  ['mysql-*', 'MySQL-*']   <br>
</font></span></div>
<div><span class="854493716-19012012"><font face="Arial" size="2">pulp-admin repo generate_metadata --id rh5-prd</font></span></div>
<div><span class="854493716-19012012"><font face="Arial" size="2"></font></span> </div>
<div><span class="854493716-19012012"><font face="Arial" size="2">from the consumer:</font></span></div>
<div><span class="854493716-19012012"><font face="Arial" size="2">repo id                                                          repo name                                                         status<br>
repos-pulp-pulp-5Server-x86_64                                   repos-pulp-pulp-5Server-x86_64                                    enabled:    17<br>
rh5-prd                                                          rh5-prd                                                           enabled:
<strong>4,905<br>
</strong>repolist: 4,922<br>
</font></span></div>
<font face="Arial" size="2"></font>
<div><font face="Arial" size="2"></font> </div>
<p align="left"><span lang="en-us"><font face="Arial" size="1">Best Regards,</font></span>
</p>
<p><span lang="en-us"><font face="Arial" size="1">Joel Golden, RHCE</font></span>
<br>
<span lang="en-us"><font face="Arial" size="1">TW Telecom</font></span> <br>
<span lang="en-us"><font face="Arial" size="1">Unix Support / Senior Systems Administrator</font></span>
<br>
</p>
<span style="FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: Arial,Helvetica,sans-serif">
<p>  </p>
-------------
<p>    </p>
The content contained in this electronic message is not intended to constitute formation of a contract binding
<b>tw telecom</b>. <b>tw telecom</b> will be contractually bound only upon execution, by an authorized officer, of a contract including agreed terms and conditions or by express application of its tariffs. This message is intended only for the use of the individual
 or entity to which it is addressed. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying
 of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender of this E-Mail or by telephone.</span><br>
<br clear="all">
<br>
_______________________________________________<br>
Pulp-list mailing list<br>
Pulp-list@redhat.com<br>
https://www.redhat.com/mailman/listinfo/pulp-list<br>
</div>
<br>
</div>
<br clear="all">
</div>
<br>
</div>
<br clear="all">
</div>
<br>
</div>
<br clear=all> 
</body>
</html>