Monday, 2019-10-21

*** tetsuro has joined #openstack-placement05:56
*** ttsiouts has joined #openstack-placement06:23
openstackgerritMerged openstack/placement master: Remove unused import statement.  https://review.opendev.org/68802607:53
*** e0ne has joined #openstack-placement08:00
*** tetsuro has quit IRC09:08
*** cdent has joined #openstack-placement09:29
*** openstackgerrit has quit IRC09:37
*** ttsiouts has quit IRC10:20
*** ttsiouts has joined #openstack-placement10:20
*** ttsiouts has quit IRC10:24
*** ttsiouts has joined #openstack-placement10:50
*** tssurya has joined #openstack-placement10:51
*** ttsiouts has quit IRC10:55
*** ttsiouts has joined #openstack-placement11:13
*** ttsiouts has quit IRC11:28
*** ttsiouts has joined #openstack-placement11:29
*** ttsiouts has quit IRC11:33
*** ttsiouts has joined #openstack-placement11:55
efriedcdent: Based on a real quick skim:13:06
efriedmicroversion_parse has middleware to check for microversion headers13:06
efriednova doesn't use it13:06
efriednova does its own microversion header parsing & validation13:06
efriednova could cut over to microversion_parse13:06
efried?13:06
cdentefried: I tried to cut over to microversion parse at some point and was unable to get support for doing so from the conservatives, so gave up13:07
cdenttimes have since changed, so I'd say it ought to be possible13:07
efriedokay, the problem was political, not technical.13:08
cdentas I recall, yes13:08
efriedDid you get as far as proposing code?13:08
cdentI think there was a change that added it for the simple parts, but not the middleware: I9098ab8f0800fb0550887f5eff219b18addde70913:09
cdenthttps://review.opendev.org/#/c/300076/13:10
cdentthat commit mentions further patches to do the rest, but ...13:12
cdentI can't find an abandoned anything13:14
efriedOkay. This kind of tech debt reduction doesn't get a huge amount of traction, but IMO it's worth doing. So if we move forward with the adoption of mvp by oslo, I think it would be worth resurrecting the effort.13:14
* cdent nods13:15
gibiif this means we delete code from nova then count me in13:46
efriedcdent: how does the placement upgrade path work for sucking in new traits?13:56
efriedI have placement and os-traits at train-ish versions...13:56
efriedand I want to start using the new COMPUTE_NODE trait in my deployment13:56
efriedhow do I make placement know about COMPUTE_NODE?13:57
efriedupgrade os-traits to 1.1.0 and then...?13:57
gibidoes restarting placment service syncs the traits from os-traits?13:57
efried...yup, that does it, thanks gibi.13:58
efriednext q, did we ever merge the thing that lets you add a trait without specifying all the traits?13:59
efriedahem, why don't I see resource provider stuff on https://docs.openstack.org/python-openstackclient/latest/cli/command-list.html ?14:01
*** mriedem has joined #openstack-placement14:20
gibiefried: I guess because placement cli is defined in osc-placement14:21
efriedOkay, I found it now. That's kind of esoteric. If I'm trying to find the `openstack` command to do a thing, I would expect to find it in the same reference as the other `openstack` commands. I'm making excuses for my own ignorance here, but I doubt I'm the only one who's been confused by this.14:26
efriedso, ugh, it looks like we really don't have a way to add a trait??14:27
*** ttsiouts has quit IRC14:35
*** ttsiouts has joined #openstack-placement14:35
*** ttsiouts has quit IRC14:40
efriedmriedem, cdent: Would you please weigh in on backward-compatible suggestions for osc-placement ways to modify the trait list https://storyboard.openstack.org//#!/story/200525814:42
mriedemi feel like i already opened a bug about this once14:49
mriedemchecking14:49
mriedemoh heh that's mine14:49
mriedemefried: fwiw i think this is supposed to be the main osc docs page for plugin commands and placement isn't listed there, not sure if that's a bug or what https://docs.openstack.org/python-openstackclient/latest/cli/plugin-commands.html14:50
*** dklyle has joined #openstack-placement14:50
efriedmriedem: ack. IMO it's a bug from a ux perspective that I can't find placement commands easily from that ref14:51
mriedemcommented in storyboard but i'd follow what melwitt did in train with adding --amend to openstack resource provider inventory set: https://docs.openstack.org/osc-placement/train/cli/index.html#resource-provider-inventory-set14:53
mriedemthat would at least be consistent14:54
efriedmriedem: ack. But we need to provide a way to remove a trait, which we don't have for inventories. So --amend --[no-]trait seems reasonable.14:55
efriedI'm PoCing it.14:55
mriedemi think that's pretty gross,14:56
mriedemjust add an "openstack resource provider trait unset" command14:56
mriedemthat's closer to like how you can remove specific metadata items from a server in osc:14:56
mriedemhttps://docs.openstack.org/python-openstackclient/latest/cli/command-objects/server.html#server-unset14:56
mriedemor, "openstack resource provider unset --trait x --trait y"14:57
efriedbut then set and unset are asymmetrical, which is more grosserer.14:58
mriedemso do trait set and trait unset i guess14:58
mriedembut --no-trait makes me want to explode14:58
mriedemi was just thinking about how "openstack resource provider trait set --trait" is redundant, and we should have just done "openstack resource provider set --trait"14:59
efriedthat was what dtroyer suggested.14:59
mriedembut the CLIs have mostly followed the API resource methods15:00
mriedemok i guess openstack port set has things like --tag and --no-tag, and also has a port unset --tag option, so there are multiple ways to skin that cat in osc it seems, so whatever dean wants i guess15:01
*** ttsiouts has joined #openstack-placement15:04
cdentmriedem, efried: As I've tried to disclaim many times: Asking me for osc naming suggestions is fruitless. I simply don't grok the original rules that we are supposed to be trying to follow.15:14
cdentSo in the end finding something similar in one of the others services and using that as a precedent seems the best bet15:14
efriedack15:14
*** artom has joined #openstack-placement15:19
efriedoic, --no-tag doesn't remove a tag, it removes all tags :(15:19
efriedanother option is --trait !TRAIT_TO_REMOVE15:19
efriedbut that sucks15:20
efriedesp because don't you have to escape a bang on a bash cli?15:20
* cdent nos15:20
cdentnods15:20
* cdent wants a new keyboard15:20
cdentand hands15:20
efriedwell f, I guess I'll throw this up to show that it works, and then we can bikeshed over the syntax15:22
*** openstackgerrit has joined #openstack-placement15:30
openstackgerritEric Fried proposed openstack/osc-placement master: WIP: resource provider trait set --amend --[no-]trait  https://review.opendev.org/68982315:30
efried^ tested locally, works fine. Added some comments to start the discussion on the syntax.15:44
*** ttsiouts has quit IRC15:48
*** ttsiouts has joined #openstack-placement15:48
*** tssurya has quit IRC15:52
*** ttsiouts has quit IRC15:53
*** e0ne has quit IRC15:58
*** cdent has quit IRC16:03
*** N3l1x has joined #openstack-placement18:11
*** e0ne has joined #openstack-placement18:15
*** e0ne has quit IRC18:38
*** e0ne has joined #openstack-placement18:45
*** artom has quit IRC19:54
*** mriedem is now known as mriedem_afk20:05
*** spatel has joined #openstack-placement20:08
*** spatel has quit IRC20:51
efriedcdent: Eric Fried proposed openstack/python-openstackclient master: Add placement to known plugins  https://review.opendev.org/68987420:52
efriedNote that this doesn't help the fact that https://docs.openstack.org/python-openstackclient/latest/cli/plugin-commands.html is still worthless -- https://storyboard.openstack.org/#!/story/1735016 exists for that.20:53
*** mriedem_afk is now known as mriedem20:54
*** e0ne has quit IRC21:13
*** e0ne has joined #openstack-placement22:01
*** openstackgerrit has quit IRC22:07
*** e0ne has quit IRC22:16
*** e0ne has joined #openstack-placement22:18
*** dklyle has quit IRC22:42
*** david-lyle has joined #openstack-placement22:42
*** artom has joined #openstack-placement23:08
*** e0ne has quit IRC23:58
*** e0ne has joined #openstack-placement23:58
*** e0ne has quit IRC23:59

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!