Re: [openstack-dev] [heat][glance] Heat image resource support issue

2018-09-11 Thread Rico Lin
Thanks Abhishek

I already add that to Glance PTG etherpad. Since we got schedule conflict
so just let me know if we should be there as well, otherwise hope you guys
can help to resolve that issue. Thx!

btw, if you do require us to be there, might better schedule in the
afternoon on Wed. or Thu.

On Thu, Sep 6, 2018 at 4:45 AM Abhishek Kekane  wrote:

> Hi Rico,
>
> Session times are not decided yet, could you please add your topic on [1]
> so that it will be on discussion list.
> Also glance sessions are scheduled from Wednesday to Friday between 9 to 5
> PM, so you can drop by as per your convenience.
>
> [] https://etherpad.openstack.org/p/stein-ptg-glance-planning
>
>
> Thanks & Best Regards,
>
> Abhishek Kekane
>
> On Thu, Sep 6, 2018 at 3:48 PM, Rico Lin 
> wrote:
>
>>
>> On Thu, Sep 6, 2018 at 12:52 PM Abhishek Kekane 
>> wrote:
>>
>>> Hi Rico,
>>>
>>> We will discuss this during PTG, however meantime you can add
>>> WSGI_MODE=mod_wsgi in local.conf for testing purpose.
>>>
>>
>> Cool, If you can let me know which session it's, I will try to be there
>> if no conflict
>>
>> __
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>


-- 
May The Force of OpenStack Be With You,

*Rico Lin*irc: ricolin
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][glance] Heat image resource support issue

2018-09-06 Thread Abhishek Kekane
Hi Rico,

Session times are not decided yet, could you please add your topic on [1]
so that it will be on discussion list.
Also glance sessions are scheduled from Wednesday to Friday between 9 to 5
PM, so you can drop by as per your convenience.

[] https://etherpad.openstack.org/p/stein-ptg-glance-planning


Thanks & Best Regards,

Abhishek Kekane

On Thu, Sep 6, 2018 at 3:48 PM, Rico Lin  wrote:

>
> On Thu, Sep 6, 2018 at 12:52 PM Abhishek Kekane 
> wrote:
>
>> Hi Rico,
>>
>> We will discuss this during PTG, however meantime you can add
>> WSGI_MODE=mod_wsgi in local.conf for testing purpose.
>>
>
> Cool, If you can let me know which session it's, I will try to be there if
> no conflict
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][glance] Heat image resource support issue

2018-09-06 Thread Rico Lin
On Thu, Sep 6, 2018 at 12:52 PM Abhishek Kekane  wrote:

> Hi Rico,
>
> We will discuss this during PTG, however meantime you can add
> WSGI_MODE=mod_wsgi in local.conf for testing purpose.
>

Cool, If you can let me know which session it's, I will try to be there if
no conflict
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][glance] Heat image resource support issue

2018-09-05 Thread Abhishek Kekane
Hi Rico,

We will discuss this during PTG, however meantime you can add
WSGI_MODE=mod_wsgi in local.conf for testing purpose.

Thanks & Best Regards,

Abhishek Kekane

On Thu, Sep 6, 2018 at 9:21 AM, Rico Lin  wrote:

> 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?:)
>
> [1]  https://review.openstack.org/#/c/545483/
>
> On Thu, Sep 6, 2018 at 11:00 AM Brian Rosmaita 
> wrote:
>
>>
>>
>> On Wed, Sep 5, 2018 at 11:12 AM Rico Lin 
>> wrote:
>>
>>>
>>> On Wed, Sep 5, 2018 at 8:47 PM Brian Rosmaita <
>>> rosmaita.foss...@gmail.com> wrote:
>>>
>>> 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.

 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.

>>> Cool! Thank Brian.
>>> 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:
>>> 1. create an empty image(like `openstack image create --container-format
>>> bare --disk-format qcow2 img_name`)
>>> 2. and than import image  (like `glance image-import --import-method
>>> web-download --uri https://download.cirros-cloud.
>>> net/0.3.5/cirros-0.3.5-x86_64-disk.img `)
>>> But that image stuck in queued after first step.
>>> dose this scenario supported by glance? Or where did I do wrong?
>>>
>>
>> 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 ' to see the details of
>> the task.)
>>
>> If you are using devstack, you can apply this patch before you call
>> stack.sh: https://review.openstack.org/#/c/545483/  .  It will allow
>> everything except Glance to run under uwsgi.
>>
>>
>>>
>>>

 [0] https://developer.openstack.org/api-ref/image/
 v2/index.html#interoperable-image-import
 [1] https://docs.openstack.org/glance/latest/admin/
 interoperable-image-import.html#configuring-the-web-download-method
 [3] https://etherpad.openstack.org/p/stein-ptg-glance-planning

>>>
>>> --
>>> May The Force of OpenStack Be With You,
>>>
>>> *Rico Lin*irc: ricolin
>>>
>>> 
>>> __
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:
>>> unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>> 
>> __
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:
>> unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
>
> --
> May The Force of OpenStack Be With You,
>
> *Rico Lin*irc: ricolin
>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][glance] Heat image resource support issue

2018-09-05 Thread Rico Lin
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?:)

[1]  https://review.openstack.org/#/c/545483/

On Thu, Sep 6, 2018 at 11:00 AM Brian Rosmaita 
wrote:

