Earlier  
Posted Nick Remark
#openstack-nova - 2017-06-14
21:40:11 mriedem but that's a question for alex
21:40:16 mriedem one of many
21:40:58 oomichi hehe, I saw the patch on the history. and I found I +2d on that before without this question
21:41:14 mriedem oomichi: did you see my question to sean above about https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/hypervisors.py#L110 ?
21:41:24 mriedem as far as i can tell, nothing uses those cached compute nodes in the request
21:41:32 mriedem i think the cache is more or less for extensions isn't it?
21:43:39 melwitt that's my understanding, that those request caches are just to avoid doing DB lookup every time for each extension that receives the request
21:44:30 melwitt since multiple extensions can operate on the same request
21:44:59 mriedem i don't see anything extending the "hypervisors" resource extension
21:45:09 mriedem therefore i don't think anything would be using the cache
21:45:18 mriedem maybe something used to and we collapsed it?
21:45:26 mriedem unless the view does somehow
21:45:37 melwitt they don't have to extend it to be run, I don't think
21:45:52 mriedem https://review.openstack.org/#/c/53785/
21:46:02 mriedem aha
21:46:04 mriedem os-pci
21:46:05 mriedem mfer
21:46:10 melwitt can't remember for sure though. I just know a lot of it is like onion layers, running each extension on the request object
21:46:20 mriedem time to get out my delete knife
22:04:50 melwitt eandersson: it looks like there might be something wrong with the test. in the log trace there's "Compute_service record created for compute:fake-mini" but then later on there's "Received an update from an unknown host 'compute'. Re-created its InstanceList." which looks like it's not matching it to the earlier created compute
22:06:05 melwitt like I wonder if the first compute service in the test needs to be started more similarly as the second compute service with the host and nodes set for it
22:08:20 eandersson Yea - found that as well
22:08:37 jaypipes eandersson: agree with melwitt. I don't really see anything in that patch that should be producing that error. and it seems the failure doesn't always occur, thus the rechecks.
22:09:08 jaypipes eandersson: the whole disabled check should definitely not be coming into play here.
22:09:15 eandersson Testing it locally it occurs maybe 80% of the time though
22:09:21 jaypipes hmm
22:09:31 jaypipes and only those affinity tests?
22:09:41 jaypipes eandersson: ^
22:10:10 eandersson I am just doing a single test at the moment (test_boot_servers_with_affinity_no_valid_host)
22:10:18 eandersson Adding a sleep at the right place and it succeeds 100%
22:11:48 melwitt eandersson: you might try patching like this and see if it improves anything locally http://paste.openstack.org/show/612599/
22:12:02 openstackgerrit Matt Riedemann proposed openstack/nova master: Handle uuid in HostAPI.compute_node_get https://review.openstack.org/461532
22:12:03 openstackgerrit Matt Riedemann proposed openstack/nova master: WIP: Handle uuids in os-hypervisors API https://review.openstack.org/471899
22:12:04 openstackgerrit Matt Riedemann proposed openstack/nova master: Use uuid for id in os-services API https://review.openstack.org/464280
22:12:19 mriedem melwitt: dansmith: oomichi: check out https://review.openstack.org/471899 if you want to see some terrible things
22:17:01 cfriesen mriedem: does nova-conductor need to be running in order to run "nova db online_data_migrations"?
22:17:47 oomichi mriedem: I am not sure why we want to add empty schema again for this api v2.0, is that WIP reason?
22:18:08 oomichi oh, these schemas are not used on https://review.openstack.org/#/c/471899/8/nova/api/openstack/compute/hypervisors.py ..
22:18:12 eandersson melwitt, was looking into something similar, still something holding it up
22:18:37 eandersson *but
22:18:59 openstackgerrit Takashi NATSUME proposed openstack/python-novaclient master: Microversion 2.48: Standardization of VM diagnostics https://review.openstack.org/473228
22:19:08 eandersson got 100% on that one test now, lets see if the others are going to be as happy :D
22:19:34 mriedem oomichi: it's one of my questions to alex_xu
22:19:40 mriedem i don't want to use empty schema if it can be avoided
22:19:45 mriedem but yeah it's all WIP right now
22:19:59 mriedem cfriesen: that's a dansmith question
22:20:04 mriedem i know some of them go through the objects,
22:20:13 mriedem but i figure they should be local to the db
22:30:33 eandersson https://github.com/openstack/nova/blob/master/nova/tests/functional/regressions/test_bug_1671648.py#L97
22:32:49 eandersson Looks like a very similar issue
22:35:43 melwitt huh, I added that. barely remember it
22:37:02 openstackgerrit Matt Riedemann proposed openstack/nova master: Handle uuid in HostAPI.compute_node_get https://review.openstack.org/461532
22:37:03 openstackgerrit Matt Riedemann proposed openstack/nova master: WIP: Handle uuids in os-hypervisors API https://review.openstack.org/471899
22:37:03 openstackgerrit Matt Riedemann proposed openstack/nova master: Use uuid for id in os-services API https://review.openstack.org/464280
22:37:04 openstackgerrit Matt Riedemann proposed openstack/nova master: Centralize compute_node_search_by_hypervisor in os-hypervisors https://review.openstack.org/474381
22:37:04 openstackgerrit Matt Riedemann proposed openstack/nova master: Stop caching compute nodes in the request https://review.openstack.org/474382
22:37:11 mriedem easy pickins on those bottom two changes
22:40:14 eandersson mriedem, so your suggestion fixed most issues, but it's still hitting this in 4 tests > not self.driver.node_is_available(nodename)
22:40:25 openstackgerrit Merged openstack/nova master: Count server group members to check quota https://review.openstack.org/457859
22:42:18 eandersson I see - FAKE_NODES need to have both hosts
22:48:28 melwitt mriedem: just curious, how was the compute node request cache messing up what you're working on?
22:49:16 openstackgerrit Merged openstack/nova master: Make compute_node_statistics() work across cells https://review.openstack.org/473931
22:53:23 openstackgerrit Erik Olof Gunnar Andersson proposed openstack/nova master: Re-worked ram filter and weights to support overcommit https://review.openstack.org/390984
22:53:40 eandersson That was effort, but I think I got it figured out
22:54:29 eandersson I could probably have left fake_network where it was though
22:59:22 eandersson thanks melwitt
23:02:53 melwitt eandersson: np. you might probably be asked to split the test fix into its own patch ahead of your scheduler patch. the issue in the server group tests is probably affecting other things too and is its own separate bug
23:03:18 eandersson Yea - was thinking the same.
23:04:15 eandersson Gonna go and get luncch and Zuul is hopefully all green :D delayed lunch by like... 4 hours trying to figure this out :D
23:04:27 eandersson *by the time I get back
#openstack-nova - 2017-06-15
00:06:28 openstackgerrit Erik Olof Gunnar Andersson proposed openstack/nova master: Re-worked ram filter and weights to support overcommit https://review.openstack.org/390984
00:08:31 openstackgerrit Erik Olof Gunnar Andersson proposed openstack/nova master: Re-worked ram filter and weights to support overcommit https://review.openstack.org/390984
00:11:59 mriedem melwitt: it wasn't
00:12:11 mriedem melwitt: but the amount of gorp in the hypervisors api controller code hurts me
00:12:12 mriedem inside
00:12:40 mriedem so before i add more complication in there, i'm trying to trim the fat a bit
00:32:57 openstackgerrit Matt Riedemann proposed openstack/nova master: api-ref: cleanup PUT /os-hypervisors/statistics docs https://review.openstack.org/474250
00:37:21 openstackgerrit Matt Riedemann proposed openstack/nova master: Stop caching compute nodes in the request https://review.openstack.org/474382
00:37:22 openstackgerrit Matt Riedemann proposed openstack/nova master: Handle uuid in HostAPI.compute_node_get https://review.openstack.org/461532
00:37:23 openstackgerrit Matt Riedemann proposed openstack/nova master: Centralize compute_node_search_by_hypervisor in os-hypervisors https://review.openstack.org/474381
00:37:23 openstackgerrit Matt Riedemann proposed openstack/nova master: WIP: Handle uuids in os-hypervisors API https://review.openstack.org/471899
00:37:24 openstackgerrit Matt Riedemann proposed openstack/nova master: Use uuid for id in os-services API https://review.openstack.org/464280
01:03:08 openstackgerrit Erik Olof Gunnar Andersson proposed openstack/nova master: Re-worked ram filter and weights to support overcommit https://review.openstack.org/390984
01:20:12 openstackgerrit Takashi NATSUME proposed openstack/nova master: Fix a wrong comment https://review.openstack.org/474400
01:32:45 openstackgerrit Erik Olof Gunnar Andersson proposed openstack/nova master: Fixing issues with functional server_group tests https://review.openstack.org/474404
01:35:14 eandersson melwitt ^
01:35:46 eandersson Assuming that looks good I'll have my previous patch depend on it
01:43:30 openstackgerrit Ghanshyam Mann proposed openstack/nova master: Use plain routes list for os-cloudpipe endpoint instead of stevedore https://review.openstack.org/474116
02:00:47 eandersson melwitt pretty sure something larger is wrong with these tests
02:02:22 eandersson Based on how _FAKE_NODES is implemented it makes me believe that all the active nodes should be listed in set_nodes
02:02:35 eandersson e.g. set_nodes(['host1', 'host2'])
02:02:49 eandersson but that breaks a lot of the tests
02:08:22 openstackgerrit Zhenyu Zheng proposed openstack/nova master: Support tag instances when boot(3/4) https://review.openstack.org/459593
02:09:25 alex_xu oomichi: mriedem https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/schemas/keypairs.py#L94 is for backward-compatible, the API accept any invalid query parameters, we can't set it addtionalProperties as False, it break the API contract
02:09:41 alex_xu mriedem: and I'm checking other questions :)
02:17:20 alex_xu mriedem: oh, I got the original question. I agree without those empty validation, the API still works correctly. But I guess we still want to show the API contract explicitly, the empty schema means there is no any valid query parameter for this api version
02:19:23 alex_xu mriedem: I initialy thought we add the query parameter validation decorator for all the APIs.
02:54:50 openstackgerrit Zhenyu Zheng proposed openstack/nova master: Support tag instances when boot(3/4) https://review.openstack.org/459593
03:12:32 mriedem alex_xu: can you comment on this todo question i have in here then? https://review.openstack.org/#/c/471899/10/nova/api/openstack/compute/hypervisors.py@109
03:12:46 mriedem i'll try to get back to it tomorrow

Earlier   Later