14:00:34 #startmeeting glance 14:00:35 Meeting started Thu May 8 14:00:34 2014 UTC and is due to finish in 60 minutes. The chair is markwash. 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:52 o/ all 14:01:00 0/ 14:01:05 howdy 14:02:32 o/ 14:03:16 I've posted my proposed agenda at the top of https://etherpad.openstack.org/p/glance-team-meeting-agenda 14:03:49 I'll go ahead and roll through my few announcements as people continue to come in 14:03:52 #topic announcements 14:04:04 o/ 14:04:27 Fei Long won't be making it to the summit unfortunately. So I pulled his sessions. Flavio has volunteered to lead his signed-images session. 14:05:33 o/ 14:05:33 hmm, I guess that's my only announcement 14:05:49 Anybody else have notices or announcements for the rest of us? 14:05:56 o/ 14:06:19 everybody shout at once, if so 14:06:29 I can do a shameless plug for a late summit slot 14:06:29 markwash: so for the last session, i will have more time to discuss my ideas, am i right? 14:07:03 zhiyan: yeah, that's my thought, just give you the full session slot 14:07:24 zhiyan: is that okay with you? 14:07:31 markwash: thanks, tbh, i'd like to try to get a basic agreement on "indexing" feature 14:07:58 mclaren: yeah tell us about the cinder session 14:08:03 ok 14:08:08 this session http://junodesignsummit.sched.org/event/f9073c8f8e10731c299fab98eb67ba59#.U2tGv-Z0y1s 14:08:10 o/ 14:08:13 1. common functional api 2. poke fs, 3. indexing implementation 14:08:23 is down as a cinder slot but it should be of interest to glance folks 14:08:48 Its the last slot on the Friday 14:09:10 I am sad I will miss it 14:09:20 (and of interest to keystone/swift folks too I think) 14:09:46 we're sad too markwash 14:09:52 okay all of that sounds good 14:09:56 #topic checkin on summit 14:10:02 I guess we already started this checkin 14:10:18 does anybody have any last minute questions or issues, or is there something you need me to do for you? 14:10:47 I've updated the artifacts' session etherpad, just wanted to check if it is ok 14:11:08 #link https://etherpad.openstack.org/p/juno-hot-artifacts-repository-finalize-design 14:11:47 markwash: did you get a chance to talk to randall? 14:11:51 oh, seems one session slot is a little short ... 14:12:02 arnaud: eek no I did not 14:12:25 I've been a release blocker locally for the past week. so I've been very heads-down unfortunately 14:12:35 ativelkov: we might want to double check that he is ok sharing the session before the session 14:12:36 :) 14:12:46 haha no let's surprise him! 14:13:00 :) 14:13:12 I'll send an email now or immediately after this meeting 14:13:37 ok sounds good thanks 14:15:16 okay 14:15:22 let's talk artifacts 14:15:26 #topic artifacts design 14:15:36 I hope folks have had more of a chance to review the docs (I did!) 14:16:29 ativelkov: any notes for us before we start jumping into feedback at random? 14:16:52 Not now, I think ) Waiting for feedback 14:17:18 i did but tbh, besides my comments, i still have some question around the details. 14:18:32 my feedback is centered around the pain points I feel we suffer with images 14:18:49 ativelkov: btw, may i know does the api design part ready now? 14:19:13 mostly I have seen "status" being more of a hindrance (UX and bugs) than a helpful feedback mechanism 14:19:34 zhiyan: still in progress. Will try to have something at the summit 14:19:53 ok, got it. ativelkov thanks 14:19:59 so personally I would prefer we drop status altogether 14:20:09 also, membership for sharing was never very good 14:20:16 I prefer the swift / s3 model of sharing 14:20:22 i.e. you share a bucket of things 14:20:33 markwash: but how will we be able to differentiate the lifecycle state then? 14:20:50 ativelkov: part of getting rid of status is making the lifecycle basically a binary state 14:20:57 i.e. {exists, does-not-exist} 14:21:48 This is fine when you import the artifact, but what about uploading the blobs one-by-one, creating dependencies etc? 14:22:23 ativelkov: its a good question. is it possible to upload them in a dependencies-first order? 14:23:10 Yes, it should be 14:23:42 So you want the artifact creation to be an atomic operation? 14:24:14 I think so 14:24:29 markwash: what about inactivating artifacts? 14:24:38 rosmaita: okay there is that one use case 14:24:58 markwash: also pending delete 14:25:03 rosmaita: but if we didn't have status, could we just have a system property "deactivated: " ? 14:25:25 rosmaita: -1 pending delete 14:25:44 * markwash tries to be less heavy handed 14:25:51 I don't know how can we make uploading of multiple blobs to be atomic unless we do an archive upload (i.e. the import operation) 14:25:52 markwash: will have to think, don't want a proliferation of boolean properties for all cases 14:26:02 let's talk about other ways to accomplish the pending_delete use case 14:26:40 i'm just wondering whether if we ditch status, we'll wind up recreating it by a bunch of disparate properties 14:26:51 Well, we can delete the artifact record from the database at once, but create a rabbit message (or whatever it is in Oslo messaging) to schedule a background deletion 14:27:14 rosmaita: yeah that would be worse 14:27:15 so, while the artifact is being deleted there is no record in DB already 14:27:29 can we leverage existing scurbber to do pending-delete? 14:27:42 so pending-delete is about recovery right? 14:27:54 i was just thinking of it as a status 14:27:58 off the top of my head 14:28:03 one reason for recovery, but more for performance i think 14:28:20 but you have the other direction, like ativelkov says, uploading stuff 14:28:31 rosmaita: +1 14:28:35 you might want the glance records first in queued status and then upload the data 14:28:39 pending-delete is just about a background worker doing the deletion 14:28:39 just an idea 14:29:03 if its just about doing deletion asynchronously then I think it doesn't need to touch the api 14:29:29 I think if we want it to touch the api, we need to take a more shadow-table-like approach 14:29:49 b/c IMO deleted objects that are waiting to be expunged have a different schema than regular objects 14:29:53 i am confusing things, i was thinking of pending delete as a user-exposed state indicating that you could still undelete 14:30:14 rosmaita: I think that's another use case that we should address 14:30:27 rosmaita: I just want to see it separate from the main artifact listing 14:30:42 ok 14:31:25 what I value very highly is this: all artifacts you normally list are *usable* right in that moment 14:31:36 What is the problem with having the state, btw? 14:31:59 if you have another use case (like: I want to recover artifacts I deleted by mistake) you don't find them by doing the regular list operation 14:32:02 markwash: +1, but we could address that by default image-list filtering 14:32:21 I just expected the regular list operation to return only READY artifacts 14:32:26 by default, I mean 14:32:37 ativelkov: +1 14:32:44 rosmaita: agreed. and we should only allow end user recover "pending_delete" artifacts 14:33:03 I have a bad feeling about default filter values 14:33:25 what's the problem with them? 14:33:25 I can come up with concrete cases where they fall down 14:33:44 at the moment I can only speak about it a bit abstractly 14:33:55 the problem with them is the overlap of defaults 14:34:10 i think changing status to {exist, !exist} needs in-person discussion at the summit 14:34:22 namely, when you have one filter flag that is set explicitly, you start to want to have different defaults for other fields as well 14:34:25 I've put it to the agenda 14:34:34 take is_public for example 14:34:54 the default is actually "is_public=True || owner == me || is_shared_with_me" 14:35:03 this is an incredibly complex default to express in http filter parameters 14:35:21 and now suppose we add in "status == pending_delete" 14:35:31 do you want to see shared images that are pending delete? public ones? 14:36:04 (just an idea) may be we have a different list calls for different use cases? 14:36:15 +1 14:36:37 ativelkov: I like that idea. actually I think its very similar to what I'm advocating 14:36:41 say "list my artifacts drafts" (some default set), "list artifacts I may use" (another set), "list artifacts I own" (third set) 14:36:54 maybe we can just def a default filter value for each field ? humm 14:37:23 i don't understand the problem, is it just an http query string complexity issue? 14:37:32 i mean, you have to decide what the default will be anyway 14:37:45 e.g., we ignore architecture 14:37:47 rosmaita: filters work great when the default is "not filtered on this parameter" 14:38:03 gotcha 14:38:32 maybe glanceclient can help this 14:38:48 the principle we're advocating when we say "use filters + defaults" is that we have some field of use cases, and we will cover it by providing some eigenvectors the user can leverage 14:38:49 glanceclient itself needs help! 14:38:57 markwash: don't we want to try to be as much as possible consistent with the way other openstack projects deal with listing things? from my pov, having a different list operation per filter is a nogo 14:39:06 hehe, it's true 14:39:16 arnaud: excellent point 14:39:50 arnaud: I think we can frame this consistently with other projects 14:40:06 zhiyan: but seriously, i worry about hiding too much in the client 14:40:32 in rest the way you have a different list operation is by having a different endpoint right? 14:40:40 well, the client may just provide aliases for different defaults 14:41:08 so for pending delete, we have a different endpoint that represents the list of artifacts that are going to be deleted 14:41:49 well, in rest different endpoints usually mean different resource types 14:42:21 I also don't like the idea that we need to make really complex design decisions just to stay consistent with rest of the projects ... it's almost like saying that there needs to be only one api for all projects and the functionality needs to be hidden within it no matter what. 14:42:32 yes. but again, shadow tables have different schemas. . type(deleted_X) is different from type(X) 14:43:29 jokke_: my point is not about the internal design but more about the api (what the user will see/use/is used to) 14:43:53 arnaud: I guess I'd just argue that we shoudl be consistent with the other most similar resources 14:44:00 I don't think images/artifacts and servers are very similar 14:44:07 images/artifacts are more like swift objects in a way 14:44:20 but 14:44:28 also, re consistency, does any other project really address pending deletion / recovery? 14:44:34 a filter is the same concept for a server and an image 14:44:52 I mean I understand your point 14:45:02 Another possible approach is not to have the widest possible defaults in the API 14:45:03 I want us to still have filters I guess 14:45:06 arnaud: I know, but if it makes the system complex/inconvenient to develop _and_ provides crappy user experience (FE. need to deal with over complex filters, flooding list results etc.) is it worth of it? 14:45:15 I just mean there are some use cases where filters are not the right approach 14:45:35 and I think pending deletion is one where it is not the right approach 14:46:05 markwash: I second you on that 14:46:16 ativelkov: yeah I think widest-possible defaults is the right approach for any filter 14:46:36 i.e. if I do GET /collection it should always return everything (modulo pagination) 14:46:50 if I do GET /collection?filter=foo it is only a restriction of that set 14:47:30 if we constrain the concept of filters in this way, I foresee no problems 14:47:53 but it does not solve the pending deletion use case. so we need a different mechanism for that 14:48:14 * markwash is being too loud 14:48:19 or we eliminate pending delete 14:48:37 +1 markwash I think having a different approach for pending delete is fine/good 14:48:40 hm 14:48:47 I don't think people will be too happy about that 14:48:58 let's say /artifacts return all of them, including the deleted ones 14:48:59 recover is a worth thing tbh 14:49:18 (eliminating pending delete I mean ^^^) 14:49:28 and on the same time, pending_delete is a good thing for performance 14:49:31 it seems like user driven recovery is useful enough to find a spot in our api 14:49:56 /artifacts?state=pending_delete will return only the pending ones 14:50:29 i think there is also a use case for displaying deleted image/artifact records 14:50:36 and the client will have a method list_active_artifacts() which will eventually call /artifacts?state=ready&owner=...& 14:50:44 rosmaita: +1, you can't recover from them always if you can't discover them 14:50:55 agreed 14:51:06 but the deleted items could overwhelm the existing ones 14:51:13 if /GET includes deleted 14:51:17 ativelkov: this is a consistent proposal. may I offer an alternative? 14:51:26 markwash: sure 14:51:43 GET /artifacts returns all immediately useable artifacts (i.e. if its an image, you can boot from it) 14:51:55 GET /deleted_artifacts shows the artifacts that are deleted but not yet expunged 14:52:23 deleted_artifacts have additional system properties such as "deleted_at" and "expires_at" 14:52:51 and there is an operation " POST /deleted_artifacts?recover" or somesuch that allows user-driven recovery of deleted artifacts 14:53:14 markwash: i am thinking of a case where you don't want the image data any more, but you want to be able to retrieve the image record because of valueable metadata that could be useful to know about 14:53:21 "immediately useable" means "valid for the current tenant"? 14:53:54 ativelkov: hmm, that's part of it 14:54:04 there might be other restrictions implied by "useable" 14:54:06 Yes, that's what I mean. 14:54:43 And then we may have GET /artifact_drafs to return the artifacts which are not completed (published) yet 14:54:59 For multi-blob upload etc 14:55:00 rosmaita: have you ever seen that? really? I would be interested to have a concrete example 14:55:51 ativelkov: in tasks / import we accomplish that by GET /tasks 14:55:52 how about making /deleted/ instead, FE. GET /deleted/{artifacts, images} returning the deleted ones and you can filter that with peding or what so ever? 14:55:59 arnaud: if have packages listed in the metadata, may need to go back and seee what was working at that time 14:56:11 however, that assumes that the publication process is not interactive 14:56:26 * markwash reads scrollback 14:56:53 jokke_: that seems fine 14:56:54 same with the draft ... having /draft/artifacts path rather than /draft_artifacts would keep consistent no matter what we call the actual item (it being artifact, image, template, etc.) 14:57:22 arnaud: also, for UI uses, may have an instance, you know the image it was created from, may be pulling data from the image record for display purposes 14:57:24 hmm..i *think* this could be considered with "functional api", maybe we can do this: GET /artifact just return "useable" ones (def usable later), and use POST /artifact/action to get artifact items with different status, and giving the filters in the body with json format 14:57:26 or /pending_deleted? 14:57:48 mclaren: I think with /deleted we basically don't need pending deleted anymore 14:58:03 ok I see rosmaita thanks 14:58:09 to me deleted means gone, or are we introducing a 'really deleted'/expunged? 14:58:09 zhiyan: is there some general info about "functional api" i could look at prior to summit? 14:58:38 mclaren: that's what I was thinking. . I suppose it is a bit smelly 14:59:12 or /delete_queue 14:59:18 mclaren: but we don't really introduce it, it's just what happens when an artifact leaves the /deleted/artifacts list 14:59:25 rosmaita: yes, i did. https://etherpad.openstack.org/p/glance-adding-functional-operations-to-api 14:59:30 s/it/expunged/ 14:59:43 eek we're almost out of time! 15:00:09 mclaren & markwash: I think rosmaita made good point with the metadata of deleted which actual payload is already gone 15:01:08 jokke_: rosmaita: the use case does seem reasonable. its possible that nothing ever leaves deleted on its own, but that the "binary blobs" do disappear such that recovery becomes impossible 15:01:11 okay we're over 15:01:18 thanks everybody 15:01:24 thnx 15:01:27 thks 15:01:28 I look forward to seeing as many of you as possible at the summit 15:01:32 We'll continue on the summit, thanks 15:01:36 thanks for humoring me! 15:01:39 #endmeeting