Tuesday, 2014-08-05

*** amotoki_ has joined #openstack-oslo00:04
amrithbnemec, yt?00:12
*** ajo has quit IRC00:18
*** tsekiyama has quit IRC00:19
*** gangil has quit IRC00:22
*** ajo has joined #openstack-oslo00:23
*** celttechie has quit IRC00:25
amrithbnemec, if you see this, please take a look at https://review.openstack.org/#/c/109469/2 ... posted a couple of questions to you on your review. Please let me know what you think; I'm either on here or on #openstack-trove. Or at amrith@tesora.com. Thx!00:26
*** amrith is now known as amrith_00:27
*** amrith_ is now known as amrith00:27
*** tsekiyama has joined #openstack-oslo00:33
*** stevemar is now known as maybeiamstevemar00:35
*** shakamunyi has quit IRC00:43
*** tsekiyama has quit IRC00:45
*** praneshp has joined #openstack-oslo01:01
*** celttechie has joined #openstack-oslo01:26
*** tsekiyama has joined #openstack-oslo01:32
*** morganfainberg_Z is now known as morganfainberg01:35
openstackgerritA change was merged to openstack/oslo-incubator: Remove usage of readlines()  https://review.openstack.org/11022801:52
*** shakamunyi has joined #openstack-oslo01:54
*** tsekiyama has quit IRC01:56
*** tsekiyama has joined #openstack-oslo01:59
openstackgerritA change was merged to openstack-dev/oslo-cookiecutter: Add test script  https://review.openstack.org/11000002:01
*** tsekiyama has quit IRC02:03
*** shakamunyi has quit IRC02:07
*** shakamunyi has joined #openstack-oslo02:22
*** HenryG is now known as HenryG_afk02:27
*** yamahata has joined #openstack-oslo02:28
openstackgerritZhongyue Luo proposed a change to openstack/oslo.config: Log a fixed length string of asterisks for obfuscation  https://review.openstack.org/11188802:40
openstackgerritA change was merged to openstack/cliff: Clean up default tox environment list  https://review.openstack.org/10958202:59
*** arnaud has quit IRC03:11
*** SridharG has joined #openstack-oslo04:24
*** arnaud has joined #openstack-oslo04:30
*** k4n0 has joined #openstack-oslo04:43
*** morganfainberg is now known as morganfainberg_Z04:54
*** jaosorior has joined #openstack-oslo05:18
*** celttechie has quit IRC05:23
openstackgerritSteve Martinelli proposed a change to openstack/oslo-incubator: Use oslosphinx to generate documentation  https://review.openstack.org/11191005:30
*** shakamunyi has quit IRC05:42
*** flaper87|afk is now known as flaper8705:56
openstackgerritOpenStack Proposal Bot proposed a change to openstack/oslo.db: Imported Translations from Transifex  https://review.openstack.org/11191806:03
*** shakamunyi has joined #openstack-oslo06:09
openstackgerritOpenStack Proposal Bot proposed a change to openstack/oslo.utils: Imported Translations from Transifex  https://review.openstack.org/11116606:11
*** shakamunyi has quit IRC06:24
*** Alexei_987 has quit IRC06:31
*** ildikov has joined #openstack-oslo06:32
*** i159 has joined #openstack-oslo06:35
*** flaper87 is now known as flaper87|afk06:41
*** shakamunyi has joined #openstack-oslo06:50
*** pblaho has joined #openstack-oslo06:52
*** shakamunyi has quit IRC06:58
*** ihrachyshka has joined #openstack-oslo07:09
*** ihrachyshka has quit IRC07:13
*** ihrachyshka has joined #openstack-oslo07:14
*** abhishek has joined #openstack-oslo07:23
*** praneshp_ has joined #openstack-oslo07:28
*** praneshp has quit IRC07:30
*** praneshp_ is now known as praneshp07:30
*** praneshp has quit IRC07:41
*** AAzza_afk is now known as AAzza07:48
*** ihrachyshka has quit IRC07:53
*** ihrachyshka has joined #openstack-oslo07:53
*** shakamunyi has joined #openstack-oslo07:55
*** arnaud has quit IRC08:00
*** maybeiamstevemar has quit IRC08:06
*** alexpilotti has joined #openstack-oslo08:07
*** shakamunyi has quit IRC08:10
*** tsufiev has quit IRC08:40
*** tsufiev has joined #openstack-oslo08:45
*** andreykurilin1 has quit IRC08:47
*** Alexei_987 has joined #openstack-oslo09:00
*** oomichi has quit IRC09:16
tsufievhi there! could you please take a look at https://review.openstack.org/#/c/104916/ ?09:36
ihrachyshkadhellmann_: can I ask you to reconsider your vote on: https://review.openstack.org/#/c/91457/ ?09:46
ihrachyshkait's for stable/havana09:46
*** pblaho is now known as pblaho|lunch09:53
*** shakamunyi has joined #openstack-oslo09:57
rpodolyakatsufiev: done09:58
*** shakamunyi has quit IRC10:01
*** flaper87|afk is now known as flaper8710:01
tsufievrpodolyaka, thank you, will address your comments in a moment10:02
*** flaper87 is now known as flaper87|afk10:16
*** yamahata has quit IRC10:21
ajodhellmann_, thanks for the comments here, https://review.openstack.org/#/c/97748/ I added some more comments, if you have some time take a second look to make sure what I say makes sense.10:26
*** AAzza is now known as AAzza_afk10:27
openstackgerritA change was merged to openstack/oslo.db: Imported Translations from Transifex  https://review.openstack.org/11191810:36
openstackgerritYuriy Taraday proposed a change to openstack/oslo-incubator: Switch to using SysV semaphores to allow safe process termination  https://review.openstack.org/10895410:52
*** viktors has joined #openstack-oslo10:55
*** pblaho|lunch is now known as pblaho10:58
*** AAzza_afk is now known as AAzza11:10
*** amotoki_ has quit IRC11:11
*** flaper87|afk is now known as flaper8711:33
*** shakamunyi has joined #openstack-oslo11:47
*** HenryG_afk has quit IRC11:50
*** flaper87 is now known as flaper87|afk11:54
*** shakamunyi has quit IRC11:58
*** penguinRaider__ has quit IRC12:08
*** penguinRaider__ has joined #openstack-oslo12:10
*** SridharG has quit IRC12:12
openstackgerritIlya Pekelny proposed a change to openstack/oslo.db: Implementation of Alembic as migration engine  https://review.openstack.org/9996512:12
*** penguinRaider__ has quit IRC12:28
*** penguinRaider__ has joined #openstack-oslo12:29
*** flaper87|afk is now known as flaper8712:34
*** ochuprykov has joined #openstack-oslo12:35
*** tongli has joined #openstack-oslo12:36
*** SridharG has joined #openstack-oslo12:39
*** penguinRaider__ has quit IRC12:48
*** penguinRaider__ has joined #openstack-oslo12:49
*** k4n0 has quit IRC12:50
*** YorikSar has joined #openstack-oslo12:56
*** penguinRaider__ has quit IRC12:58
*** jecarey has quit IRC12:58
*** penguinRaider__ has joined #openstack-oslo13:00
*** markmcclain has joined #openstack-oslo13:02
*** gordc has joined #openstack-oslo13:02
*** yamahata has joined #openstack-oslo13:02
*** pblaho has quit IRC13:05
*** pblaho_ has joined #openstack-oslo13:05
*** ttx has quit IRC13:06
amrithYorikSar, yt?13:09
YorikSaramrith: Hi, yes13:09
amrithg'morning Yuriy. figured it may be easier to discuss on IRC than review.13:09
amrithwhat should I be looking for in the errant monkey_patch?13:09
YorikSaramrith: Yeah...13:09
amrithin testing we import eventlet13:10
amrithand immediately monkey_patch13:10
amrithi.e.13:10
amrithimport eventlet13:10
amritheventlet.monkey_patch(thread=False)13:10
YorikSarOk... That's strange.13:10
YorikSarIt seems os should've been monkey-patched.13:11
YorikSarBut os.read raises EAGAIN => it's not monkey-patched.13:11
amriththis appears to be what we're doing.13:11
amrithhttp://eventlet.net/doc/patching.html13:11
YorikSarbtw why is thread excluded?.. That's unusual for me.13:12
amriththat beats me13:12
*** mgagne has quit IRC13:12
amrithto be clear13:12
amrithI'm not sure what that does13:12
amrithwhether it means not to patch thread calls13:12
*** dhellmann_ is now known as dhellmann13:12
amrithor something else13:13
*** ttx has joined #openstack-oslo13:13
*** ttx has quit IRC13:13
*** ttx has joined #openstack-oslo13:13
*** mgagne has joined #openstack-oslo13:13
*** mgagne is now known as Guest2729513:13
amrithwhat would you expect os.read to be patched to? there's no read () that I can find in eventlet13:14
YorikSaramrith: Yes, it means that threads will not be greened.13:14
YorikSarAlong with everything that's thread-related (locks and all that stuff).13:14
*** gordc has quit IRC13:14
*** abhishek has quit IRC13:14
*** jaypipes has quit IRC13:14
*** jokke_ has quit IRC13:14
*** morganfainberg_Z has quit IRC13:14
amrithso the only read() in eventlet is in wsgi.13:15
YorikSaramrith: Here it is: https://bitbucket.org/eventlet/eventlet/src/tip/eventlet/green/os.py#cl-2913:15
amriththat's not going to be something you want to patch to os.read, I don't think.13:15
* amrith looks13:15
*** gordc has joined #openstack-oslo13:15
*** abhishek has joined #openstack-oslo13:15
*** jaypipes has joined #openstack-oslo13:15
*** jokke_ has joined #openstack-oslo13:15
*** morganfainberg_Z has joined #openstack-oslo13:15
YorikSarIt does the same thing all other greened calls do: retry syscall if EAGAIN is caught.13:16
ihrachyshkaamrith: https://github.com/eventlet/eventlet/blob/master/eventlet/green/os.py#L2913:17
*** lbragstad has quit IRC13:18
*** jecarey has joined #openstack-oslo13:18
amrithihrachyshka, thx.13:18
amrithlooks like the same one that YorikSar sent13:18
YorikSarThe strange thing is that subprocess appears to be patched since os.read on its pipe returns EAGAIN. But os is not patched since os.read passes it through.13:19
YorikSarihrachyshka, amrith: Some people just don't like bitbucket ;)13:19
amrithand clearly close() appears to be patched13:19
amrithbecause it is getting to _fileoperationonclosedfile() or whatever it is called13:19
*** ttx has quit IRC13:20
ihrachyshkaYorikSar: ;)13:22
YorikSaramrith: I didn't see such method in traces.. Did I miss smth?13:22
*** lbragstad has joined #openstack-oslo13:23
amrithlet me get it to you13:23
amrithone second13:23
ihrachyshkaYorikSar: so maybe this is due to monkey_patch() called not at the very start? so some modules already imported the original version and use it internally?13:23
amrith_operationOnClosedFile13:24
*** sheeprine has joined #openstack-oslo13:24
sheeprineHi, I've got a little question about oslo.db and the alembic extension for migration_cli. Is it me or the version() method is broken? It's not using current() method from alembic and MigrationContext doesn't get the alembic config, in my case it's a show stopper.13:24
*** ttx has joined #openstack-oslo13:25
*** ttx has quit IRC13:25
*** ttx has joined #openstack-oslo13:25
dhellmannrpodolyaka, viktors : are you online?13:25
*** mriedem has joined #openstack-oslo13:25
*** mriedem has quit IRC13:25
*** mriedem has joined #openstack-oslo13:25
viktorsdhellmann: yes13:26
rpodolyakadhellmann: here13:26
dhellmannviktors, rpodolyaka : ^^ question from sheeprine13:27
YorikSarihrachyshka: Yes, it seems so.13:27
viktorsdhellmann, sheeprine: ok, reading13:27
ihrachyshkaYorikSar: so just make sure you call monkey_patch() at the very top of whatever-contains-main()13:28
amrithsorry YorikSar ihrachyshka ... how could that me? clearly os.close() is patched ;)13:28
viktorssheeprine: yes, this feature is broken at the moment :(13:29
rpodolyakasheeprine: alembic extension for migration_cli is something that is currently broken :( I wish we didn't expose it to the end user in the first place until it's really ready13:29
ihrachyshkaamrith: well, I don't know the full story, I just mention that if you see that some of your modules see patched stdlib while other don't, it may mean just that13:30
amrithoh crap13:30
rpodolyakasheeprine: long story short: we started working on the feature in oslo.incubator last year, and then we had a few discussion on the approach taken. the outcome was: we had to use alembic private API to make this work13:30
amrithplease take a look at http://eventlet.net/doc/basic_usage.html13:30
amrithihrachyshka, YorikSar ^^13:30
YorikSaramrith: not exactly... flush() is called on stdin object, it's not taken from os module.13:31
rpodolyakasheeprine: we didn't want to do that, so now this is broken and we might even delete it from the tree until it's ready13:31
amrithYorikSar, the backtrace shows that we fail in File "/opt/stack/trove/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenio.py", line 419, in _operationOnClosedFile13:31
amrith   raise ValueError("I/O operation on closed file")13:31
amrithbut, that aside.13:31
amrithhow about this?13:31
rpodolyakasheeprine: zzzeek has been investigating how we can make alembic/oslo.db work together nicely13:32
rpodolyakasheeprine: so it's kind of WIP13:32
ihrachyshkaamrith: that link... what specifically to check?13:32
amriththat documentation conflicts with  http://eventlet.net/doc/patching.html#monkey-patch13:32
amrithabout the arguments to monkey_patch13:32
*** dhellmann has quit IRC13:32
amrithone indicates that defaults are false13:32
amriththe other that defaults are None13:32
*** pblaho__ has joined #openstack-oslo13:33
*** dhellmann has joined #openstack-oslo13:33
amrithso maybe the monkey patch isn't doing what we think it is?13:33
YorikSaramrith: Yes. But subprocess does "self.stdin.flush()" here by EAGAIN is raised by "os.read(self.stdout.fileno(), smth)"13:33
ihrachyshkaamrith: maybe. better check code13:33
YorikSaramrith: False and None are the same13:33
amrithYorikSar, ... the implication was that if the value is None then it is patched13:34
amrithsee http://eventlet.net/doc/patching.html#monkey-patch13:34
amrithdefault None ...13:34
amrithif no parameters are specified everything is to be patched13:34
ihrachyshkaYorikSar: hm? it mentions all=True in one of the links but not other one13:34
amrithyes13:34
amrithbut YorikSar has another point ...13:34
YorikSaramrith, ihrachyshka: Oh, that one.13:34
amrithself.stdin() is patched13:35
amrithself.stdin.flush() is patched13:35
amrithos.read() is not13:35
amrithso trove's test code looks like13:35
amrith[...]13:35
amrithimport os13:35
ihrachyshkawell, at that moment I should retract from commenting further since I lack context13:35
ihrachyshka :)13:35
amrith[...]13:35
YorikSarIt defaults to True there and everything that's not specified is set to that value.13:35
sheeprinerpodolyaka: the fact is I used this to do my migrations on my project guess I did the wrong thing. I'm willing to submit the patch for the version() method so at least this part is working. But if you plan to remove it from the tree I'm doomed. What am I supposed to use in oslo.db to do my migrations? I planned on using alembic, and I can't use the defaut alembic_version tables (so the db_version() method with the hardcoded value won't13:35
YorikSaramrith: Yes, self.stdin is set to GreenPipe here: https://bitbucket.org/eventlet/eventlet/src/tip/eventlet/green/subprocess.py#cl-4813:36
*** dhellmann has quit IRC13:36
amriththe question then is why is _communicate() calling os.read() which isn't greened?13:36
amriththat's the one throwing the exception13:37
*** pblaho_ has quit IRC13:37
YorikSaramrith: It has to call os.read because it uses select which (I think) doesn't work well with fileobj's buffering etc.13:37
*** pblaho__ has quit IRC13:37
YorikSaramrith: So subprocess has to use os.read here.13:38
amrithbut os.read should've been monkey-patched to eventlet.read(), no?13:38
YorikSaramrith: Yes, it should've.13:38
YorikSaramrith: But it didn't...13:38
*** dhellmann has joined #openstack-oslo13:39
rpodolyakasheeprine: right now, I'd recommend to use plain alembic. this is what neutron/ironic do13:39
rpodolyakasheeprine: the table name is configurable in alembic config13:39
YorikSaramrith: I don't know how testing in Trove is organized. I fought with some issues while adding eventlet testing to oslo.rootwrap though.13:39
YorikSaramrith: I think monkey-patching either happens too late or just doesn't happen for os module.13:40
amrithYorikSar, I don't know how to monkeypatch the os module13:40
ihrachyshkaamrith: os=True?13:40
amrithlet me try that13:40
YorikSarYou can try to log eventlet.patcher.is_monkey_patched(os) somewhere around the call to subprocess...13:41
amrithI've still not figured out how to get stdout from my code to be visible if I'm using the test framework ;(13:41
ihrachyshkafor what I see in trove/cmd/guest.py, monkey_patch() is called really late13:42
*** shakamunyi has joined #openstack-oslo13:42
ihrachyshkait should be right after import eventlet13:42
amrithI will go and clean those up; in this case, I don't think that code comes into play13:42
ihrachyshkaotherwise all those imports above the call will use non-patched modules internally13:42
ihrachyshkawell, there are multiple patches() in the code, I don't know which one is in charge in your discussion. just sayin'13:43
ihrachyshkaamrith: you can run tests with testtools.run13:43
ihrachyshkaamrith: https://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests13:43
amrithihrachyshka, I have no idea ... I'll try13:44
YorikSaramrith: You can drop the line of interest directly to console like with open('/dev/pts/<YOURNUM>', 'w') as f: f.write(myvar)13:44
amrithok, doing that YorikSar13:44
YorikSarihrachyshka: Actually patching happens in sys.modules directly but sometimes somehow it doesn't help. So yes, monkey_patch should be called as early as possible.13:45
sheeprinerpodolyaka: Ok, I'll use plain alembic then, thanks for your answers13:45
rpodolyakasheeprine: np13:46
ihrachyshkaYorikSar: well, maybe indeed; I had issues with the following code in oslo: https://github.com/openstack/oslo.messaging/blob/master/oslo/messaging/localcontext.py#L26 so it's not the same case13:47
ihrachyshkaYorikSar: it created a global object before threading was patched, then lots of cute events occurred13:47
*** shakamunyi has quit IRC13:49
YorikSarihrachyshka: Yeah, I can imagine :)13:51
amrithYorikSar, ihrachyshka re-running tests with some changes to quickly monkey_patch13:53
amrithwill let you know how it works13:53
ihrachyshkaamrith: looking fwd to hear13:53
*** flaper87 is now known as flaper87|afk13:57
*** yamahata has quit IRC13:58
*** yamahata has joined #openstack-oslo13:59
SergeyLukjanovdhellmann, hey, could you please ack https://review.openstack.org/#/c/111783/1 ?13:59
dhellmannSergeyLukjanov: looking14:01
dhellmannSergeyLukjanov: +114:02
*** wendar has quit IRC14:04
*** wendar has joined #openstack-oslo14:05
*** flaper87|afk is now known as flaper8714:06
ihrachyshkadhellmann: please reconsider your vote for https://review.openstack.org/9145714:08
*** wendar has quit IRC14:08
*** wendar has joined #openstack-oslo14:08
*** shakamunyi has joined #openstack-oslo14:11
openstackgerritMatt Riedemann proposed a change to openstack/oslo.db: Handle DB2 SmallInteger type for change_deleted_column_type_to_boolean  https://review.openstack.org/11203014:11
SergeyLukjanovdhellmann, thx14:14
*** HenryG_ has joined #openstack-oslo14:15
*** HenryG_ is now known as HenryG14:17
dhellmannihrachyshka: looking14:17
dhellmannihrachyshka: did the change needed for nova make it into stable/havana as well?14:19
ihrachyshkadhellmann: hm?.. I don't know how nova is directly related to this. I'm interested in introducing this for neutron.14:22
dhellmannihrachyshka: gcb mentioned that this change breaks nova, and there was a fix in the incubator (see comment from April 30)14:23
ihrachyshkadhellmann: this is covered by another patch in the same series: https://review.openstack.org/#/q/status:open+project:openstack/oslo-incubator+branch:stable/havana+topic:simplejson-stable-backport,n,z14:24
ihrachyshkaspecifically, this one: https://review.openstack.org/9575314:24
dhellmannihrachyshka: shouldn't the fix come before the change that introduces the break?14:25
dhellmannit's good they are all there, but maybe the order of the series is backwards?14:25
ihrachyshkadhellmann: they are stacked one on one14:25
dhellmannyes, but right now we can merge the change to break things before the change to prevent things from breaking14:25
dhellmannunless I haven't had enough tea and am reading the stacking backwards14:26
ihrachyshkadhellmann: we first introduced the issue with unicode with the patch I've originally linked to, then fixed on top by the patch that gcb mentioned14:26
ihrachyshkadhellmann: well, yes, that's why I want to push them in one go14:26
dhellmannyes, that's what I'm saying. We don't want to introduce problems and then fix them in stable. We want to introduce things in an order that does not break things.14:26
ihrachyshkadhellmann: we could squash them to avoid that possibility, though I don't personally like squashes in stables14:26
dhellmannYou can't depend on someone not seeing the intermediate broken version, since many deployers build packages automatically14:26
dhellmannjust change the order of the patch series (rebase and reorder them, then resubmit)14:27
ihrachyshkabut that's incubator, we may enforce the sync on per-project basis14:27
ihrachyshkadhellmann: I can't reorder, I can only squash (they patch the same code)14:27
dhellmannah, ok14:27
ihrachyshkaor... what14:28
dhellmannok, so I guess if we approve them all together and then sync as one change into the projects it should be ok14:28
ihrachyshkas/waht/wait14:28
ihrachyshkadhellmann: you're actually correct, it's possible to change their order14:29
ihrachyshkadhellmann: will do :)14:29
dhellmann\o/14:29
dhellmann:-)14:29
ihrachyshkathat's the right thing to do even though no one will appreciate that :D14:29
dhellmannihrachyshka: you and I will appreciate it :-)14:31
ihrachyshkammm... these warm fuzzie!..14:32
*** shakamunyi has quit IRC14:32
dhellmann:-)14:32
amrithihrachyshka, YorikSar ... moving monkey_patch() higher up in all places that import eventlet seems to have stemmed the occurence of the failure (on my machine at least). it may be a worthwhile candidate fix. I'll push that code up for trove and see how it works out.14:33
ihrachyshkadhellmann: rearranged them: https://review.openstack.org/#/q/status:open+project:openstack/oslo-incubator+branch:stable/havana+topic:bug/1314129,n,z14:33
ihrachyshkaamrith: yay14:33
ihrachyshkaas I told: you should beat monkey asap, otherwise it makes mess14:34
amrithno cruelty to animals ...14:34
ihrachyshka:D14:34
YorikSaramrith: Great :)14:35
dhellmannihrachyshka: ok, I'll wait for the test jobs to finish and then have another look14:36
ihrachyshkadhellmann: ok tnx14:40
*** ildikov has quit IRC14:55
amrithYorikSar, ihrachyshka ... got a q for either of you ...14:56
amrithif you import eventlet14:56
amrithis it safe to just blindly call monkey_patch() after that?14:56
*** markmcclain1 has joined #openstack-oslo14:57
amrithYorikSar, ihrachyshka ^^14:57
YorikSaramrith: As long as you're near the very top of your app.14:57
*** markmcclain has quit IRC14:57
amrithyes, I'm at the top of the app14:57
amrithbut there are cases where we14:58
amrithimport eventlet14:58
amrithbut don't have an immediate monkey_patch()14:58
amrithor a monkey_patch() at all14:58
amrithis it meaningful to have an application that imports eventlet but doesn't monkey_patch()14:58
amrithI don't think so14:58
amrithbut I wanted to get second and third opinions.14:59
YorikSaramrith: It's actually OK to have such app.14:59
YorikSaramrith: And monkey-patching can be defered if needed (like here: http://git.openstack.org/cgit/openstack/nova/tree/nova/cmd/__init__.py )14:59
YorikSaramrith: But to do so you should have a very good reason (like having to analyze some state first)15:00
amrithok, looking at that code15:00
ihrachyshkaamrith: yes, unless you're sure your code in between doesn't do nasty stuff like it is in the code from oslo.messaging I've posted above, you're better calling it right away15:00
*** yamahata has quit IRC15:04
openstackgerritIhar Hrachyshka proposed a change to openstack/oslo-specs: Switch from MySQLdb to MySQL Connector  https://review.openstack.org/10835515:04
amrithso, my change was to aggressively monkey_patch() in each place where eventlet was imported and I'm trying to back off from that and find the place where the monkey_patch() was missed.15:05
amrithwill keep you posted15:05
amrithprogress ... (and thanks for your help)15:05
amrithYorikSar, ihrachyshka ^^15:05
ihrachyshkaamrith: that's actually what I did once for neutron: https://github.com/openstack/neutron/commit/6ca8cb84fd8f703367e1bd8ee1a2f2607111672515:07
YorikSaramrith: Throw a link to your patch in Trove to oslo change request when you're done so that everybody can see it.15:07
ihrachyshkaYorikSar: +15:08
amrithi feel better already ;)15:09
*** shakamunyi has joined #openstack-oslo15:12
openstackgerritMiguel Angel Ajo proposed a change to openstack/oslo-specs: Add service-status-interface spec  https://review.openstack.org/9774815:12
openstackgerritMiguel Angel Ajo proposed a change to openstack/oslo-specs: Add service-status-interface spec  https://review.openstack.org/9774815:13
*** i159 has quit IRC15:13
*** abhishek has quit IRC15:17
*** ihrachyshka has quit IRC15:19
*** YorikSar has quit IRC15:20
*** sreshetn1ak has quit IRC15:20
*** YorikSar has joined #openstack-oslo15:21
*** sreshetnyak has joined #openstack-oslo15:21
*** shakamunyi has quit IRC15:28
amrithYorikSar, ihrachyshka ... you'll get a chuckle out of this. I added this code https://gist.github.com/amrith/fa29d74528e0b10df5f8 to the place where we invoke execute() and guess what I got? exactly one invocation in the place where we keep having failures.15:32
*** YorikSar has quit IRC15:35
*** sreshetnyak has quit IRC15:35
*** YorikSar has joined #openstack-oslo15:35
*** sreshetnyak has joined #openstack-oslo15:35
YorikSaramrith: I suspect it's not intended - it's rather strange to call execute() durint unit tests15:36
amrithyup ...15:36
amriththere was a change recently to do this ;)15:36
amrithand the change was to the way in which we do the chown operation ...15:36
*** viktors is now known as viktors|afk15:40
*** ochuprykov has quit IRC15:49
*** AAzza is now known as AAzza_afk15:54
noelbkAlexei_987: thanks for the review.  Could you check https://review.openstack.org/#/c/109373 too please?15:58
*** arnaud has joined #openstack-oslo16:00
Alexei_987noelbk: Hi I have it on my schedule :).. a bit busy last couple of days trying to fix HA in our cloud.. it doesn't work cause of oslo.messaging :)16:04
*** stevelle has joined #openstack-oslo16:06
amrithYorikSar, got a second?16:12
noelbkAlexei_987: Thanks :) HA problems can take a long time to fix.  What's the next step in getting this merged upstream?16:12
Alexei_987noelbk: have no idea.. I'm not a core dev in messaging :(16:13
Alexei_987noelbk: I have a 2 line patch that is waiting for 2 weeks already16:13
Alexei_987noelbk: it's quite hard to get a review from core dev lately16:13
*** stevemar has joined #openstack-oslo16:13
noelbkAlexei_987: ok, good luck with your HA fixing.16:13
YorikSaramrith: Yep16:14
amrithsomething I'm not sure I understand is this. I added the code in a function (operating_system.py) function was called update_owner and it printed me a backtrace16:14
amrithit calls execute_with_timeout, which is in trove.common.utils.py16:14
amrithI can't seem to get anything to print from there16:14
amrithcan't even open a file in /tmp16:14
amrithnot certain how that can happen16:15
amriththe code there is literally f = open ( '/tmp/trace-t.txt', 'a+' ) and a f.write ('Hello')16:15
amrithdoesn't make it!16:15
YorikSaramrith: May be this method gets mocked?16:16
amrithone second16:16
amrithlet me check16:16
*** openstackstatus has quit IRC16:17
*** openstack has joined #openstack-oslo16:17
*** openstackstatus has joined #openstack-oslo16:18
*** ChanServ sets mode: +v openstackstatus16:18
amrithyup, verified again. can't see anything get out to /tmp file from execute()16:20
amrithstrange. YorikSar ^^. will keep looking16:22
YorikSaramrith: Hm... That's strange... You can try to run it with testtools and add a pdb.set_trace inside (or outside)16:22
dhellmannYorikSar: did you see the comments about the local module on https://review.openstack.org/#/c/110070/ ?16:26
YorikSardhellmann: Hi. Yes. I guess I'll abandon that change then.16:27
dhellmannYorikSar: yeah, I think that's the right thing, now that jd__ pointed it out16:28
YorikSardhellmann: Btw, it seems oslo.messaging has essentially the same 'local' module oslo.log can end up with: http://git.openstack.org/cgit/openstack/oslo.messaging/tree/oslo/messaging/localcontext.py16:30
* dhellmann hangs head16:31
*** gangil has joined #openstack-oslo16:31
YorikSardhellmann: Maybe oslo.log should do conditional import of that one?..16:31
YorikSardhellmann: Although they don't do weak references there (I don't think they're needed)16:32
dhellmannYorikSar: yeah, but they could be used, for consistency, I guess16:34
dhellmannYorikSar: we don't really want the libraries "guessing" by doing conditional imports16:35
YorikSardhellmann: Well... This feature can be described as "oslo.log will attach your context set in oslo.messaging if it's available"16:36
dhellmannYorikSar: it's the "if it's availble" part I don't like, though. We should be able to be explicit about requirements like this.16:37
YorikSardhellmann: Why don't you like it? It's Python dynamism :)16:38
dhellmannYorikSar: as it is now, the context being stored by oslo.messaging won't be used by oslo.log, because that code doesn't know to look in the non-standard place to find it16:38
dhellmannYorikSar: so I'm not sure why that's being done at all16:39
YorikSardhellmann: Well... I think noone cares too much about contexts in logs anymore (since they just work) and so when Nova switched to oslo.messaging noone noticed that they're gone.16:40
dhellmannYorikSar: unless localcontext is part of the public api of oslo.messaging now16:40
dhellmannyeah, the localcontext functions are part of the messaging API16:40
dhellmannYorikSar: I restored your change for now. I would like one of the rpc experts to help figure out what's going on with the 2 local modules before we rush to a decision16:44
YorikSardhellmann: Well... Do you think that oslo.concurrency might end up a new home for local after all? It seems unlikely to me.16:45
dhellmannYorikSar: no, but the original plan was to have it in its own library, and I think this may have been why.16:46
* dhellmann needs to keep better notes16:46
*** pabelanger has left #openstack-oslo16:47
*** penguinRaider__ has quit IRC16:49
*** flaper87 is now known as flaper87|afk16:51
openstackgerritOpenStack Proposal Bot proposed a change to openstack/oslo-incubator: Updated from global requirements  https://review.openstack.org/11176416:54
*** morganfainberg_Z is now known as morganfainberg16:55
*** penguinRaider__ has joined #openstack-oslo16:57
*** arnaud has quit IRC17:00
*** Alexei_987 has quit IRC17:19
*** pblaho__ has joined #openstack-oslo17:20
ajohi YorikSar  ;)17:23
*** ihrachyshka has joined #openstack-oslo17:25
*** abhishek has joined #openstack-oslo17:34
bnemecamrith: Make sure you do "with open(...) as f" instead of f = open.  I'm pretty sure weird things can happen if the file doesn't get closed/flushed correctly.  Using with should take care of that.17:40
* bnemec has used that method to debug unit tests more than once.17:41
amrithbnemec, ok.17:41
amrithwill change that.17:41
*** markmcclain1 has quit IRC17:44
*** arnaud has joined #openstack-oslo17:49
*** pblaho__ has quit IRC17:52
*** praneshp has joined #openstack-oslo17:58
*** praneshp has quit IRC17:59
*** praneshp has joined #openstack-oslo18:00
*** arnaud__ has joined #openstack-oslo18:00
*** praneshp has quit IRC18:02
*** arnaud has quit IRC18:04
*** Alexei_987 has joined #openstack-oslo18:06
*** praneshp has joined #openstack-oslo18:08
*** ildikov has joined #openstack-oslo18:12
*** mriedem has quit IRC18:17
*** markmcclain has joined #openstack-oslo18:19
*** ihrachyshka has quit IRC18:26
openstackgerritAndreas Jaeger proposed a change to openstack/oslo-specs: Fix typo  https://review.openstack.org/11210318:26
openstackgerritAndreas Jaeger proposed a change to openstack/oslo-specs: Fix typo, trigger publishing  https://review.openstack.org/11210318:28
*** arnaud has joined #openstack-oslo18:32
*** mriedem has joined #openstack-oslo18:36
*** f13o_ has joined #openstack-oslo18:45
openstackgerritDoug Hellmann proposed a change to openstack/oslo-specs: Add a section to the spec template for testing  https://review.openstack.org/11211218:53
*** praneshp has quit IRC18:55
*** jecarey has quit IRC18:58
openstackgerritAlessandro Pilotti proposed a change to openstack/oslo-specs: Add a Service Bus for Windows Server RPC backend  https://review.openstack.org/10986318:58
*** jecarey has joined #openstack-oslo19:09
openstackgerritAlessandro Pilotti proposed a change to openstack/oslo-specs: Add a Service Bus for Windows Server RPC backend  https://review.openstack.org/10986319:21
alexpilottidhellmann: testing description expanded: https://review.openstack.org/#/c/109863/19:21
*** dhellmann is now known as dhellmann_19:22
*** tpatil has joined #openstack-oslo19:27
*** alexpilotti has quit IRC19:34
*** tpatil_ has joined #openstack-oslo19:35
*** tpatil__ has joined #openstack-oslo19:36
*** tpatil has quit IRC19:37
*** tpatil_ has quit IRC19:39
*** tpatil__ has quit IRC19:51
amrithmriedem, got a sec?19:51
*** stevelle has left #openstack-oslo19:52
mriedemamrith: sure19:52
amrithmatt, re: your comments on patchset 2. https://review.openstack.org/#/c/111870/219:53
amrithI pushed a new patchset19:53
amrithI'm not sure why the update.py isn't getting the new log.py19:53
amrithso, I'm clearly doing something wrong19:53
amrithif you have a second, would you be able to help.19:54
mriedemamrith: well what's the update.py command that you're running?19:55
amritham just running it again to verify19:55
amrithwill gist in a second19:55
mriedemamrith: if you're targeting processutils w/o log, it's probably not pulling that in since the one commit removed the dep on log.py19:55
mriedemso...something like update.py --modules processutils,log (plus other options for where they go)19:55
mriedemsomething like that19:55
amrithI asked for module processutils19:55
mriedemyeah, which no longer requires log.py19:55
*** abhishek has quit IRC19:55
mriedemso you have to specificy both19:55
amrithI'll try the new command19:56
amrithok19:56
amrithmriedem, python update.py --modules processutils,log,strutils,gettextutils --base trove --dest-dir ../trove19:58
amrithnow grabbed both log.py and jsonutils.py19:58
amrithwhich seems good19:59
mriedemamrith: you shouldn't have to specify strutils/gettextutils19:59
mriedemjust the top level modules19:59
mriedemthe script will pull in the dependencies19:59
amrithyou'd said (the last time some weeks ago when we chatted about syncing) that there was a simple way to get the commits.19:59
mriedemanyway, tip for the future19:59
amrithwhat would that be?19:59
amrithor do you have to troll for them?19:59
mriedemamrith: it's not really simple19:59
mriedemyes19:59
mriedemi check the history of the module in the target project to see when it was last synced19:59
mriedemthen compare that to the oslo-incubator module's history and try to line them up for what the diff is20:00
amrithand look for changes since then20:00
amrithok20:00
mriedemthen get the shortlog for the oslo modules like: git log --oneline --no-merges openstack/common/processutils.py20:00
mriedemsomething like that20:00
mriedemthen i list out the changelog for the modules that all got synced20:00
mriedemin the commit message20:00
amrithah, neat!20:00
mriedemfor the diff i mean20:00
mriedemrather than just a big list of commits across several modules, then the reviewer has to sort those out, which sucks20:01
*** dhellmann_ is now known as dhellmann20:02
*** f13o_ has quit IRC20:03
amrithmriedem, ok. thx20:05
mriedemamrith: good luck20:05
amrithyes, I need it on log.py. seems like git log doesn't give a chronological list ;(20:06
mriedemgit log is chronological20:06
mriedemit's the same thing you see on github20:06
amrithok, if that's the case.20:08
*** tpatil has joined #openstack-oslo20:09
amrithmriedem, would you pl take a look at https://gist.github.com/amrith/101a1e68192932679a3620:10
amriththe dates are not chronological20:10
amriththis is in oslo-incubator20:10
mriedemamrith: those might be dates that the change was proposed, not merged20:11
mriedemor ignores merge commits20:11
mriedemamrith: anyway, i wouldn't worry about that too much, the commits are in order, newest to oldest20:11
amriththe last time you did a merge of log.py into trove was June 27th20:12
amrithso, if I look for commits after June 27th, I should be good.20:12
amrithok, I'll do that.20:12
*** HenryG has quit IRC20:14
amrithmriedem, thx, just pushed a new patchset.20:26
openstackgerritJames Carey  proposed a change to openstack/oslo-incubator: Correct coercion of logged message to unicode  https://review.openstack.org/11077220:28
openstackgerritJames Carey  proposed a change to openstack/oslo-incubator: Add unicode coercion of logged messages to ContextFormatter  https://review.openstack.org/11213520:28
openstackgerritgordon chung proposed a change to openstack/oslo-specs: graduate-oslo-middleware  https://review.openstack.org/11035320:41
YorikSarajo: Hi20:42
*** openstackgerrit has quit IRC21:16
*** openstackgerrit has joined #openstack-oslo21:17
*** mriedem has left #openstack-oslo21:35
*** tsekiyama has joined #openstack-oslo21:35
*** f13o_ has joined #openstack-oslo21:37
*** gordc has quit IRC21:38
*** jgrimm has joined #openstack-oslo21:58
jgrimmdhellmann, what do you think of idea of going through oslo-incubator and adding list_opts() method through out?  a  step towards projects using new config-generator when projects are also using incubator code (such as tempest)22:02
*** jaypipes has quit IRC22:05
dhellmannjgrimm: that makes a lot of sense!22:08
jgrimmdhellmann, cool. i couldn't see much of a downside.. just a harmless method22:08
dhellmannjgrimm: exactly22:09
jgrimmdhellmann, thanks! new generator worked like a champ. easy to understand22:09
dhellmannjgrimm: that's what I like to hear22:09
*** praneshp has joined #openstack-oslo22:17
tpatilBoris-42:  Can you please review this patch https://review.openstack.org/#/c/103186/?22:21
boris-42tpatil done22:26
tpatilBoris-42: Thank you very much.22:27
*** jgrimm has quit IRC22:55
*** jaosorior has quit IRC23:02
*** f13o_ has quit IRC23:14
*** markmcclain has quit IRC23:48

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