Friday, 2019-02-15

*** markvoelker has joined #openstack-glance00:09
*** Sravan has joined #openstack-glance00:09
*** _alastor_ has quit IRC00:31
*** gyee has quit IRC00:41
*** markvoelker has quit IRC00:42
*** Florian has joined #openstack-glance00:46
*** Sravan has quit IRC00:59
*** Sravan has joined #openstack-glance01:02
*** Sravan has quit IRC01:07
*** brinzhang has joined #openstack-glance01:28
*** _alastor_ has joined #openstack-glance01:33
*** zul has quit IRC01:37
*** _alastor_ has quit IRC01:38
*** markvoelker has joined #openstack-glance01:39
*** sapd1_ has joined #openstack-glance01: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
rosmaitasapd1_: i don't think there's a way to  upload to more than 1 backend at once01: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
rosmaitasapd1_: 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 locations01:54
rosmaitabut i don't know as much about ceph as i should, there could be another way01: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
rosmaitathe api call is https://developer.openstack.org/api-ref/image/v2/?expanded=update-image-detail#update-image02:09
rosmaitabut it only works if glance is configured to show locations02:09
*** markvoelker has quit IRC02:12
sapd1_rosmaita: yeah. I have already configured show locations.02:17
sapd1_rosmaita:  seem like we don't have option in python-glanceclient02:17
brinzhangsapd1_: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
brinzhangYeah, if you want use the COW feature of ceph, my doubts are invalid :)02:54
sapd1_brinzhang: I'm testing multiple locations as rosmaita mentioned02: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 location03:05
rosmaitacan 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-glance03:09
*** priteau has joined #openstack-glance03:16
*** priteau has quit IRC03: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#L29403: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
rosmaitai'm pretty sure the path should be a string03:27
rosmaitathis may help: https://specs.openstack.org/openstack/glance-specs/specs/api/v2/http-patch-image-api-v2.html03:28
sapd1_rosmaita:  http://paste.openstack.org/show/745132/03:31
sapd1_this is my request03:31
rosmaitathat looks ok03:34
rosmaitado 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#L29903:35
sapd1_as you can see. It compares with 'locations' with first entity in path03: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#L171603:40
rosmaitathose controller tests are dealing with what you have after the request deserializer processes the request body03:43
*** markvoelker has quit IRC03:43
sapd1_rosmaita: So why I use path string is not work.03:46
sapd1_It returns invalid locations03:46
rosmaitasapd1_: 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-glance04:18
sapd1_rosmaita: yeah. When using multi store, We can't use multiple locatiosn04:26
rosmaitai think you need to include the store in the location metadata04:27
sapd1_rosmaita: http://paste.openstack.org/show/745133/04:28
rosmaitawhat did you request body look like for that request?04:29
*** Sravan has joined #openstack-glance04:33
rosmaitasapd1_: The 400 you are seeing is coming from https://github.com/openstack/glance/blob/stable/rocky/glance/location.py#L11704:34
rosmaitayou are right that if you have multiple backends enabled, you need to specify the backend in the location metadata04:34
rosmaitasomething 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
rosmaitayou don't need the "added": "true" (but it won't hurt either)04:36
rosmaitathat was leftover from some testing04:36
*** Sravan has quit IRC04:37
*** markvoelker has joined #openstack-glance04:40
sapd1_rosmaita: It doesn't work04:41
rosmaitabummer04:41
rosmaitasapd1_: what time zone are you in?04:42
sapd1_GMT+704:42
sapd1_and you04:42
rosmaitaGMT-504:42
sapd1_rosmaita: request body: http://paste.openstack.org/show/745134/04:42
sapd1_rosmaita: It's midnight04:43
rosmaitayeah, 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 code04:44
rosmaitaactually, he should be around now04:45
rosmaitaabhishekk: ^^04:45
abhishekkrosmaita, ack04: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
rosmaitai will let you 2 discuss ... good night!04:46
abhishekksapd1_, just gi ve me a minute04:46
*** rosmaita has left #openstack-glance04:47
abhishekkhttps://review.openstack.org/618932 and https://review.openstack.org/61893304:47
abhishekkhave a look at these two patches, I guess these will help you04:47
sapd1_abhishekk: So they have not merged yet.04:49
abhishekksapd1_, 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 well04:51
sapd1_abhishekk: thankyou. :D04:51
abhishekksapd1_, welcome04:53
abhishekkI hope after applying these patches it will work, it worked for me04:53
sapd1_I'm testing multiple ceph cluster with openstack. So If I finish, I will try these patches.04:54
abhishekksapd1_, great,04:55
abhishekksapd1_, I have tested create and import operations with 2 ceph, 2 swift and 2 fs backends (total 6)04:56
abhishekksapd1_, https://etherpad.openstack.org/p/multi-store-scenarios04:57
abhishekkif you find any other scenarios could you please record those in it?04:57
abhishekkI forgot it's midnight at your end, good night04:58
sapd1_abhishekk: It's lunch time. in my time zone. :D04:59
abhishekksapd1_, :D, enjoy your lunch04:59
openstackgerritAbhishek Kekane proposed openstack/glance-specs master: Spec Lite: Rethinking our filesystem access  https://review.openstack.org/60558405:03
*** ratailor has joined #openstack-glance05:05
*** markvoelker has quit IRC05:12
*** Sravan has joined #openstack-glance05:25
*** Sravan has quit IRC05:30
*** Sravan has joined #openstack-glance05:30
*** Sravan has quit IRC05:47
*** Sravan has joined #openstack-glance05:48
*** Sravan has quit IRC05:52
*** Sravan has joined #openstack-glance05:55
*** markvoelker has joined #openstack-glance06:09
*** eandersson has quit IRC06:12
*** Sravan has quit IRC06:13
*** eandersson has joined #openstack-glance06:13
*** eandersson has quit IRC06:13
*** eandersson has joined #openstack-glance06:14
*** Sravan has joined #openstack-glance06:17
*** Sravan has quit IRC06:27
openstackgerritAbhishek Kekane proposed openstack/glance master: Rethinking filesystem access for tasks and staging API  https://review.openstack.org/61125306:28
*** Sravan has joined #openstack-glance06:28
*** tkajinam_ has joined #openstack-glance06:33
*** tkajinam has quit IRC06:35
*** Sravan has quit IRC06:39
*** Sravan has joined #openstack-glance06:41
*** markvoelker has quit IRC06:43
*** Sravan has quit IRC06:43
*** Luzi has joined #openstack-glance07:02
*** mosulica has joined #openstack-glance07:02
*** tkajinam_ has quit IRC07:14
openstackgerritAbhishek Kekane proposed openstack/glance master: Add cache-manage utility using v2 API  https://review.openstack.org/62609707:25
*** tkajinam has joined #openstack-glance07:28
*** tkajinam_ has joined #openstack-glance07:29
*** tkajinam has quit IRC07:32
*** markvoelker has joined #openstack-glance07:40
*** bhagyashris has joined #openstack-glance07:59
*** rchurch has quit IRC08:09
*** rchurch has joined #openstack-glance08:09
*** markvoelker has quit IRC08:12
*** awalende has joined #openstack-glance08:13
*** tkajinam_ has quit IRC08:20
*** markvoelker has joined #openstack-glance09:10
*** priteau has joined #openstack-glance09:20
*** markvoelker has quit IRC09:42
*** awalende has quit IRC09:45
*** bhagyashris has quit IRC09:47
*** awalende has joined #openstack-glance09:47
*** awalende has quit IRC09:52
*** awalende has joined #openstack-glance09:54
*** abhishekk has quit IRC10:27
*** MattMan has quit IRC10:29
*** MattMan has joined #openstack-glance10:29
*** priteau has quit IRC10:33
*** markvoelker has joined #openstack-glance10:39
*** brinzhang has quit IRC11:10
*** markvoelker has quit IRC11:13
*** mosulica has quit IRC11:20
*** mosulica has joined #openstack-glance11:22
*** zul has joined #openstack-glance11:27
*** _alastor_ has joined #openstack-glance11:45
*** _alastor_ has quit IRC11:50
*** markvoelker has joined #openstack-glance12:10
*** Luzi has quit IRC12:29
*** lpetrut has joined #openstack-glance12:40
*** markvoelker has quit IRC12:42
*** ratailor has quit IRC12:43
openstackgerritSean McGinnis proposed openstack/glance_store master: Do not raise StopIteration  https://review.openstack.org/63619413:11
*** Florian has quit IRC13:17
*** mosulica has quit IRC13:26
*** mosulica has joined #openstack-glance13:35
*** markvoelker has joined #openstack-glance13:39
*** markvoelker has quit IRC14:12
*** _alastor_ has joined #openstack-glance14:19
*** lpetrut has quit IRC14:39
*** awalende has quit IRC14:49
*** markvoelker has joined #openstack-glance15:10
*** takamatsu has joined #openstack-glance15:10
*** ratailor has joined #openstack-glance15:18
*** _alastor_ has quit IRC15:19
*** ratailor has quit IRC15:30
*** jistr is now known as jistr|mtg15:32
*** mosulica has quit IRC15:38
*** markvoelker has quit IRC15:42
*** jistr|mtg is now known as jistr16:04
*** jaypipes is now known as leakypipes16:09
*** takamatsu_ has joined #openstack-glance16:11
*** takamatsu has quit IRC16:12
*** _alastor_ has joined #openstack-glance16:14
*** takamatsu_ has quit IRC16:25
*** takamatsu_ has joined #openstack-glance16:28
*** dims has joined #openstack-glance16:34
*** dims has quit IRC16:38
*** markvoelker has joined #openstack-glance16:39
*** dims has joined #openstack-glance16:45
*** Florian has joined #openstack-glance16:48
*** belmoreira has quit IRC16:51
*** dims has quit IRC16:53
*** dims has joined #openstack-glance16:55
*** gyee has joined #openstack-glance17:01
*** markvoelker has quit IRC17:13
*** Sravan has joined #openstack-glance17:47
*** markvoelker has joined #openstack-glance18:10
*** Florian has quit IRC18:14
*** awalende has joined #openstack-glance18:30
*** awalende has quit IRC18:31
*** awalende has joined #openstack-glance18:31
*** awalende has quit IRC18:36
*** markvoelker has quit IRC18:43
openstackgerritCorey Bryant proposed openstack/glance master: add python 3.7 unit test job  https://review.openstack.org/63725018:46
openstackgerritCorey Bryant proposed openstack/glance_store master: add python 3.7 unit test job  https://review.openstack.org/63725118:47
openstackgerritCorey Bryant proposed openstack/python-glanceclient master: add python 3.7 unit test job  https://review.openstack.org/63725218:47
*** Sravan has quit IRC18:51
*** Sravan has joined #openstack-glance18:56
*** Florian has joined #openstack-glance19:09
*** Sravan has quit IRC19:20
*** Sravan has joined #openstack-glance19:23
*** gyee has quit IRC19:32
*** Sravan has quit IRC19:33
*** Sravan has joined #openstack-glance19:34
*** markvoelker has joined #openstack-glance19:41
*** Sravan has quit IRC19:45
*** gyee has joined #openstack-glance19:46
*** Sravan has joined #openstack-glance19:46
*** Sravan has quit IRC19:58
*** Sravan has joined #openstack-glance20:01
*** awalende has joined #openstack-glance20: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.html20:03
*** markvoelker has quit IRC20:13
*** itlinux has joined #openstack-glance20:31
*** itlinux has quit IRC20:34
*** itlinux has joined #openstack-glance20:38
*** Sravan has quit IRC20:46
*** Florian has quit IRC20:56
*** markvoelker has joined #openstack-glance21:10
*** markvoelker has quit IRC21:43
*** awalende has quit IRC21:56
*** awalende has joined #openstack-glance21:57
*** awalende has quit IRC22:01
*** itlinux has quit IRC22:12
*** awalende has joined #openstack-glance22:18
*** Sravan has joined #openstack-glance22:20
*** markvoelker has joined #openstack-glance22:40
*** itlinux has joined #openstack-glance22:42
*** awalende has quit IRC22:46
*** awalende has joined #openstack-glance22:47
*** awalende has quit IRC22:51
*** itlinux has quit IRC22:54
*** itlinux has joined #openstack-glance22:55
*** markvoelker has quit IRC23:13
*** itlinux has quit IRC23:17
*** takamatsu_ has quit IRC23:29
*** Florian has joined #openstack-glance23:38
*** gyee has quit IRC23:50
*** Sravan has quit IRC23:52
*** gyee has joined #openstack-glance23:54

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!