Earlier  
Posted Nick Remark
#openstack-nova - 2017-07-12
20:41:57 mriedem maybe we should set that globally,
20:42:04 mriedem if it's failing on other tests that aren't using the integrated helpers stuf
20:42:07 mriedem *stuff
20:42:17 melwitt oh yeah, lemme see what this one was
20:42:40 mriedem i had one earlier here http://logs.openstack.org/22/454322/37/check/gate-nova-tox-functional-ubuntu-xenial/76cbda6/console.html#_2017-07-12_17_44_14_514884
20:42:42 melwitt api_sample_tests, thought those were using integrated_helpers http://logs.openstack.org/74/467774/7/gate/gate-nova-tox-functional-ubuntu-xenial/4a00841/testr_results.html.gz
20:42:56 mriedem api sample tests are yeah
20:43:58 mriedem mine was something else
20:44:00 mriedem NoValidHost
20:44:17 mriedem i think because the compute node never checked in
20:44:20 mriedem because of some eventlet timeout
20:48:21 jaypipes mriedem, dansmith, edleafe: did we want to return a list of alternates *for each instance in num_instances*? of a single list of alternate allocation requests for the entire request?
20:48:31 jaypipes s/of a single/or a single/g
20:48:37 jdandrea mriedem jaypipes So what I did was look at the value and if it is a string, I try to json.loads the thing. If that fails, I leave it as is. Mischief managed.
20:49:09 dansmith jaypipes: well, if all of them can be rescheduled max_attempts time, then it needs to be num_instances * max_attempts
20:49:39 dansmith jaypipes: but we could also take some percentage or something, and provide some number of bet-hedging alternates, but not enough for all of them to be rescheduled max times
20:50:25 jaypipes dansmith: no, sorry, I meant should I return a single list of alternate allocation requests for the entire call to select_destinations() or should I return a list of alternate allocation requests for each host returned by select_destinations()?
20:51:00 dansmith jaypipes: independent of the number?
20:51:12 dansmith jaypipes: an alternate has to go with a given primary host, because it has to be the same cell,
20:51:29 dansmith so a single list of num*max alternates won't help us once we lose context of which host is in which cell
20:51:39 jaypipes right
20:51:47 jaypipes ok, that answers that
20:52:25 melwitt cells meeting in 8 minutes
20:52:34 dansmith melwitt: correction
20:52:46 dansmith melwitt: short-ass cells meetinglet in 8 minutes
20:54:26 melwitt meetinglet, I like it
20:56:34 edleafe jaypipes: yeah, I think that a single list per instance is best, where each list is the selected (claimed) host followed by the alternates.
20:56:54 efried In Portuguese, meetazinho. In Spanish, meetito. In French, meetette. In German, meetchen.
20:57:05 dansmith ooh, meetito is great
20:57:29 dansmith like dorito, but less yummy
20:57:42 efried Nothing is less yummy than a cooler ranch dorito
20:57:48 jaypipes edleafe: I'm going for a dict, keyed by instance_uuid, of two-tuples where the tuple is (WeighedHost(claimed_host), list(alternate allocation requests))
20:57:57 jaypipes edleafe, dansmith: ^^ make sense to you?
20:58:08 dansmith sure
20:59:16 efried jaypipes Is this yet another thing we're going to regret not being an object later?
20:59:19 melwitt efried: phew, that was close. I misread at first that you were saying cooler ranch was the best dorito
20:59:46 efried melwitt Rest easy.
21:00:00 edleafe jaypipes: this is what scheduler is returning to the conductor?
21:00:35 jaypipes edleafe: well, not *yet*... I'm currently referring to what filter scheduler _schedule() returns to filter scheduler's select_destinations() call.
21:00:45 jaypipes edleafe: still need to figure out what's best for the RPC changes.
21:01:01 jaypipes edleafe: it *may* be that structure...
21:01:12 jaypipes haven't fully thought the RPC layer changes through yet
21:01:26 edleafe jaypipes: I'm still not clear why the selected host has to be in a separate structure than the alternates
21:03:30 jaypipes edleafe: the alternates are meant to be opaque structures. the selected host is the host identifier. the allocation requests are alternate things that can be passed to placement to claim resources if the original destination host fails to fully launch the instance.
21:04:14 jaypipes edleafe: or are you asking to just have a list where the first element of the list is a WeighedHost and the other elements of the list are allocation request blobs?
21:05:16 edleafe jaypipes: the distinction seems unnecessary. Why not send a list of (host, alloc) for each instance, where the first item in the list is the selected host? This way, if the build fails, the cell conductor can easily unclaim the resources already claimed
21:06:05 jaypipes dansmith: thoughts? ^
21:06:19 dansmith jaypipes: we're in the cells meeting right now
21:06:26 jaypipes oh, sorry.
21:06:44 edleafe jaypipes: passing a heterogenous structure seems like it will lead to a lot of conditional blocks to handle the different cases
21:07:19 jaypipes edleafe: I don't disagree with you on that
21:22:48 dansmith jaypipes: I would expect the compute to un-claim before passing the reschedule attempt to conductor, since it will un-claim always on failed boot, and then punt to conductor if it thinks it should be retried
21:23:02 mriedem dansmith: dtp: melwitt: https://etherpad.openstack.org/p/nova-pike-cells-v2-todos
21:23:07 mriedem i'll start dumping
21:23:23 melwitt cool, thanks
21:23:45 dansmith jaypipes: so I'm not sure that we need anything too complicated, and was kinda expecting the conductor to do the next claim in order, and then take the would-be-versioned _response_ from placement as an indication of which compute node to use
21:24:05 dansmith jaypipes: however, if passing (hostname, allocation) around is more convenient or symmetric then that's fine
21:24:18 dansmith jaypipes: your select-destinations can't return a HostState outside of the scheduler though
21:24:27 jaypipes dansmith: yeah, I think edleafe's suggestion is a good one.
21:25:15 dansmith jaypipes: I'm not sure what he's suggesting, other than just making it a list where the implication is that we try the first one as the "selected host"
21:25:44 dansmith I assumed your example of the weighedhost as the selected one was for efficiency of the next step in the process
21:25:49 edleafe dansmith: yeah, that's pretty much it :)
21:26:07 jaypipes dansmith: he's suggesting returning a list of (host, allocation_request) tuples for each instance_uuid in the request
21:26:40 dansmith obviously that's the most you can return from the rpc call, if that's what you're talking about, but you said WeighedHost() above, so I figured you were talking internal still
21:27:31 dansmith but yeah, I think I said before that just returning a list of destinations per instance, and processing them in order in each phase is the way I think of it
21:27:41 dansmith like, I would expect each round to just pop the first one off the list,
21:27:47 dansmith try it, and move on
21:27:54 dansmith doing claim in conductor made that super symmetric
21:28:09 dansmith doing it in scheduler means it's pre-claimed before we return, which is what I was arguing against in the first place :)
21:30:17 jaypipes dansmith: but we can't claim in the conductor when we have num_instances > 0 unfortunately. see: instance groups, affinity, and similar issues.
21:31:25 edleafe jaypipes: so assuming a retry is necessary, how will the cell conductor deal with those things?
21:32:16 jaypipes edleafe: unfortunately, the only way to deal with those things on retry is the last-minute check on the alternate target host :(
21:32:35 dansmith jaypipes: I don't think I understand why that would be, but you guys steamrolled past that anyway, so it doesn't matter
21:33:19 jaypipes dansmith: because of this line: https://github.com/openstack/nova/blob/master/nova/scheduler/filter_scheduler.py#L127-L128
21:33:29 jaypipes dansmith: those little lines are the bane of my existence.
21:34:24 dansmith I don't see how that affects claiming in the conductor, but whatever, not important
21:52:49 mriedem melwitt: so i didn't get to the resize stuff yet https://review.openstack.org/#/c/416521/ but with fresh eyes i think i've found 2 issues already discussed about over quota on multiple create not cleaning up, and restore
22:04:00 melwitt mriedem: hm, okay. will look at that
22:21:12 melwitt mriedem: replied about restore. reading through multi create
22:28:03 melwitt mriedem: though now I see the change to state "soft-deleted" doesn't happen until after an rpc call to compute, so I think that's why I didn't bother with recheck_quota there
22:28:41 melwitt maybe I should change it to set the state right away before the cast. not sure if that would be okay
22:37:34 mriedem ok still going through some other parts of this
22:38:18 openstackgerrit Maciej Kucia proposed openstack/nova-specs master: Extended PCI alias https://review.openstack.org/474218
22:42:21 mriedem ok reading your replies now
22:45:53 mriedem hmm, so when you soft delete an instance,
22:45:58 mriedem the deleted_at field is set on the instance
22:46:08 mriedem but when you restore it, i don't see the deleted_at field set to None
22:46:14 mriedem so it's both ACTIVE and deleted_at
22:46:32 melwitt *thumbs up*
22:46:38 mriedem unless i'm missing something
22:46:46 melwitt I doubt it
22:47:10 melwitt either it was missed or someone thought it helpful to let it show that it had been deleted in the past
22:47:12 mriedem i don't have a devstack handy
22:47:21 mriedem yeah....but instance actions...
22:47:26 mriedem if you want an audit record
22:47:47 melwitt yeah
22:49:55 openstackgerrit Vipin Balachandran proposed openstack/nova master: VMware:Use power_state const for power state check https://review.openstack.org/483122
22:53:10 mriedem melwitt: ok, replies are all in - still haven't gotten t oresize
22:53:12 mriedem *to resize
22:53:29 mriedem to summarize, i think we're ok with restore, except maybe that we don't have a recheck deltas in there?

Earlier   Later