<div dir="ltr">I found the workaround that's ugly but worjing:<div>in repo folder /var/lib/pulp/published/yum/master/yum_distributor/repo_qa_rhel6</div><div>remove the folder with metadata and symlinls rm -Rf 1417939672.39</div><div>and call publish after pulp-admin rpm repo publish run --repo-id=repo_qa_rhel6</div><div><br></div><div>after this steps all works fine, all prev published pkgs seen to all yum clients.</div><div>currentlly I'm trying to find in source code write place to paste folder remove action to do such trick automatically.<br></div><div><br></div><div>hardcode only_publish_directory_contents=False in publish_step.py didn't help.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 6, 2014 at 8:00 PM,  <span dir="ltr"><<a href="mailto:pulp-list-request@redhat.com" target="_blank">pulp-list-request@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Pulp-list mailing list submissions to<br>
        <a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:pulp-list-request@redhat.com">pulp-list-request@redhat.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:pulp-list-owner@redhat.com">pulp-list-owner@redhat.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Pulp-list digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. quick functionality question about repo metadata (Jon Shanks)<br>
   2. Re: quick functionality question about repo metadata<br>
      (Barnaby Court)<br>
   3. Re: quick functionality question about repo metadata (Jon Shanks)<br>
   4. Re: quick functionality question about repo metadata<br>
      (Barnaby Court)<br>
   5. Re: Consumer repo bind validation (Jeff Ortel)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 5 Dec 2014 17:16:53 +0000<br>
From: Jon Shanks <<a href="mailto:jon.shanks@gmail.com">jon.shanks@gmail.com</a>><br>
To: "<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>" <<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
Subject: [Pulp-list] quick functionality question about repo metadata<br>
Message-ID:<br>
        <<a href="mailto:CA%2BHXFk8UUtcXLHTX9QXbheseVn-LTBagy8U90u6wZyeUANGyQA@mail.gmail.com">CA+HXFk8UUtcXLHTX9QXbheseVn-LTBagy8U90u6wZyeUANGyQA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi,<br>
<br>
I can't tell if there is a bug or if it's a new feature in pulp between 2.4<br>
and 2.5 but the publish repo seems to create a new timestamped directory<br>
for the publish however the repodata directory still seems to retain other<br>
checksums and grows with each run i.e. the primary, filelist, updateinfo<br>
and other xml metadata seems to retain the previous meta information from<br>
the previous runs.<br>
<br>
Is there some reason for this?<br>
<br>
Thanks<br>
<br>
Jon<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://www.redhat.com/archives/pulp-list/attachments/20141205/a2fa7ddb/attachment.html" target="_blank">https://www.redhat.com/archives/pulp-list/attachments/20141205/a2fa7ddb/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 5 Dec 2014 12:25:43 -0500 (EST)<br>
From: Barnaby Court <<a href="mailto:bcourt@redhat.com">bcourt@redhat.com</a>><br>
To: Jon Shanks <<a href="mailto:jon.shanks@gmail.com">jon.shanks@gmail.com</a>><br>
Cc: "<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>" <<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
Subject: Re: [Pulp-list] quick functionality question about repo<br>
        metadata<br>
Message-ID:<br>
        <<a href="mailto:1744369251.9537576.1417800343254.JavaMail.zimbra@redhat.com">1744369251.9537576.1417800343254.JavaMail.zimbra@redhat.com</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Hi, This is by design.  If files have not been removed from the repo we perform an incremental publish which does not remove the old files.  If an RPM is removed from the repo we will perform a clean publish.  The repomd.xml will only reference the new files so yum should play nice.<br>
