Wednesday, 2023-06-07

opendevreviewRajat Dhasmana proposed openstack/glance-specs master: Update new location APIs spec  https://review.opendev.org/c/openstack/glance-specs/+/88349110:01
whoami-rajatdansmith, i can't agree more, I have been working on this location thing since Yoga and would really like to move on to something else, will update with your suggestion14:02
dansmithwhoami-rajat: ack, let's get the spec merged.. I haven't been able to overlap with pdeore, but I hope she's working on the implementation and want to make sure she gets help if needed so we don't slip on this14:03
dansmith(the spec update I mean) so that it's not looking like it's still ill-defined14:04
dansmithafaict, we're pretty well settled on the meat of it and just tweaking the result is pretty minor14:04
whoami-rajatdansmith, yep, currently taking the cinder meeting, will update the spec after that14:07
dansmith++ thanks14:07
rosmaitawhoami-rajat: dansmith: ping me for a quick review when it's been updated14:17
opendevreviewRajat Dhasmana proposed openstack/glance-specs master: Update new location APIs spec  https://review.opendev.org/c/openstack/glance-specs/+/88349114:24
whoami-rajatdansmith, rosmaita does this look good? let me know if another update is needed and will quickly do it ^14:24
dansmithwhoami-rajat: it needs to be the same schema, so those os_hash_* things need to be inside validation_data14:26
dansmithand also, you won't get the checksum back from a request that provided validation data because it will only calculate it async14:27
dansmithalso I don't think we ever need checksum in there because it's on the image.. this is just what you provided for the location14:27
whoami-rajatdansmith, oh yeah, correct, will update it14:28
dansmithgenerally you should be able to apply the same schema def/checking to the request and the response14:29
whoami-rajatdansmith, but we are providing checksum in the request, what i understand is we don't want to return the checksum until it's validated but doesn't that also hold true for hash value?14:30
dansmithwhoami-rajat: oh sorry right.. I missed that that's in the request.. I'm confused why we're passing os_hash and checksum in request?14:32
whoami-rajatdansmith, also hash value is for the image as well14:32
whoami-rajatdansmith, to validate it against the glance calculated values?14:32
whoami-rajatisn't that the purpose of validation data?14:32
dansmithsorry just a sec, joining a call14:33
whoami-rajatack np14:34
dansmithI had thought we were only taking os_hash_algo and os_hash_value and not checksum in the request, because we were going to use os_hash_algo being set to indicate that it's in progress14:36
dansmithchecksum is what, md5?14:36
whoami-rajatdansmith, yes, md514:36
dansmithI think it would be better to just accept os_hash_algo and os_hash_value and not checksum, because it's more straightforward..we will still calculate checksum (I assume) but it seems like we might as well not accept both just to avoid confusion14:37
dansmithrosmaita: what do you think?14:37
whoami-rajatdansmith, this is the format of validation data and it has 3 fields including checksum https://specs.openstack.org/openstack/glance-specs/specs/stein/implemented/glance/spec-lite-locations-with-validation-data.html14:37
dansmithall the discussion above about procedure doesn't mention checksum at all, which is why I didn't notice it was in the request14:38
dansmithwhoami-rajat: yeah, it's okay to calculate and expose it, I just wouldn't worry about accepting it in the request14:38
rosmaitado we still compute the checksum?14:39
dansmithidk, if we do then fine, but let's not take it as input, IMHO14:39
dansmithand I'm not even sure we need to show it on the location after it's calculated.. just on the image should be fine14:39
whoami-rajatok, so no checksum in request or response?14:40
dansmiththat's my preference14:41
whoami-rajatok, i will update it and see if others have a different view about it14:42
opendevreviewRajat Dhasmana proposed openstack/glance-specs master: Update new location APIs spec  https://review.opendev.org/c/openstack/glance-specs/+/88349114:54
whoami-rajatdansmith, how does this look?^ i had to remove some other occurrences of checksum14:55
rosmaitawhoami-rajat: dansmith: i didn't realize this was going to be so complicated, i'll have to read through the scrollback and think a bit when reviewing14:55
whoami-rajatrosmaita, i can summarize,14:57
whoami-rajat1) changed the response from whole image to location object14:57
whoami-rajat2) removed checksum from request response14:57
rosmaitaok, thanks, helps me know what to focus on14:58
dansmithhonestly, it's just what we spent all the time discussing in terms of what to provide and expect for hashingm,15:04
dansmiththe request/response examples just didn't get updated15:04
dansmithwhoami-rajat: yes, that version looks good to me15:04
whoami-rajatack, thanks15:07
opendevreviewCyril Roelandt proposed openstack/python-glanceclient master: Docs generation: mock the six module for autodoc  https://review.opendev.org/c/openstack/python-glanceclient/+/88550515:27
dansmithrosmaita: can we get this +2 for pranali to hopefully hit in the morning? https://review.opendev.org/c/openstack/glance-specs/+/88349120:41
rosmaitadansmith: completely forgot about it, will look now20:41
dansmiththanks20:42

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!