*** markvoelker has joined #openstack-glance | 00:09 | |
*** Sravan has joined #openstack-glance | 00:09 | |
*** _alastor_ has quit IRC | 00:31 | |
*** gyee has quit IRC | 00:41 | |
*** markvoelker has quit IRC | 00:42 | |
*** Florian has joined #openstack-glance | 00:46 | |
*** Sravan has quit IRC | 00:59 | |
*** Sravan has joined #openstack-glance | 01:02 | |
*** Sravan has quit IRC | 01:07 | |
*** brinzhang has joined #openstack-glance | 01:28 | |
*** _alastor_ has joined #openstack-glance | 01:33 | |
*** zul has quit IRC | 01:37 | |
*** _alastor_ has quit IRC | 01:38 | |
*** markvoelker has joined #openstack-glance | 01:39 | |
*** sapd1_ has joined #openstack-glance | 01:48 | |
sapd1_ | Hi everyone, Can I'm testing multi store with glance, but I don't know how to create image which will be uploaded to all enabled backend. | 01:49 |
---|---|---|
rosmaita | sapd1_: i don't think there's a way to upload to more than 1 backend at once | 01:52 |
sapd1_ | rosmaita: Because I would like to use multiple ceph clusters. So I would like to upload an image to every ceph clusters. | 01:52 |
rosmaita | sapd1_: i think you may have to create an image in one backend, and then put the data in the other ceph clusters (yourself, not using glance) and then use the image-update to add the other locations | 01:54 |
rosmaita | but i don't know as much about ceph as i should, there could be another way | 01:54 |
sapd1_ | rosmaita: Thank you for your help. | 01:58 |
sapd1_ | I will try. | 01:58 |
sapd1_ | rosmaita: I don't see any parameters to add other locations with image-update command. | 02:02 |
rosmaita | the api call is https://developer.openstack.org/api-ref/image/v2/?expanded=update-image-detail#update-image | 02:09 |
rosmaita | but it only works if glance is configured to show locations | 02:09 |
*** markvoelker has quit IRC | 02:12 | |
sapd1_ | rosmaita: yeah. I have already configured show locations. | 02:17 |
sapd1_ | rosmaita: seem like we don't have option in python-glanceclient | 02:17 |
brinzhang | sapd1_:Put image on a ceph backend, then create a VM, or assign it to another ceph backend when it is volume. Is this appropriate than storing the image on every ceph backend? | 02:41 |
sapd1_ | brinzhang: Because I woule like to use COW feature in ceph. currently, It does not support clone from cluster to cluster. | 02:52 |
brinzhang | Yeah, if you want use the COW feature of ceph, my doubts are invalid :) | 02:54 |
sapd1_ | brinzhang: I'm testing multiple locations as rosmaita mentioned | 02:55 |
sapd1_ | rosmaita: I'm following this guide: https://www.sebastien-han.fr/blog/2015/05/13/openstack-glance-use-multiple-location-for-an-image/ But I can't add other locations. It returns Invalid location | 03:05 |
rosmaita | can you paste the curl statement and the response into http://paste.openstack.org/ ? (Make sure you XXXX out any sensitive info.) | 03:08 |
*** markvoelker has joined #openstack-glance | 03:09 | |
*** priteau has joined #openstack-glance | 03:16 | |
*** priteau has quit IRC | 03:20 | |
sapd1_ | rosmaita: the path is a list. right? | 03:24 |
sapd1_ | https://github.com/openstack/glance/blob/stable%2Frocky/glance/api/v2/images.py#L294 | 03:24 |
sapd1_ | this check path_root == 'locations' | 03:25 |
sapd1_ | So this will failed because this check path startwiths: http://paste.openstack.org/show/745131/ | 03:25 |
rosmaita | i'm pretty sure the path should be a string | 03:27 |
rosmaita | this may help: https://specs.openstack.org/openstack/glance-specs/specs/api/v2/http-patch-image-api-v2.html | 03:28 |
sapd1_ | rosmaita: http://paste.openstack.org/show/745132/ | 03:31 |
sapd1_ | this is my request | 03:31 |
rosmaita | that looks ok | 03:34 |
rosmaita | do you have access to the logs? | 03:34 |
sapd1_ | yes. | 03:34 |
sapd1_ | I have read the source code: https://github.com/openstack/glance/blob/stable%2Frocky/glance/api/v2/images.py#L299 | 03:35 |
sapd1_ | as you can see. It compares with 'locations' with first entity in path | 03:35 |
sapd1_ | path_root = path[0] | 03:35 |
sapd1_ | so path is a list.?? | 03:35 |
sapd1_ | rosmaita: and the unit test https://github.com/openstack/glance/blob/stable/rocky/glance/tests/unit/v2/test_images_resource.py#L1716 | 03:40 |
rosmaita | those controller tests are dealing with what you have after the request deserializer processes the request body | 03:43 |
*** markvoelker has quit IRC | 03:43 | |
sapd1_ | rosmaita: So why I use path string is not work. | 03:46 |
sapd1_ | It returns invalid locations | 03:46 |
rosmaita | sapd1_: i am not sure. does the log have any useful info about why it thinks the locations are invalid? | 03:46 |
sapd1_ | I have turned on debug mode. But It only include 400 request. | 03:47 |
*** abhishekk has joined #openstack-glance | 04:18 | |
sapd1_ | rosmaita: yeah. When using multi store, We can't use multiple locatiosn | 04:26 |
rosmaita | i think you need to include the store in the location metadata | 04:27 |
sapd1_ | rosmaita: http://paste.openstack.org/show/745133/ | 04:28 |
rosmaita | what did you request body look like for that request? | 04:29 |
*** Sravan has joined #openstack-glance | 04:33 | |
rosmaita | sapd1_: The 400 you are seeing is coming from https://github.com/openstack/glance/blob/stable/rocky/glance/location.py#L117 | 04:34 |
rosmaita | you are right that if you have multiple backends enabled, you need to specify the backend in the location metadata | 04:34 |
rosmaita | something like: | 04:35 |
rosmaita | {"url": "https://www.openstack.org/assets/openstack-logo/2016R/OpenStack-Logo-Horizontal.eps.zip", "metadata": {"added": "true", "backend": "myHttpStore"}} | 04:36 |
sapd1_ | rosmaita: Let me try. | 04:36 |
rosmaita | you don't need the "added": "true" (but it won't hurt either) | 04:36 |
rosmaita | that was leftover from some testing | 04:36 |
*** Sravan has quit IRC | 04:37 | |
*** markvoelker has joined #openstack-glance | 04:40 | |
sapd1_ | rosmaita: It doesn't work | 04:41 |
rosmaita | bummer | 04:41 |
rosmaita | sapd1_: what time zone are you in? | 04:42 |
sapd1_ | GMT+7 | 04:42 |
sapd1_ | and you | 04:42 |
rosmaita | GMT-5 | 04:42 |
sapd1_ | rosmaita: request body: http://paste.openstack.org/show/745134/ | 04:42 |
sapd1_ | rosmaita: It's midnight | 04:43 |
rosmaita | yeah, i am about to sign off ... you might want to look for abhishekk in a little while, he is in GMT+5:30 and implemented most of the multiple backend code | 04:44 |
rosmaita | actually, he should be around now | 04:45 |
rosmaita | abhishekk: ^^ | 04:45 |
abhishekk | rosmaita, ack | 04:45 |
sapd1_ | yeah. We can discuss later. | 04:45 |
sapd1_ | abhishekk: as you know, seem like multiple locations does not work with multi store. | 04:46 |
rosmaita | i will let you 2 discuss ... good night! | 04:46 |
abhishekk | sapd1_, just gi ve me a minute | 04:46 |
*** rosmaita has left #openstack-glance | 04:47 | |
abhishekk | https://review.openstack.org/618932 and https://review.openstack.org/618933 | 04:47 |
abhishekk | have a look at these two patches, I guess these will help you | 04:47 |
sapd1_ | abhishekk: So they have not merged yet. | 04:49 |
abhishekk | sapd1_, no, this is one way but we still thinking on right approach to have this worked, that's why we will be keeping multiple backend experimental in Stein as well | 04:51 |
sapd1_ | abhishekk: thankyou. :D | 04:51 |
abhishekk | sapd1_, welcome | 04:53 |
abhishekk | I hope after applying these patches it will work, it worked for me | 04:53 |
sapd1_ | I'm testing multiple ceph cluster with openstack. So If I finish, I will try these patches. | 04:54 |
abhishekk | sapd1_, great, | 04:55 |
abhishekk | sapd1_, I have tested create and import operations with 2 ceph, 2 swift and 2 fs backends (total 6) | 04:56 |
abhishekk | sapd1_, https://etherpad.openstack.org/p/multi-store-scenarios | 04:57 |
abhishekk | if you find any other scenarios could you please record those in it? | 04:57 |
abhishekk | I forgot it's midnight at your end, good night | 04:58 |
sapd1_ | abhishekk: It's lunch time. in my time zone. :D | 04:59 |
abhishekk | sapd1_, :D, enjoy your lunch | 04:59 |
openstackgerrit | Abhishek Kekane proposed openstack/glance-specs master: Spec Lite: Rethinking our filesystem access https://review.openstack.org/605584 | 05:03 |
*** ratailor has joined #openstack-glance | 05:05 | |
*** markvoelker has quit IRC | 05:12 | |
*** Sravan has joined #openstack-glance | 05:25 | |
*** Sravan has quit IRC | 05:30 | |
*** Sravan has joined #openstack-glance | 05:30 | |
*** Sravan has quit IRC | 05:47 | |
*** Sravan has joined #openstack-glance | 05:48 | |
*** Sravan has quit IRC | 05:52 | |
*** Sravan has joined #openstack-glance | 05:55 | |
*** markvoelker has joined #openstack-glance | 06:09 | |
*** eandersson has quit IRC | 06:12 | |
*** Sravan has quit IRC | 06:13 | |
*** eandersson has joined #openstack-glance | 06:13 | |
*** eandersson has quit IRC | 06:13 | |
*** eandersson has joined #openstack-glance | 06:14 | |
*** Sravan has joined #openstack-glance | 06:17 | |
*** Sravan has quit IRC | 06:27 | |
openstackgerrit | Abhishek Kekane proposed openstack/glance master: Rethinking filesystem access for tasks and staging API https://review.openstack.org/611253 | 06:28 |
*** Sravan has joined #openstack-glance | 06:28 | |
*** tkajinam_ has joined #openstack-glance | 06:33 | |
*** tkajinam has quit IRC | 06:35 | |
*** Sravan has quit IRC | 06:39 | |
*** Sravan has joined #openstack-glance | 06:41 | |
*** markvoelker has quit IRC | 06:43 | |
*** Sravan has quit IRC | 06:43 | |
*** Luzi has joined #openstack-glance | 07:02 | |
*** mosulica has joined #openstack-glance | 07:02 | |
*** tkajinam_ has quit IRC | 07:14 | |
openstackgerrit | Abhishek Kekane proposed openstack/glance master: Add cache-manage utility using v2 API https://review.openstack.org/626097 | 07:25 |
*** tkajinam has joined #openstack-glance | 07:28 | |
*** tkajinam_ has joined #openstack-glance | 07:29 | |
*** tkajinam has quit IRC | 07:32 | |
*** markvoelker has joined #openstack-glance | 07:40 | |
*** bhagyashris has joined #openstack-glance | 07:59 | |
*** rchurch has quit IRC | 08:09 | |
*** rchurch has joined #openstack-glance | 08:09 | |
*** markvoelker has quit IRC | 08:12 | |
*** awalende has joined #openstack-glance | 08:13 | |
*** tkajinam_ has quit IRC | 08:20 | |
*** markvoelker has joined #openstack-glance | 09:10 | |
*** priteau has joined #openstack-glance | 09:20 | |
*** markvoelker has quit IRC | 09:42 | |
*** awalende has quit IRC | 09:45 | |
*** bhagyashris has quit IRC | 09:47 | |
*** awalende has joined #openstack-glance | 09:47 | |
*** awalende has quit IRC | 09:52 | |
*** awalende has joined #openstack-glance | 09:54 | |
*** abhishekk has quit IRC | 10:27 | |
*** MattMan has quit IRC | 10:29 | |
*** MattMan has joined #openstack-glance | 10:29 | |
*** priteau has quit IRC | 10:33 | |
*** markvoelker has joined #openstack-glance | 10:39 | |
*** brinzhang has quit IRC | 11:10 | |
*** markvoelker has quit IRC | 11:13 | |
*** mosulica has quit IRC | 11:20 | |
*** mosulica has joined #openstack-glance | 11:22 | |
*** zul has joined #openstack-glance | 11:27 | |
*** _alastor_ has joined #openstack-glance | 11:45 | |
*** _alastor_ has quit IRC | 11:50 | |
*** markvoelker has joined #openstack-glance | 12:10 | |
*** Luzi has quit IRC | 12:29 | |
*** lpetrut has joined #openstack-glance | 12:40 | |
*** markvoelker has quit IRC | 12:42 | |
*** ratailor has quit IRC | 12:43 | |
openstackgerrit | Sean McGinnis proposed openstack/glance_store master: Do not raise StopIteration https://review.openstack.org/636194 | 13:11 |
*** Florian has quit IRC | 13:17 | |
*** mosulica has quit IRC | 13:26 | |
*** mosulica has joined #openstack-glance | 13:35 | |
*** markvoelker has joined #openstack-glance | 13:39 | |
*** markvoelker has quit IRC | 14:12 | |
*** _alastor_ has joined #openstack-glance | 14:19 | |
*** lpetrut has quit IRC | 14:39 | |
*** awalende has quit IRC | 14:49 | |
*** markvoelker has joined #openstack-glance | 15:10 | |
*** takamatsu has joined #openstack-glance | 15:10 | |
*** ratailor has joined #openstack-glance | 15:18 | |
*** _alastor_ has quit IRC | 15:19 | |
*** ratailor has quit IRC | 15:30 | |
*** jistr is now known as jistr|mtg | 15:32 | |
*** mosulica has quit IRC | 15:38 | |
*** markvoelker has quit IRC | 15:42 | |
*** jistr|mtg is now known as jistr | 16:04 | |
*** jaypipes is now known as leakypipes | 16:09 | |
*** takamatsu_ has joined #openstack-glance | 16:11 | |
*** takamatsu has quit IRC | 16:12 | |
*** _alastor_ has joined #openstack-glance | 16:14 | |
*** takamatsu_ has quit IRC | 16:25 | |
*** takamatsu_ has joined #openstack-glance | 16:28 | |
*** dims has joined #openstack-glance | 16:34 | |
*** dims has quit IRC | 16:38 | |
*** markvoelker has joined #openstack-glance | 16:39 | |
*** dims has joined #openstack-glance | 16:45 | |
*** Florian has joined #openstack-glance | 16:48 | |
*** belmoreira has quit IRC | 16:51 | |
*** dims has quit IRC | 16:53 | |
*** dims has joined #openstack-glance | 16:55 | |
*** gyee has joined #openstack-glance | 17:01 | |
*** markvoelker has quit IRC | 17:13 | |
*** Sravan has joined #openstack-glance | 17:47 | |
*** markvoelker has joined #openstack-glance | 18:10 | |
*** Florian has quit IRC | 18:14 | |
*** awalende has joined #openstack-glance | 18:30 | |
*** awalende has quit IRC | 18:31 | |
*** awalende has joined #openstack-glance | 18:31 | |
*** awalende has quit IRC | 18:36 | |
*** markvoelker has quit IRC | 18:43 | |
openstackgerrit | Corey Bryant proposed openstack/glance master: add python 3.7 unit test job https://review.openstack.org/637250 | 18:46 |
openstackgerrit | Corey Bryant proposed openstack/glance_store master: add python 3.7 unit test job https://review.openstack.org/637251 | 18:47 |
openstackgerrit | Corey Bryant proposed openstack/python-glanceclient master: add python 3.7 unit test job https://review.openstack.org/637252 | 18:47 |
*** Sravan has quit IRC | 18:51 | |
*** Sravan has joined #openstack-glance | 18:56 | |
*** Florian has joined #openstack-glance | 19:09 | |
*** Sravan has quit IRC | 19:20 | |
*** Sravan has joined #openstack-glance | 19:23 | |
*** gyee has quit IRC | 19:32 | |
*** Sravan has quit IRC | 19:33 | |
*** Sravan has joined #openstack-glance | 19:34 | |
*** markvoelker has joined #openstack-glance | 19:41 | |
*** Sravan has quit IRC | 19:45 | |
*** gyee has joined #openstack-glance | 19:46 | |
*** Sravan has joined #openstack-glance | 19:46 | |
*** Sravan has quit IRC | 19:58 | |
*** Sravan has joined #openstack-glance | 20:01 | |
*** awalende has joined #openstack-glance | 20:01 | |
-openstackstatus- NOTICE: The StoryBoard service on storyboard.openstack.org is offline momentarily for maintenance: http://lists.openstack.org/pipermail/openstack-discuss/2019-February/002666.html | 20:03 | |
*** markvoelker has quit IRC | 20:13 | |
*** itlinux has joined #openstack-glance | 20:31 | |
*** itlinux has quit IRC | 20:34 | |
*** itlinux has joined #openstack-glance | 20:38 | |
*** Sravan has quit IRC | 20:46 | |
*** Florian has quit IRC | 20:56 | |
*** markvoelker has joined #openstack-glance | 21:10 | |
*** markvoelker has quit IRC | 21:43 | |
*** awalende has quit IRC | 21:56 | |
*** awalende has joined #openstack-glance | 21:57 | |
*** awalende has quit IRC | 22:01 | |
*** itlinux has quit IRC | 22:12 | |
*** awalende has joined #openstack-glance | 22:18 | |
*** Sravan has joined #openstack-glance | 22:20 | |
*** markvoelker has joined #openstack-glance | 22:40 | |
*** itlinux has joined #openstack-glance | 22:42 | |
*** awalende has quit IRC | 22:46 | |
*** awalende has joined #openstack-glance | 22:47 | |
*** awalende has quit IRC | 22:51 | |
*** itlinux has quit IRC | 22:54 | |
*** itlinux has joined #openstack-glance | 22:55 | |
*** markvoelker has quit IRC | 23:13 | |
*** itlinux has quit IRC | 23:17 | |
*** takamatsu_ has quit IRC | 23:29 | |
*** Florian has joined #openstack-glance | 23:38 | |
*** gyee has quit IRC | 23:50 | |
*** Sravan has quit IRC | 23:52 | |
*** gyee has joined #openstack-glance | 23:54 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!