<br>
-Barnaby<br>
<br>
----- Original Message -----<br>
From: "Jon Shanks" <<a href="mailto:jon.shanks@gmail.com">jon.shanks@gmail.com</a>><br>
To: "<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>" <<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
Sent: Friday, December 5, 2014 12:16:53 PM<br>
Subject: [Pulp-list] quick functionality question about repo metadata<br>
<br>
Hi,<br>
<br>
I can't tell if there is a bug or if it's a new feature in pulp between 2.4 and 2.5 but the publish repo seems to create a new timestamped directory for the publish however the repodata directory still seems to retain other checksums and grows with each run i.e. the primary, filelist, updateinfo and other xml metadata seems to retain the previous meta information from the previous runs.<br>
<br>
Is there some reason for this?<br>
<br>
Thanks<br>
<br>
Jon<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>
<br>
Message: 3<br>
Date: Fri, 5 Dec 2014 17:30:14 +0000<br>
From: Jon Shanks <<a href="mailto:jon.shanks@gmail.com">jon.shanks@gmail.com</a>><br>
To: Barnaby Court <<a href="mailto:bcourt@redhat.com">bcourt@redhat.com</a>><br>
Cc: "<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>" <<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
Subject: Re: [Pulp-list] quick functionality question about repo<br>
        metadata<br>
Message-ID:<br>
        <<a href="mailto:CA%2BHXFk_wbvqYtdui%2BSyKTpsV3nZzp6e-w8cjDaG25M3JAPPycA@mail.gmail.com">CA+HXFk_wbvqYtdui+SyKTpsV3nZzp6e-w8cjDaG25M3JAPPycA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Yeh we are having problems where new RPM's are not always showing and it<br>
isn't to do with the meta cache local on the box as we do a yum clean all<br>
each time, sometimes they show and sometimes it's still showing only the<br>
old version when we push a new file up and publish. It seems intermittent<br>
and has only started happening since we upgraded 2.5 it has been fine for<br>
months on 2.4 and i noticed that this looks like a new feature<br>
implementation.<br>
<br>
i can investigate further and raise a bug.<br>
<br>
On 5 December 2014 at 17:25, Barnaby Court <<a href="mailto:bcourt@redhat.com">bcourt@redhat.com</a>> wrote:<br>
<br>
> Hi, This is by design.  If files have not been removed from the repo we<br>
> perform an incremental publish which does not remove the old files.  If an<br>
> RPM is removed from the repo we will perform a clean publish.  The<br>
> repomd.xml will only reference the new files so yum should play nice.<br>
><br>
> -Barnaby<br>
><br>
> ----- Original Message -----<br>
> From: "Jon Shanks" <<a href="mailto:jon.shanks@gmail.com">jon.shanks@gmail.com</a>><br>
> To: "<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>" <<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
> Sent: Friday, December 5, 2014 12:16:53 PM<br>
> Subject: [Pulp-list] quick functionality question about repo metadata<br>
><br>
> Hi,<br>
><br>
> I can't tell if there is a bug or if it's a new feature in pulp between<br>
> 2.4 and 2.5 but the publish repo seems to create a new timestamped<br>
> directory for the publish however the repodata directory still seems to<br>
> retain other checksums and grows with each run i.e. the primary, filelist,<br>
> updateinfo and other xml metadata seems to retain the previous meta<br>
> information from the previous runs.<br>
><br>
> Is there some reason for this?<br>
><br>
> Thanks<br>
><br>
> Jon<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>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://www.redhat.com/archives/pulp-list/attachments/20141205/6756c65c/attachment.html" target="_blank">https://www.redhat.com/archives/pulp-list/attachments/20141205/6756c65c/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 5 Dec 2014 12:55:08 -0500 (EST)<br>
From: Barnaby Court <<a href="mailto:bcourt@redhat.com">bcourt@redhat.com</a>><br>
To: Jon Shanks <<a href="mailto:jon.shanks@gmail.com">jon.shanks@gmail.com</a>><br>
Cc: "<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>" <<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
Subject: Re: [Pulp-list] quick functionality question about repo<br>
        metadata<br>
Message-ID:<br>
        <<a href="mailto:1868744373.9553390.1417802108073.JavaMail.zimbra@redhat.com">1868744373.9553390.1417802108073.JavaMail.zimbra@redhat.com</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Jon, you are not the only person that has been seeing this behavior.  I have not been able to duplicate locally so far but am continuing to investigate.  If you track down the exact nature of the issue by all means please let me know and I'll get a fix in ASAP.  If you clean out the previously published files, does yum work properly in that case?  They should be ignored since they are not referenced in the repomd.xml but I'm wondering if yum is doing something strange.<br>
