<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style id="owaParaStyle" type="text/css"></style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">If the ops are deploying a cloud big enough to run into that problem, I think they can deploy a scaled out docker registry of some kind too, that the images can point to? Last I
 looked, it didn't seem very difficult. The native docker registry has ceph support now, so if your running ceph for the backend, you can put an instance on each controller and have it stateless I think.<br>
<br>
Either way you would be hammering some storage service. Either glance or docker registry.<br>
<br>
Thanks,<br>
Kevin<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF911328"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Guz Egor [guz_egor@yahoo.com]<br>
<b>Sent:</b> Tuesday, April 19, 2016 7:20 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Cc:</b> Fox, Kevin M<br>
<b>Subject:</b> Re: [openstack-dev] [Magnum]Cache docker images<br>
</font><br>
</div>
<div></div>
<div>
<div style="color:#000; background-color:#fff; font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:13px">
<div id="yui_3_16_0_ym19_1_1461086532038_175075"><span>Kevin,</span></div>
<div></div>
<div id="yui_3_16_0_ym19_1_1461086532038_175059"> </div>
<div id="yui_3_16_0_ym19_1_1461086532038_175059">I agree this is not ideal solution, but it's probably the best option to deal with public cloud "stability" (e.g. we switched to the same model at AWS and</div>
<div id="yui_3_16_0_ym19_1_1461086532038_175059" dir="ltr">got really good boost in provisioning time and reduce # failures during cluster provisioning). And if application need guarantee "fresh" image, it uses  </div>
<div id="yui_3_16_0_ym19_1_1461086532038_175059" dir="ltr">force pull option in Marathon.</div>
<div id="yui_3_16_0_ym19_1_1461086532038_175059"><br>
</div>
<div class="signature" id="yui_3_16_0_ym19_1_1461086532038_175066">--- </div>
<div class="signature" id="yui_3_16_0_ym19_1_1461086532038_175066">Egor</div>
<div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1461086532038_175065"><br>
</div>
<div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1461086532038_175063" style="display:block">
<div id="yui_3_16_0_ym19_1_1461086532038_175062" style="font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:13px">
<div id="yui_3_16_0_ym19_1_1461086532038_175061" style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div dir="ltr" id="yui_3_16_0_ym19_1_1461086532038_175060"><font id="yui_3_16_0_ym19_1_1461086532038_175064" face="Arial" size="2">
<hr id="yui_3_16_0_ym19_1_1461086532038_175067" size="1">
<b id="yui_3_16_0_ym19_1_1461086532038_175069"><span id="yui_3_16_0_ym19_1_1461086532038_175068" style="font-weight:bold">From:</span></b> "Fox, Kevin M" <Kevin.Fox@pnnl.gov><br>
<b><span style="font-weight:bold">To:</span></b> OpenStack Development Mailing List (not for usage questions) <openstack-dev@lists.openstack.org>
<br>
<b><span style="font-weight:bold">Sent:</span></b> Tuesday, April 19, 2016 1:04 PM<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [openstack-dev] [Magnum]Cache docker images<br>
</font></div>
<div class="y_msg_container" id="yui_3_16_0_ym19_1_1461086532038_175070"><br>
<div id="yiv4843844425"><style>
<!--
#yiv4843844425 #yiv4843844425 _filtered #yiv4843844425
        {font-family:SimSun}
_filtered #yiv4843844425
        {font-family:Calibri}
_filtered #yiv4843844425
        {font-family:Tahoma}
_filtered #yiv4843844425
        {font-family:Consolas}
#yiv4843844425 p.yiv4843844425MsoNormal, #yiv4843844425 li.yiv4843844425MsoNormal, #yiv4843844425 div.yiv4843844425MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        color:black}
#yiv4843844425 a:link, #yiv4843844425 span.yiv4843844425MsoHyperlink
        {color:blue;
        text-decoration:underline}
#yiv4843844425 a:visited, #yiv4843844425 span.yiv4843844425MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
#yiv4843844425 pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        color:black}
#yiv4843844425 span.yiv4843844425HTMLPreformattedChar
        {font-family:Consolas;
        color:black}
