Earlier  
Posted Nick Remark
#openstack-nova - 2017-06-02
15:21:06 sfinucan But the Python 2 variant is better than nothing, for some of the more complex stuff (like nearly everything in virt/libvirt)
15:25:42 mriedem cfriesen_: pep8 on your chnage
15:25:43 mriedem *change
15:33:57 openstackgerrit Jay Pipes proposed openstack/nova master: Sync os-traits to Traits database https://review.openstack.org/469578
15:38:54 mriedem dansmith: heh i guess this is a duplicate https://review.openstack.org/#/c/460377/ of https://review.openstack.org/#/c/431722/
15:38:56 mriedem drats
15:39:22 dansmith mriedem: it's all yours :)
15:40:42 mriedem looks like the only difference is you dropped the online data migrations, and in mine i think i was asking myself about that
15:40:46 mriedem b/c of skip level upgrading people
15:41:09 mriedem https://review.openstack.org/#/c/460377/6/nova/objects/flavor.py@648
15:41:34 dansmith mriedem: as I've said before, I don't think leaving migrations in the tree for that reason makes sense
15:41:46 mriedem i tend to agree
15:44:21 mriedem well i reckon i better sort out if there are any other differences here and drop mine - although i am of course partial to my commit message
15:48:34 dansmith mriedem: I just abandoned mine so you can't do that :P
15:49:23 mriedem hells bells
15:49:32 mriedem i figured i'd just rebase yours
15:55:55 openstackgerrit Merged openstack/nova master: Connecting Nova to DRBD storage nodes directly https://review.openstack.org/256292
16:00:27 leakypipes mriedem, melwitt, dansmith, bauzas: easy wins (placement-api-ref) starting here: https://review.openstack.org/#/c/452707/
16:00:43 dansmith dibs
16:01:10 mriedem i'm gonna clean up cfriesen_'s change and +2 before it lunch
16:01:13 mriedem so maybe post-lunch
16:03:27 dansmith leakypipes: are those not rendered in the docs job anywhere?
16:04:16 cdent dansmith: different doc job, let me find link
16:04:25 leakypipes cdent: thx
16:04:36 dansmith found it
16:04:40 cdent gate-placement-api-ref-nv
16:06:31 openstackgerrit Artom Lifshitz proposed openstack/nova master: Convert instance to primitive for metadata cache https://review.openstack.org/469978
16:07:46 dansmith we're really spoiling our users with this api_ref nonsense
16:09:43 leakypipes dansmith: lol
16:09:50 mriedem dansmith: don't worry, we still have plenty of config options that change the behavior of the API in ways not communicated,
16:09:58 mriedem so we can still screw them
16:10:06 openstackgerrit Matt Riedemann proposed openstack/nova master: show flavor info in server details https://review.openstack.org/434514
16:10:50 mriedem ^ and below are +2'ed
16:10:56 mriedem looks big but it's mostly api-ref and api samples
16:11:08 mriedem now it's burger time
16:11:22 mriedem_burgerti damn
16:12:00 artom The little known Bugatti knock-off, Burgerti
16:12:46 leakypipes "It's Burger! It's Burger time!".
16:13:49 dansmith leakypipes: we're allowing renaming of resource classes?
16:15:06 leakypipes dansmith: yes.
16:15:17 leakypipes dansmith: only custom ones of course.
16:15:28 dansmith isn't that going to confuse things?
16:15:35 figleaf to make them even more customer
16:15:52 dansmith like, we have requests in flight that refer to the old name
16:15:55 leakypipes dansmith: no. internally custom ones are just an integer code. the name can be whatever the user wants.
16:16:10 dansmith and/or someone creates two and swaps them
16:16:20 dansmith don't we communicate between services using the symbolic names?
16:16:22 figleaf leakypipes: they will have to match whatever's in the flavor, though, no?
16:16:23 leakypipes dansmith: we leave that as an exercise for the readeer? :)
16:16:33 dansmith yeah what figleaf said
16:17:00 dansmith I just see no reason to allow that.. might as well just delete and re-create so you get a new integer id and no confusion
16:17:00 figleaf dansmith: not feeling super today?
16:17:07 dansmith figleaf: definitely am not
16:17:36 leakypipes dansmith: you and figleaf make a good point. cdent is our API master so I defer to him.
16:18:03 figleaf dunno if it has much to do with the API
16:18:13 cdent I already fixed that in microversion 1.7
16:18:40 dansmith cdent: fixed what? https://review.openstack.org/#/c/467596/4 says we can rename them
16:18:44 leakypipes cdent: so we don't allow changing resource class names in 1.7 and beyond?
16:18:53 cdent because it was not only a bad flow, but also an issue with the external issue
16:19:21 cdent leakypipes: if you are using a high microversion, correct, you cannot not rename a resource class
16:19:42 cdent you can delete and create another
16:19:44 cdent or rather
16:19:45 cdent create another
16:19:46 cdent everything external is using the name
16:19:47 cdent we can't allow changing it
16:19:58 dansmith ++
16:20:35 figleaf cdent: ah, good
16:20:46 cdent I kind of feel like we should de-document the old way
16:20:52 cdent but that would lead to problems
16:21:09 cdent so perhaps a warning on the 1.2-1.6 microversion?
16:21:24 dansmith cdent: I think we should drop it from the docs, TBH
16:21:25 cdent I mean the doc for put /resource_classes/{name}
16:21:39 dansmith nobody is using this but us yet, so no reason to document something that is already obsolete
16:21:48 claudiub efried: not as it should. it doesn't consume the self / cls argument. if you are patching a function or a static method, it works fine though.
16:21:59 dansmith also, is PUT the right verb for "create or verify existence" ?
16:22:11 dansmith I would expect POST and return 409 if exists, no?
16:22:37 cdent PUT is the standard for idempotency when you know the url of the resoruce
16:22:50 cdent the idea here is that you can PUT /resource_classes/{name} all day long
16:23:00 dansmith hrm, okay
16:23:07 cdent and it will always return some form of success
16:23:10 dansmith seems wrong, but I guess I don't have time to convince the rest of the world today
16:23:10 claudiub mriedem: you didn't answer my one question :D : the cinder 3rd party ci requirements state that "CI's do not need to kick off tests until Jenkin's has given a +1", is there a similar policy for nova as well? ( https://wiki.openstack.org/wiki/Cinder/tested-3rdParty-drivers#Third_Party_CI_Requirements )
16:23:30 cdent dansmith: the decision was driven by code in the resource tracker which was doing to "get_or_create_resource_class"
16:23:40 cdent I wanted to change it to "do one call to do both"
16:23:42 cdent which is PUT
16:24:25 artom I think with PUT you're supposed to send the entire resource, and PATCH is for when you just send the changes?
16:24:33 leakypipes dansmith, cdent: added a note on 467596 to add a big fat warning in the UPDATE t1.2 through 1.6 section.
16:24:35 dansmith that way we can't log whether we created it, which means we can't highlight with a warning "I just created CUSTOM_GUP, hope you didn't typo that"
16:24:43 cdent artom: yes, but this is a different issue. a resource class PUT has no body
16:25:22 cdent dansmith: different resposne code on create or existence:
16:25:24 artom cdent, then we should only allow HEAD on it :D
16:25:41 cdent artom: :P
16:26:16 artom Bikeshedding about HTTP verbs? You don't say ;)
16:26:18 dansmith cdent: I see. less obvious, IMHO, but doesn't matter
16:26:27 dansmith I/we aren't bikeshedding
16:26:31 dansmith just chatting
16:27:07 cdent dansmith: of course that's not what the code is doing now, it doesn't log on success, and I'm pretty sure it didn't before?
16:27:32 openstackgerrit Artom Lifshitz proposed openstack/nova master: Use VIR_DOMAIN_BLOCK_REBASE_COPY_DEV when rebasing https://review.openstack.org/465205
16:28:05 dansmith cdent: I haven't even looked, and I assume we won't know we need to log such a thing until the flood of bugs complaining about it
16:28:20 dansmith cdent: but if we have a way to tell so we can add that in the future then that's fine

Earlier   Later