Earlier  
Posted Nick Remark
#openstack-nova - 2017-03-07
23:22:29 dansmith ah yeah diana just confirmed
23:23:43 mriedem me too
23:23:47 mriedem the marker is the uuid
23:23:52 mriedem and i sort of remember talking about this in the spec,
23:24:09 mriedem that uuid being a marker is silly because you can create a new instance and it's random uuid could mess up your marker/sort order
23:24:31 dansmith meh, pagination is lossy anyway
23:24:39 dansmith that doesn't bother me
23:24:59 dansmith so I'm good to push right?
23:25:07 mriedem umm
23:25:12 mriedem so isn't she saying we should be sorting?
23:25:17 mriedem at least by project_id?
23:25:25 dansmith no?
23:25:37 mriedem i'm going to read https://specs.openstack.org/openstack/nova-specs/specs/ocata/approved/paginate-simple-tenant-usage.html quick
23:25:47 mriedem https://specs.openstack.org/openstack/nova-specs/specs/ocata/approved/paginate-simple-tenant-usage.html#data-model-impact
23:26:13 dansmith the only reason we'd need to sort the results is if you care about the sort order as a user right?
23:26:47 mriedem then why was it added to https://specs.openstack.org/openstack/nova-specs/specs/ocata/approved/paginate-simple-tenant-usage.html#data-model-impact?
23:27:05 mriedem https://review.openstack.org/#/c/386771/
23:27:18 dansmith what I have doesn't affect the stability of the sequence across cells
23:27:46 dansmith all that matters is that the last uuid of the end of your limit query lands you in the same place when you go back digging through the cells for the next page
23:29:06 dansmith oh you think she means sorted results to the user _was_ a requirement
23:29:25 mriedem yes
23:29:31 dansmith I read that as "fell out" like, it wasn't in the spec and the code was never updated
23:29:39 dansmith but I guess that's not what she means
23:29:41 mriedem there is a bunch of discussion between alex_xu and diana and jaypipes and johnthetubaguy in https://review.openstack.org/#/c/386771/ about sorting
23:30:04 dansmith so this is even larger of a merge sort than list instances right?
23:30:20 dansmith I mean, this is potentially an order of magnitude or more larger than just a list of live instances
23:31:34 mriedem depends on the window i suppose
23:32:16 mriedem i'm wondering if we only need to sort if detailed=True
23:32:29 dansmith okay then I'm going to move this to later in the set so we can progress on some of the other ones while we argue about this forever
23:32:32 mriedem but, it might also be dependent on the limit/marker
23:33:08 mriedem if you get a tenant_id then all it does is sort on the uuids
23:33:14 openstackgerrit Dan Smith proposed openstack/nova master: Enlighten server tags API about cells https://review.openstack.org/440856
23:33:15 openstackgerrit Dan Smith proposed openstack/nova master: Target cell in super conductor operations https://review.openstack.org/438022
23:33:15 openstackgerrit Dan Smith proposed openstack/nova master: Change MQ targeting to honor only what is in the context https://review.openstack.org/438023
23:33:16 openstackgerrit Dan Smith proposed openstack/nova master: Teach os-migrations about cells https://review.openstack.org/442685
23:33:16 openstackgerrit Dan Smith proposed openstack/nova master: Make consoleauth target the proper cell https://review.openstack.org/441461
23:33:17 openstackgerrit Dan Smith proposed openstack/nova master: Add cell field to Destination object https://review.openstack.org/438024
23:33:17 openstackgerrit Dan Smith proposed openstack/nova master: WIP: Make conductor ask scheduler to limit migrates to same cell https://review.openstack.org/438025
23:33:18 openstackgerrit Dan Smith proposed openstack/nova master: Add workaround to disable group policy check upcall https://review.openstack.org/442736
23:33:18 openstackgerrit Dan Smith proposed openstack/nova master: Get instance availability_zone without hitting the api db https://review.openstack.org/439754
23:33:19 openstackgerrit Dan Smith proposed openstack/nova master: Teach HostAPI about cells https://review.openstack.org/442162
23:33:19 openstackgerrit Dan Smith proposed openstack/nova master: Make os-availability-zones know about cells https://review.openstack.org/442163
23:33:20 openstackgerrit Dan Smith proposed openstack/nova master: Make scheduler target cells to get compute node instance info https://review.openstack.org/439891
23:33:20 openstackgerrit Dan Smith proposed openstack/nova master: Teach simple_tenant_usage about cells https://review.openstack.org/441388
23:33:21 openstackgerrit Dan Smith proposed openstack/nova master: Teach os-aggregates about cells https://review.openstack.org/442200
23:33:21 openstackgerrit Dan Smith proposed openstack/nova master: Remove Mitaka-era service version check https://review.openstack.org/442861
23:34:19 dansmith I really don't understand the sorting discussion on that spec
23:34:38 mriedem need diana and alex_xu to explain
23:34:47 mriedem i can't read through all of that and "sort" it out
23:34:51 mriedem get it
23:34:52 dansmith yeah
23:35:09 mriedem i'm literally laughing here to myself and my own joke
23:35:18 mriedem i think it's time to head home
23:51:28 openstackgerrit Jin Li proposed openstack/nova master: Transform instance.soft_delete notifications https://review.openstack.org/383970
#openstack-nova - 2017-03-08
00:31:43 openstackgerrit Dan Smith proposed openstack/nova master: Get instance availability_zone without hitting the api db https://review.openstack.org/439754
00:31:43 openstackgerrit Dan Smith proposed openstack/nova master: Make scheduler target cells to get compute node instance info https://review.openstack.org/439891
00:31:44 openstackgerrit Dan Smith proposed openstack/nova master: Remove Mitaka-era service version check https://review.openstack.org/442861
00:31:44 openstackgerrit Dan Smith proposed openstack/nova master: Add workaround to disable group policy check upcall https://review.openstack.org/442736
00:59:31 openstackgerrit Li Yingjun proposed openstack/nova-specs master: Spec for support set vgamem for video https://review.openstack.org/438787
01:14:29 openstackgerrit Artom Lifshitz proposed openstack/nova master: Plumbing for tagged nic attachment https://review.openstack.org/415622
01:14:29 openstackgerrit Artom Lifshitz proposed openstack/nova master: Delete nic metadata when detaching interface https://review.openstack.org/435387
01:14:31 openstackgerrit Artom Lifshitz proposed openstack/nova master: Libvirt support for tagged volume attachment https://review.openstack.org/418100
01:14:32 openstackgerrit Artom Lifshitz proposed openstack/nova master: Delete disk metadata when detaching volume https://review.openstack.org/435082
01:14:34 openstackgerrit Artom Lifshitz proposed openstack/nova master: Plumbing for tagged volume attachment https://review.openstack.org/391941
01:14:36 openstackgerrit Artom Lifshitz proposed openstack/nova master: API support for tagged device attachment https://review.openstack.org/376021
01:14:38 openstackgerrit Artom Lifshitz proposed openstack/nova master: Libvirt support for tagged nic attachment https://review.openstack.org/415520
02:11:40 openstackgerrit Maho Koshiya proposed openstack/nova master: Add interfaces functional negative tests https://review.openstack.org/442892
02:24:01 alex_xu dansmith: sort by 'uuid' is for stable sort result, since the 'project_id' isn't unique value. at least we should keep the sort result stable.
02:24:28 alex_xu dansmith: looks like CellMappingList.get_all have problem, it haven't any specific sort key
02:24:33 alex_xu so the result can be unstable
02:24:53 dansmith alex_xu: it'll be stable, but not guaranteed
02:25:17 alex_xu dansmith: yes, but better to have a specific sort key?
02:25:24 dansmith alex_xu: but sure we can make cellmapping sort explicitly
02:25:33 alex_xu dansmith: yea
02:25:45 dansmith alex_xu: we can.. cells don't get created and destroyed, so I don't think it's a problem, but it's a trivial amount of small data to sort, so we can do that too
02:26:04 dansmith alex_xu: will you say that on the review and I'll follow up tomorrow with a separate patch for that?
02:26:29 alex_xu dansmith: yea, I will comment on teh review
02:28:16 dansmith alex_xu: cool thanks
02:28:24 alex_xu dansmith: np
02:54:24 diana_clarke dansmith: Do you know the history behind limit/offset vs limit/marker?
03:08:10 openstackgerrit Vladik Romanovsky proposed openstack/nova master: libvirt: add video config parse method https://review.openstack.org/442914
03:08:11 openstackgerrit Vladik Romanovsky proposed openstack/nova master: libvirt: a method to prepare SPICE console connection https://review.openstack.org/442915
03:13:16 dansmith diana_clarke: I don't even know that there's history there, so.. no?
03:17:19 diana_clarke dansmith: I'm curious why there was a switch at some point to marker vs. offset. That is, the problem that shift was trying to solve at the expense of an easier API.
03:17:44 diana_clarke (I just followed the pattern)
03:20:05 diana_clarke Off the top of my head, I can't think of another API that uses markers (over offsets).
03:20:30 dansmith diana_clarke: I'm not aware of any shift from offset to marker, so it may have been before my time (or at least before I started paying attention)
03:21:50 diana_clarke dansmith: Welp, recent code uses markers, older code uses markers (that's all I know).
03:22:18 diana_clarke typo: older code uses _offsets__
03:24:27 dansmith really? what older code uses offsets?
03:25:30 dansmith I see mention of offsets in openstack/api/common, but that's pretty new code, AFAIK
03:27:53 dansmith unless it was just transplanted from somewhere, but I thought all the original pagination was done in db where I see no offsets
03:28:04 dansmith but anyway, I dunno :)
03:35:16 alex_xu dansmith: https://review.openstack.org/#/c/441388/7/nova/api/openstack/compute/simple_tenant_usage.py a comment about optimize the marker
03:35:26 dansmith alex_xu: responding now
03:35:34 dansmith alex_xu: were you going to comment on the sorting thing too
03:35:34 dansmith ?
03:35:56 alex_xu dansmith: yea, I added comment in the PS6
03:36:44 dansmith alex_xu: ah I see now, thanks
03:36:50 alex_xu dansmith: np

Earlier   Later