<html><head></head><body><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 style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1461086532038_175062"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1461086532038_175061"> <div dir="ltr" id="yui_3_16_0_ym19_1_1461086532038_175060"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1461086532038_175064"> <hr size="1" id="yui_3_16_0_ym19_1_1461086532038_175067"> <b id="yui_3_16_0_ym19_1_1461086532038_175069"><span style="font-weight:bold;" id="yui_3_16_0_ym19_1_1461086532038_175068">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 {}
_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;}
#yiv4843844425
</style><style type="text/css">#yiv4843844425 P {margin-top:0;margin-bottom:0;}</style><div id="yui_3_16_0_ym19_1_1461086532038_175756">
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt;" id="yui_3_16_0_ym19_1_1461086532038_175755">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 style="font-family:Times New Roman;color:#000000;font-size:16px;" id="yui_3_16_0_ym19_1_1461086532038_175758">
<hr tabindex="-1">
<div id="yiv4843844425divRpF116420" style="direction:ltr;"><font color="#000000" face="Tahoma" size="2" id="yui_3_16_0_ym19_1_1461086532038_175757"><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 lang="EN-US" style="font-size:10.0pt;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;"> 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" target="_blank" href="https://blueprints.launchpad.net/magnum/+spec/cache-docker-images">
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 lang="ZH-CN" style="font-family:SimSun;">年</span>04<span lang="ZH-CN" style="font-family:SimSun;">月</span>19<span lang="ZH-CN" style="font-family:SimSun;">日</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" target="_blank" href="https://blueprints.launchpad.net/magnum/+spec/support-private-registry">
https://blueprints.launchpad.net/magnum/+spec/support-private-registry</a><br clear="none">
and <a rel="nofollow" shape="rect" target="_blank" href="https://blueprints.launchpad.net/magnum/+spec/allow-user-softwareconfig">
<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 lang="ZH-CN" style="font-family:SimSun;">年</span>04<span lang="ZH-CN" style="font-family:SimSun;">月</span>19<span lang="ZH-CN" style="font-family:SimSun;">日</span> 10:57,
<span lang="ZH-CN" style="font-family:SimSun;">王华</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" ymailto="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a></pre>
<pre><a rel="nofollow" shape="rect" target="_blank" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">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 lang="ZH-CN" style="font-family:SimSun;">乔立勇</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" ymailto="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a></pre>
<pre><a rel="nofollow" shape="rect" target="_blank" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">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 lang="ZH-CN" style="font-family:SimSun;">乔立勇</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" ymailto="mailto:OpenStack-dev-request@lists.openstack.org" href="mailto:OpenStack-dev-request@lists.openstack.org">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></body></html>