| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-nova - 2017-10-25 | |||
| 12:22:42 | efried | Setting to 0 would remove it. Presumably this is so you could e.g. provide disk resource from somewhere else, but you can't create a flavor with disk 0. | |
| 12:23:52 | cdent | I hope some day we will just destroy flavors as an internal concept and they will only be a UI thing. | |
| 12:23:53 | efried | cdent The plan is to be able to express all resources from one place. We didn't want to (couldn't) do that by adding every standard and custom resource class to the main flavor object. So we want to do it via specific namespacing in the extra_specs because it's a freeform grab-bag. | |
| 12:24:44 | efried | cdent I don't know what the ultimate fate of the flavor object will be. But I don't disagree that it's kind of a mess atm. | |
| 12:24:57 | efried | not least because we're transitioning to this generic resource management ideal. | |
| 12:27:18 | cdent | you got the golden ticket | |
| 12:27:25 | openstackgerrit | Chris Dent proposed openstack/nova master: [placement] Enable limiting GET /allocation_candidates https://review.openstack.org/513526 | |
| 12:32:31 | efried | alex_xu yt? | |
| 12:32:48 | jmccarthy | Is there some config or option needed for console.log to work in horizon ? At the moment I'm finding with cirros it works, but with OL7 it doesn't ? The xml of the two instances looks very similar | |
| 12:33:08 | jmccarthy | But in the OL7 case, the console.log is 0 size file | |
| 12:33:16 | jmccarthy | (similar permissions etc) | |
| 12:41:05 | cdent | efried: I hate resorting to mocks in functional tests. (Or really in any tests) | |
| 12:41:26 | efried | cdent Oh, was that a functional test, yeah, don't mock stuff there. | |
| 12:41:30 | cdent | but if you like I’m happy to add that in if we want to be sure, but *shrug* | |
| 12:41:39 | efried | Nah, I +1ed. | |
| 12:41:54 | cdent | k3wl | |
| 12:45:18 | alex_xu | efried: yea, i'm here | |
| 12:45:40 | alex_xu | nova api meeting is in 15 mins at #openstack-meeting-4 | |
| 12:47:20 | efried | alex_xu I wanted to talk through that SQL boggle. I'm writing up a comment... | |
| 12:49:06 | alex_xu | efried: yea | |
| 12:59:49 | sean-k-mooney | stephenfin: qq just set up one of my lab vms with an irc client. does my nick ectra look normal. i might set up a znc bouncer at the weekend instead but it windows reboots are getting to be a pain. | |
| 13:00:14 | stephenfin | sean-k-mooney: All good here, yup | |
| 13:00:26 | sean-k-mooney | cool | |
| 13:06:16 | mriedem | dansmith: tonyb gave his blessing https://review.openstack.org/#/c/514685/ | |
| 13:12:48 | openstackgerrit | Matt Riedemann proposed openstack/nova stable/pike: Import the config drive docs from openstack-manuals https://review.openstack.org/515053 | |
| 13:12:48 | openstackgerrit | Matt Riedemann proposed openstack/nova stable/pike: Import user-data page from openstack-manuals https://review.openstack.org/515054 | |
| 13:32:37 | efried | dansmith mriedem This migration UUID business - is that going to get rid of the "doubling up" that makes remove_provider_from_instance_allocation necessary? | |
| 13:33:19 | mriedem | efried: sort of | |
| 13:33:41 | mriedem | efried: the scheduler will pick a dest host and double the instance allocations between the source and dest host, | |
| 13:33:48 | mriedem | then conductor will swap the source node allocation with the migration record | |
| 13:34:02 | mriedem | so the instance will have an allocation on the dest host, and the migration will have an allocation on the source ohst | |
| 13:34:04 | mriedem | *host | |
| 13:34:46 | mriedem | as i pointed out in https://review.openstack.org/#/c/506420/ this morning, until we have cdent's POST allocations stuff, we'll actually be quadrupling the allocations temporarily when resizing to the same host | |
| 13:34:54 | dtantsur | hi mriedem! do I get it right that we're past spec freeze? people ping me re https://review.openstack.org/#/c/449155/, do they have to move it to Rocky at this point? I also wonder if that even needs a spec, but dunno | |
| 13:35:52 | mriedem | dtantsur: i think any move operation involving the ironic driver is going to require a spec yes, simply because of the resource tracking considerations that have to be made with the 1:M host:node mapping with ironic | |
| 13:36:03 | efried | mriedem Okay, so there will still need to be some affordance for adjusting doubled (or quadrupled) allocations for the forseeable future. | |
| 13:36:15 | mriedem | dtantsur: because we have assumptions all over nova when getting compute nodes from the db with only the host that there is only 1 node because we're not supporting moves with ironic yet | |
| 13:36:28 | mriedem | efried: yes, per the FIXME note from dan in that change | |
| 13:36:38 | mriedem | the FIXME means replace that with cdent's POST allocations stuff | |
| 13:36:54 | cdent | just in the midst of writing the docs for that stuff | |
| 13:36:58 | efried | mriedem The problem is in the way we're discovering how much adjustment to make, and to which RP. At the moment the code assumes in several ways that there's only one RP - the compute node. | |
| 13:36:59 | dtantsur | mriedem: mm, this is something I've never considered | |
| 13:37:34 | mriedem | dtantsur: also, | |
| 13:38:05 | mriedem | we have a spec from takashin to pass a dest host for cold migration, and that won't really work for ironic because you're only passed the host in the api, not the host+node | |
| 13:38:30 | mriedem | today when the admin specifies a host, we just take the ComputeNodeList[0] entry b/c we assume it's not an ironic instance | |
| 13:38:39 | dtantsur | yep, I think the plan was to let nova find a host | |
| 13:39:01 | mriedem | find a node? | |
| 13:39:10 | mriedem | the admin specifies a host, nova just randomly picks a node | |
| 13:39:28 | mriedem | well, i guess i'm thinking of the force case with live migration and evacuate | |
| 13:39:46 | mriedem | for cold migration we said we wouldn't add a force option, so you can specify a host and we'll still go through the scheduler to find a node | |
| 13:40:05 | mriedem | evacuate + forced host + ironic is probably totally busted though :) | |
| 13:40:58 | dtantsur | yep :) | |
| 13:41:26 | dtantsur | we were discussing cold migration + resize in context of nova. I was under impression this may work | |
| 13:41:36 | dtantsur | well, assuming people boot from volume and do not rely on local disks too much :) | |
| 13:41:55 | dansmith | mriedem: his question was if it'll remove the need for that special allocation-slicing thing and it will | |
| 13:42:25 | dansmith | mriedem: once we're past queens we won't have any of that | |
| 13:43:04 | mriedem | dansmith: the scheduler still picks the dest host and makes the doubled allocation yeah? | |
| 13:43:06 | dtantsur | mriedem: anyway, could you please leave a short comment on that spec with the freeze status and the question you'd see covered? | |
| 13:43:06 | mriedem | for the instance | |
| 13:43:13 | dansmith | mriedem: no | |
| 13:43:15 | mriedem | dtantsur: doing so now | |
| 13:43:24 | dtantsur | thanks mriedem | |
| 13:43:30 | dansmith | mriedem: before we call the scheduler we replace the instance allocation with the migration one so no doubling happens when the scheduler does its thing | |
| 13:44:23 | mriedem | dansmith: yeah sorry you're right - _preallocate_migration is called before select_destinations() | |
| 13:45:01 | dansmith | right | |
| 13:45:31 | mriedem | ok i was +2 on that change since last night anyway | |
| 13:46:02 | mriedem | back to crushing everyone's queens spec freeze dreams | |
| 13:46:26 | dansmith | efried: catch that? | |
| 13:52:10 | sean-k-mooney | dansmith: mriedem today we claim PCI devices on the compute node not the scheduler/conductor correct? we only do placement allocation for cpu,ram and disk in the scheduler today. | |
| 13:52:26 | dansmith | correct | |
| 13:54:41 | sean-k-mooney | ok that's what i taught. we may need to pass more the the host-id when creating the new portbinding unless neutron are happy to allow use to update the binding profile with the claimed pci devices when we activate the binding | |
| 13:55:07 | openstackgerrit | Radoslav Gerganov proposed openstack/nova master: VMware: implement get_inventory() driver method https://review.openstack.org/506175 | |
| 13:55:32 | mriedem | sean-k-mooney: i thought some of the dvr hackery migration code we have in nova.network.neutronv2.api already dealt with pci devices in the port binding profile? | |
| 13:56:37 | sean-k-mooney | it may i was just trying to think if we need to have the binding profile in the new migrtion object or not. | |
| 13:57:47 | sean-k-mooney | mriedem: that said there is no code to regenerate the interfaces at all currently so if it was updating pci devices it was not updating the xml for sriov devices | |
| 13:58:24 | mriedem | sean-k-mooney: ok - definitely going into moshe / cfriesen territory here | |
| 13:59:26 | sean-k-mooney | mriedem: ya ill check with them, as far as i know i think moshe had patches to make livemigration with macvtap mode work but i dont recall if they ever merged | |
| 14:00:54 | sean-k-mooney | mriedem: vnic_type=direct or direct_physical do not support live migration currently at all as far as i know so this is an edge case of an edge case | |
| 14:07:25 | mriedem | dansmith: better to do a new remotable class method here? https://review.openstack.org/#/c/514904/3/nova/objects/migration.py | |
| 14:07:29 | mriedem | i think that's what we do in InstanceList | |
| 14:08:24 | dansmith | mriedem: the reason we did it for instance is because we had sort_key already and they wanted to replace it with sort_keys | |
| 14:08:49 | dansmith | we do add arguments like this all the time and I think the behavior of them being unset makes sense in this case (i.e. =None means default sort) | |
| 14:09:07 | mriedem | ok | |
| 14:09:17 | dansmith | I shall comment | |
| 14:10:23 | openstackgerrit | Matt Riedemann proposed openstack/nova master: Fix AttributeError in BlockDeviceMapping.obj_load_attr https://review.openstack.org/514825 | |
| 14:10:26 | mriedem | melwitt: i just removed the obj_reset_changes thing in the bdm object here; didn't want that holding up this otherwise simple fix ^ | |
| 14:20:42 | efried | dansmith Got it, thanks. I just saw your commentary at https://review.openstack.org/#/c/506420/29/nova/conductor/tasks/migrate.py@61 which confirms some stuff I "discovered" last night as I was trying to figure out how to make flavors take numbered groupings. | |
| 14:21:07 | dansmith | ack | |
| 14:21:23 | efried | dansmith Getting resources from the flavor is going to break down *very* quickly for everything other than scheduling. | |
| 14:21:48 | efried | We're gonna have to get it from placement - but that's a chicken/egg for these scenarios. | |
| 14:22:05 | dansmith | well, that's why I was suggesting we go ahead with passing the allocation into the virt drier, | |
| 14:22:12 | dansmith | instead of setting the precedent of ripping that from the flavor | |
| 14:22:32 | efried | dansmith Does that help, though? Unless compute caches it somewhere... | |
| 14:22:56 | dansmith | help what? | |
| 14:23:23 | dansmith | it helps us not have to reconstruct the request to placement for things like "which device on which numa node should we give them a vgpu from" | |
| 14:23:27 | efried | Help with getting rid of remove_provider_from_instance_allocation | |
| 14:23:40 | dansmith | no, but that's not an issue after my set anyway | |
| 14:23:54 | efried | Let me come at it from the other angle: What all needs to merge for us to get rid of remove_provider_from_instance_allocation ? Just your thing, or also cdent's POST thing? | |
| 14:24:18 | dansmith | yes, and then a cycle has to pass, because we still need that for the old path where we have pike computes doing the old thing | |
| 14:24:30 | dansmith | so we merge my thing, snap queens, then we can remove all that junk | |