#yiv4843844425 span.yiv4843844425EmailStyle19
        {color:#1F497D}
#yiv4843844425 .yiv4843844425MsoChpDefault
        {font-size:10.0pt}
_filtered #yiv4843844425
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
-->
</style><style type="text/css">
<!--
#yiv4843844425 p
        {margin-top:0;
        margin-bottom:0}
-->
BODY {direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;}P {margin-top:0;margin-bottom:0;}</style>
<div id="yui_3_16_0_ym19_1_1461086532038_175756">
<div id="yui_3_16_0_ym19_1_1461086532038_175755" style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
I'm kind of uncomfortable as an op with the prebundled stuff. how do you upgrade things when needed if there is no way to pull updated images from a central place?<br clear="none">
<br clear="none">
Thanks,<br clear="none">
Kevin<br clear="none">
<div class="yiv4843844425yqt1746966500" id="yiv4843844425yqt75040">
<div id="yui_3_16_0_ym19_1_1461086532038_175758" style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr tabindex="-1">
<div id="yiv4843844425divRpF116420" style="direction:ltr"><font id="yui_3_16_0_ym19_1_1461086532038_175757" color="#000000" face="Tahoma" size="2"><b>From:</b> Hongbin Lu [hongbin.lu@huawei.com]<br clear="none">
<b>Sent:</b> Tuesday, April 19, 2016 11:56 AM<br clear="none">
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br clear="none">
<b>Subject:</b> Re: [openstack-dev] [Magnum]Cache docker images<br clear="none">
</font><br clear="none">
</div>
<div></div>
<div>
<div class="yiv4843844425WordSection1">
<div class="yiv4843844425MsoNormal"><span style="font-size:11.0pt">Eli,</span></div>
<div class="yiv4843844425MsoNormal"><span style="font-size:11.0pt"> </span></div>
<div class="yiv4843844425MsoNormal"><span style="font-size:11.0pt">The approach of pre-pulling docker images has a problem. It only works for specific docker storage driver. In comparison, the tar file approach is portable across different storage drivers.</span></div>
<div class="yiv4843844425MsoNormal"><span style="font-size:11.0pt"> </span></div>
<div class="yiv4843844425MsoNormal"><span style="font-size:11.0pt">Best regards,</span></div>
<div class="yiv4843844425MsoNormal"><span style="font-size:11.0pt">Hongbin</span></div>
<div class="yiv4843844425MsoNormal"><span style="font-size:11.0pt"> </span></div>
<div style="border:none; border-left:solid blue 1.5pt; padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<div class="yiv4843844425MsoNormal"><b><span style="font-size:10.0pt" lang="EN-US">From:</span></b><span style="font-size:10.0pt" lang="EN-US"> taget [mailto:qiaoliyong@gmail.com]
<br clear="none">
<b>Sent:</b> April-19-16 4:26 AM<br clear="none">
<b>To:</b> openstack-dev@lists.openstack.org<br clear="none">
<b>Subject:</b> Re: [openstack-dev] [Magnum]Cache docker images</span></div>
</div>
</div>
<div class="yiv4843844425MsoNormal"> </div>
<div class="yiv4843844425MsoNormal" style="margin-bottom:12.0pt">hi hello again<br clear="none">
<br clear="none">
I believe you are talking about this bp <a rel="nofollow" shape="rect" href="https://blueprints.launchpad.net/magnum/+spec/cache-docker-images" target="_blank">
https://blueprints.launchpad.net/magnum/+spec/cache-docker-images</a><br clear="none">
then ignore my previous reply, that may another topic to solve network limited problem.<br clear="none">
<br clear="none">
I think you are on the right way to build docker images but this image could only bootstrap by cloud-init, without cloud-init<br clear="none">
the container image tar file are not loaded at all, but seems this may not be the best way.<br clear="none">
<br clear="none">
I'v suggest that may be the best way is we pull docker images while building atomic-image. Per my understanding, the<br clear="none">
image build process is we mount the image to read/write mode to some tmp directory and chroot to to that dircetory,<br clear="none">
we can do some custome operation there.<br clear="none">
<br clear="none">
I can do a try on the build progress(guess rpm-ostree should support some hook scripts)<br clear="none">
<br clear="none">
</div>
<div>
<div class="yiv4843844425MsoNormal">On 2016<span style="font-family:SimSun" lang="ZH-CN">年</span>04<span style="font-family:SimSun" lang="ZH-CN">月</span>19<span style="font-family:SimSun" lang="ZH-CN">日</span> 11:41, Eli Qiao wrote:</div>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div class="yiv4843844425MsoNormal" style="margin-bottom:12.0pt">@wanghua<br clear="none">
<br clear="none">
I think there were some discussion already , check <a rel="nofollow" shape="rect" href="https://blueprints.launchpad.net/magnum/+spec/support-private-registry" target="_blank">
https://blueprints.launchpad.net/magnum/+spec/support-private-registry</a><br clear="none">
and <a rel="nofollow" shape="rect" href="https://blueprints.launchpad.net/magnum/+spec/allow-user-softwareconfig" target="_blank">
<span style="font-size:9.0pt">https://blueprints.launchpad.net/magnum/+spec/allow-user-softwareconfig</span></a></div>
<div>
<div class="yiv4843844425MsoNormal">On 2016<span style="font-family:SimSun" lang="ZH-CN">年</span>04<span style="font-family:SimSun" lang="ZH-CN">月</span>19<span style="font-family:SimSun" lang="ZH-CN">日</span> 10:57,
<span style="font-family:SimSun" lang="ZH-CN">王华</span> wrote:</div>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div>
<div class="yiv4843844425MsoNormal">Hi all, </div>
<div>
<div class="yiv4843844425MsoNormal"> </div>
</div>
<div>
<div>
<div class="yiv4843844425MsoNormal">We want to eliminate pulling docker images over the Internet on bay provisioning. There are two problems of this approach:</div>
</div>
<div>
<div class="yiv4843844425MsoNormal">1. Pulling docker images over the Internet is slow and fragile.</div>
</div>
<div>
<div class="yiv4843844425MsoNormal">2. Some clouds don't have external Internet access.</div>
</div>
<div>
<div class="yiv4843844425MsoNormal"> </div>
</div>
<div>
<div class="yiv4843844425MsoNormal">It is suggested to build all the required images into the cloud images to resolved the issue.</div>
</div>
</div>
<div>
<div class="yiv4843844425MsoNormal"> </div>
</div>
<div>
<div class="yiv4843844425MsoNormal">Here is a solution:</div>
</div>
<div>
<div class="yiv4843844425MsoNormal">We export the docker images as tar files, and put the tar files into a dir in the image when we build the image. And we add scripts to load the tar files in cloud-init, so that we don't need to download the docker images.</div>
</div>
<div>
<div class="yiv4843844425MsoNormal"> </div>
</div>
<div>
<div class="yiv4843844425MsoNormal">Any advice for this solution or any better solution?</div>
</div>
<div>
<div class="yiv4843844425MsoNormal"> </div>
</div>
<div>
<div class="yiv4843844425MsoNormal">Regards,</div>
</div>
<div>
<div class="yiv4843844425MsoNormal">Wanghua</div>
</div>
</div>
<div class="yiv4843844425MsoNormal"><br clear="none">
<br clear="none">
<br clear="none">
</div>
<pre>__________________________________________________________________________</pre>
<pre>OpenStack Development Mailing List (not for usage questions)</pre>
<pre>Unsubscribe: <a rel="nofollow" shape="rect" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a></pre>
<pre><a rel="nofollow" shape="rect" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></pre>
</blockquote>
<div class="yiv4843844425MsoNormal"><br clear="none">
<br clear="none">
</div>
<pre>-- </pre>
<pre>Best Regards, Eli Qiao (<span style="font-family:SimSun" lang="ZH-CN">乔立勇</span>)</pre>
<pre>Intel OTC China</pre>
<div class="yiv4843844425MsoNormal"><br clear="none">
<br clear="none">
<br clear="none">
</div>
<pre>__________________________________________________________________________</pre>
<pre>OpenStack Development Mailing List (not for usage questions)</pre>
<pre>Unsubscribe: <a rel="nofollow" shape="rect" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a></pre>
<pre><a rel="nofollow" shape="rect" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></pre>
</blockquote>
<div class="yiv4843844425MsoNormal"><br clear="none">
<br clear="none">
</div>
<pre>-- </pre>
<pre>Best Regards, Eli Qiao (<span style="font-family:SimSun" lang="ZH-CN">乔立勇</span>)</pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="yqt1746966500" id="yqt68505">__________________________________________________________________________<br clear="none">
OpenStack Development Mailing List (not for usage questions)<br clear="none">
Unsubscribe: <a shape="rect" href="mailto:OpenStack-dev-request@lists.openstack.org" target="_blank">
OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br clear="none">
<a shape="rect" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br clear="none">
</div>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>