Earlier  
Posted Nick Remark
#openstack-nova - 2017-06-19
20:09:27 melwitt mriedem: do you happen to know if novaclient or OSC are capable of doing any automatic paging when e.g. number of servers > 1000 for a server list?
20:10:55 mriedem i think novaclient might, not sure about osc
20:11:14 melwitt thanks. I feel like I heard of something like that but memory is hazy
20:11:42 mriedem https://github.com/openstack/python-novaclient/blob/master/novaclient/v2/shell.py#L1424
20:11:46 mriedem limit of -1
20:11:49 mriedem makes novaclient page
20:11:59 mriedem i remember diana hitting this with the simple tenant usage paging stuff
20:12:31 melwitt okay, it's still going to just return the api max limit though, won't go ahead and query with the marker for the next hunk etc
20:12:45 melwitt or wait, -1 all servers
20:13:20 melwitt okay, yeah cool
20:13:41 mriedem https://cdn.meme.am/cache/instances/folder766/24025766.jpg
20:13:53 melwitt lol awesome
20:14:54 openstackgerrit Merged openstack/nova master: Use plain routes list for os-quota-classes endpoint instead of stevedore https://review.openstack.org/461641
20:15:31 openstackgerrit Merged openstack/nova master: Use plain routes list for os-cloudpipe endpoint instead of stevedore https://review.openstack.org/474116
20:15:59 openstackgerrit Merged openstack/nova master: Use plain routes list for os-tenant-networks instead of stevedore https://review.openstack.org/474475
20:22:03 openstackgerrit Merged openstack/nova master: Remove multiple create from stevedore https://review.openstack.org/474909
20:22:07 melwitt I wonder why github doesn't show what tag/release a commit is in if it's a backport to stable
20:41:12 openstackgerrit Matt Riedemann proposed openstack/nova master: WIP: Handle uuids in os-hypervisors API https://review.openstack.org/471899
20:48:52 sdague mriedem: it looks like if you want to land the mitaka backports you'll need to make the tempest tests non voting
20:49:29 sdague mriedem: keystone drifted in some way and there isn't a great way to exclude those tests
20:57:53 mriedem ok, i'm not sure i care all that much
20:58:38 mriedem dansmith: shouldn't we generally be locking when refreshing the nw info cache? like in https://github.com/openstack/nova/blob/ac41395f11002c09e7cd1c4a26632e73bc1bc952/nova/network/base_api.py#L74
20:58:50 mriedem i see that when handling external vif deleted events, we don't lock https://github.com/openstack/nova/blob/ac41395f11002c09e7cd1c4a26632e73bc1bc952/nova/compute/manager.py#L6816
20:59:15 dansmith mriedem: well, it will only lock against things running on the same machine of course,
20:59:25 dansmith mriedem: and we're probably already under the instance lock in compute manager right?
20:59:42 mriedem no
20:59:43 mriedem _process_instance_vif_deleted_event
20:59:48 mriedem https://github.com/openstack/nova/blob/ac41395f11002c09e7cd1c4a26632e73bc1bc952/nova/compute/manager.py#L6834
20:59:48 dansmith mriedem: the general thinking there is that two threads racing are likely to write the same thing to the db, so it doesn't much matter
21:00:01 dansmith oh, in the event handler, right
21:00:36 dansmith but anyway, if we did, we wouldn't be excluded against another compute doing it too during a migration, or a n-net node, or a conductor (if that happens), etc
21:01:05 mriedem sure, global DLM aside
21:01:34 mriedem i was just commenting on someone's patch that was fiddling with things in there outside the lock
21:01:37 mriedem and got looking around
21:01:49 mriedem there == instance nw info cache
21:02:01 dansmith the lock also isn't going to prevent us from hitting neutron more than once or anything
21:02:05 dansmith it's just going to serialize those operations
21:03:00 mriedem yeah i know
21:03:06 mriedem just not sure if i care about https://review.openstack.org/#/c/419975/14/nova/virt/ironic/driver.py
21:04:20 dansmith yeah I don't think that's going to do anything
21:04:47 dansmith it does seem weird to be updating the cache from inside a driver like that though
21:08:49 openstackgerrit OpenStack Proposal Bot proposed openstack/nova master: Updated from global requirements https://review.openstack.org/475563
21:14:09 dansmith mriedem: jaypipes apparently none of the placement fixtures have tests?
21:14:39 jaypipes dansmith: not sure what you mean?
21:15:03 dansmith jaypipes: we have unit tests for the normal nova fixtures
21:15:09 dansmith jaypipes: i.e. tests/unit/test_fixtures
21:15:17 dansmith I was going to -1 you for your new untested fixture,
21:15:25 dansmith but it seems that none of the placement fixtures are tested...
21:15:39 jaypipes dansmith: you mean besides the functional API tests that use them?
21:16:19 dansmith jaypipes: yeah, we don't just assume the nova fixtures work because other tests use them...
21:16:41 jaypipes dansmith: ok :)
21:18:05 dansmith jaypipes: I'll defer to mriedem, assuming we're not going to hold you to that here since there aren't tests for the others
21:18:14 dansmith I was just surprised
21:19:07 dansmith jaypipes: I do think we want tests for that normalize helper you pulled out though
21:19:21 jaypipes dansmith: yup, no prob. I can handle that. :)
21:20:05 dansmith jaypipes: I also don't see tests that make sure this doesn't work before microversion 1.8, but I'm not sure if that's convention or not
21:20:10 dansmith I would expect we would just check that we get a 404
21:48:04 mriedem the more i look at this, the more it hurts https://github.com/openstack/nova/blob/master/nova/network/neutronv2/api.py#L887-L894
21:48:24 mriedem the note is obviously wrong now, it was added before we tracked neutron preexisting ports https://review.openstack.org/#/c/22610/2/nova/network/quantumv2/api.py
21:49:10 mriedem at this point, isn't what we return going to be all ports for the instance? since created and preexisting is the full set of ports for a given instance, either during server create or interface attach
21:50:20 dansmith heh, yeah because "created_port_ids + preexisting_port_ids"
21:50:34 mriedem or
21:50:42 mriedem https://github.com/openstack/nova/blob/master/nova/network/neutronv2/api.py#L982
21:51:01 mriedem preexisting_port_ids might not be "all" preexisting ports for the instance, it might be only the ones in the attach request that aren't new
21:51:21 mriedem so if i create my instance with port A, and then attach B, preexisting_port_ids will have B in it but not A, i think
21:51:23 dansmith all that stuff is crap
21:51:45 mriedem i.e. preexisting_ports_for_the_current_request
21:54:06 openstackgerrit melanie witt proposed openstack/nova master: Add FixedIPList.get_count_by_project() https://review.openstack.org/446246
21:54:07 openstackgerrit melanie witt proposed openstack/nova master: Add FloatingIPList.get_count_by_project() https://review.openstack.org/446247
21:54:07 openstackgerrit melanie witt proposed openstack/nova master: Add get_count_by_vm_state() to InstanceList object https://review.openstack.org/446244
21:54:08 openstackgerrit melanie witt proposed openstack/nova master: Add SecurityGroupList.get_counts() https://review.openstack.org/446245
21:54:08 openstackgerrit melanie witt proposed openstack/nova master: Remove 'reserved' count from used limits https://review.openstack.org/446242
21:54:10 openstackgerrit melanie witt proposed openstack/nova master: Remove useless quota_usage_refresh from nova-manage https://review.openstack.org/446243
21:54:11 openstackgerrit melanie witt proposed openstack/nova master: Count networks to check quota https://review.openstack.org/446241
21:54:13 openstackgerrit melanie witt proposed openstack/nova master: Count instances to check quota https://review.openstack.org/416521
21:54:15 openstackgerrit melanie witt proposed openstack/nova master: Count security groups to check quota https://review.openstack.org/457860
21:54:17 openstackgerrit melanie witt proposed openstack/nova master: Count fixed ips to check quota https://review.openstack.org/457861
21:54:20 openstackgerrit melanie witt proposed openstack/nova master: Make Quotas object favor the API database https://review.openstack.org/410945
21:54:22 openstackgerrit melanie witt proposed openstack/nova master: Add online migration to move quotas to API database https://review.openstack.org/410946
21:54:25 openstackgerrit melanie witt proposed openstack/nova master: Count floating ips to check quota https://review.openstack.org/457862
21:54:38 mriedem i still can't figure out https://bugs.launchpad.net/nova/+bug/1645175 then
21:54:38 openstack Launchpad bug 1645175 in OpenStack Compute (nova) "Neutron port got deleted when attach interface failed" [Medium,In progress] - Assigned to Matt Riedemann (mriedem)
21:55:13 mriedem guess i'm going to need to recreate with devstack and a bunch of table dumps when it happens
21:57:09 openstackgerrit Merged openstack/nova master: placement: produce set of allocation candidates https://review.openstack.org/473377
22:09:07 openstackgerrit Matt Riedemann proposed openstack/nova master: Fix the note at the end of allocate_for_instance https://review.openstack.org/475578
22:09:08 mriedem dansmith: maybe ^ makes more sense; i've been meaning to update that for awhile
22:14:52 mriedem i could be missing something, but i think this actually removes things from the cache which were attached to the instance before a new attach operation
22:15:03 mriedem which would be...bad
22:19:00 openstackgerrit Merged openstack/nova master: Handle uuid in HostAPI.compute_node_get https://review.openstack.org/461532
22:39:14 openstackgerrit OpenStack Proposal Bot proposed openstack/nova master: Updated from global requirements https://review.openstack.org/475563
22:47:07 mriedem we shall see https://review.openstack.org/475596
22:54:39 openstackgerrit Jay Pipes proposed openstack/nova master: placement: support GET /allocation_candidates https://review.openstack.org/475448
22:54:40 openstackgerrit Jay Pipes proposed openstack/nova master: placement: separate normalize_resources_qs_param https://review.openstack.org/475599
22:54:40 openstackgerrit Jay Pipes proposed openstack/nova master: placement: scheduler uses allocation candidates https://review.openstack.org/475600
22:54:46 jaypipes dansmith: ^
#openstack-nova - 2017-06-20
00:35:26 openstackgerrit Merged openstack/nova master: api-ref: cleanup PUT /os-hypervisors/statistics docs https://review.openstack.org/474250
00:45:24 openstackgerrit Ghanshyam Mann proposed openstack/nova master: Add api-ref for os-quota-class-set APIs https://review.openstack.org/467938
00:48:17 openstackgerrit Ghanshyam Mann proposed openstack/nova master: Add api-ref for os-quota-class-set APIs https://review.openstack.org/467938
00:59:17 alex_xu mriedem: sorry, I commented at wrong place. We can implement that check in the python code.
02:16:14 Kevin_Zheng ping mriedem

Earlier   Later