14:00:15 #startmeeting nova_scheduler 14:00:15 Meeting started Mon Mar 20 14:00:15 2017 UTC and is due to finish in 60 minutes. The chair is edleafe. Information about MeetBot at http://wiki.debian.org/MeetBot. 14:00:17 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 14:00:19 The meeting name has been set to 'nova_scheduler' 14:00:24 Godd UGT morning! Who 14:00:28 doh 14:00:32 morning :P 14:00:32 Who's here? 14:00:45 s/Godd/Good 14:00:46 o/ 14:01:02 * edleafe has sufficient caffeine, so no excuse for sloppy typing 14:02:55 o/ 14:03:35 kind of empty, eh? 14:04:23 jaypipes is here but looking at a tripleo bug in -nova it seems 14:04:34 yeah, I'm here. 14:04:43 Well, let's get started 14:04:46 #topic Specs & Reviews 14:05:01 First up - Traits series, starting with: 14:05:01 #link https://review.openstack.org/#/c/376199/ 14:05:19 \o 14:05:24 That series is very important, so please everyone spend some review cycles on it 14:05:50 It's looking pretty close, too 14:06:18 Also, my allocation/inventory fixes are languishing: 14:06:18 #link https://review.openstack.org/#/c/416751/ 14:06:26 Gotta rebase one of those 14:06:37 But it would be nice to get these in soon 14:06:49 Any other specs/reviews to discuss? 14:06:57 i have question for trait 14:07:01 will do some reviews 14:07:02 yeah, I have a spec up 14:07:02 go 14:07:03 * jroll digs 14:07:26 jroll can go first 14:07:30 this adds the extra specs we need to flavors for custom resource classes: https://review.openstack.org/#/c/446570/ 14:07:45 I wanted to check with jaypipes if he's cool working on the allocation dependency noted there 14:07:49 #link https://review.openstack.org/#/c/446570/ 14:07:53 or if we should include it in that spec 14:07:56 alex_xu: thanks :) 14:08:00 jroll: np :) 14:09:18 alex_xu: go ahead with yours 14:09:20 we can move to alex_xu's question and come back to mine 14:09:22 heh 14:09:29 #link https://review.openstack.org/#/c/376200/19/nova/tests/functional/api/openstack/placement/gabbits/traits.yaml@41 14:10:08 alex_xu: that's a good question 14:10:12 'PUT /traits/CUSTOM_TRAIT_1' needn't a request body, but it's forced to have a 'content-type' header, I feel it is strange 14:10:27 #link https://github.com/openstack/nova/blob/master/nova/api/openstack/placement/handler.py#L189 14:10:33 ^ it is forced at here 14:10:45 alex_xu: I defer those questions to cdent, who isn't around at the moment 14:11:01 I also care about what cdent think about 14:11:14 but I can check with him when he is online 14:11:15 that is odd, I agree, but I think it's something we could clean up later 14:11:39 jroll: to consider the microversion... 14:11:40 alex_xu: That does seem odd to enforce if there is no request body 14:11:48 i afraid it is kind of API contract change 14:12:10 alex_xu: true, I guess I don't worry about microversions much 14:12:16 meaning I think lots of them are ok 14:12:17 alex_xu: that's a grey area. Is it a bugfix, or a simple change of behavior 14:12:40 alex_xu: IOW, something is now failing that shouldn't 14:13:20 yea 14:14:11 jroll: to get back to your question, since the dependency is necessary to get done, one of us will do it for sure 14:14:26 might be jaypipes or not 14:14:49 edleafe: it's in jaypipes head, that's why I ask him :P 14:15:28 but yeah 14:15:29 jroll: I will review the spec for custom resource classes in flavors today. 14:15:48 jroll: we're working on a way to wire jaypipes to the internet so we can Google his head 14:15:48 jaypipes: thanks 14:16:10 edleafe: lol, that would be scary. 14:16:39 Anything else for Specs/Reviews? 14:16:55 alex_xu: I think I have part of the answer here https://tools.ietf.org/html/rfc7231#section-4.3.4 14:17:07 alex_xu: that's because we need to know the semantics 14:18:35 bauzas: specifying a different content-type should fail, yes. 14:18:47 bauzas: ok, that is long, i need a little time to read it 14:18:52 bauzas: the concern is not specifying one. Hard to say that that "conflicts" 14:19:11 alex_xu: https://tools.ietf.org/html/rfc7231#section-3.1.1.5 is maybe better to read 14:19:57 "Implementers are encouraged to provide a means of disabling such "content sniffing" when it is used. " 14:20:00 but let's move on 14:20:02 We can continue this on the review, if desired 14:20:09 at least it didn't say we should return 400? 14:20:26 ok 14:20:31 #topic Bugs 14:20:45 * bauzas loves digging RFCs like going to the dentist... 14:20:51 Ran into this one late Friday. 14:20:52 (edleafe) from my functional test work, I noticed that the resource_tracker._allocate_for_instance() silently fails if the resource amounts consumed by an instance violate the inventory constraints. We need to figure out a better way of handling these types of failures. 14:20:57 #link https://github.com/openstack/nova/blob/master/nova/compute/resource_tracker.py#L952-L953 14:21:00 #link https://github.com/openstack/nova/blob/master/nova/compute/resource_tracker.py#L987-L988 14:21:04 Failures, if any, are ignored. 14:21:29 I had created a functional test that created an instance whose DISK_GB violated the step_size constraint 14:21:54 But because I was testing the RT, I didn't use the placement API directly. 14:22:14 The scheduler report client correctly disallowed the allocation 14:22:34 But the RT just went ahead as if it had succeeded 14:22:53 I wanted to discuss whether that is the design we want 14:23:01 sorry I'm late 14:23:08 IOW, in practice we should never hit that code path 14:23:16 But those are "famous last words" 14:23:29 welcome, cdent! 14:24:33 I added a test that demonstrates the failure to 14:24:36 #link https://review.openstack.org/446123 14:25:41 If the answer is "no, that is not the design we want" what is the alternative? What should happen? 14:26:21 cdent: well, that's why I wanted a discussion 14:26:39 cdent: Should the RT always assume that allocations succeed? 14:26:57 And if it doesn't, how should it complain? 14:27:17 my question was with what modes _can_ it complain 14:27:22 * cdent is not clear on the options 14:27:42 edleafe: that is by design. 14:28:16 * bauzas needing to leave the meeting for the last time of the year :) 14:28:23 jaypipes: can you explain the intent? 14:28:32 edleafe: we do not want the resource tracker/compute worker to go down due to new placement inventory constraints being violated. 14:28:35 next week, we'll be on summer time \o/ 14:28:49 (alex_xu: I think we can call that put needing a content-type header thing a bug in the placement framework that we can fix) 14:28:56 * cdent is catching up on the log 14:29:04 jaypipes: go down, sure I get that. But to ignore it completely? 14:29:11 cdent: I left a possible explanation on the review itself 14:29:16 * bauzas disappearing 14:29:20 edleafe: what would be your solution? 14:29:32 cdent: to fix later, that is kind of break the rule of microversion 14:30:04 jaypipes: dunno - maybe at least a log entry saying "Hey, things are out of whack with this compute node's resources" 14:30:25 cdent: or you just mean it is bug, we can fix it now 14:30:51 alex_xu: it is a bug, we can (and should) fix it 14:30:57 edleafe: sure, feel free to add a log entry in there! :) 14:31:04 cdent: ok, cool, thanks 14:32:41 alex_xu: probably best to check both content-lenght and content-type instead of just content-type. I'll fix it this afternoon if nobody else has already started 14:34:11 cdent: ok, free to fix it if you have time, i also can fix it, but it is tomorrow for me. free to leave me a message if you didn't get free time 14:34:27 alex_xu: will keep you posted 14:34:35 cdent: thanks 14:34:45 #agreed Don't require Content-type if there is no content 14:35:15 Any other bugs to discuss? 14:35:48 #topic Open discussion 14:36:05 One item on the agenda: 14:36:06 (jroll) I wrote down a rough plan for how we transition ironic flavors, and started thinking about how we move ironic "capabilities" from the ComputeCapabilitiesFilter to placement's traits. Would like quick feedback on the former before I write a spec this week, and will be iterating on the latter to be worked on in queens. 14:36:11 #link https://etherpad.openstack.org/p/nova-ironic-flavor-transition-plan 14:36:22 jroll: anything to add? 14:36:22 hey, yeah 14:36:41 not really, I'd love some quick feedback there, the traits bit is a wip 14:37:02 otherwise I'll be putting that in a spec soon 14:37:21 ok, cool. Everyone be sure to read that etherpad and add your thoughts 14:37:27 thanks 14:37:48 jroll: i guess you are looking for https://review.openstack.org/351063 14:38:16 jroll customer resource class value = 1? you've got 0 14:38:49 heh, customer. I keep doing that. 14:38:54 alex_xu: well, no, we should be following the traits work in http://specs.openstack.org/openstack/nova-specs/specs/pike/approved/resource-provider-traits.html 14:39:27 alex_xu: ironic has lots of custom capabilities, with people using the ComputeCapabilitiesFilter, need to find a way to move to traits there 14:40:01 cdent: thanks, fixed 14:40:32 jroll: cool, was worried I had misunderstood everything up until this point and was going to disappear in a poof of logic 14:40:44 cdent: heh, was on cruise control there 14:41:22 The only other thing I would like to mention is the aforementioned addition of some functional tests for the RT and placement. I threw a few tests together, but would really like some feedback and suggestions for improvement before moving ahead any further. 14:41:26 #link https://review.openstack.org/446123 14:41:27 jroll: yea, https://review.openstack.org/351063 come with the 'resource-provider-traits' spec together, just didn't get progress as it isn't part of priority 14:41:46 edleafe: I intend to look today, or at least tomorrow morning 14:41:54 cdent: thx 14:42:17 They already uncovered a "bug" (that really wasn't a bug) 14:42:25 alex_xu: right, so I'm more concerned with the ironic transition to that :) 14:42:46 is there any different between standard traits and custom traits in the flavor? 14:43:10 we haven't defined the flavor changes for traits yet, so I don't know :) 14:44:35 (afaik) 14:44:40 sorry, got late 14:45:39 ok, i probably need to dig more 14:45:54 diga: we're just finishing up. Did you have anything to discuss? 14:46:36 nothing, as per cdent disucssion last time, I have listed out some details on notification 14:46:44 edleafe: cdent will update today 14:46:58 edleafe: cdent, sorry I was on holiday last week 14:47:03 diga: no problem 14:47:45 cdent: will go through meeting logs, as I am late here 14:47:46 Anything else before we end? 14:48:16 edleafe: not today, but we should start talking about claims in earnest 14:48:24 the current spec is too how, not enough what 14:48:32 we need to get what nailed before we start with the how 14:48:42 link? 14:49:02 #link claim super wip spec: https://review.openstack.org/#/c/437424/ 14:49:45 cdent: added to my "to review" set of tabs 14:50:59 Well, if no one has anything else... 14:51:16 * bauzas back 14:51:24 yeah, just leave comments 14:51:51 #endmeeting