| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-nova - 2017-11-21 | |||
| 15:31:44 | artom | I grok that aggregate metadata can be changed by an operator | |
| 15:31:54 | efried | mordred Today placement's GET / requires auth | |
| 15:32:08 | artom | But nothing about the instance can change to affect its aggregate placement, I think? | |
| 15:32:16 | dansmith | artom: so we have a test that makes sure that rebuild fails if the operator has manually migrated one of your anti-affinity brothers to your same host.. I figure that means that late violation of such a policy should make rebuild fail | |
| 15:32:23 | mriedem | artom: the image can change on rebuild | |
| 15:32:39 | mriedem | so the image meta can change the host aggregates you can be in | |
| 15:32:43 | mriedem | which was the original bug | |
| 15:32:48 | artom | mriedem, ah, does that specify aggregate stuff? OK, that's ignorance on my part then | |
| 15:33:55 | mriedem | efried: didn't you have a devstack patch at one point that depended on https://review.openstack.org/#/c/490057/ and removed the [glance] auth options from nova.conf to see it passing? | |
| 15:34:04 | efried | mriedem one sec... | |
| 15:34:06 | mriedem | artom: good luck | |
| 15:34:24 | mriedem | oh wait, nevermind, we codify image meta | |
| 15:34:30 | mriedem | nova.objects.image_meta | |
| 15:34:34 | dansmith | yeah it's in there | |
| 15:34:45 | mriedem | was thinking extra specs | |
| 15:35:06 | artom | Those are flavour though... (right?) | |
| 15:35:07 | efried | mriedem https://review.openstack.org/#/c/490031/ (It was sdague's) | |
| 15:35:08 | mordred | efried: yes. please make to all version discovery unauthenticated | |
| 15:35:10 | dansmith | however, I think the point is that you can put extra_specs on the aggregate that looks at image properties to keep things in place | |
| 15:35:13 | artom | And flavour can't change with a rebuild... | |
| 15:35:25 | mriedem | artom: correct, | |
| 15:35:28 | mriedem | flavor can only change on resize | |
| 15:35:33 | mriedem | and we run through the scheduler on resize already | |
| 15:35:34 | dansmith | artom: that's the point of the original bug, you might have landed on a linux host, rebuild to a windows image, and blow a license for the operator | |
| 15:37:10 | sdague | efried: those test results current? if so we can get that moved in | |
| 15:37:26 | efried | sdague They're ~6w old. I'll recheck. | |
| 15:37:34 | sdague | efried: cool | |
| 15:39:42 | artom | dansmith, going back to anti-affinity... we never checked the scheduler previously, so if during an instance's lifetime an anti-affinity brother migrated to the same host, the rebuild would not fail | |
| 15:39:50 | artom | Whereas now it would | |
| 15:40:03 | mriedem | efried: i'm a bit confused in that we don't even fill in the auth options for [glance] in nova.conf in our dsvm ci runs today, | |
| 15:40:11 | dansmith | artom: we already have a test for it | |
| 15:40:19 | mriedem | does nova really not talk to glance anywhere where it needs a token that doesn't come from the user context? | |
| 15:40:28 | sdague | mriedem: correct | |
| 15:40:38 | artom | dansmith, ah right, I was reading scrollback backwards | |
| 15:40:39 | mriedem | same for cinder | |
| 15:40:43 | sdague | mriedem: yes | |
| 15:40:56 | efried | what he said ^ | |
| 15:41:01 | dansmith | artom: it's in functional.test_server_group somewhere | |
| 15:41:01 | artom | This is a minefield:S | |
| 15:41:02 | sdague | neutron runs mixed mode, some times user token, some times system | |
| 15:41:16 | sdague | and ironic is system level, because nova is it's multi tenancy | |
| 15:41:37 | mriedem | the other thing i remembered i need to look at for this is the xenapi plugins for glance | |
| 15:41:56 | efried | sdague Neutron some of each? Hum, I may have screwed up https://review.openstack.org/509892 | |
| 15:42:25 | sdague | efried: yeh, there is a background network info cache refresh iirc | |
| 15:43:00 | efried | sdague Actually, I didn't change how the auth plugin is retrieved for the neutron patch. So whatever it was doing before, it's still doing now. | |
| 15:43:10 | sdague | and, there are times we "escalate" privs because neutron privs for users aren't always sufficient to do server builds | |
| 15:43:17 | sdague | efried: cool | |
| 15:43:24 | sdague | yeh, the neutron one is messier | |
| 15:44:12 | efried | sdague This business - unchanged: https://review.openstack.org/#/c/509892/6/nova/network/neutronv2/api.py@150 | |
| 15:44:18 | mriedem | sdague: do you remember any of the xenapi glance plugin whackiness? https://github.com/openstack/os-xenapi/blob/master/os_xenapi/dom0/etc/xapi.d/plugins/glance.py | |
| 15:44:43 | mriedem | i can't tell if any of that would be affected by this | |
| 15:45:01 | sdague | I do, I can look | |
| 15:46:48 | sdague | oh, ug, that's in a different tree now, one sec | |
| 15:47:37 | mriedem | yeah as far as i can tell, | |
| 15:47:39 | mriedem | https://github.com/openstack/os-xenapi/blob/master/os_xenapi/dom0/etc/xapi.d/plugins/glance.py#L630 | |
| 15:47:41 | efried | That sucker is hardcoding glance URIs. And I can't even see how it's doing authentication. | |
| 15:47:42 | mriedem | it's not getting a token, | |
| 15:47:50 | mriedem | so extra_headers would have to include the token | |
| 15:47:54 | sdague | right | |
| 15:48:03 | mriedem | jianghuaw: still around? | |
| 15:49:23 | sdague | https://github.com/openstack/nova/blob/25afc31b202d66c294a8ac84895e2876cdd6681b/nova/virt/xenapi/image/glance.py#L40 | |
| 15:49:31 | sdague | I think that's where it all comes together | |
| 15:49:35 | jianghuaw | mriedem, yes. | |
| 15:50:25 | sdague | https://github.com/openstack/nova/blob/25afc31b202d66c294a8ac84895e2876cdd6681b/nova/image/glance.py#L99-L106 yeh | |
| 15:50:27 | mriedem | ok, so xenapi just gets the glance identity headers and passes those through to the plugin for upload/download | |
| 15:50:31 | sdague | yep | |
| 15:51:00 | sdague | so it's the same basic model, it just does custom serialization | |
| 15:51:10 | mriedem | ok | |
| 15:51:31 | mriedem | jianghuaw: nevermind, we were just discussing https://review.openstack.org/#/c/490057/ and whether or not it would affect the xenapi glance plugin in os-xenapi | |
| 15:51:39 | mriedem | but it looks like the user token is passed through | |
| 15:51:59 | jianghuaw | mriedem, ok:-) | |
| 15:52:21 | mriedem | xenserver ci did fail on that patch | |
| 15:52:27 | mriedem | but it looks like due to devstack setup failing | |
| 15:52:34 | mriedem | http://dd6b71949550285df7dc-dda4e480e005aaa13ec303551d2d8155.r49.cf1.rackcdn.com/57/490057/25/check/dsvm-tempest-neutron-network/c802d48/logs/devstacklog.txt.gz | |
| 15:52:40 | mriedem | TypeError: __init__() got an unexpected keyword argument 'retry_on_request' | |
| 15:53:05 | efried | mordred Can you point me to a doc somewhere that says discovery URIs should be auth-less? | |
| 15:55:16 | mriedem | weird that TypeError was fixed a few months ago Ic98f8cfeb6f78a7e066613787e7cbcea02fcec5c | |
| 15:55:25 | mriedem | so why is the xenserver ci failing on that now? | |
| 15:56:52 | mriedem | Skip the change: openstack/nova:master:refs/changes/57/490057/25 | |
| 15:56:53 | mriedem | wtf | |
| 15:59:08 | mriedem | https://review.openstack.org/#/c/490057/ probably just hasn't been rebased in forever | |
| 16:00:41 | mordred | efried: https://review.openstack.org/#/c/459710/17/guidelines/discoverability.rst - line 90 | |
| 16:01:06 | mordred | efried: it hasn't landed yet because I still need to do another pass | |
| 16:01:57 | mriedem | efried: there https://review.openstack.org/#/c/490057/ | |
| 16:02:03 | jianghuaw | mriedem, yeah. That patch may need a rebased. I met one similar failure some days ago. | |
| 16:02:54 | mordred | efried: but, tl;dr - it's fundamental metadata about a service and there is nothing about it that is different per user or secret in any way, so protecting it behind auth makes things harder for no benefit | |
| 16:03:53 | openstackgerrit | Stephen Finucane proposed openstack/nova master: console: introduce the VeNCrypt RFB authentication scheme https://review.openstack.org/345398 | |
| 16:03:53 | openstackgerrit | Stephen Finucane proposed openstack/nova master: console: introduce framework for RFB authentication https://review.openstack.org/345397 | |
| 16:03:54 | openstackgerrit | Stephen Finucane proposed openstack/nova master: doc: Document TLS security setup for noVNC proxy https://review.openstack.org/500544 | |
| 16:03:54 | openstackgerrit | Stephen Finucane proposed openstack/nova master: console: provide an RFB security proxy implementation https://review.openstack.org/345399 | |
| 16:05:06 | jianghuaw | jaypipes, bauzas: may you help to check this patch? https://review.openstack.org/#/c/518294/ I think we got some discussion on it before. But do need your review. Eric has +1 on it. | |
| 16:06:08 | jaypipes | jianghuaw: yes, will get to that this afternoon. | |
| 16:06:20 | jianghuaw | jaypipes, thanks:-) | |
| 16:06:58 | efried | mordred Thanks | |
| 16:07:26 | jaypipes | efried: do you have any local changes on that refactor series? cuz I want to fix up the one thing alex_xu wants to see w.r.t. trait validation. | |
| 16:07:36 | efried | jaypipes Nope, it's all you. | |
| 16:07:43 | jaypipes | roger | |
| 16:07:51 | efried | jaypipes You saw my comment there too? | |
| 16:07:55 | jaypipes | yup | |
| 16:08:08 | jaypipes | efried: will try to accommodate both of you | |