<br>
-Barnaby<br>
<br>
----- Original Message -----<br>
From: "Jon Shanks" <<a href="mailto:jon.shanks@gmail.com">jon.shanks@gmail.com</a>><br>
To: "Barnaby Court" <<a href="mailto:bcourt@redhat.com">bcourt@redhat.com</a>><br>
Cc: "<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>" <<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
Sent: Friday, December 5, 2014 12:30:14 PM<br>
Subject: Re: [Pulp-list] quick functionality question about repo metadata<br>
<br>
Yeh we are having problems where new RPM's are not always showing and it<br>
isn't to do with the meta cache local on the box as we do a yum clean all<br>
each time, sometimes they show and sometimes it's still showing only the<br>
old version when we push a new file up and publish. It seems intermittent<br>
and has only started happening since we upgraded 2.5 it has been fine for<br>
months on 2.4 and i noticed that this looks like a new feature<br>
implementation.<br>
<br>
i can investigate further and raise a bug.<br>
<br>
On 5 December 2014 at 17:25, Barnaby Court <<a href="mailto:bcourt@redhat.com">bcourt@redhat.com</a>> wrote:<br>
<br>
> Hi, This is by design.  If files have not been removed from the repo we<br>
> perform an incremental publish which does not remove the old files.  If an<br>
> RPM is removed from the repo we will perform a clean publish.  The<br>
> repomd.xml will only reference the new files so yum should play nice.<br>
><br>
> -Barnaby<br>
><br>
> ----- Original Message -----<br>
> From: "Jon Shanks" <<a href="mailto:jon.shanks@gmail.com">jon.shanks@gmail.com</a>><br>
> To: "<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>" <<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
> Sent: Friday, December 5, 2014 12:16:53 PM<br>
> Subject: [Pulp-list] quick functionality question about repo metadata<br>
><br>
> Hi,<br>
><br>
> I can't tell if there is a bug or if it's a new feature in pulp between<br>
> 2.4 and 2.5 but the publish repo seems to create a new timestamped<br>
> directory for the publish however the repodata directory still seems to<br>
> retain other checksums and grows with each run i.e. the primary, filelist,<br>
> updateinfo and other xml metadata seems to retain the previous meta<br>
> information from the previous runs.<br>
><br>
> Is there some reason for this?<br>
><br>
> Thanks<br>
><br>
> Jon<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>
------------------------------<br>
<br>
Message: 5<br>
Date: Fri, 05 Dec 2014 16:36:59 -0600<br>
From: Jeff Ortel <<a href="mailto:jortel@redhat.com">jortel@redhat.com</a>><br>
To: <a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a><br>
Subject: Re: [Pulp-list] Consumer repo bind validation<br>
Message-ID: <<a href="mailto:5482338B.4090309@redhat.com">5482338B.4090309@redhat.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hey Jon,<br>
<br>
The REST API [1] for binding a consumer to a repository returns a task<br>
that can be used to track the implementation of the bind request by the<br>
agent on the consumer.  When that task has completed, the bind work on<br>
the consumer has been completed.  The state of that task is a direct<br>
reflection of the state of that bind request to the agent.<br>
<br>
Hope this helps.<br>
<br>
-jeff<br>
<br>
[1]<br>
<a href="http://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/consumer/bind.html" target="_blank">http://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/consumer/bind.html</a><br>
<br>
On 12/05/2014 08:16 AM, Jon Shanks wrote:<br>
> Hi,<br>
><br>
> I was wondering if there is some way to determine whether or not the<br>
> task is completed from a consumer end when it binds to a repo. In terms<br>
> of automation, when i bind a consumer, in this case via puppet, i have<br>
> had to put a sleep in as there is no real way for me to determine when<br>
> the task is completed from the server side, to then know to proceed with<br>
> other elements of the configuration.<br>
><br>
> Without any real feature in there for awareness of task completion or<br>
> with it still running asynchronously it's hard to coordinate tasks<br>
> around the succession of repository creation on a node.<br>
><br>
> If possible, i'd like to raise a feature if this doesn't exist, but not<br>
> sure where bugs / features get raised?<br>
><br>
> Thanks<br>
><br>
> Jon<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>
------------------------------<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>
End of Pulp-list Digest, Vol 61, Issue 8<br>
****************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">With great regards<br>Gregory Komissarov<br>Mob +7 905 288 4181</div>
</div>