Monday, 2017-03-27

*** jamielennox is now known as jamielennox|away01:01
*** jamielennox|away is now known as jamielennox01:19
*** gouthamr has quit IRC02:16
mordredjamielennox: we do something special with the interface value if someone is requesting a client for the 'identity' service02:58
mordredjamielennox: so instead of 'public' or 'admin' - we pass in the singleton you have defined in ksa ... plugin.AUTH_INTERFACE02:59
mordredjamielennox: I remember putting that in for ksc a while back - but when I was looking at the ksc code the other day it looked much cleaner than I remmber, so I think you might have fixed whatever it was that made us need to do a workaround03:00
jamielennoxmordred: yea - i'm surprised you need to do that03:02
jamielennoxmordred: AUTH_INTERFACE is the value passed to the plugin as 'auth_url' - so bypasses the catalog completely03:02
jamielennoxit's basically something that the plugins themselves need access to so they can do things like scoping03:03
jamielennoxand operations on unscoped token03:03
jamielennoxs03:03
jamielennoxthere's no reason that keystone shouldn't lookup the catalog there just like everything else03:03
jamielennoxShrews, mordred: for the os_network and related ansible modules you do: https://github.com/ansible/ansible-modules-core/blob/devel/cloud/openstack/os_router.py#L326-L33503:53
jamielennoxso if no project is provided then don't scope the neutron request03:53
jamielennoxi feel like the way more logical behaviour their is that if no project is provided filter based on the current auth project03:54
jamielennoxksa can obviously give you this and i'm assuming you could fetch it from os-c-c, but is it possible to even suggest making this change?03:54
jamielennoxansible still marks the module in preview so it can change, but would you be alright with such a break?03:55
*** jamielennox is now known as jamielennox|away04:14
*** jamielennox|away is now known as jamielennox04:22
*** yfried has joined #openstack-shade04:40
*** yfried has quit IRC04:57
*** yfried has joined #openstack-shade06:05
*** rcarrillocruz has joined #openstack-shade07:45
*** ioggstream has joined #openstack-shade07:58
*** openstackgerrit has quit IRC08:33
*** rcarrillocruz has quit IRC09:57
*** ioggstream has quit IRC11:44
*** ioggstream has joined #openstack-shade12:08
*** gouthamr has joined #openstack-shade12:21
*** ioggstream has quit IRC12:31
Shrewsjamielennox: been a long time since i did anything with that module, but isn't that how it already works if no project is specified? maybe i need a more concrete example so see what you are seeing.12:33
Shrewsbut i think changing behavior now would make folks upset, regardless of the status of the modules12:34
*** ioggstream has joined #openstack-shade13:16
*** gouthamr_ has joined #openstack-shade13:36
*** gouthamr has quit IRC13:36
mordredjamielennox: I dislike pretty much all combinations related to how cross-project things work in neutron13:54
*** openstackgerrit has joined #openstack-shade14:17
openstackgerritMonty Taylor proposed openstack/os-client-config master: Stop special-casing idenity catalog lookups  https://review.openstack.org/45025914:17
mordredjamielennox: ^^ let's see if that works14:17
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add normalization for heat stacks  https://review.openstack.org/45026014:18
openstackgerritMonty Taylor proposed openstack-infra/shade master: Replace heatclient testing with requests_mock  https://review.openstack.org/45026114:18
mordredShrews: ^^ woot! heatclient testing mocks replaced (I had to learn a few things that I didn't really want to know)14:22
Shrewssweet14:29
pabelangermordred: is the dependency removal of ironic difficult?14:31
mordredpabelanger: it shouldn't be terribly difficult, no- ironicclient already requires users todo jsonpatch things, so that part shouldn't change14:39
mordredpabelanger: unfortunately (or fortunately, depending on your POV) ironic functions have a bunch of tests - so the test conversion patch will not be quick :)14:40
mordredpabelanger: if you have the urge to work on that one, I'd be happy to give you pointers :)15:19
pabelangermordred: Ya, I might take a go at it. I'll see if I can get some free time this week15:20
mordredpabelanger: sweet! I believe once ironicclient is gone we'll drop a _bunch_ of depends, because ironicclient still depends on python-openstackclient so I think it's the source of most of shade's transitive depends15:24
pabelangermordred: Ya, that's my motivation :) RPM still pulling it in15:25
notmorganironicclient depends on OSC?!15:28
notmorganwhat kind of crazy is that?15:28
dtroyerThat is what happened before osc-lib existed when they wanted to use some stuffs, one reason osc-lib now exists…15:30
*** yfried has quit IRC15:36
notmorgandtroyer: ah. but wow. seems very circular even knowing that.15:39
dtroyerYeah, it was never a good idea, and I think there may have only ever been one other client lib to try that, so it fortunately didn't cat ch on :)15:45
mordrednotmorgan: GAH15:52
mordrednotmorgan: testtools.matchers._impl.MismatchError: !=:15:52
mordredreference = ('GET',15:52
mordred 'https://orchestration.example.com/v1/1c36b64c840a42cd9e9b931a369337f0/stacks/name-3/events?limit=1&sort_dir=desc')15:52
mordredactual    = ('GET',15:52
mordred 'https://orchestration.example.com/v1/1c36b64c840a42cd9e9b931a369337f0/stacks/name-3/events?sort_dir=desc&limit=1')15:52
notmorganmordred: yep15:53
notmorganI am going to fix that by exploding the qs15:53
notmorganand parsing it like complete_qs does in requests mock15:53
mordrednotmorgan: that sounds lke a completely sane thing to do15:53
notmorganI hit that exact issue with the idea tity role tests15:55
notmorganit's not fun.15:55
mordrednotmorgan: I'm going to make a bad hack around it in this heatclient patch - but am putting in a TODO to fix the bad hack once your qs thing is available15:58
notmorgantruncate the qs from your match as a bad hack15:58
notmorganin assert_calls15:58
notmorganeasiest15:58
mordredwell - I actually have to match on different qs's - the poll_for_events code depends heavily on qs differences16:02
mordrednotmorgan: but - passing an OrderedDict in to get(params= is working :)16:03
openstackgerritMonty Taylor proposed openstack-infra/shade master: Remove python-heatclient and replace with REST  https://review.openstack.org/45031716:11
mordredwoot!16:11
mordredanother one bits the dust16:11
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add list_availability_zone_names method  https://review.openstack.org/45033216:39
*** ioggstream has quit IRC17:10
*** gouthamr_ is now known as gouthamr17:32
*** yfried has joined #openstack-shade17:43
*** ioggstream has joined #openstack-shade18:19
openstackgerritMerged openstack-infra/shade master: Add list_availability_zone_names method  https://review.openstack.org/45033218:20
*** ioggstream has quit IRC18:51
openstackgerritMonty Taylor proposed openstack-infra/shade master: Remove python-heatclient and replace with REST  https://review.openstack.org/45031718:56
openstackgerritMonty Taylor proposed openstack-infra/shade master: Replace heatclient testing with requests_mock  https://review.openstack.org/45026118:56
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add normalization for heat stacks  https://review.openstack.org/45026018:56
*** samueldmq has quit IRC19:23
*** samueldmq has joined #openstack-shade19:24
openstackgerritMonty Taylor proposed openstack-infra/shade master: Remove python-heatclient and replace with REST  https://review.openstack.org/45031719:29
openstackgerritMonty Taylor proposed openstack-infra/shade master: Replace heatclient testing with requests_mock  https://review.openstack.org/45026119:29
*** ioggstream has joined #openstack-shade19:29
*** yfried has quit IRC19:49
*** yfried has joined #openstack-shade20:06
*** jamielennox is now known as jamielennox|away20:13
*** jamielennox|away is now known as jamielennox20:24
openstackgerritMonty Taylor proposed openstack-infra/shade master: Remove python-heatclient and replace with REST  https://review.openstack.org/45031720:28
openstackgerritMonty Taylor proposed openstack-infra/shade master: Replace heatclient testing with requests_mock  https://review.openstack.org/45026120:28
*** gouthamr has quit IRC20:29
openstackgerritMerged openstack-infra/shade master: Add normalization for heat stacks  https://review.openstack.org/45026020:34
*** yfried has quit IRC20:37
*** Matias has joined #openstack-shade21:00
*** gouthamr has joined #openstack-shade21:01
openstackgerritMerged openstack-infra/shade master: Replace heatclient testing with requests_mock  https://review.openstack.org/45026121:52
Shrewsyeah, take THAT, heatclient21:54
Shrewsmordred: i can't WAIT for you to take on neutronclient21:55
mordredShrews: soon ...21:57
mordredShrews: actually, I think neutronclient will be the easiest21:57
mordredbecause it doesn't really do anything21:57
mordredthe interface in shade is a bunch of dicts21:57
Shrewsmordred: that's what it wants you to believe....21:57
mordred:)21:57
mordredShrews: heatclient was much harder because they put a giant pile of logic into the client lib21:57
*** ioggstream has quit IRC22:06
openstackgerritMerged openstack-infra/shade master: Remove python-heatclient and replace with REST  https://review.openstack.org/45031722:12
mordredBOOM22:23

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