<div dir="ltr">I think there are a couple of considerations.<div><br></div><div> 1) The first issue is that a 6-18 hour upgrade window is not something users expect and we've not been warning them of such so they can plan an outage accordingly. Lengthy upgrades also have that tendency to make users feel something is wrong or increase the risk that something can go wrong in between.</div><div> 2) The fundamental question of - is this a bug or does this make perfect sense and how it has to work?</div><div> 3) Applying the upgrade on an existing 2.6 if it changed nothing of the environment could work, the tough part is having to distribute that backwards. Pulp would have to distribute it back to 2.6, and Katello would have to push out patches to our 2.4 release channel.</div><div><br></div><div>Eric</div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 1, 2016 at 11:14 AM, Brian Bouterse <span dir="ltr"><<a href="mailto:bbouters@redhat.com" target="_blank">bbouters@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to understand if the pain point is related to downtime or total runtime.<br>
<br>
For instance, what if these migration could be run as a pre-migration step, ahead of time while Pulp was still online? The upgrade would still take just as long but you could use your (in this case) 2.6 install normally while the migrations are applying. Once they are done then the actual upgrade of the codebase could be very short.<br>
<br>
-Brian<span class=""><br>
<br>
On 07/01/2016 09:20 AM, Eric Helms wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<br>
On Fri, Jul 1, 2016 at 8:52 AM, Ashby, Jason (IMS) <<a href="mailto:AshbyJ@imsweb.com" target="_blank">AshbyJ@imsweb.com</a><br></span><span class="">
<mailto:<a href="mailto:AshbyJ@imsweb.com" target="_blank">AshbyJ@imsweb.com</a>>> wrote:<br>
<br>
    FWIW I just upgraded from 2.7 -> 2.8 and it was approx. 1-2 hr<br></span>
    upgrade to get through the migrations in pulp-manage-db.____<br>
<br>
    __ __<br>
<br>
    290 GB /var/lib/pulp____<br>
<br>
    16 GB MongoDB____<br>
<br>
    __ __<br>
<br>
    *From:*<a href="mailto:pulp-list-bounces@redhat.com" target="_blank">pulp-list-bounces@redhat.com</a><br>
    <mailto:<a href="mailto:pulp-list-bounces@redhat.com" target="_blank">pulp-list-bounces@redhat.com</a>><br>
    [mailto:<a href="mailto:pulp-list-bounces@redhat.com" target="_blank">pulp-list-bounces@redhat.com</a><br>
    <mailto:<a href="mailto:pulp-list-bounces@redhat.com" target="_blank">pulp-list-bounces@redhat.com</a>>] *On Behalf Of *Michael Hrivnak<br>
    *Sent:* Friday, July 01, 2016 8:31 AM<br>
    *To:* Eric Helms <<a href="mailto:ehelms@redhat.com" target="_blank">ehelms@redhat.com</a> <mailto:<a href="mailto:ehelms@redhat.com" target="_blank">ehelms@redhat.com</a>>><br>
    *Cc:* pulp-list <<a href="mailto:pulp-list@redhat.com" target="_blank">pulp-list@redhat.com</a> <mailto:<a href="mailto:pulp-list@redhat.com" target="_blank">pulp-list@redhat.com</a>>><br>
    *Subject:* Re: [Pulp-list] Long upgrade times from 2.6 -> 2.8____<br>
<br>
    __ __<span class=""><br>
<br>
    Did you get any feedback on whether one particular migration seemed<br>
    to be running for a lot of that time?<br>
<br>
<br>
For the 1.5TB/100GB MongoDB scenario here is what I am able to glean<br>
from user logs (which I can share privately with anyone debugging):<br>
<br>
~5 hours: Applying pulp_puppet.plugins.migrations version 4<br>
~10 hours: Applying pulp_rpm.plugins.migrations version 28<br>
<br>
Use reports "lots of stating, unlinking, and linking of all the symlinks<br>
in /var/lib/pulb" if that helps.<br>
<br>
Another user reports ~6 hours on 176G of data.<br>
<br>
Eric<br>
<br>
<br></span>
    ____<br>
<br>
    __ __<br>
<br>
    Michael____<br>
<br>
    __ __<span class=""><br>
<br>
    On Fri, Jul 1, 2016 at 7:23 AM, Eric Helms <<a href="mailto:ehelms@redhat.com" target="_blank">ehelms@redhat.com</a><br></span>
    <mailto:<a href="mailto:ehelms@redhat.com" target="_blank">ehelms@redhat.com</a>>> wrote:____<br>
<br>
        Howdy,____<br>
<br>
        __ __<span class=""><br>
<br>
        We (Katello) have had users reporting incredibly long upgrade<br>
        times when upgrading from 2.6 to 2.8. This occurs during the<br>
        pulp-manage-db step that is run as the beginning of our<br>
        installers upgrade process. Based on the numbers below, does<br></span>
        this make sense at all?____<br>
<br>
        __ __<br>
<br>
        Some numbers:____<br>
<br>
        __ __<br>
<br>
        18 hour upgrade____<br>
<br>
        1.5 TB /var/lib/pulp____<br>
<br>
        100GB MongoDB____<br>
<br>
        __ __<br>
<br>
        __ __<br>
<br>
        Thanks,____<br>
<br>
        Eric____<br>
<br>
<br>
        _______________________________________________<br>
        Pulp-list mailing list<br>
        <a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a> <mailto:<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>
<br>
    __ __<br>
<br>
<br>
    ------------------------------------------------------------------------<span class=""><br>
<br>
    Information in this e-mail may be confidential. It is intended only<br>
    for the addressee(s) identified above. If you are not the<br>
    addressee(s), or an employee or agent of the addressee(s), please<br>
    note that any dissemination, distribution, or copying of this<br>
    communication is strictly prohibited. If you have received this<br>
    e-mail in error, please notify the sender of the error.<br>
<br>
<br>
<br>
<br></span><span class="">
_______________________________________________<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>
<br>
</span></blockquote><div class="HOEnZb"><div class="h5">
<br>
_______________________________________________<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>
</div></div></blockquote></div><br></div></div></div>