<div dir="ltr">Since we all use devstack as the test environment, I can see it's required that we allow this scenario works for devstack in the gateway. Do you got any plan to fix [1] in short future?:)<div><br></div><div>[1]  <a href="https://review.openstack.org/#/c/545483/" target="_blank">https://review.openstack.org/#/c/545483/</a> </div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 6, 2018 at 11:00 AM Brian Rosmaita <<a href="mailto:rosmaita.fossdev@gmail.com">rosmaita.fossdev@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 5, 2018 at 11:12 AM Rico Lin <<a href="mailto:rico.lin.guanyu@gmail.com" target="_blank">rico.lin.guanyu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 5, 2018 at 8:47 PM Brian Rosmaita <<a href="mailto:rosmaita.fossdev@gmail.com" target="_blank">rosmaita.fossdev@gmail.com</a>> wrote:</div><div dir="ltr"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div>Since Queens, Glance has had a 'web-download' import method that takes a URL [0].  It's enabled by default, but operators do have the ability to turn it off.  (There's an API call to see what methods are enabled in a particular cloud.)  Operators also have the ability to restrict what URLs are acceptable [1], but that's probably a good thing. </div><div><br></div><div>In short, Glance does have the ability to do what you need since Queens, but there's no guarantee that it will be available in all clouds and for all URLs.  If you foresee that as a problem, it would be a good idea to get together with the Glance team at the PTG to discuss this issue.  Please add it as a topic to the Glance PTG planning etherpad [3] as soon as you can.</div></div></div></div></div></div></blockquote><div>Cool! Thank Brian. </div><div>Sounds like something we can use, just one small question in my mind. In order to use `web-download` in image resource, we need to create an empty image than use import to upload that imge. I have try that scenrio by myself now (I'm not really diving into detail yet) by:</div><div>1. create an empty image(like `openstack image create --container-format bare --disk-format qcow2 img_name`)</div><div>2. and than import image  (like `glance image-import --import-method web-download --uri <a href="https://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img" target="_blank">https://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img</a> `)</div><div>But that image stuck in queued after first step. <br></div><div>dose this scenario supported by glance? Or where did I do wrong?</div></div></div></div></div></div></blockquote><div><br></div><div>That scenario should work, unless you are running glance under uwsgi, in which case the task engine (used to import the image) does not run.  You can tell that's the problem if as an admin user you use the command 'glance task-list'.  You should see a task of type 'api_image_import' with status 'pending'.  (You can do 'glance task-show <task_id>' to see the details of the task.)</div><div><br></div><div>If you are using devstack, you can apply this patch before you call stack.sh: <a href="https://review.openstack.org/#/c/545483/" target="_blank">https://review.openstack.org/#/c/545483/</a>  .  It will allow everything except Glance to run under uwsgi.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div></div><div><br></div><div>[0] <a href="https://developer.openstack.org/api-ref/image/v2/index.html#interoperable-image-import" target="_blank">https://developer.openstack.org/api-ref/image/v2/index.html#interoperable-image-import</a></div><div>[1] <a href="https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html#configuring-the-web-download-method" target="_blank">https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html#configuring-the-web-download-method</a></div><div>[3] <a href="https://etherpad.openstack.org/p/stein-ptg-glance-planning" target="_blank">https://etherpad.openstack.org/p/stein-ptg-glance-planning</a></div></div></div></div></div></div></blockquote></div><div><br></div>-- <br><div dir="ltr" class="m_304542537065548904gmail-m_-5093299625585300336gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="background-image:none"><div style="font-size:small"><div><table border="0" cellpadding="0" cellspacing="0" style="color:rgb(0,0,0);font-size:medium;font-family:verdana"><tbody><tr><td colspan="3" align="left" valign="center"><span style="font-size:13px;font-family:verdana">May The Force of Open<font color="#ff0000">Stack</font> Be With You,</span> <br><b><i><font face="georgia, serif" size="4">Rico Lin<br></font></i></b>irc: ricolin</td></tr><tr><td colspan="3" align="left" valign="center" style="height:10px;border-bottom:1px dashed rgb(221,221,221)"></td></tr><tr><td colspan="3"></td></tr></tbody></table><br></div></div></div><font size="2" face="tahoma, sans-serif" color="#999999"></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div></div></div>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="background-image:none!important"><div style="font-size:small"><div><table border="0" cellpadding="0" cellspacing="0" style="color:rgb(0,0,0);font-size:medium;font-family:verdana"><tbody><tr><td colspan="3" align="left" valign="center"><span style="font-size:13px;font-family:verdana">May The Force of Open<font color="#ff0000">Stack</font> Be With You,</span> <br><b><i><font face="georgia, serif" size="4">Rico Lin<br></font></i></b>irc: ricolin</td></tr><tr><td colspan="3" align="left" valign="center" style="height:10px;border-bottom-width:1px;border-bottom-style:dashed;border-bottom-color:rgb(221,221,221)"></td></tr><tr><td colspan="3"></td></tr></tbody></table><br></div></div></div><font size="2" face="tahoma, sans-serif" color="#999999"></font></div></div></div></div></div></div></div></div></div></div>