Wednesday, 2014-06-25

*** harlowja has quit IRC00:00
*** tsekiyama has quit IRC00:09
*** bknudson has joined #openstack-oslo00:17
*** bknudson has left #openstack-oslo00:25
*** praneshp has quit IRC00:25
*** lbragstad has quit IRC00:31
*** bknudson has joined #openstack-oslo00:34
openstackgerritArnaud Legendre proposed a change to openstack/oslo.vmware: Deprecate RetryDecorator for the retrying package  https://review.openstack.org/10237900:46
*** dstanek is now known as dstanek_zzz00:48
*** morganfainberg is now known as morganfainberg_Z00:57
*** dstanek_zzz is now known as dstanek01:04
*** praneshp has joined #openstack-oslo01:18
*** lbragstad has joined #openstack-oslo01:25
*** harlowja_ has quit IRC01:28
*** oomichi has quit IRC01:29
*** praneshp_ has joined #openstack-oslo01:32
*** harlowja has joined #openstack-oslo01:32
*** oomichi has joined #openstack-oslo01:33
*** dstanek is now known as dstanek_zzz01:34
*** praneshp has quit IRC01:35
*** praneshp_ is now known as praneshp01:35
*** lbragstad has left #openstack-oslo01:37
*** praneshp has quit IRC01:43
*** lbragstad has joined #openstack-oslo01:46
openstackgerritYAMAMOTO Takashi proposed a change to openstack/oslo.messaging: Use assertEqual instead of assertIs for strings  https://review.openstack.org/10208401:50
*** morganfainberg_Z is now known as morganfainberg02:06
openstackgerritArnaud Legendre proposed a change to openstack/oslo.vmware: Store PBM wsdl in the oslo.vmware git repository  https://review.openstack.org/10240902:17
*** arnaud__ has quit IRC02:23
*** dstanek_zzz is now known as dstanek02:26
*** dims__ has quit IRC02:28
*** openstackgerrit has quit IRC02:31
*** dims__ has joined #openstack-oslo02:54
*** dims__ has quit IRC02:58
*** praneshp has joined #openstack-oslo03:04
*** harlowja is now known as harlowja_away03:04
*** zzzeek has joined #openstack-oslo03:24
*** arnaud__ has joined #openstack-oslo03:31
*** dstanek is now known as dstanek_zzz03:32
*** zhiyan_ is now known as zhiyan03:49
*** dims__ has joined #openstack-oslo03:55
*** dims__ has quit IRC03:59
*** dstanek_zzz is now known as dstanek04:25
*** dstanek is now known as dstanek_zzz04:35
*** lbragstad has quit IRC04:45
*** SridharG has joined #openstack-oslo04:52
*** dims__ has joined #openstack-oslo04:56
*** dstanek_zzz is now known as dstanek04:56
*** ajc_ has joined #openstack-oslo04:59
*** dims__ has quit IRC05:00
*** dstanek is now known as dstanek_zzz05:06
*** zzzeek has quit IRC05:14
*** morganfainberg is now known as morganfainberg_Z05:14
*** markmcclain has joined #openstack-oslo05:17
*** markmcclain1 has joined #openstack-oslo05:18
*** max_lobur has joined #openstack-oslo05:20
*** markmcclain has quit IRC05:22
*** ildikov has quit IRC05:27
*** markmc has joined #openstack-oslo05:34
*** markmcclain1 has quit IRC05:39
*** ihrachyshka has joined #openstack-oslo05:46
*** ihrachyshka has quit IRC05:46
*** praneshp_ has joined #openstack-oslo05:47
*** praneshp has quit IRC05:49
*** praneshp_ is now known as praneshp05:49
*** zzzeek has joined #openstack-oslo05:54
*** ildikov has joined #openstack-oslo05:54
*** dims__ has joined #openstack-oslo05:56
*** dstanek_zzz is now known as dstanek05:57
*** dims__ has quit IRC06:01
*** max_lobur has quit IRC06:06
*** dstanek is now known as dstanek_zzz06:07
*** jaosorior has joined #openstack-oslo06:33
*** arnaud__ has quit IRC06:46
*** SridharG has quit IRC06:46
*** arnaud__ has joined #openstack-oslo06:48
*** max_lobur has joined #openstack-oslo06:54
*** dims__ has joined #openstack-oslo06:57
*** dstanek_zzz is now known as dstanek06:57
*** praneshp has quit IRC07:01
*** dims__ has quit IRC07:04
*** dstanek is now known as dstanek_zzz07:07
*** tkelsey has joined #openstack-oslo07:18
*** zzzeek has quit IRC07:19
*** zzzeek has joined #openstack-oslo07:19
*** zzzeek has quit IRC07:27
*** i159 has joined #openstack-oslo07:29
*** SridharG has joined #openstack-oslo07:34
*** ajo|mac has joined #openstack-oslo07:39
*** arnaud__ has quit IRC07:51
*** ajo|mac has quit IRC07:56
*** ajo|mac has joined #openstack-oslo07:57
*** ajo|mac has quit IRC07:58
*** dstanek_zzz is now known as dstanek07:58
*** mrda is now known as mrda-away08:02
*** ihrachyshka has joined #openstack-oslo08:03
*** dstanek is now known as dstanek_zzz08:08
*** pblaho has joined #openstack-oslo08:15
boris-42markmc hi08:43
markmcboris-42, hey08:44
boris-42markmc I have some small question08:44
boris-42markmc I just saw some issue in oslo.messaging related to unit tests structure08:44
boris-42markmc I wanna fix it08:45
boris-42markmc and do something like this https://review.openstack.org/#/c/102460/08:45
boris-42markmc ^ are you interested in such changes?08:45
*** eezhova has quit IRC08:46
markmcboris-42, I'll reply in the review rather than duplicating here08:46
boris-42markmc so are you ok or not?) I would like just to do the same for rest08:47
boris-42markmc and one more small question about this file https://github.com/openstack/oslo.messaging/blob/master/oslo/messaging/__init__.py#L16-L2308:48
boris-42markmc why do we need to import everything in such manner?08:48
boris-42markmc it produce actually mess in main module..08:48
ihrachyshkaboris-42: https://github.com/openstack/oslo.messaging/commit/03aafcb49c2c0dded12786c0885945aa821d5b2f08:49
boris-42ihrachyshka not sure what is the goal of such importnats?08:50
boris-42why we are creating mess in top module?08:50
ihrachyshkaboris-42: there was an API for the library that exposed those symbols. we probably don't want to change that08:50
ihrachyshkait would break lots of existing code08:51
markmcboris-42, 'mess' is subjective, you're welcome to your opinion ...08:52
boris-42markmc ok probably it's just another style08:52
boris-42markmc to make a libs08:52
markmcbut I'd much rather oslo.messaging.get_transport() rather than oslo.messaging.transport.get_transport()08:52
boris-42markmc so about moving tests08:52
markmcit was carefully done this way to get a nice public API08:52
boris-42markmc I don't move test directory08:52
boris-42markmc I move some test modules deeper in test directory08:53
*** openstackgerrit has joined #openstack-oslo08:53
markmcboris-42, please reply in the review08:53
boris-42markmc replied =)08:53
markmcboris-42, I misunderstood08:53
boris-42markmc yep just organizing structure inside of tests/ directory08:53
boris-42markmc then we have some kind of name spaces, and we are able to use template, test_<name_of_testing_module>.py08:54
*** eezhova has joined #openstack-oslo08:57
*** dstanek_zzz is now known as dstanek08:59
openstackgerritBoris Pavlovic proposed a change to openstack/oslo.messaging: Fix structure of unit tests in oslo.messaging (part 2)  https://review.openstack.org/10247009:02
*** dims has joined #openstack-oslo09:02
*** dims has quit IRC09:08
*** pblaho is now known as pblaho|afk09:09
*** dstanek is now known as dstanek_zzz09:09
openstackgerritBoris Pavlovic proposed a change to openstack/oslo.messaging: Fix structure of unit tests in oslo.messaging (part 2)  https://review.openstack.org/10247009:11
openstackgerritBoris Pavlovic proposed a change to openstack/oslo.messaging: Fix structure of unit tests in oslo.messaging (part 3 last)  https://review.openstack.org/10247109:11
openstackgerritMax Lobur proposed a change to openstack/oslo.db: Add __contains__ to ModelBase to fully behave like a dict  https://review.openstack.org/10200809:15
boris-42markmc I think i will improve a bit test coverage09:17
boris-42markmc after we merge refactoring of structure seems like some modules are not tested..09:18
markmcboris-42, like?09:18
*** amotoki has quit IRC09:24
boris-42markmc https://github.com/openstack/oslo.messaging/blob/master/oslo/messaging/_drivers/impl_zmq.py or I missed tests for it09:26
*** gcb_ has joined #openstack-oslo09:27
markmcboris-42, yes https://bugs.launchpad.net/oslo.messaging/+bug/130294109:27
markmcmike wilson has some patches proposed09:27
boris-42markmc does tox -e cover works for you?09:27
markmchaven't tried lately09:27
markmcit did at one point09:27
boris-42markmc Coverage.py warning: No data was collected.09:27
boris-42markmc I will try to fix it09:28
*** ihrachyshka has quit IRC09:44
*** pblaho|afk is now known as pblaho09:56
openstackgerritRadoslav Gerganov proposed a change to openstack/oslo.vmware: Refactor the PBM support  https://review.openstack.org/10248009:56
*** dstanek_zzz is now known as dstanek10:00
*** yamahata has quit IRC10:08
*** dstanek is now known as dstanek_zzz10:10
*** gcb_ has quit IRC10:11
*** ihrachyshka has joined #openstack-oslo10:17
*** ihrachyshka has quit IRC10:21
*** ihrachyshka has joined #openstack-oslo10:22
*** gcb_ has joined #openstack-oslo10:28
*** ihrachyshka has quit IRC10:47
*** ihrachyshka has joined #openstack-oslo10:47
*** dstanek_zzz is now known as dstanek11:00
*** dims has joined #openstack-oslo11:03
*** dims has quit IRC11:08
*** yamahata has joined #openstack-oslo11:15
*** gcb_ has quit IRC11:16
*** dims_ has joined #openstack-oslo11:19
*** dims__ has joined #openstack-oslo11:22
*** dims_ has quit IRC11:25
*** tkelsey has quit IRC11:33
*** SridharG has quit IRC11:36
*** erecio has joined #openstack-oslo11:44
*** pblaho is now known as pblaho|afk11:48
*** pblaho|afk is now known as pblaho11:51
*** flaper87|afk is now known as flaper8711:59
*** jaosorior has quit IRC12:02
*** erecio has quit IRC12:11
*** erecio has joined #openstack-oslo12:12
*** erecio has quit IRC12:13
*** erecio has joined #openstack-oslo12:14
*** jaosorior has joined #openstack-oslo12:19
*** erecio has quit IRC12:20
*** erecio has joined #openstack-oslo12:21
*** ajc_ has quit IRC12:23
*** dims__ has quit IRC12:31
*** dims__ has joined #openstack-oslo12:31
*** lbragstad has joined #openstack-oslo12:50
*** SridharG has joined #openstack-oslo12:50
*** dstanek is now known as dstanek_zzz12:53
*** jecarey has joined #openstack-oslo12:54
*** pblaho is now known as pblaho|afk12:55
*** flaper87 is now known as flaper87|afk12:55
*** tkelsey has joined #openstack-oslo12:59
*** dstanek_zzz is now known as dstanek13:00
openstackgerritMark McLoughlin proposed a change to openstack/oslo.config: Add CLI option support to config fixture  https://review.openstack.org/10251513:01
*** pblaho|afk is now known as pblaho13:02
*** mriedem has joined #openstack-oslo13:15
*** pblaho has quit IRC13:17
*** dstanek is now known as dstanek_zzz13:20
*** zzzeek has joined #openstack-oslo13:21
*** dstanek_zzz is now known as dstanek13:23
*** jecarey has quit IRC13:25
*** jecarey has joined #openstack-oslo13:25
openstackgerritRadoslav Gerganov proposed a change to openstack/oslo.vmware: Do not log the full session ID  https://review.openstack.org/10220013:29
*** markmcclain has joined #openstack-oslo13:36
*** markmcclain1 has joined #openstack-oslo13:37
*** markmcclain1 has quit IRC13:38
openstackgerritRadoslav Gerganov proposed a change to openstack/oslo.vmware: Do not log the full session ID  https://review.openstack.org/10220013:39
*** markmcclain has quit IRC13:40
openstackgerritDoug Hellmann proposed a change to openstack/oslo-specs: Fix graduate-serialization file name  https://review.openstack.org/10253013:44
*** zzzeek has quit IRC13:47
*** ildikov has quit IRC14:06
*** sileht has quit IRC14:20
boris-42dhellmann seems like oslo global requirements are broken14:21
boris-42dhellmann actually this job check-requirements-integration-dsvm fails 100%14:22
dhellmannboris-42: link?14:22
boris-42dhellmann https://review.openstack.org/#/c/102362/14:22
boris-42dhellmann I made a lot of rechecks14:22
dhellmannboris-42: you should talk to the folks in #openstack-infra14:23
openstackgerritMatt Riedemann proposed a change to openstack/oslo-incubator: Remove unnecessary setUp function  https://review.openstack.org/10199014:23
openstackgerritMatt Riedemann proposed a change to openstack/oslo-incubator: Move nova.utils.cpu_count() to service.py module  https://review.openstack.org/10197814:23
*** sileht has joined #openstack-oslo14:23
mriedemmarkmc: this needs a +W again, was just a rebase https://review.openstack.org/#/c/101990/14:24
markmcmriedem, done14:25
mriedemthanks14:25
bnemecmriedem: Your commit message is wrong. :-P14:27
bnemecs/service.py/processutils.py/14:27
mriedembnemec: gdi, i looked at the body but not the title14:27
mriedemgo go gerrit commit message edit button14:27
openstackgerritMatt Riedemann proposed a change to openstack/oslo-incubator: Move nova.utils.cpu_count() to processutils module  https://review.openstack.org/10197814:28
mriedembnemec: and in using that i outdated your patch :(14:28
mriedemi'll fix and rebase locally14:29
bnemecmriedem: We should probably just rebase that out of the series.  It's not dependent anymore.14:29
mriedemyou want to do that?14:29
*** ildikov has joined #openstack-oslo14:30
*** james_li has joined #openstack-oslo14:30
*** jaosorior has quit IRC14:32
bnemecmriedem: I'm in a meeting right now, but I could when I get done14:32
*** dstanek is now known as dstanek_zzz14:34
openstackgerritBen Nemec proposed a change to openstack/oslo-incubator: Remove unnecessary setUp function  https://review.openstack.org/10199014:36
bnemecmriedem: ^14:37
mriedembeautiful14:38
*** tsekiyama has joined #openstack-oslo14:41
*** morganfainberg_Z is now known as morganfainberg14:42
*** zhiyan is now known as zhiyan_14:43
*** dstanek_zzz is now known as dstanek14:45
*** markmcclain has joined #openstack-oslo14:48
*** oomichi has quit IRC14:52
openstackgerritMark McLoughlin proposed a change to openstack/oslo-specs: Add oslo-config-generator  https://review.openstack.org/10254814:54
openstackgerritMark McLoughlin proposed a change to openstack/oslo.config: Add oslo-config-generator  https://review.openstack.org/10094614:55
openstackgerritmouad benchchaoui proposed a change to openstack/oslo-incubator: Fix reconnect race condition with RabbitMQ cluster  https://review.openstack.org/10255515:18
*** ihrachyshka has quit IRC15:23
*** ajo|mac has joined #openstack-oslo15:39
openstackgerritRadoslav Gerganov proposed a change to openstack/oslo.vmware: Refactor the PBM support  https://review.openstack.org/10248015:45
*** ajo|mac has quit IRC15:46
*** james_li has quit IRC15:47
openstackgerritIlya Pekelny proposed a change to openstack/oslo.db: Implementation Alembic as migration engine  https://review.openstack.org/9996515:52
*** i159 has quit IRC15:54
openstackgerritAaron Rosen proposed a change to openstack/oslo.messaging: Replace usage of str() with six.text_type  https://review.openstack.org/9736215:57
viktors|afkbnemec: around?15:57
*** viktors|afk is now known as viktors15:58
*** yamahata has quit IRC15:58
bnemecviktors: Yes16:02
viktorsbnemec: Hi! Can I ask you to review a few patches in oslo.db? )16:03
bnemecviktors: If they're as large as the ones Ilya linked me yesterday then I make no promises. :-)16:04
viktorsbnemec: let me ping Ilya, - I'm afraid that it can be the same patches :)16:05
bnemecviktors: https://review.openstack.org/#/c/93398 and https://review.openstack.org/#/c/93424 ?16:06
bnemecThey're both open in my browser, but they're both multiple hundreds of lines so they take a while.16:07
viktorsbnemec: yes, that’s exactly these patches )16:08
bnemecviktors: Yeah, they're on my list16:09
viktorsbnemec: I just remember, that you had some notes about patch ``Add a base test case for DB schema comparison`` in oslo-incubator before graduation, so you can take look at this patch in oslo.db16:10
bknudsondoes anyone have tips on how to debug oslo.db with devstack?16:10
bknudsonfor example with keystone and python-keystoneclient I can just set breakpoints in /opt/stack/keystone/16:10
bknudsonbut that doesn't seem to work with oslo.db16:10
bnemecviktors: Oh right, those came from incubator.  I'll try to refresh my memory on what I said before.16:11
viktorsbknudson: I don't have such experience yet )16:12
viktorsbnemec: ok, thank you16:13
bknudsonI'll try just creating a symlink... it says <module 'oslo.db.sqlalchemy.session' from '/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.pyc'>16:13
*** praneshp has joined #openstack-oslo16:14
bknudsonsymlink works. seems like it should be easier16:18
*** amotoki has joined #openstack-oslo16:26
*** jecarey has quit IRC16:28
bnemecdhellmann: I forget, are we not pip install -e'ing anymore in devstack?  Related to bknudson's question about oslo.db above.16:38
bnemecThat might explain why setting breakpoints in /opt/stack isn't working.16:38
dhellmannbnemec, bknudson: yes, we had to turn that off to fix the namespace package issue16:38
dhellmannso you should set the breakpoint on the installed copy of the code in /usr/local/...16:39
bknudsondhellmann: ok. I make /usr/local/ ... session.py a symlink into /opt/stack/oslo.db/.../session.py16:39
*** arnaud has joined #openstack-oslo16:40
dhellmannbknudson: if you install *all* of the oslo libs with "pip install -e" then you can just edit them in /opt/stack, but if you only have some of them installed that way imports break.16:42
*** pblaho has joined #openstack-oslo16:42
bknudsondhellmann: does devstack install the oslo libs?16:43
dhellmannbknudson: it installs them, but does not use the -e flag16:43
bknudsondhellmann: or is this something I'd have to do myself?16:43
bknudsonwas just looking at how it installs keystoneclient -- http://git.openstack.org/cgit/openstack-dev/devstack/tree/lib/keystone#n43516:44
bknudsonand now keystonemiddleware16:44
dhellmannbknudson: right, the oslo libs are different because of the namespace package16:45
bknudsonit does setup_install instead of setup_develop16:45
bknudsonhehe "TODO(sdague): remove this once we get to Icehouse"16:45
openstackgerritDoug Hellmann proposed a change to openstack-dev/pbr: Update integration script for Apache 2.4  https://review.openstack.org/10258416:54
*** max_lobur has left #openstack-oslo16:55
dhellmannboris-42: https://bugs.launchpad.net/pbr/+bug/133432616:55
*** viktors is now known as viktors|afk16:58
*** harlowja_away is now known as harlowja17:13
*** arnaud__ has joined #openstack-oslo17:25
*** james_li has joined #openstack-oslo17:40
*** flaper87|afk is now known as flaper8717:43
*** jecarey has joined #openstack-oslo17:56
openstackgerritBrant Knudson proposed a change to openstack/oslo.db: Add connection trace for DB2  https://review.openstack.org/9218217:56
openstackgerritJoshua Harlow proposed a change to openstack/taskflow: Add WBE protocol message version properties  https://review.openstack.org/10177817:57
*** arnaud__ has quit IRC18:06
*** arnaud has quit IRC18:06
*** arnaud has joined #openstack-oslo18:06
*** arnaud__ has joined #openstack-oslo18:07
*** zzzeek has joined #openstack-oslo18:08
*** arnaud has quit IRC18:10
*** arnaud__ has quit IRC18:10
*** tkelsey has quit IRC18:12
*** markmc has quit IRC18:12
*** jecarey has quit IRC18:23
*** morganfainberg_L has quit IRC18:31
openstackgerritDoug Hellmann proposed a change to openstack-dev/pbr: Update integration script for Apache 2.4  https://review.openstack.org/10258418:38
*** tmcpeak has joined #openstack-oslo18:41
tmcpeakhey all, I have a few questions about hacking - is this the place to ask?18:42
dhellmanntmcpeak: here or openstack-dev; jogo is the lead on that project18:43
tmcpeakdhellmann: awesome, thank you18:43
tmcpeakjogo: you around?18:44
tmcpeakdhellmann: nice name btw18:44
dhellmanntmcpeak: :-)18:47
jogotmcpeak: I am about to go AFK for a but18:50
jogobut if hopefully I can point you in the right direction18:50
jogotmcpeak: I am a little amazed there were no other python packages with that name18:51
jogotmcpeak: lunch time, but I am happy to answer your questions after18:52
*** harlowja has quit IRC18:52
tmcpeakjogo: cool, I'll catch you after lunch.  Thank you.18:53
*** openstackgerrit has quit IRC19:04
*** openstackgerrit has joined #openstack-oslo19:05
*** jecarey has joined #openstack-oslo19:24
boris-42dhellmann thanks19:27
*** eezhova has quit IRC19:34
*** dstanek is now known as dstanek_zzz19:34
*** ihrachyshka has joined #openstack-oslo19:41
*** ajo|mac has joined #openstack-oslo19:44
*** ajo|mac has quit IRC19:44
*** dstanek_zzz is now known as dstanek19:45
*** ajo|mac has joined #openstack-oslo19:47
zzzeekheya dhellmann , sorry youre the only one here to ask…  looking at https://github.com/openstack/oslo.db/commit/f3ece0bb#diff-d5686294b02d35658b4c6125f0981ba2R9719:47
zzzeekthis test IMHO presents a real major issue - it will guaranteed fail if run in any environment that happens to have eventlet installed19:47
zzzeekif oslo.db ever has eventlet as a dependency or if the tests ever need to be run in a more integrated environment, this test cant pass19:48
zzzeekas is the case for me right now, trying to get a test-oslo/nova against SQLAlchemy CI going on my jenkins server19:48
*** pblaho has quit IRC19:48
* bnemec hates that threadpool stuff19:49
zzzeekbnemec: since you’re here, whats the usual way to jump on these things, comment on the review or cerate a new bug ?19:49
bnemeczzzeek: I would create a new bug.  The review is already closed so it's possible followup comments will get lost.19:50
bnemeczzzeek: Is it the popping of eventlet from sys.modules that breaks things?19:50
zzzeekno.  its the fact that if eventlet is installed, the import will succeed19:50
zzzeekits a poorly written test19:51
zzzeekim not sure what it wants to test19:51
*** ihrachyshka has quit IRC19:51
*** ihrachyshka has joined #openstack-oslo19:51
zzzeekif it wants to test that “import eventlet” fails when eventlet isnt installed, uh, not sure what the point of that is19:51
zzzeekif it wants to test that concurrency.py _api() is called, OK then test that that’s called19:52
*** erecio has quit IRC19:52
bnemecHmm, I thought the point of the test was to mock out eventlet completely.19:52
zzzeekif you remove it from sys.modules and then say “import eventlet”, it will load, if its installed19:54
bnemecThat shouldn't happen until after the test is over though, right?  We stick the fake eventlet module in sys.modules and then addCleanup to remove it after the test runs.19:56
bnemecAny imports during the test should be getting the mock version.19:56
*** erecio has joined #openstack-oslo19:57
zzzeekbnemec: the test in question: https://github.com/openstack/oslo.db/commit/f3ece0bb#diff-d5686294b02d35658b4c6125f0981ba2R98 - line 9819:57
zzzeeknote line 10619:57
zzzeekim working up a patch that uses mock more appropriately there19:58
bnemeczzzeek: Ohhh, yeah that's bad.19:58
thervezzzeek, It won't load after the del?19:59
zzzeekit loads just fine if eventlet is installed in the python environment19:59
thervezzzeek, http://paste.openstack.org/show/84921/20:00
zzzeekteh top of the module makes claims “we dont have eventlet installed in test-requirements”, this is IMHO far too brittle of an assumption20:00
bnemecYeah, referencing self.db_api is going to trigger an import.20:00
therveMaybe it's not exactly what's happening, but deleting from sys.modules has some effect20:00
zzzeekbc you dont have greenthread installed20:00
bnemecActually, the del before that is unnecessary here.20:00
zzzeektherve: im actually getting this test failing20:00
therveI have greenthread installed20:01
zzzeektherve: not sure whats happening on yours20:01
therveWell it's just some import side effect20:01
therveNot saying the test is correct, it also shouldn't do global changes20:02
zzzeektherve: go toa brand new python prompt in that same environment and say “import greenthread”20:02
zzzeekoh from eventlet20:03
zzzeektherve: here’s what that test does wrong: http://paste.openstack.org/show/84924/20:05
zzzeekit expects ImportError20:05
*** openstackgerrit has quit IRC20:05
therveAh, right20:06
*** openstackgerrit has joined #openstack-oslo20:06
thervesys.modules['eventlet'] = None perharps?20:06
zzzeektherve: I’m working up putting an alternate Mock in there that wil behave like an ImportError20:06
zzzeektherve: just trying to figure out the logistics of that20:06
tmcpeakjogo: you back?20:07
openstackgerritAaron Rosen proposed a change to openstack/oslo.messaging: Replace usage of str() with six.text_type  https://review.openstack.org/9736220:08
thervezzzeek, Just putting None in sys.modules seems to do the trick20:14
zzzeektherve: OK20:14
zzzeektherve: would this form be accepted: http://paste.openstack.org/show/84926/  or does it have to just be ‘sys.modules[‘eventlet’] = None’20:20
thervezzzeek, Considering the cleanup done it setUp, I'm not sure you have to be so careful20:20
therveAlso I'm not a oslo.db developer :)20:20
zzzeektherve: yeah it doesnt.  just looks like intent is clearer….20:21
jogotmcpeak: back20:26
tmcpeakjogo: cool20:27
tmcpeakjogo: so what I'm trying to do is create some new tests with hacking for basic security stuff20:27
tmcpeakjogo: hacking seems like it would be a nice fit20:27
tmcpeakjogo: what I'm wondering is what is the proper way to go about it.  I know I can define local checks20:28
tmcpeakjogo: and a factory and all that good stuff20:28
tmcpeakjogo: what kind of notifications would they throw?  the doc said that hacking should only be used to check for things that have already been approved20:28
jogoso what is the example rule you are trying to do?20:29
tmcpeakan example would be looking for Shell=True in os calls20:29
jogomy advice would be start as a local check and once that is working and gains traction we can bring it to hacking as a whole20:29
tmcpeakjogo: ok cool, that sounds good20:30
jogoafter the idea gets lazy consensus on the ML (no objections)20:30
tmcpeakjogo: so since it will at first be a local check, what kind of error can it throw? anything I want? it wouldn't have one of those codes20:30
jogoanything yup20:30
jogoprojects have there own codes for errors20:30
jogonova is N20:30
jogotempest is 'T' etc20:30
tmcpeakjogo: oh ok, perfect20:30
tmcpeakjogo: I'm working on a very basic check for PoC, can I run it by you when I'm a little further along?20:31
jogotmcpeak: I was just about to say I would be happy to look at it20:31
jogoso yup20:31
tmcpeakjogo: awesome! thank you so much for the help.  I think hacking is perfect for this use case20:31
jogoglad to help20:32
dhellmannzzzeek: sorry, stepped out for a bit, but it sounds like you've found a way forward?20:34
zzzeekyeah20:34
openstackgerritMichael Bayer proposed a change to openstack/oslo.db: Fix test to not assume eventlet isn't present  https://review.openstack.org/10263520:35
dhellmannzzzeek: what does your environment look like that has eventlet installed?20:36
zzzeekdhellmann: I am creating a special environemnt to run on my jenkins servers that has all the “heavyweight” libs installed systemwide20:37
zzzeekim using a custom tox file20:37
bnemecThis will probably also come up in cross testing.20:37
bnemecThe other projects are going to pull eventlet into the venv.20:37
zzzeekb.c. this runs on amazon ec2 and building out numpy on an ec2.small is severe20:37
dhellmannbnemec: with cross-testing we would run the tests for the *other* projects with oslo.db installed, so that shouldn't matter20:38
dhellmannzzzeek: the change is fine, I'm just trying to understand how you found the issue20:39
bnemecdhellmann: You would think by now I'd have a handle on how the cross-testing will work, but apparently not. :-)20:40
zzzeekdhellmann: i ran the tests in a venv that has eventlet installed, using the sqla_py27 env you see at the bottom of http://paste.openstack.org/show/84927/20:40
dhellmannbnemec: keep your brain unbroken20:40
bnemecI would imagine this could be a problem on a devstack system too.  Wouldn't that install eventlet system-wide?20:40
dhellmannyes, devstack would do that, but we don't run the unit tests for the lib that way20:41
bnemecOr does oslo.db us no-site-packages (or whatever it's called)20:41
dhellmannyeah, it should have the system site packages blocked20:41
zzzeekthis is true, the regular tox for oslo.db prevents this.   unless oslo.db ever had a need to actually test against eventlet directly20:44
openstackgerritDoug Hellmann proposed a change to openstack-dev/pbr: Update integration script for Apache 2.4  https://review.openstack.org/10258420:44
dhellmannzzzeek: that class will be exercised in integration tests with apps that set up eventlet, but we're not doing it in the unit tests20:45
zzzeekdhellmann: im not sure there’s any real disagreement here :)20:46
zzzeekdhellmann: its just unnecessary to weld the test to that assumption in this case and imho not a great practice overall to assume things are *not* installed, and other weird assumptions about the outside world20:47
*** flaper87 is now known as flaper87|afk20:47
*** tmcpeak has left #openstack-oslo20:48
bnemecHuh.  This actually doesn't happen when I run oslo.db tests on a system with eventlet installed.  The systemwide eventlet isn't showing up in the venv.20:49
dhellmannzzzeek: yeah, like I said, the change is fine. I asked viktors|afk and roman to add a test like that to verify the class, and we didn't want to require eventlet since we weren't going to actually do anything with the pool20:50
dhellmannbnemec: it won't, zzzeek has a *different* venv with both libs installed20:50
bnemecdhellmann: Yeah, for some reason I just thought the system packages would be visible inside the venv too.  Obviously not though.20:52
dhellmannbnemec: there's a flag to control that, and we have it set to make them not visible because otherwise we have trouble with the namespace package20:53
*** ajo|mac has quit IRC20:53
*** ajo|mac has joined #openstack-oslo20:54
dhellmannjogo: https://review.openstack.org/#/c/96961/ has landed, are we ready to merge https://review.openstack.org/#/c/97344/ now?20:55
*** erecio has quit IRC20:56
jogodhellmann: yup just +Wed21:02
*** ajo|mac has quit IRC21:02
jogohttp://docs.openstack.org/developer/oslo.i18n/guidelines.html is way nicer then the wiki21:02
dhellmannjogo: yeah, more formatting options and a review process21:03
dhellmannjogo: thanks!21:03
*** SridharG has quit IRC21:22
*** HenryG has quit IRC21:23
*** SridharG has joined #openstack-oslo21:24
*** harlowja has joined #openstack-oslo21:28
*** ihrachyshka has quit IRC21:35
*** SridharG has quit IRC21:37
*** mrda-away is now known as mrda21:37
*** SridharG has joined #openstack-oslo21:38
*** SridharG has quit IRC21:39
*** ajo|mac has joined #openstack-oslo21:59
*** dims__ has quit IRC22:01
*** lbragstad has quit IRC22:02
*** markmcclain has quit IRC22:08
*** james_li has quit IRC22:08
*** dims__ has joined #openstack-oslo22:25
*** openstackgerrit has quit IRC22:35
*** openstackgerrit has joined #openstack-oslo22:36
*** markmcclain has joined #openstack-oslo22:45
*** markmcclain has quit IRC22:49
*** jecarey has quit IRC22:53
*** mriedem has quit IRC22:54
*** zzzeek has quit IRC22:59
*** markmcclain has joined #openstack-oslo23:01
*** oomichi has joined #openstack-oslo23:30
*** ajo|mac has quit IRC23:52

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