Wednesday, 2015-06-03

*** browne has joined #openstack-oslo00:03
*** sputnik13 has quit IRC00:08
*** shakamunyi has joined #openstack-oslo00:12
*** barra204 has joined #openstack-oslo00:12
openstackgerritJames Polley proposed openstack-dev/pbr: Move CapturedSubprocess fixture to base  https://review.openstack.org/18782200:27
openstackgerritJames Polley proposed openstack-dev/pbr: WIP: more extensive testing of requirement parsing  https://review.openstack.org/18782300:27
tchaypolifeless: on my machine, ^^^ reproduces the “invalid environment marker” failure in some cases00:31
tchaypoand in other cases, I am fairly sure it’s not installing the things that should be installed00:31
tchaypoand now it’s breakfast time00:31
openstackgerritJoshua Harlow proposed openstack/taskflow: Cache the individual atom schedulers at compile time  https://review.openstack.org/18782800:39
openstackgerritJoshua Harlow proposed openstack/tooz: Make the file driver more capable (with regard to groups)  https://review.openstack.org/18775000:47
*** salv-orlando has joined #openstack-oslo00:48
harlowjalifeless if u get some time can u re-look-over https://review.openstack.org/#/c/183194/00:51
harlowjaadjusted to be a new api and all that jazz00:51
* harlowja although i'd like it for sphinx to be able to look into decorators, still doesn't do that right00:52
harlowjaie http://docs-draft.openstack.org/94/183194/13/check/gate-taskflow-docs/6d0d3b2//doc/build/html/persistence.html#taskflow.persistence.backends.impl_memory.FakeFilesystem.ls (ie post-decorated method loses the docs ability to show what the args are...)00:53
harlowjapretty sure a known sphinx issue00:53
openstackgerritlifeless proposed openstack/oslo-specs: Enable optional dependencies in OpenStack projects  https://review.openstack.org/18783000:53
lifelessharlowja: reminds me, haven't tracked down that weird pbr thing your colleague suffered00:54
lifelessharlowja: wondering if getting me a shell would be faster00:54
*** salv-orlando has quit IRC00:55
*** mtanino has quit IRC00:56
harlowjalifeless i'll poke him again tommorow, get him on here00:56
harlowjapretty sure he got sucked into doing something else00:56
* harlowja pretty sure he's gone for the day00:57
*** tsekiyama has quit IRC00:59
openstackgerritJoshua Harlow proposed openstack/taskflow: Cache the individual atom schedulers at compile time  https://review.openstack.org/18782801:02
openstackgerritMerged openstack/oslo-specs: Fix references syntax for correct conversion into html  https://review.openstack.org/18755501:11
*** superfly_ has joined #openstack-oslo01:12
*** superfly_ is now known as superflyy01:14
*** _amrith_ is now known as amrith01:18
*** vilobhmm1 has joined #openstack-oslo01:20
*** vilobhmm has quit IRC01:21
*** amotoki has quit IRC01:21
openstackgerritJoshua Harlow proposed openstack/tooz: Make the file driver more capable (with regard to groups)  https://review.openstack.org/18775001:23
*** barra204 has quit IRC01:24
*** shakamunyi has quit IRC01:24
*** superflyy has quit IRC01:24
openstackgerritJames Polley proposed openstack-dev/pbr: WIP: more extensive testing of requirement parsing  https://review.openstack.org/18782301:25
*** browne has quit IRC01:31
openstackgerritJoshua Harlow proposed openstack/tooz: Make the file driver more capable (with regard to groups)  https://review.openstack.org/18775001:32
*** tobe has joined #openstack-oslo01:33
openstackgerritJoshua Harlow proposed openstack/tooz: Make the file driver more capable (with regard to groups)  https://review.openstack.org/18775001:34
*** amotoki has joined #openstack-oslo01:41
*** vilobhmm1 has quit IRC01:42
*** amotoki has quit IRC01:45
openstackgerritJoshua Harlow proposed openstack/tooz: Make the file driver more capable (with regard to groups)  https://review.openstack.org/18775001:53
openstackgerritJoshua Harlow proposed openstack/tooz: Make the file driver more capable (with regard to groups)  https://review.openstack.org/18775002:02
*** amotoki has joined #openstack-oslo02:04
*** salv-orlando has joined #openstack-oslo02:08
*** rushiagr_away is now known as rushiagr02:09
*** sdake has quit IRC02:11
*** salv-orlando has quit IRC02:14
*** yamahata has quit IRC02:17
openstackgerritMerged openstack/oslo.service: Updated from global requirements  https://review.openstack.org/18768302:24
*** haigang has quit IRC02:26
*** haigang has joined #openstack-oslo02:27
*** haigang has quit IRC02:30
*** haigang has joined #openstack-oslo02:32
*** achanda has joined #openstack-oslo02:32
*** haigang has quit IRC02:33
lifelesstchaypo: your patches are very confused.02:34
lifelesstchaypo: ok with you if I push up a fix ?02:34
*** haigang has joined #openstack-oslo02:34
*** Kennan2 has joined #openstack-oslo02:37
*** Kennan has quit IRC02:38
*** haigang has quit IRC02:38
*** rushiagr is now known as rushiagr_away02:40
openstackgerritlifeless proposed openstack-dev/pbr: WIP detangling.  https://review.openstack.org/18784502:43
*** haigang has joined #openstack-oslo02:46
openstackgerritlifeless proposed openstack-dev/pbr: WIP detangling.  https://review.openstack.org/18784502:47
lifelesstchaypo: squash that into your patch02:47
*** Kennan2 is now known as Kennan02:49
openstackgerritlifeless proposed openstack-dev/pbr: Fix everything by requiring setuptools>=16.  https://review.openstack.org/18784602:54
*** dims__ has quit IRC02:56
lifelesstchaypo: (nicely done on the tests btw, made a good matrix to base analysis on)02:57
lifelesstchaypo: I haven't dug into *why* setuptools 16 is key, just that it made all the tests pass02:58
*** achanda has quit IRC03:02
*** achanda has joined #openstack-oslo03:03
tchaypogah.03:07
*** achanda has quit IRC03:08
tchaypoho hum. I seem to already have setuptools 16 on my machine03:08
tchaypolifeless: yes, very okay, I was out getting coffee/lunch :)03:08
tchaypoah, i have setuptools 16 in the system, but 15 in the tox venv03:09
tchaypono doubt i have an older version of irtualenv..03:09
lifelessyah03:25
lifelesssystem virtualenv likely03:25
*** achanda has joined #openstack-oslo03:34
tchaypoI think I upgraded it a few weeks ago, but that was probably just before the most recent release03:46
tchaypothe most recent major version, rather03:46
lifelessnote too that there is a matrix03:46
lifelesspip installed || distro03:46
lifelessone bundles the other unbundles03:46
lifelessetc03:46
tchaypolooking at your detangling03:48
tchaypoI’m confused about os.makedirs()03:48
lifelessdo you understand the confusion your code had?03:48
tchaypoat line 438 - shouldn’t the TempDir fixture be doing that?03:49
lifelessthat is a different path03:49
lifelesslook at the uses of tempdir in the test_ function03:49
tchaypowell, there are several sets of confusion03:49
tchaypoone is that i was using a single tempdir as both the base for the venv and the base for the package, which I don’t think breaks anything per se but it gets confusing03:50
tchaypothe other is installing the wrong pbr03:50
lifelessI haven't fixed that one03:50
lifelesswe should if we want to land this patch03:51
tchaypooh *facepalm*03:51
tchaypoalso, looking at your change to the _run_cmd call03:51
tchaypoI hadn’t thought about what sys.executable was doing there03:51
tchaypobut from your change it looks like I was calling the system pip rather than the one in the venv?03:52
lifelessnot quite03:52
lifelesssystem python, script from the venv03:52
lifelessthe results from that are poor :)03:52
tchaypoyes.03:53
tchaypohrm. so lines 487/488, where you create venv_dir and pkg_dir03:53
tchaypooh03:53
tchaypothe “haven’t fixed that one” refers to installing this version of pbr03:54
*** arnaud____ has joined #openstack-oslo03:54
tchayporight03:54
tchayposo I could do that by hard-coding “pip install -U /Users/james/src/openstack-dev/pbr”, but that doesn’t seem very portable03:55
*** alexpilotti has joined #openstack-oslo03:55
*** browne has joined #openstack-oslo03:55
lifelessan easy approximation would be do os.path.join(__file__, '..', '..', '..') or something like that03:56
lifelessno -U needed03:57
lifelesswe can't do much about the pbr-not-installed case sadly03:58
*** achanda has quit IRC03:58
lifelessbecause easy_install03:58
*** achanda has joined #openstack-oslo03:58
tchaypohrm. on my system, I’ve added “setuptools>=16” to test-requirements.txt, rmed .tox, and re-run tox03:59
tchaypoI’m still getting the same failure, even though the venv now has setuptools 1703:59
lifelessthat won't do anything03:59
lifelessyou're creating a venv per test case03:59
lifelesstox has 0 to do with that venv's contents03:59
tchaypo*facepalm*04:00
tchaypoplease excuse me while I do a dance of frustration around the room04:00
lifelesswhat are you frustrated by ?04:01
tchaypothe layers04:02
tchaypobut I guess that’s to be expected when you’re testing behind-the-scenes install-packages machinery04:02
tchaypoin order to exercise it you need to actually be installing packages inside your test04:02
*** achanda has quit IRC04:03
lifelessremember too we can't setup_require setuptools04:05
lifelessso there is nothing we can do to fix this systematically (today)04:05
tchaypoyep04:05
lifelesswhat we can do is make sure opentack CI has setuptools>=16 everywhere.04:05
lifelessI have a patch up for virtualenv that will do that (its in system-config)04:06
tchaypoit’s just going to have to be a case of “if you want to be able to use extras_require in setup.cfg, your system must have setuptools>=16, cheers"04:06
tchaypodoes that patch also use pip7?04:06
lifelesstchaypo: not quite; 'markers'04:06
tchaypourr, yes. markers.04:06
lifelessextras are fine regardless04:06
tchaypoif we can get pip7 we can start using `pip install .[test]`04:06
lifelessthe patch makes the images we build have virtualenv with pip 7.0.3 in it preinstalled04:07
lifelessso yes04:07
lifelesstchaypo: I put up an oslo spec on using this too btw04:07
tchaypolink?04:07
lifelessmeh04:07
* tchaypo will dig04:08
lifeless(I don't have one to hand)04:08
tchaypohttps://review.openstack.org/#/c/187830/04:08
*** salv-orlando has joined #openstack-oslo04:10
tchaypothat took like 3 seconds to find04:10
lifelessok so jenkins didn't like my patch :)04:14
lifelesstag, its yours04:14
tchaypotah cheers thanks a lot04:14
tchaypoin other news, your spec reads to me like it’s trying to do two things at once04:15
tchaypothe “problem description” talks about one problem (we don’t support extras), but everything else solves a different problem (oslo.db needs dfferent backends for different databases)04:15
tchaypothey’re interrelated, in that the latter requires - and acts as a nice proof-of-concept for - the former04:16
lifelessmmm04:17
lifelessperhaps04:17
lifelesswe're doing one (extras) for the other04:17
lifelesslinear dependency chain04:17
tchaypoextras is useful for other things too though, and we already have patches up wanting to take advantage04:24
*** jecarey has joined #openstack-oslo04:25
tchaypo184328 is one but I think there’s another one somewhere04:26
tchaypookay, this is going to have to wait for tomorrow04:50
tchaypomy expense report is already half a week overdue and I really don’t want to make ng any sadder04:51
*** stevemar has quit IRC04:58
*** nkrinner has joined #openstack-oslo05:03
openstackgerritJoshua Harlow proposed openstack/tooz: Make the file driver more capable (with regard to groups)  https://review.openstack.org/18775005:13
*** jecarey has quit IRC05:15
*** yamahata has joined #openstack-oslo05:19
*** arnaud____ has quit IRC05:21
*** exploreshaifali has joined #openstack-oslo05:27
openstackgerritJoshua Harlow proposed openstack/tooz: Make the file driver more capable (with regard to groups)  https://review.openstack.org/18775005:34
*** vilobhmm has joined #openstack-oslo05:42
*** exploreshaifali has quit IRC05:43
*** dulek has joined #openstack-oslo05:46
*** ihrachyshka has joined #openstack-oslo05:50
*** vipul has quit IRC05:53
*** vipul has joined #openstack-oslo05:54
*** vilobhmm has quit IRC05:58
*** ihrachyshka has quit IRC06:02
*** shakamunyi has joined #openstack-oslo06:16
*** barra204 has joined #openstack-oslo06:17
*** shardy has joined #openstack-oslo06:55
*** browne has quit IRC07:02
*** inc0 has joined #openstack-oslo07:03
*** rpodolyaka1 has joined #openstack-oslo07:11
*** Nakato has quit IRC07:16
*** exploreshaifali has joined #openstack-oslo07:18
*** Nakato has joined #openstack-oslo07:18
*** haigang has quit IRC07:19
*** tobe has quit IRC07:52
*** ozamiatin has joined #openstack-oslo07:54
*** dims_ has joined #openstack-oslo07:58
*** ndipanov has joined #openstack-oslo08:00
*** rushiagr_away is now known as rushiagr08:02
*** dims_ has quit IRC08:03
*** ozamiatin has quit IRC08:07
*** exploreshaifali has quit IRC08:08
*** Kennan2 has joined #openstack-oslo08:11
*** Kennan has quit IRC08:11
*** Nakato has quit IRC08:13
*** rpodolyaka1 has quit IRC08:14
*** tobe has joined #openstack-oslo08:14
*** Nakato has joined #openstack-oslo08:14
*** shardy_ has joined #openstack-oslo08:16
*** shardy has quit IRC08:17
*** shardy_ has quit IRC08:22
*** shardy has joined #openstack-oslo08:22
*** yassine_ has joined #openstack-oslo08:27
*** rpodolyaka1 has joined #openstack-oslo08:30
*** ozamiatin has joined #openstack-oslo08:36
*** e0ne has joined #openstack-oslo08:46
*** nkrinner has quit IRC08:52
*** nkrinner has joined #openstack-oslo08:57
*** e0ne is now known as e0ne_09:01
*** e0ne_ is now known as e0ne09:01
*** dguitarbite has quit IRC09:09
*** cdent has joined #openstack-oslo09:10
openstackgerritMerged openstack-dev/pbr: Remove sphinx_config.init_values() manual call  https://review.openstack.org/18767209:13
openstackgerritVictor Sergeyev proposed openstack/oslo.messaging: Reduce `magic` conf attribute usage  https://review.openstack.org/18792309:17
*** gcb has joined #openstack-oslo09:27
*** rpodolyaka1 has quit IRC09:42
*** rpodolyaka1 has joined #openstack-oslo09:45
*** ozamiatin has quit IRC09:49
*** e0ne is now known as e0ne_09:55
*** e0ne_ is now known as e0ne09:57
*** dguitarbite has joined #openstack-oslo09:59
openstackgerritDirk Mueller proposed openstack/oslo.db: Remove outdated tox environments for SQLAlchemy 0.8  https://review.openstack.org/18792709:59
*** dims_ has joined #openstack-oslo10:06
*** rpodolyaka1 has quit IRC10:10
*** exploreshaifali has joined #openstack-oslo10:12
*** amotoki has quit IRC10:40
*** amotoki has joined #openstack-oslo10:44
*** amotoki has quit IRC10:48
dhellmannsileht: did you see https://bugs.launchpad.net/oslo.messaging/+bug/1461182 ?10:52
openstackLaunchpad bug 1461182 in oslo.messaging "After oslo.messaging release Ironic gate is broken" [Undecided,In progress] - Assigned to Doug Hellmann (doug-hellmann)10:52
dhellmannsileht: also, good morning/afternoon :-)10:52
silehtdhellmann, yep, I have seen your quick re-released this morning10:52
dhellmannsileht: yeah, that patch is sort of ugly, but I wanted to fix up ironic quickly. Do you have ideas for fixing the issue in a better way? Maybe moving the option definition somewhere where sharing it seems less ugly?10:53
silehtdhellmann, we should register the option with the Transport10:54
dhellmannsileht: that's not the code that uses it, though, right?10:54
silehtdhellmann, this is the only common path between the client and the server parts10:54
*** exploreshaifali has quit IRC10:54
dhellmannI don't mind calling register more than once, I just don't like having the server code import the client code to do it10:55
silehtdhellmann, oh so we can add it the the rpc server10:55
dhellmannok, except that the case that was breaking was the rabbit driver module10:56
dhellmannmaybe if we have oslo_messaging/rpc/_opts.py and use that from both client.py and server.py it's clear enough that it is an rpc option, and it's safe to assume it will be registered before the driver is loaded?10:57
silehtdhellmann, yes that my thougt10:57
dhellmannexcept that the driver might also be used for notifications, right? and so we need that option to be registered *there* too in case the application only does notifications and not rpc10:57
silehtdhellmann, I need to check how ironic trigger that10:58
dhellmannthey have an application that only accepts incoming rpc requests, and never makes any outgoing requests to other services10:58
silehtdhellmann, the driver use it for reply messages10:58
dhellmannthe tests that failed were in their integration suite, not unit tests or dsvm, so I'm not entirely sure how to trigger it10:59
dhellmannno, the driver was never instantiating a Client instance, it was using direct communication10:59
dhellmannat least not in the path involved here10:59
*** sdake has joined #openstack-oslo11:02
silehtdhellmann, the rpc/_opts.py looks good for me, publish_and_retry_on_missing_exchange is a rpc thing only11:02
dhellmannpublish_and_retry... is part of the driver API that is only used by rpc?11:03
dhellmannI don't suppose there's a way we could have the higher level code pass this value to the driver, instead of having the driver rely on the option being registered? would that require a bunch of driver API changes?11:04
*** exploreshaifali has joined #openstack-oslo11:10
*** rpodolyaka1 has joined #openstack-oslo11:10
silehtdhellmann, This is used to workaround a rabbit failover race, when we fix the issue, we hardcore 60 sec, we have improve the code by not always waiting 60 sec, perhaps we should create an new configuration option that clearly identify this race, with as default value '$rpc_response_timeout'11:15
dhellmannsileht: let me think about that. I'm not sure I like the idea of having more options. Would a deployer ever want to make the values different?11:17
silehtdhellmann, this depends on the time of every rpc server take to reconnect to the new rabbit11:18
silehtdhellmann, we choice rpc_response_timeout, because we known the the client will not wait more for a reply11:19
silehtdhellmann, but usually just 1 or 2 is enough11:19
sileht(sec)11:20
dhellmannsileht: ok. it seems cleaner inside the code to add a new option, but it does increase configuration complexity. :-/11:22
*** rushiagr is now known as rushiagr_away11:25
openstackgerritOpenStack Proposal Bot proposed openstack/futurist: Updated from global requirements  https://review.openstack.org/18795111:28
*** ozamiatin has joined #openstack-oslo11:29
*** e0ne is now known as e0ne_11:32
openstackgerritDoug Hellmann proposed openstack/oslo.messaging: Add drivers to the documentation  https://review.openstack.org/18382511:41
*** e0ne_ has quit IRC11:42
*** rpodolyaka1 has quit IRC11:44
*** rpodolyaka1 has joined #openstack-oslo11:46
openstackgerritVictor Sergeyev proposed openstack/oslo.messaging: Enable `fanout_target` scenarios in test_impl_rabbit  https://review.openstack.org/18796311:52
*** tobe has quit IRC11:56
*** tobe has joined #openstack-oslo11:57
*** e0ne has joined #openstack-oslo11:58
*** tobe has quit IRC12:02
*** rpodolyaka1 has quit IRC12:06
*** rpodolyaka1 has joined #openstack-oslo12:08
*** amrith is now known as _amrith_12:17
*** amotoki has joined #openstack-oslo12:18
openstackgerritKobi Samoray proposed openstack/tooz: Use MySQL default port when not set explicitly  https://review.openstack.org/18798212:32
*** gordc has joined #openstack-oslo12:38
*** kgiusti has joined #openstack-oslo12:39
openstackgerritMerged openstack/oslotest: Add class to deal with clouds.yaml support  https://review.openstack.org/18338712:44
viktorsdhellmann: around?12:47
viktorsdhellmann: as for patch https://review.openstack.org/#/c/187746/ - are you sure, that oslo.messaging catch a bug 1367907? Is it possible, that oslo.messaging bug caused by checking time of thread run in test_impl_rabbit.py ?12:49
openstackbug 1367907 in python3.4 (Ubuntu Trusty) "Segfault in gc with cyclic trash" [Undecided,Triaged] https://launchpad.net/bugs/136790712:49
dims_sileht: do we need any changes in kombu and/or pyamqp?12:50
dims_sileht: to make things better for us in oslo.messaging12:50
silehtdims_, just something to set a default timeout for socket opened by pyamqp to remove the workaround in our driver12:51
*** inc0 has quit IRC12:52
silehtdims_, viktors cool investigation of rabbit guys https://github.com/rabbitmq/rabbitmq-website/issues/612:54
*** bknudson has joined #openstack-oslo12:56
silehtdims_, viktors https://www.rabbitmq.com/direct-reply-to.html is interesting, but I have no idea of how many works it is12:56
dims_flaper87: we could use your help with this https://github.com/celery/kombu/issues/46312:57
dims_sileht: nice avatar on github :)12:58
silehtdims_, flaper87 an other work around py-amqp timeout: https://github.com/celery/py-amqp/pull/6412:59
*** ozamiatin has quit IRC12:59
viktorssileht: looks like a cool thing, reading now13:00
* flaper87 checks both links13:00
silehtI think is one is enough for ys13:00
sileht(and my better than my patch)13:00
*** tsekiyama has joined #openstack-oslo13:01
*** tsekiyama has quit IRC13:04
dims_sileht: added a bug so we don't forget - https://bugs.launchpad.net/oslo.messaging/+bug/146153813:05
openstackLaunchpad bug 1461538 in oslo.messaging "Track upstream changes from projects we use for rabbitmq" [Undecided,New]13:05
silehtdims_, cool13:06
*** nkrinner has quit IRC13:15
*** stevemar has joined #openstack-oslo13:17
dhellmanndims_, jd__, harlowja, bnemec : this namespace package change in oslo.middleware is ready to go in: https://review.openstack.org/#/c/181975/13:19
dhellmannsileht: ^^13:19
dhellmannviktors: it's possible -- I'm not sure what's causing the bug. But either way, it was blocking us from fixing ironic yesterday.13:19
*** ozamiatin has joined #openstack-oslo13:20
dims_dhellmann: +213:20
dhellmanndims_: thanks; if we can merge it this week, I'd like to release it next monday13:21
dims_dhellmann: sounds good13:22
*** zzzeek has joined #openstack-oslo13:23
*** jecarey has joined #openstack-oslo13:32
*** mriedem_away is now known as mriedem13:32
*** e0ne is now known as e0ne_13:41
*** e0ne_ is now known as e0ne13:41
openstackgerritMerged openstack/tooz: Use fasteners library for interprocess locks  https://review.openstack.org/18578413:42
* mdbooth waves13:43
* dhellmann waves back13:43
mdboothdhellmann: Were you referring to pbr, btw?13:43
* mdbooth is13:43
dhellmannmdbooth: yeah, what's up13:43
* mdbooth is getting the following error trying to run some old unit tests:13:43
viktorsdims_: can you please abandon this one - https://review.openstack.org/#/c/123691/ ?13:43
mdboothValueError: git history requires a target version of pbr.version.SemanticVersion(2013.2.5), but target version is pbr.version.SemanticVersion(2013.2.4)13:43
mdboothI don't know what any of those things mean :)13:44
dims_viktors: done13:44
viktorsdims_: thanks!13:44
dhellmannmdbooth: hang on, I think lifeless wrote something about this on the ML a while back13:44
mdboothI can obviously find out by rtfs, but I was hoping somebody might be able to shortcut the process for me :)13:44
dhellmannmdbooth: which version of pbr are you using?13:44
mdboothdhellmann: requirements.txt says: pbr>=0.5.21,<1.013:45
mdboothHow do I ask pip?13:45
dhellmannmdbooth: http://lists.openstack.org/pipermail/openstack-dev/2015-April/063063.html13:45
mdboothHmm, interesting13:45
mdboothSeems it's 1.0.113:45
dhellmannmdbooth: you can run "pip freeze" to get the pbr version13:46
mdboothWhich is decidedly not <1.013:46
dhellmannis this a devstack system?13:46
mdboothNo, RHOS 413:46
dhellmannmaster or kilo?13:46
mdboothNo ;)13:46
dhellmannok, well, I can't explain what you've got then :-)13:47
mriedemmdbooth: so you are probably working with no longer supported upstream branches,13:47
mriedemand newer pbr13:47
mriedemmdbooth: we've had the same issue in our internal havana which we still support13:47
mdboothRelease H I believe13:47
mriedembasically, comment out the version from setup.cfg so that pbr will automatically generate the next version for you13:47
mdboothIsh13:47
dhellmannmriedem: this sounds like something worthy of a bug report13:48
mriedemdhellmann: it's by design13:48
mriedemdocumented here http://docs.openstack.org/developer/pbr/semver.html13:48
mdboothpbr-0.11.013:48
mriedemthe only bug would have been they shouldn't have made the cutover in 0.11 but held off for 1.013:48
mriedemmdbooth: yeah, we've had the same issue - you have 3 options:13:49
mriedem1. remove explicit version entry from setup.cfg13:49
mriedem2. pin pbr < 0.1113:49
mriedem3. update the version in setup.cfg to be n+1 for your last release tag in your repo13:49
*** ihrachyshka has joined #openstack-oslo13:49
mdboothJust tried 2 and got:13:50
mdbooth  File "/home/mbooth/src/openstack/nova/.venv/lib/python2.7/site-packages/testtools/__init__.py", line 126, in <module>13:51
mdbooth    __version__ = _version.semantic_version().version_tuple()13:51
mdboothAttributeError: 'VersionInfo' object has no attribute 'semantic_version'13:51
openstackgerritJulien Danjou proposed openstack/oslo.utils: Replace parse_strtime with parse_isotime in older/newer  https://review.openstack.org/18800913:51
openstackgerritJulien Danjou proposed openstack/oslo.utils: timeutils: fix newer/older comparison with TZ aware datetime  https://review.openstack.org/18801013:51
mriedemmdbooth: so, the tricky thing is,13:51
mdboothTrying 113:51
mriedemmdbooth: if you're going to pin pbr < 0.11, you also have to pin a bunch of test libraries that pull in pbr >= 0.1113:51
mriedemso pinning was a pain in the ass option for us and we went with #213:51
mriedemfwiw, i think there are some bugs in pbr if it's supposed to match everything in http://docs.openstack.org/developer/pbr/semver.html13:52
mdboothYou mean #3?13:52
mriedemsorry, #113:52
mriedemwe did 113:52
mdboothOk13:52
mdboothI just unpinned the version, and I still get the SemanticVersion error13:52
mriedemand we version our packages as we want regardless of what pbr thinks the version should be since we have vendor tags in our versions13:52
mriedemb/c our versions were like 2013.2.5.ibm13:53
* mdbooth will try an explicit version # in setup.cfg13:53
mriedemand that used to work, but now the .ibm doesn't work13:53
mdboothtbh, the version number isn't at all interesting to my use case, here13:53
mdboothReally just need the unit tests to run13:53
mriedemmdbooth: yeah, so #1 should fix that13:54
mriedempbr will scan the git tags on the repo and find the latest release tag and use that + 1 for the next version number on the package13:54
*** sigmavirus24_awa is now known as sigmavirus2413:54
mriedemisn't it awesome supporting branches that are eol upstream? :)13:55
mdbooth\o/13:55
* mriedem was just about to send a note to the ML about icehouse-eol13:55
*** dulek has quit IRC14:00
*** rpodolyaka1 has quit IRC14:01
dhellmannlifeless: I wonder if we need a better story for ^^. Either docs, or some way to turn off the check?14:02
*** Kennan2 has quit IRC14:02
*** Kennan has joined #openstack-oslo14:03
*** rpodolyaka1 has joined #openstack-oslo14:07
mdboothmriedem: I allowed it to fetch the latest pbr, and hacked setup.cfg to contain what it seemed to be looking for. Success :)14:09
mdboothmriedem dhellmann: Thanks14:09
mriedemmdbooth: sure, although if you're setting a specific version in setup.cfg and at some point you do a release on your havana branch, you'll hit the same issue again later14:09
mdboothThat stuff happens behind a curtain. I assume...14:10
openstackgerritMerged openstack/oslo.middleware: Remove oslo namespace package  https://review.openstack.org/18197514:10
*** inc0_ has joined #openstack-oslo14:13
*** inc0_ has quit IRC14:13
*** mtanino has joined #openstack-oslo14:20
*** mdbooth has quit IRC14:21
*** elarson_ has joined #openstack-oslo14:22
*** zz_jgrimm is now known as jgrimm14:25
*** david-lyle has quit IRC14:25
*** elarson has quit IRC14:27
*** tsekiyama has joined #openstack-oslo14:27
*** elarson_ is now known as elarson14:27
*** rpodolyaka1 has quit IRC14:27
*** sputnik13 has joined #openstack-oslo14:31
*** _amrith_ is now known as amrith14:33
dhellmanndims_, jd__, sileht, harlowja, bnemec : another namespace package patch ready to land, oslo.rootwrap: https://review.openstack.org/#/c/181978  (cc ttx)14:35
*** exploreshaifali has quit IRC14:36
*** barra204 has quit IRC14:36
*** shakamunyi has quit IRC14:36
*** nikhil_k is now known as nikhil_k-brb14:52
*** dguitarbite has quit IRC14:59
*** jgrimm is now known as zz_jgrimm15:10
*** ozamiatin has quit IRC15:12
*** mdbooth has joined #openstack-oslo15:20
*** alexpilotti has quit IRC15:24
*** jecarey has quit IRC15:24
*** jecarey has joined #openstack-oslo15:26
openstackgerritKobi Samoray proposed openstack/tooz: Use MySQL default port when not set explicitly  https://review.openstack.org/18798215:28
openstackgerritJulien Danjou proposed openstack/oslo.utils: timeutils: fix newer/older comparison with TZ aware datetime  https://review.openstack.org/18801015:31
*** e0ne is now known as e0ne_15:32
*** rpodolyaka1 has joined #openstack-oslo15:34
*** e0ne_ is now known as e0ne15:35
openstackgerritMerged openstack/oslo.rootwrap: Remove oslo namespace package  https://review.openstack.org/18197815:36
*** david-lyle has joined #openstack-oslo15:39
*** zz_jgrimm is now known as jgrimm15:40
*** rpodolyaka1 has quit IRC15:40
*** rpodolyaka1 has joined #openstack-oslo15:41
*** david-lyle has quit IRC15:47
*** alexpilotti has joined #openstack-oslo15:48
*** mdbooth has quit IRC15:49
*** nikhil_k-brb is now known as nikhil_k15:50
*** mdbooth has joined #openstack-oslo15:50
*** david-lyle has joined #openstack-oslo15:53
*** dulek has joined #openstack-oslo15:59
*** rushiagr_away is now known as rushiagr16:03
*** arnaud____ has joined #openstack-oslo16:05
*** jgrimm is now known as zz_jgrimm16:07
*** jecarey has quit IRC16:07
*** zz_jgrimm is now known as jgrimm16:09
*** jecarey has joined #openstack-oslo16:10
*** dulek has quit IRC16:13
*** SridharGaddam has quit IRC16:13
*** dulek has joined #openstack-oslo16:14
*** vilobhmm has joined #openstack-oslo16:16
*** dims_ has quit IRC16:18
*** dims_ has joined #openstack-oslo16:18
*** ashleighfarnham has joined #openstack-oslo16:19
*** gordc is now known as gordc_afk16:19
*** dims__ has joined #openstack-oslo16:20
*** jamielennox is now known as jamielennox|away16:21
*** barra204 has joined #openstack-oslo16:21
*** david-lyle has quit IRC16:22
*** dims_ has quit IRC16:24
*** rpodolyaka1 has quit IRC16:24
*** rpodolyaka1 has joined #openstack-oslo16:25
*** barra204 has quit IRC16:28
*** ihrachyshka has quit IRC16:28
*** yassine_ has quit IRC16:31
*** arnaud____ has quit IRC16:31
*** dulek has quit IRC16:33
*** dulek has joined #openstack-oslo16:36
*** rpodolyaka1 has quit IRC16:53
*** dulek has quit IRC16:58
*** amotoki has quit IRC17:09
*** david-lyle has joined #openstack-oslo17:13
*** david-lyle has quit IRC17:13
*** david-lyle has joined #openstack-oslo17:15
*** rushiagr is now known as rushiagr_away17:15
*** e0ne has quit IRC17:17
*** yamahata has quit IRC17:21
krotscheckDoes anyone here understand how pastedeploy work, and can answer a few quick questions?17:25
krotschecki.e. I have this CORS middleware that currently takes an oslo config instance as an explicit parameter.17:25
krotscheckIs that somethign that pastedeploy can manage, or do I have to update the middleware?17:25
*** david-lyle has quit IRC17:28
openstackgerritOpenStack Proposal Bot proposed openstack/oslo.versionedobjects: Updated from global requirements  https://review.openstack.org/18811417:38
*** gordc_afk is now known as gordc17:39
*** yamahata has joined #openstack-oslo17:40
*** ashleighfarnham has left #openstack-oslo17:45
*** directxman12 has joined #openstack-oslo17:52
*** stpierre has joined #openstack-oslo17:54
directxman12dims__: for graduating oslo.reports, does it matter whether I create the launchpad project first, and then file the gerrit CI request, or the other way around?  (the "CreatingANewLibrary" page does CI first, LP later, but the "Repository Creator's Guide seems to suggest the other way around)17:56
lifelessmdbooth: hi18:08
lifelessdhellmann: hi18:09
lifelessso, if the repo is tagged, the tag wins18:09
lifelesswe could indeed have a way to say that the version line in setup.cfg should be ignored if not plausible18:09
lifelessI think that would have to be opt-in though18:10
dims__directxman12: either one is fine18:15
directxman12dims__: ok, thanks18:15
openstackgerritJoshua Harlow proposed openstack/taskflow: Use a lru cache to limit the size of the internal file cache  https://review.openstack.org/17610418:19
*** yamahata has quit IRC18:25
*** yamahata has joined #openstack-oslo18:25
lifelesszzzeek: hi18:26
zzzeeklifeless: heya18:26
lifelesszzzeek: there was a session on moving to pymysql @ the summit, and our names got put on some actions :)18:27
zzzeekwow18:27
harlowjajd__ lol, all the timezone stuff is funny18:27
harlowja*and/or scary, lol18:27
zzzeeklifeless: well, pymysql is just change the URL + requirements18:27
lifelesshttps://etherpad.openstack.org/p/liberty-cross-project-python318:27
lifelesszzzeek: there was a little more to it :)18:28
lifelesstasks, down the bottom18:28
zzzeeklifeless: bah.18:28
harlowjazzzeek when will https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/dialects/mysql/__init__.py#L12 change?18:28
harlowjawill it?18:28
harlowjato be pymysql18:28
lifelesszzzeek: anyhow, the good news is that we committed to moving to it - so that megathread has finally paid off :)18:28
zzzeekharlowja: unlikely18:28
harlowjadurn18:28
zzzeeklifeless: so…. element 4.6 ?18:29
zzzeeklifeless: or element 4.4, that one seems more strangey18:29
zzzeeklifeless: run nova on both?   ooooo k18:30
openstackgerritJoshua Harlow proposed openstack/tooz: Make the file driver more capable (with regard to groups)  https://review.openstack.org/18775018:30
lifelessso - the thing was 'if everything works just switch it', but 'if it might uncover bugs etc, lets do a expand-contract pattern'18:31
lifelessoh, 4.7 was the alternate to 4.6.18:31
lifelessfungi isn't in this channel18:32
*** greghaynes has joined #openstack-oslo18:32
* mordred agrees with all the things18:32
mordredexcept the ones he disagrees with18:32
*** fungi has joined #openstack-oslo18:32
fungiwhadid i miss?18:32
zzzeeklifeless: um what is expand-contract in this context ?18:33
lifelessfungi: https://etherpad.openstack.org/p/liberty-cross-project-python318:33
*** david-lyle has joined #openstack-oslo18:33
lifelessfungi: pm'ing scrollback18:33
zzzeeklifeless: the problems that we might get with pymysql are specifically that eventlet is suddenly going to work correctly and we’re going to have a lot more concurrency agains the DB within a single process18:33
lifelesszzzeek: yes, exactly18:35
lifelesszzzeek: expand-contract: add new CI jobs with pymysql, nonvoting. When they are no less reliable than the current jobs, delete the current jobs making teh new ones voting.18:35
fungithanks lifeless18:35
lifelessfungi: so - sdague has done 4.7?18:35
fungiso on the devstack flag, sdague actually took that over and it's landed now. there's still a change pending to toggle the default for it to on18:35
fungilemme dig up the review links18:36
lifelesssdague: did you do the oslo.db dep changes too ?18:36
zzzeeklifeless: i like that idea , is that too much work ?18:36
fungiso https://review.openstack.org/184489 implemented the devstack support18:36
zzzeeklifeless: at least for tempest type things18:36
fungihttps://review.openstack.org/184493 will switch it on18:37
sdaguelifeless: I didn't touch oslo.db18:37
fungii've still got a wip oslo.db change i need to polish up https://review.openstack.org/18439218:37
fungialong with a lot of other cleanup patches i pushed for it during the summit https://review.openstack.org/#/q/status:open+topic:pymysql-switch,n,z18:38
lifelessfungi: https://review.openstack.org/184392 seems to have conflicts18:38
lifelessfungi: ok cool - thanks18:38
lifelesszzzeek: its not a huge chunk of work, just assessing if its needed really18:39
lifelessfungi: I'm confused by https://review.openstack.org/18439218:39
lifelessfungi: is it just the contrat?18:39
lifelesscontract18:39
jlvillaldhellmann: Can this be closed now?  https://bugs.launchpad.net/ironic/+bug/146118218:40
openstackLaunchpad bug 1461182 in oslo.messaging "After oslo.messaging release Ironic gate is broken" [Undecided,In progress] - Assigned to Doug Hellmann (doug-hellmann)18:40
fungilifeless: i haven't looked closely yet. that's the initial patchset which was part of a mass stream edit across a couple hundred git repos18:40
zzzeeklifeless: for jobs that are running the sevices for real it would be nice to ahve pymysql as non-voting unless we are willing to have things potentially klinky for a little while18:40
zzzeeklifeless: i mean, we shoudl be able to -> pymysql and everything just works.18:40
zzzeeklifeless: depends on how serious it is if jobs fail and if we might need to revert18:41
lifelesszzzeek: https://review.openstack.org/184392 appears to run with pymysql and the world didn't end. we could recheck it a few times to get a sense of failure rate18:41
zzzeeklifeless: if it were me, I’d just push it all up and if it breaks, we can fix then18:41
zzzeeklifeless: see?  all those failures are tests I wrote in the 1st place :)18:43
*** flaper87 has quit IRC18:44
zzzeeklifeless: OK so, a job I can do is, make oslo.db pass 100% for pymysql.   I’ll just do it as a whole review, hows that18:44
lifelessseems like a necessary thing to do too18:45
lifelessAIUI there are some nova tests that might be driver specific as well18:45
lifelesssdague: were you hacking on those? there's no owner from the session18:46
zzzeekfungi: OK on https://review.openstack.org/#/c/184392/ are you working through those failures or do you want me to take a crack at them18:46
zzzeekfungi: those are mostly my tests looking for specific strings and such18:46
zzzeekfungi: if you want to keep going, that woudl be fine :)18:46
sdaguelifeless: I am not, I think fungi poked a thing. I assume the python 3 folks will trip over it and just fix it.18:46
sdaguebecause the other driver doesn't work in python 318:47
lifelessack18:47
sdagueI just took the devstack bits because it seemed like I could get it resolved quicker than anyone else, the rest I'll leave distributed to other people doing the python3 work18:47
lifelessall good; just seeking clarity :)18:48
fungizzzeek: i can continue to drive that change, but feel free to take it over if you want it done faster (any of you)18:48
zzzeekfungi: Im not ina hurry, just ask me for help b.c. those are tests I wrote anyway that are failing18:49
fungii am of course already up to my eyeballs with things to work on, but wanted to make sure that someone volunteered to solve this and figured i could beat it into submission if nobody else has the desire to do so18:49
*** jecarey has quit IRC18:49
fungizzzeek: thanks, once i fix the things i already know are issues i'll hit you up with questions18:50
*** cdent has quit IRC18:50
zzzeekfungi: I’ll look tomorrow and if its still kicking around and you’re onto other thigns ill take a crack at it18:50
fungii'm always happy to hand off work. it's not like i'm particularly attached to any of it. but i'll hopefully make some progress on it today18:51
*** rpodolyaka1 has joined #openstack-oslo18:52
*** mordred has quit IRC18:55
*** mordred has joined #openstack-oslo18:55
*** barra204 has joined #openstack-oslo18:57
openstackgerritJoshua Harlow proposed openstack/futurist: Remove dependency on oslo.utils (replace with small util code)  https://review.openstack.org/18780419:01
*** barra204 has quit IRC19:02
openstackgerritJoshua Harlow proposed openstack/futurist: Remove dependency on oslo.utils (replace with small util code)  https://review.openstack.org/18780419:04
*** shardy_ has joined #openstack-oslo19:06
*** shardy has quit IRC19:08
*** flaper87 has joined #openstack-oslo19:08
*** flaper87 has quit IRC19:09
*** flaper87 has joined #openstack-oslo19:09
*** cdent has joined #openstack-oslo19:09
*** dand has joined #openstack-oslo19:11
*** shardy_ has quit IRC19:12
*** shardy has joined #openstack-oslo19:12
*** e0ne has joined #openstack-oslo19:13
*** rpodolyaka1 has quit IRC19:19
dhellmannjlvillal: we can close it for everything except oslo.messaging, where I want to create a nicer fix. I'll do that.19:26
*** jgrimm is now known as zz_jgrimm19:26
directxman12dims__: I just created a project for oslo.reports, but during the project creation process I set the "Maintainer" as "Oslo Drivers", not realizing that I would be subsequently prevented from editing the project...  Can I get transferred back to me to finish off the creation process?19:28
dhellmanndirectxman12: I can do that19:28
directxman12dhellmann: thanks19:28
* directxman12 is a bit tired today, apparently19:28
dhellmanndirectxman12: just to make sure, your lp id is sross-7, right?19:29
*** ozamiatin has joined #openstack-oslo19:29
directxman12dhellmann: yeah19:29
dhellmanndirectxman12: done19:29
directxman12dhellmann: thanks19:29
dims__directxman12: thanks!19:46
*** crc32 has joined #openstack-oslo19:51
openstackgerritDoug Hellmann proposed openstack/oslo.messaging: replace rpc_response_timeout use in rabbit driver  https://review.openstack.org/18816319:57
dhellmannsileht: ^^19:57
*** flaper87 has quit IRC19:57
*** barra204 has joined #openstack-oslo19:58
*** flaper87 has joined #openstack-oslo19:59
*** ozamiatin has quit IRC19:59
*** barra204 has quit IRC20:03
dims__sileht: https://github.com/celery/py-amqp/pull/64 merged!20:03
*** flaper87 has quit IRC20:03
harlowjawoot20:03
harlowja+10 for contributing to other communities/code-bases20:04
dims__harlowja: this one was just cheer-leading :)20:04
harlowja+10 for cheer-leading20:05
harlowjalol20:05
dims__:)20:05
*** mtanino has quit IRC20:06
*** jecarey has joined #openstack-oslo20:06
*** amrith is now known as _amrith_20:06
*** salv-orlando has quit IRC20:09
*** salv-orlando has joined #openstack-oslo20:09
*** e0ne is now known as e0ne_20:09
*** e0ne_ is now known as e0ne20:14
*** e0ne has quit IRC20:14
*** flaper87 has joined #openstack-oslo20:16
*** alexpilotti has quit IRC20:17
stevemardhellmann, around-ish?20:18
dhellmannstevemar: ish20:18
stevemardhellmann, i was trying to add heat-translator to global reqs, and apparently i dun broke everything, because it uses python-dateutil (which is not in GR) https://github.com/openstack/heat-translator/blob/master/requirements.txt#L420:19
dhellmannyeah, I was just chatting with AJaeger about that in -infra20:19
stevemardhellmann, do you think it's worth trying to get python-dateutil into GR? or do you think oslo.utils time/date utils can cover it?20:20
stevemarapparently this is the only instance of it: https://github.com/openstack/heat-translator/blob/e5cddd4de6e1639ca779f5f5183de15265171872/translator/toscalib/elements/constraints.py#L25220:20
* dhellmann goes to see wha python-dateutil is20:20
stevemardhellmann, https://labix.org/python-dateutil#head-c0e81a473b647dfa787dc11e8c69557ec2c3ecd220:21
dims__stevemar: simple enough to use oslo.utils i feel20:21
stevemardims__, yeah, just trying to find the analogous in oslo.utils20:22
dims__we have enough trouble with date/time already :)20:22
dims__stevemar: parse_isotime/parse_strtime20:22
dims__stevemar: both should throw exceptions if the string is not valid20:23
dhellmannstevemar: yeah, we have some parsing functions in http://git.openstack.org/cgit/openstack/oslo.utils/tree/oslo_utils/timeutils.py but they rely on the format being standardized20:23
dhellmannIIRC, dateutil figures out the format for you?20:23
dims__dhellmann: stevemar: looks like you may have to consult the tosca schema for what's valid and what's not20:24
dims__if it matches one of stuff we already have in oslo.utils...then we are good20:24
dhellmanndims__, jd__ : I wonder if this lib would help in our migration away from those date functions in oslo.utils20:25
stevemarblah, 1300 lines for parsing https://github.com/dateutil/dateutil/blob/master/dateutil/parser.py20:27
dhellmannstevemar: what do the timestamps being parsed in heat-translator look like?20:29
stevemardhellmann, trying to find out, but i think it'll have to wait til tomorrow (i'm heading off and the heat-translator folks are not online it seems)20:30
dhellmannstevemar: maybe in the mean time submit a patch to remove heat-translator from projects.txt, and we can get all ducks in a row before going ahead again?20:31
stevemardhellmann, seems like it20:32
stevemari doubt yall want to add python-dateutils20:32
stevemaror whatever it is20:33
dhellmannstevemar: that package has a good history, so I wouldn't rule it out, but let's figure out the right solution in a Not Broken state20:33
stevemardhellmann, thanks sir - reverting it here https://review.openstack.org/#/c/188174/20:34
stevemarwhile i have your attention... https://review.openstack.org/#/c/188078/20:34
* stevemar is an opportunist 20:34
dhellmannstevemar: is there a feature in that version of keystone client that osc needs, or is it just a bug fix?20:36
dhellmannstevemar: IOW, is there some API missing from the earlier version that keystone client needs?20:36
*** jamespage_ has joined #openstack-oslo20:38
stevemardhellmann, y, it's a feature that osc needs if we want to release again20:40
dhellmannstevemar: ok, because the commit message there makes it sound like a bug fix, and we don't usually bump just for bug fixes20:41
stevemardhellmann, nah, just bad wording on my part20:41
dhellmannstevemar: ok, want to update that and then I'll +2?20:41
stevemardhellmann, kk20:42
*** jamespage_ has quit IRC20:42
dhellmanndims__, jd__ : it would be nice if we could provide some sort of compatibility shim for projects moving away from this deprecated function instead of having everyone copy it back into their source tree :-(20:43
dhellmanndims__, jd__ : https://review.openstack.org/#/c/187751/20:43
stevemarnew wording ftw!20:43
dims__dhellmann: ++20:44
openstackgerritMerged openstack/oslo-incubator: Guru Meditation Reports broken without version_string  https://review.openstack.org/18419920:44
openstackgerritMerged openstack/oslo.versionedobjects: Updated from global requirements  https://review.openstack.org/18811420:49
*** stevemar has quit IRC20:51
openstackgerritMerged openstack/tooz: Updated from global requirements  https://review.openstack.org/18810320:56
*** gordc has quit IRC20:58
*** sabari has quit IRC21:03
*** tsekiyama has quit IRC21:05
*** cdent has quit IRC21:06
openstackgerritMerged openstack/futurist: Updated from global requirements  https://review.openstack.org/18795121:07
mriedemis the log notifier in oslo.messaging for sending a notification for every log record sent, or for logging every notification sent?21:14
mriedemsomeone was asking me if it's possible to log notification events from nova and i wasn't sure looking at the o.m docs21:14
dhellmannmriedem: it looks like it sends notifications for log messages21:15
mriedemyeah that's how i read it21:15
*** sabari has joined #openstack-oslo21:18
*** alexpilotti has joined #openstack-oslo21:46
krotscheckdhellmann: With all the CORS discussion happening on the spec, I'm starting to think that everyone's making the implicit assumption that it will support paste deploy21:55
krotscheckWhich... It doesn't.21:55
krotscheckIs it worth going back and changing the middleware to do that?21:56
*** mriedem has quit IRC21:57
*** tsekiyama has joined #openstack-oslo22:04
*** crc32 has quit IRC22:05
*** tsekiyama has quit IRC22:09
bknudsonkrotscheck: why doesn't it support paste deploy?22:11
krotscheckbknudson: It takes an oslo_config isntance as a constructor argument. I've been told that pastedeploy doesn't really do taht.22:11
* krotscheck doesn't know pastedeploy well enough to know if that's true or not.22:12
bknudsonI don't know of a way to pass oslo.config instance to the constructor in paste pipeline either22:12
bknudsonauth_token middleware uses the global CONF object22:13
bknudsonalthough there's a proposed change to make it work without the global CONF object...22:13
harlowjaglobals make me sad, ha22:14
bknudsonhttps://review.openstack.org/#/c/143063/22:14
bknudsonhmm... that seems incomplete.22:15
harlowjaya, maybe missing some code that wasn't `git add'(ed)22:15
bknudsonthe paste middleware gets passed a config object, it's not oslo_config though22:16
bknudsonso you could require the config provide the middleware the name of the conf to use22:16
bknudsonor you could have some other middleware configure a config that the other middleware gets from the conf.22:17
bknudsonwe do that in auth_token... I'll see if I can find it.22:17
bknudsonhttp://git.openstack.org/cgit/openstack/keystonemiddleware/tree/keystonemiddleware/auth_token/__init__.py#n26022:18
bknudsonthen it does env.get -- http://git.openstack.org/cgit/openstack/keystonemiddleware/tree/keystonemiddleware/auth_token/_cache.py#n13922:19
harlowjaman, i also wonder if http://git.openstack.org/cgit/openstack/keystonemiddleware/tree/keystonemiddleware/auth_token/__init__.py#n237 should just be function arguments with docstrings (where the docstring is the help message); then people can just refer to docs generated via sphinx22:20
harlowja*always wonder if22:20
*** jamielennox|away is now known as jamielennox22:20
bknudsonall those config options wind up in all the server's config files.22:21
harlowjaya, i know22:21
harlowjafor better or worse imho22:21
harlowjaACTION just imagines that they could be arguments to functions, then these are nice reusable libraries that have nice docstrings with nice sphinx docs, and then something, if it so desires could extract the sphinx docstring from say __doc__ and make a config file out of it, orrrrr someone could just use the regular functions with arguments (as normally u would) maybe even taking advantage of https://www.python.org/dev/peps/pep-0484/22:25
* harlowja listopts and such...22:25
harlowjaone can dream, ha22:26
*** sigmavirus24 is now known as sigmavirus24_awa22:30
*** bknudson has quit IRC22:31
*** mriedem has joined #openstack-oslo22:34
*** mriedem has quit IRC22:37
*** mriedem has joined #openstack-oslo22:38
*** vilobhmm has quit IRC22:41
*** vilobhmm has joined #openstack-oslo22:41
*** vilobhmm1 has joined #openstack-oslo22:44
*** vilobhmm has quit IRC22:46
*** barra204 has joined #openstack-oslo22:48
*** dand has quit IRC22:49
*** barra204 has quit IRC22:53
*** jecarey has quit IRC23:06
dhellmannkrotscheck: I agree we should make it work with paste somehow, and it sounds like bknudson's example is a reasonable precedent.23:07
krotscheckdhellmann: I dunno, one of those feels a little too much like "So I heard you like middleware, so I put a middeware in your middleware so you can parse while you parse"23:10
harlowja^ brain exploded23:13
*** tsekiyama has joined #openstack-oslo23:25
*** sputnik13 has quit IRC23:27
*** sputnik13 has joined #openstack-oslo23:28
*** sputnik13 has quit IRC23:31
*** sputnik13 has joined #openstack-oslo23:33
*** sdake has quit IRC23:35
openstackgerritJoshua Harlow proposed openstack/taskflow: Cache the individual atom schedulers at compile time  https://review.openstack.org/18782823:42
*** dims_ has joined #openstack-oslo23:51
*** dims__ has quit IRC23:55
*** sputnik13 has quit IRC23:58

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