Earlier  
Posted Nick Remark
#openstack-nova - 2017-03-02
21:42:00 ildikov mriedem: we can keep the long list on the regular etherpad and move items to the priority one when they are out of WIP for instance
21:42:25 mriedem dims: i'm not sure how that number was calculated to begin with
21:43:09 mriedem maybe that's total number of py27 tests - total number of py35 tests run
21:43:55 mriedem dims: hmm i also see that gate-nova-tox-functional-py35-ubuntu-xenial is non-voting but it's passing
21:43:58 mriedem not sure why it's still non-voting
21:44:22 dims mriedem : right. http://git.openstack.org/cgit/openstack/nova/tree/tests-py3.txt also shows just a handful of things
21:44:34 dims +1 to make it voting
21:44:57 mriedem dims: want to push that change?
21:45:11 dims project-config change, sure
21:45:31 mriedem yeah it's actually down to 63 tests now
21:45:35 mriedem i'll update the governance repo
21:47:02 dansmith mriedem: sdague: for something like /servers/<uuid>/tags/foo, is there some glue somewhere that looks up the instance via uuid before the show/update gets called in the server_tags extension?
21:47:16 dansmith something other than servers.py::show I would assume
21:48:29 sdague dansmith: what exactly are you looking for?
21:48:37 sdague just how do the routes get populated?
21:48:39 mriedem dansmith: this is the extension code for servers https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/server_tags.py#L182
21:49:00 mriedem https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/server_tags.py#L64
21:49:03 sdague https://github.com/openstack/nova/blob/37cd9a961b065a07352b49ee72394cb210d8838b/nova/api/openstack/compute/server_tags.py#L183-L190
21:49:10 mriedem show is a 204
21:49:12 mriedem which seems odd
21:49:14 dansmith sdague: sdague when I PUT /servers/<uuid>/tags/foo, I never get to server_tags.py::update() before I get NotFound looking up the instance, it seems
21:49:43 dims mriedem : https://review.openstack.org/440826
21:49:48 mriedem dansmith: that would be this i think https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/server_tags.py#L137
21:49:56 dansmith sdague: do the routes just fetch uuid out of the url for me, but completely rely on me doing the 404 if I don't find the server?
21:50:15 dansmith mriedem: yeah I don't seem to get there
21:50:23 dansmith maybe I'm doing something else wrong
21:51:10 mriedem dansmith: that's what it looks like, the tags extensions can fail with an InstanceNotFound
21:51:15 sdague dansmith: I'm going to have to reload this bit back into my head
21:51:17 mriedem but it looks like the instance lookup is hidden in the tag object
21:51:43 dansmith mriedem: right I just want to make sure that's the only one, because I don't seem to make it into that method *at all*
21:51:51 mriedem https://github.com/openstack/nova/blob/master/nova/objects/tag.py#L51
21:51:51 mriedem oh
21:51:52 dansmith and I'm wondering if there is some other glue that is missing the cell lookup
21:52:01 mriedem dansmith: microversoin?
21:52:13 dansmith mriedem: it's tempest
21:52:21 mriedem still
21:52:27 mriedem is it passing 2.1?
21:52:56 mriedem i think you need at least 2.26
21:52:57 dansmith I dunno, but the test seems to work without cells. I just tried from nova client and I get the same deal
21:53:17 mriedem novaclient CLI will request the latest microversion available that it understands
21:53:19 mriedem tempest won't
21:53:35 dansmith PUT http://192.168.201.194:8774/v2.1/servers/0d97611d-f1d6-4146-858d-9387baf36558/tags/tagme -H "OpenStack-API-Version: compute 2.41"
21:53:36 mriedem i don't think anyway
21:53:37 sdague mriedem: the tests should be configured correctly
21:53:43 cfriesen related to my earlier DB question....is there a reason why "instance_actions" rows don't get deleted when the instance does?
21:53:58 mriedem cfriesen: have you bothered to look at the code?
21:54:45 cfriesen mriedem: I'm looking at instance_destroy() in the DB API code
21:55:05 mriedem it doesn't appear that they do there
21:55:17 mriedem i believe this came up in the ML in newton
21:55:30 cfriesen okay, I can check the archives
21:55:37 sdague dansmith: I'm pretty sure nothing else is validating the server id until you get into server_tags.py
21:55:43 cfriesen I didn't see a bug for it
21:55:48 dansmith sdague: okay
21:55:55 sdague but, it's end of day, so that's just my recollection
21:56:06 dansmith sdague: http://pastebin.com/bicZYZVt
21:56:20 dansmith sdague: with that, when I add a tag from the client, I get _none_ of my log lines in the log
21:56:36 dansmith well, when I _try_ to add a tag.. it fails with 404
21:57:48 dansmith anyway, just want to make sure I'm not missing something obvious
21:57:58 mriedem cfriesen: https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L6468
21:58:07 mriedem they are handled differently for archive at least
21:58:11 mriedem because they aren't soft deleted
21:59:27 mriedem cfriesen: http://lists.openstack.org/pipermail/openstack-dev/2015-November/079701.html
22:00:13 dansmith mriedem: just checking, but... api_version('2.26') means "2.26 or later" right? just making sure we don't have another single-version thing
22:00:20 dansmith that wouldn't explain tempest not working though
22:00:37 cfriesen mriedem: I was just looking at the bug related to that email thread
22:00:48 mriedem cfriesen: http://lists.openstack.org/pipermail/openstack-dev/2015-November/079778.html
22:00:50 mriedem ^ is the summary
22:01:13 sdague dansmith: https://github.com/openstack/nova/blob/37cd9a961b065a07352b49ee72394cb210d8838b/nova/api/openstack/wsgi.py#L907-L910
22:01:22 mriedem dansmith: depends on where the code is i guess
22:01:41 dansmith sdague: okay yeah
22:02:35 sdague dansmith: anyway, if this is still a thing tomorrow, I can help debug. But I'm pretty sure we end up just building the routes through route mapper and we get straight to these functions
22:02:43 mriedem cfriesen: i also remember this coming out of that discussion https://docs.openstack.org/developer/nova/api_microversion_history.html#id19
22:02:50 dansmith sdague: okay me too, I just don't know how else to explain what I'm seeing
22:02:55 dansmith sdague: but yeah thanks
22:02:57 sdague the only question is if there is a very early 404 in wsgi
22:03:00 dansmith right
22:03:14 cfriesen mriedem: right, I saw that part.
22:03:50 sdague https://github.com/openstack/nova/blob/37cd9a961b065a07352b49ee72394cb210d8838b/nova/api/openstack/wsgi.py#L601
22:03:59 sdague but that should show up in nova-api logs as a fault
22:04:08 openstackgerrit Sujitha proposed openstack/nova master: Add description to policies in admin_actions. https://review.openstack.org/440829
22:04:48 dansmith oooooo
22:05:16 dansmith no, no.
22:05:17 cfriesen mriedem: that summary is useful, thanks. it might be nice if it was in the code as a comment or something.
22:05:18 dansmith dammit
22:05:44 sdague ok, you have to share before I run away
22:05:48 dansmith there is no instance lookup in the path of the PUT
22:05:48 sdague because I want to know :)
22:06:02 dansmith I thought there was, but it's for the server get the client does before the put of the tag
22:06:05 dansmith after the get returns,
22:06:13 sdague ah
22:06:14 dansmith no instance get at all
22:06:19 dansmith so......
22:06:24 sdague right, so you are way off in 404 land
22:06:35 dansmith I don't like 404 land
22:08:21 openstackgerrit Sujitha proposed openstack/nova master: Add description to policies in admin_actions. https://review.openstack.org/440829
22:09:46 mriedem dims: v
22:09:47 mriedem https://review.openstack.org/440832
22:10:05 mriedem cfriesen: i have to go back and read the summary myself
22:10:50 dansmith sdague: omg I am so awesaome
22:11:36 dansmith sdague: RROR stevedore.extension [req-3b12728d-ad52-44bd-b79d-ba66275e1d1d None None] Could not load 'server_tags': cannot import name nova_context

Earlier   Later