14:00:35 #startmeeting glance 14:00:35 Meeting started Thu Jul 23 14:00:35 2015 UTC and is due to finish in 60 minutes. The chair is nikhil_k. Information about MeetBot at http://wiki.debian.org/MeetBot. 14:00:36 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 14:00:38 The meeting name has been set to 'glance' 14:00:39 o/ 14:00:42 o/ 14:00:45 o/ 14:00:46 #topic agenda 14:00:48 o/ 14:00:50 o/ 14:00:55 #link https://etherpad.openstack.org/p/glance-team-meeting-agenda 14:01:20 o/ 14:01:57 o/ 14:02:01 o/ 14:02:09 o/ 14:02:15 o/ 14:02:16 (ish) 14:02:26 really bad internet connection where I'm at right now 14:03:19 o/ 14:03:20 Thanks all for joining 14:03:32 #topic Updates 14:03:38 #info mid-cycle 14:03:40 #link https://etherpad.openstack.org/p/liberty-glance-mid-cycle-meetup 14:04:10 #info We will do a video+audio conf with co-located midcycle 14:04:24 awesome 14:04:28 #info This would be our virtual meetup too 14:04:38 is the info for that on the etherpad? 14:04:46 #action all: please add your name timezone info against the session interested in 14:04:53 I'll try to be on-line... you know, TZs 14:05:04 flaper87: ^ 14:05:23 We have it spread over 3 days for remote convenience 14:05:42 So that people from different tz can find it easier to get some face to face time 14:06:07 For the rest of period we will do brainstorming + fun activities if not usual work 14:07:03 o/ 14:08:11 Would having some v3 discussion be worthwhile? 14:08:36 sure, I have to add some more sessions. 14:08:58 mclaren: it would be most likely on thursday 30th 14:09:38 ok, cool. (Hopefully remote will work out ok for ativelkov and mfedosin) 14:10:01 we have a good Internet connection, so yes :) 14:11:32 So, to help schedule the time please add some tz info against your name on each topic interested. Also, if you have conflicts at specfic times/days that would help 14:11:42 good morning 14:12:04 moving on 14:12:21 #topic Glance Registry v2 and RPC calls 14:12:24 flaper87: ^ 14:12:29 thats me 14:12:34 still digging through rolling upgrade issues, need some clarification 14:12:53 do I understand correctly that registry-v2 service is not required in my setup to have fully working Glance? 14:13:06 correct 14:13:09 it's just used as an optional component in api for accesing data from the database using RPC calls instead of direct access to the database 14:13:13 and despite registry service there are no other RPC communication in the Glance at all, right? 14:13:43 yep 14:14:07 krykowski: there's a possibility of rpc conn when using tasks (that's optional too) 14:14:28 great news, so I guess it will help a lot in performing rolling upgrades in Glance as we can setup only glance-api 14:15:02 krykowski: in case of tasks, you can setup a set of glance-tasks nodes 14:15:33 krykowski: I think it's great someone is thinking about rolling upgrades, it's an important consideration, which maybe hasn't got the attention it deserves 14:15:43 However, I think in that particular case I would think we don't need migration 14:15:46 o/ 14:15:48 woah, is it documented anywhere so I can get a better understanding of it? 14:16:08 I mean the glance-tasks service 14:16:13 nope, because that happens proxy via taskflow 14:16:25 krykowski: obviously that means that you can actually consume v2 API only as v1 API still needs the registry 14:16:55 krykowski: we can chat offline on that or better yet do it in the mid-cycle and identify if we are not going to touch tasks db-schema 14:18:00 flaper87: wanted to do some on the task info, but I think it would be a bad experience for a public cloud given the info fields can be gigantic 14:18:17 that was a tentative hint on the migration though 14:18:53 nikhil_k: oh I didn't want to do something on that, I was more asking why we had it 14:19:10 flaper87: hush, glad to hear it 14:19:36 two conflicting qually qualified use cases for that migration would be a nightmare 14:19:53 equally* 14:21:06 krykowski: do you have more questions? 14:21:33 nikhil_k: will ping you later about the tasks to better understand it 14:21:39 nikhil_k: for now I'm fine 14:21:52 thanks 14:21:54 #topic api requests and the req-body 14:22:02 bunting: ^ 14:22:43 Yeah, i am working on a bug, where if you provide a body to a http request when the api does not expect it it 500s 14:22:59 I am wondering what the expected responce should be 14:23:11 to ignore the body or return some error 14:23:18 bunting: you have a link for that bug? 14:23:29 https://bugs.launchpad.net/glance/+bug/1475647 14:23:31 Launchpad bug 1475647 in Glance "Returns 500 if a body is included where not expected" [Undecided,New] - Assigned to Niall Bunting (niall-bunting) 14:24:04 kragniz: you had some wisdom on this? 14:24:44 bunting: it's bad sematics to pass the body on verbs that ideally don't expect them 14:24:55 bunting: but it's possible nonetheless 14:24:57 mclaren: not so much, people seem to be split on what to do in this situation on other projects 14:25:11 sigmavirus24: would probably have a good idea 14:25:31 so 14:25:37 nikhil_k: Yeah, i imagine it is never a good idea to go down unexpected paths, as it could lead to future exploits or something 14:25:42 500 means the server fubar'd when what we want is to say "That was a bad request" 14:25:45 bunting: so, I think the wsgi wrapper is possible not expecting that 14:26:14 sigmavirus24: we certainly want to change it from a 500 14:26:19 ++ 14:26:20 ok, from memory, it's impossible for us not to read in the full body (wsgi will always read it in) 14:26:24 That said, I looked at the review that bunting did for that bug and it looks like they were preventing against going down paths where we are expecting a body 14:26:29 mclaren: correct 14:26:37 mclaren: right, because wsgi is terrible and everything should be written in Java ;) 14:26:50 so we can either read it in and return 400 or read it in and ignore it 14:27:03 * jokke_ send cruise missile towards sigmavirus24's general location 14:27:08 I think body is read uptil a buffer before processing the api req 14:27:39 Ah so that bug is different from the review I saw 14:27:40 sigmavirus24: not Java ... [insert latest hipster language of your choice] ;-) 14:27:48 mclaren: Java is Enterprise 14:27:52 So for a GET like that 14:27:56 I would say ignore it 14:28:05 I do not agree 14:28:06 Ignore it and return a 200 even if that is a bad request 14:28:18 we should fain, not ignore for malformed requests 14:28:26 fail even 14:28:27 well, we need to validate the body and not just ignore it 14:28:39 I think ignoring it is probably consistent with some current requests that don't return 500 14:28:41 because it can be a dos possibility 14:28:44 So GETs are /allowed/ to have bodies but semantically they have no meaning 14:29:17 jokke_: so considering the RFCs around this, I would say that ignoring a body in a GET is perfectly valid 14:29:28 And in fact a load balancer/proxy would strip it out entirely if Glance were running behind it 14:29:34 actually we should detect body, not read all of it -- that is a way of denial of service, quick say malformed. 14:29:46 malini_: we don't have that option, as I mentioned 14:29:54 malini_: we can't do that with the wsgi layer 14:30:02 not yet 14:30:18 the library that glance is wrapped in will helpfully read in the entire body (that's out of our control currently) 14:30:46 nikhil_k: is there a plan to change something there? 14:31:01 but I agree, this is out of scope for glance given proxies can handle such validation 14:31:31 mclaren: nothing yet, some features are using wsme 14:31:47 I guess maybe pinging other projects to see if there is any rough consensus on unexpected bodies in openstack couldn't hurt 14:32:00 good cpl topic jokke_ 14:32:18 bunting: ^ 14:32:37 mclaren: already talking in #openstack-api about this 14:32:54 cool 14:32:55 nikhil_k: so I wouldn't say that in order to run glance you need a proxy 14:33:07 That's certainly not something we've ever stated as being part of the ref architecture 14:33:24 I'm merely pointing out that if someone *were* running glance behind such a service, they'd never see a 500 14:33:28 And we can behave the same way 14:33:33 sigmavirus24: yep, we can't madate it but it's out of scope for various reasons and having a proxy is good practice for other reasons too 14:33:52 Because it's reasonable as defined by the semantics in RFC 723[0-5] (because I can't remember specifically which) 14:34:11 like auth groups, endpoint validation, other custom headers validations 14:34:44 Sure, but we should still DTRT here 14:34:51 nikhil_k: we shouldn't assume people are running glance behind a proxy, though 14:34:51 btw, everyone: it's already on the CPL meeting agenda next week jokke_ mclaren bunting sigmavirus24 #link https://wiki.openstack.org/wiki/Meetings/CrossProjectMeeting 14:35:17 #link https://review.openstack.org/#/c/184358/ 14:35:22 good, so lets postpone any further discussion until we hear wider consensus? 14:35:34 it's a good practice is all I have to say 14:36:43 Getting consensus from the other projects seems the best course of action for me 14:37:04 bunting: do you mind starting a ML thread before that? 14:37:06 nikhil_k: do you know the CPL meeting room/time by chance? 14:37:31 sigmavirus24: Tuesdays @ #openstack-meeting 2100UTC (Weekly for 1 hour) 14:37:48 so elastic search api allows body in GET requests. So may be it's important in searchlight :) 14:37:50 https://www.elastic.co/guide/en/elasticsearch/reference/1.6/search-request-body.html 14:38:10 sabari: yeah, it's bit different yet imp case ;) 14:38:17 sabari: Good example 14:38:29 Anyways, we should move one for now 14:38:32 agreed 14:38:36 #topic Reviews, Bugs and Releases 14:38:56 #info Prevent glance-api hangups during connection to rbd 14:39:07 it's mine 14:39:08 #link https://review.openstack.org/#/c/200554/ 14:39:21 mfedosin: no it's ours =P You contributed it to the community ;) 14:39:28 haha 14:39:44 sigmavirus24, my topic 14:39:56 not a bug :) 14:39:58 nikhil_k: I will 14:40:05 flaper87, some time ago I mentioned about hangups in ceph 14:40:13 nikhil_k: we need creative commons license header to the agenda etherpad :P 14:40:20 so the solution is obvious 14:40:40 don't use it? 14:40:43 let's add licences in commit messages 14:40:54 jokke_: lol 14:41:06 jokke_: harsh 14:41:11 Solution to hangups in ceph is to add licenses to commit messages... interesting 14:41:19 Ceph truly is a mysterious and glorious beast 14:41:20 =P 14:41:45 sigmavirus24, stop trolling me :) 14:42:05 I'm laughing and can't write 14:42:23 so I have two questions about the commit 14:42:34 should I add some unit tests there 14:42:54 and should I add retries in our rbd driver? 14:43:29 folks in cinder do it not a long time ago 14:43:41 https://review.openstack.org/#/c/190579/8 14:46:29 mfedosin: +1 on unit tests 14:46:33 +1 for unit tests. I think retrying connection is a good idea. 14:46:54 mfedosin: I'd say yes on a retry, but I like retries 14:46:54 I am not too sure about retries and if, how many. May be ask on operators channel 14:46:55 sabari, it can be another commit 14:47:12 0 for the unit tests +1 for the retry, but I'm not convinced if the retry should happen on this change 14:47:45 the vmware store has a vmware_api_retry_count 14:47:54 we have retries for the swift store, also 14:48:03 but ceph doesn't 14:49:03 I think it's one of those things that would be nice to have, but it really does not fix this bug so I don't think it should be done in this change ;) 14:49:40 so I'm going to add some unit test on that change 14:49:47 kragniz: did we merge swift retries? 14:49:49 I forget now 14:49:49 jokke_ agree. 14:49:50 and then will try add reties 14:49:59 mfedosin: maybe add retries as off by default? 14:50:00 sigmavirus24, yes 14:50:06 sigmavirus24: before my time 14:50:28 mfedosin, most such things have timeout interval and # of retries, and sensible defaults 14:50:47 sigmavirus24, agree. they can be switched off by default, but can be configured 14:50:58 mfedosin: also, maybe if cinder and glance are doing rbd things like this, there will be other places this is necessary and it will be worth an oslo.rbd library =P 14:51:11 sigmavirus24: https://github.com/openstack/glance_store/blob/master/glance_store/_drivers/swift/store.py#L122-L124 14:51:20 kragniz: ah, I thought you had something to do with swift retries last cycle but I'm probably forgetting 14:51:46 sigmavirus24: I did, that was about a sleep and backoff between retries 14:52:13 sigmavirus24, btw oslo.rbd is not a bad idea, it prevents serious code duplication 14:52:35 mfedosin: we should mention it at the oslo meeting on Monday 14:52:48 It'll have to go through the incubator first probably, but that's fine 14:52:50 sigmavirus24, when will it be? 14:53:06 mfedosin: sigmavirus24: if you create a core team with who ever you want, either glance or cinder can own the git repo too 14:53:13 dims_: ooo 14:53:20 dims_: why not both? =P 14:53:35 dims_: do you have oslo on highlight or something? :P 14:53:44 sigmavirus24: one git repo goes into one project in the governance repo 14:53:49 kragniz: yep :) 14:53:57 mfedosin: http://eavesdrop.openstack.org/#Oslo_Team_Meeting 14:54:15 how much code could we remove from our rdb driver, though? 14:54:15 practically it does not matter which project owns it as long as folks from both projects are on the core 14:54:17 okay, I'm going to be there 14:54:24 there's the rdb uri parsing 14:54:54 btw, next review is #link https://review.openstack.org/#/c/203679/ 14:55:00 I guess there's all the connection stuff, actually 14:55:05 any last min objections? 14:55:08 yeah, let's move on 14:55:40 +1. It helped a lot to have oslo.vmware in case of the vmware store driver. 14:56:19 nothing, we can +A that one then 14:56:28 #topic Open Discussion 14:57:10 Next week's irc weekly-meeting is cancelled 14:57:20 How about https://review.openstack.org/#/c/181347/ ? 14:57:29 I think this needs a migration change too. 14:57:49 flaper87: ^ 14:58:22 https://review.openstack.org/#/c/194868/ and this would like +2, we are making good progress on implementation 14:58:36 yep, it needs data correction on the existing old deployments 14:59:16 but it's gone now to contradict given that it merged in oslo.db 14:59:33 I'm tempted to block that merge 14:59:43 put a -1 comment in 14:59:53 and there is lots of those what I flagged 14:59:58 jokke_: we had deprecated the config a while back 15:00:05 nikhil_k: https://review.openstack.org/#/c/75898/7 has all history 15:00:21 nikhil_k: I mean that flake8 change 15:00:25 you just approved 15:00:32 jokke_: ohk 15:00:36 so I think may be we should fix this for newer deployments and error out on older if they haven't fixed thier tables to utf8 15:00:59 mclaren: also +Aed it 15:01:05 jokke_: what do you want us to do? 15:01:27 lets continue on -glance we're out of time 15:01:47 Thanks all 15:01:50 nikhil_k: I have a request to review https://review.openstack.org/#/c/190895/ 15:01:50 bye everyone! 15:02:02 shalq: on #openstack-glance please 15:02:05 #endmeeting