>
>
> On Wed, Sep 5, 2018 at 11:12 AM Rico Lin 
> wrote:
>
>>
>> On Wed, Sep 5, 2018 at 8:47 PM Brian Rosmaita 
>> wrote:
>>
>> 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.
>>>
>>> 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.
>>>
>> Cool! Thank Brian.
>> 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:
>> 1. create an empty image(like `openstack image create --container-format
>> bare --disk-format qcow2 img_name`)
>> 2. and than import image  (like `glance image-import --import-method
>> web-download --uri
>> https://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img `)
>> But that image stuck in queued after first step.
>> dose this scenario supported by glance? Or where did I do wrong?
>>
>
> 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 ' to see the details of
> the task.)
>
> If you are using devstack, you can apply this patch before you call
> stack.sh: https://review.openstack.org/#/c/545483/  .  It will allow
> everything except Glance to run under uwsgi.
>
>
>>
>>
>>>
>>> [0]
>>> https://developer.openstack.org/api-ref/image/v2/index.html#interoperable-image-import
>>> [1]
>>> https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html#configuring-the-web-download-method
>>> [3] https://etherpad.openstack.org/p/stein-ptg-glance-planning
>>>
>>
>> --
>> May The Force of OpenStack Be With You,
>>
>> *Rico Lin*irc: ricolin
>>
>> __
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>


-- 
May The Force of OpenStack Be With You,

*Rico Lin*irc: ricolin
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][glance] Heat image resource support issue

2018-09-05 Thread Brian Rosmaita
On Wed, Sep 5, 2018 at 11:12 AM Rico Lin  wrote:

>
> On Wed, Sep 5, 2018 at 8:47 PM Brian Rosmaita 
> wrote:
>
> 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.
>>
>> 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.
>>
> Cool! Thank Brian.
> 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:
> 1. create an empty image(like `openstack image create --container-format
> bare --disk-format qcow2 img_name`)
> 2. and than import image  (like `glance image-import --import-method
> web-download --uri
> https://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img `)
> But that image stuck in queued after first step.
> dose this scenario supported by glance? Or where did I do wrong?
>

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 ' to see the details of
the task.)

If you are using devstack, you can apply this patch before you call
stack.sh: https://review.openstack.org/#/c/545483/  .  It will allow
everything except Glance to run under uwsgi.


>
>
>>
>> [0]
>> https://developer.openstack.org/api-ref/image/v2/index.html#interoperable-image-import
>> [1]
>> https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html#configuring-the-web-download-method
>> [3] https://etherpad.openstack.org/p/stein-ptg-glance-planning
>>
>
> --
> May The Force of OpenStack Be With You,
>
> *Rico Lin*irc: ricolin
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][glance] Heat image resource support issue

2018-09-05 Thread Rico Lin
On Wed, Sep 5, 2018 at 8:47 PM Brian Rosmaita 
wrote:

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.
>
> 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.
>
Cool! Thank Brian.
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:
1. create an empty image(like `openstack image create --container-format
bare --disk-format qcow2 img_name`)
2. and than import image  (like `glance image-import --import-method
web-download --uri
https://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img `)
But that image stuck in queued after first step.
dose this scenario supported by glance? Or where did I do wrong?


>
> [0]
> https://developer.openstack.org/api-ref/image/v2/index.html#interoperable-image-import
> [1]
> https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html#configuring-the-web-download-method
> [3] https://etherpad.openstack.org/p/stein-ptg-glance-planning
>

-- 
May The Force of OpenStack Be With You,

*Rico Lin*irc: ricolin
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][glance] Heat image resource support issue

2018-09-05 Thread Brian Rosmaita
On Thu, Aug 30, 2018 at 5:55 AM Rico Lin  wrote:

> Hi Glance team
>

Hi Rico, sorry about the delay in answering your email.


> Glance V1 image API been deprecated for a long while, and V2 has been used
> widely. Heat image resource would like to change to use V2 as well, but
> there is an unsolved issue, which blocks us from adopting V2. Right now, to
> image create require Heat to download the image to Heat service and
> re-upload it to Glance. This behavior causes heat service a great burden
> which in a heat team discussion (years ago), we decide to deprecated V1
> Image resource in Heat and will add V2  image resource once this is
> resolved.
> So I have been wondering if there's some workaround for this issue? Or if
> glance can support accept URL as image import (and then reuse client lib
> to download to glance side)? Or if anyone got a better solution for this?
>

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.

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.

cheers,
brian

[0]
https://developer.openstack.org/api-ref/image/v2/index.html#interoperable-image-import
[1]
https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html#configuring-the-web-download-method
[3] https://etherpad.openstack.org/p/stein-ptg-glance-planning


>
> --
> May The Force of OpenStack Be With You,
>
> *Rico Lin*irc: ricolin
>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [heat][glance] Heat image resource support issue

2018-08-30 Thread Rico Lin
Hi Glance team

Glance V1 image API been deprecated for a long while, and V2 has been used
widely. Heat image resource would like to change to use V2 as well, but
there is an unsolved issue, which blocks us from adopting V2. Right now, to
image create require Heat to download the image to Heat service and
re-upload it to Glance. This behavior causes heat service a great burden
which in a heat team discussion (years ago), we decide to deprecated V1
Image resource in Heat and will add V2  image resource once this is
resolved.
So I have been wondering if there's some workaround for this issue? Or if
glance can support accept URL as image import (and then reuse client lib
to download to glance side)? Or if anyone got a better solution for this?

-- 
May The Force of OpenStack Be With You,

*Rico Lin*irc: ricolin
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev