<div dir="ltr">On Mon, Jan 9, 2017 at 4:45 PM, Flavio Percoco <span dir="ltr"><<a href="mailto:flavio@redhat.com" target="_blank">flavio@redhat.com</a>></span> wrote:<br><div class="gmail_extra"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On 06/01/17 09:34 +0530, Rabi Mishra wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Fri, Jan 6, 2017 at 4:38 AM, Emilien Macchi <<a href="mailto:emilien@redhat.com" target="_blank">emilien@redhat.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Greetings Heat folks!<br>
<br>
My question is simple:<br>
When do you plan to support Glance v2?<br>
<a href="https://review.openstack.org/#/c/240450/" rel="noreferrer" target="_blank">https://review.openstack.org/#<wbr>/c/240450/</a><br>
<br>
The spec looks staled while Glance v1 was deprecated in Newton (and v2<br>
was started in Kilo!).<br>
<br>
<br>
</blockquote>
Hi Emilien,<br>
<br>
I think we've not been able to move to v2 due to v1/v2 incompatibility[1]<br>
with respect to the location[2] property. Moving to v2 would break all<br>
existing templates using that property.<br>
<br>
I've seen several discussions around that without any conclusion. I think<br>
we can support a separate v2 image resource and deprecate the current one,<br>
unless there is a better path available.<br>
</blockquote>
<br></span>
Hi Rabi,<br>
<br>
Could you elaborate on why Heat depends on the location attribute? I'm not<br>
familiar with Heat and knowing this might help me to propose something (or at<br>
least understand the difficulties).<br>
<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I don't think putting this on hold will be of any help. V1 ain't coming back and<br>
the improvements for v2 are still under heavy coding. I'd probably recommend<br>
moving to v2 with a proper deprecation path rather than sticking to v1.<br>
<br></blockquote><div><br></div><div>Hi Flavio,<br><br>As much as we would like to move to v2, I think we still don't have a acceptable solution for the question below. There is an earlier ML thread[1], where it was discussed in detail. <br><br></div><div>- What's the migration path for images created with v1 that use the location attribute pointing to an external location?<br><br>While answering the above we've to keep in mind the following constraint.<br><br></div><div>- Any change in the image id(new image) would potentially result in nova servers using them in the template being rebuilt/replaced, and we would like to avoid it.<br><br></div><div><div>There was a suggestion to allow the 'copy-from' with v2, which would possibly make it easier for us. Is that still an option? <br></div><br>I assume we can probably use glance upload api to upload the image data(after getting it from the external location) for an existing image? Last time i tried to do it, it seems to be not allowed for an 'active' image. It's possible I'm missing something here. We don't have a way at present, for a user to upload an image to heat engine( not sure if we would like do to it either) or heat engine downloading the image from an 'external location' and then uploading it to glance while creating/updating an image resource. <br></div><div><br></div><div>Also, glance location api could probably have been useful here. However, we were advised in the earlier thread not to use it, as exposing the location to the end user is perceived as a security risk.<br><br><br>[1] <a href="http://lists.openstack.org/pipermail/openstack-dev/2016-May/094598.html" target="_blank">http://lists.openstack.org/<wbr>pipermail/openstack-dev/2016-<wbr>May/094598.html</a><br><br></div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Cheers,<br>
Flavio<span><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
[1] <a href="https://wiki.openstack.org/wiki/Glance-v2-v1-client-compatability" rel="noreferrer" target="_blank">https://wiki.openstack.org/wik<wbr>i/Glance-v2-v1-client-compatab<wbr>ility</a><br>
[2] <a href="https://github.com/openstack/heat/blob/master/heat/engine/" rel="noreferrer" target="_blank">https://github.com/openstack/h<wbr>eat/blob/master/heat/engine/</a><br>
resources/openstack/glance/ima<wbr>ge.py#L107-L112<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
As an user, I need Glance v2 support so I can remove Glance Registry<br>
from my deployment. and run pure v2 everywhere in my cloud.<br>
<br>
Thanks for your help,<br>
--<br>
Emilien Macchi<br>
<br>
______________________________<wbr>______________________________<wbr>______________<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.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br>
</blockquote>
<br>
<br>
<br>
-- <br>
Regards,<br>
Rabi Misra<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
______________________________<wbr>______________________________<wbr>______________<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.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</blockquote>
<br>
<br>
-- <br></span>
@flaper87<span class="gmail-m_-6955467906289408455gmail-m_8900348136891531105HOEnZb"><font color="#888888"><br>
Flavio Percoco<br>
</font></span><br>______________________________<wbr>______________________________<wbr>______________<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.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail-m_-6955467906289408455gmail-m_8900348136891531105gmail_signature"><div dir="ltr"><div>Regards,</div>Rabi Misra<div><br></div></div></div>
</div></div>