Wednesday, 2014-07-30

*** tmckay_bbl has quit IRC01:03
openstackgerritAndrew Lazarev proposed a change to openstack/sahara: Added ability to create security group automatically  https://review.openstack.org/10939401:32
openstackgerritAndrew Lazarev proposed a change to openstack/sahara: Updated docs with security group management feature  https://review.openstack.org/11051701:32
openstackgerritAndrew Lazarev proposed a change to openstack/sahara: Implemented get_open_ports method for vanilla hadoop2  https://review.openstack.org/11051801:36
*** Networkn3rd has joined #openstack-sahara01:46
*** xianghui has joined #openstack-sahara01:49
*** bradd1 has quit IRC02:10
*** bradd1 has joined #openstack-sahara02:10
*** Networkn3rd has quit IRC03:58
*** Longgeek has joined #openstack-sahara04:16
*** Longgeek has quit IRC04:18
*** Longgeek has joined #openstack-sahara04:18
*** Longgeek has quit IRC04:19
*** Longgeek has joined #openstack-sahara04:19
*** ViswaV has joined #openstack-sahara05:20
*** ViswaV has quit IRC05:32
*** IvanBerezovskiy has joined #openstack-sahara05:34
openstackgerritOpenStack Proposal Bot proposed a change to openstack/sahara: Imported Translations from Transifex  https://review.openstack.org/11055006:10
*** tnovacik has joined #openstack-sahara07:45
*** witlessb has joined #openstack-sahara07:59
*** skolekonov has joined #openstack-sahara08:02
*** ylobankov has joined #openstack-sahara08:14
*** akuznetsov has quit IRC08:18
*** akuznetsov has joined #openstack-sahara08:19
openstackgerritDenis Egorenko proposed a change to stackforge/sahara-ci-config: Fix wrong cluster postfix name for 'heat-transient' job  https://review.openstack.org/11056708:25
openstackgerritA change was merged to stackforge/sahara-ci-config: Fix wrong cluster postfix name for 'heat-transient' job  https://review.openstack.org/11056708:29
*** akuznetsov has quit IRC08:31
*** Timotey has joined #openstack-sahara08:34
*** akuznetsov has joined #openstack-sahara08:36
openstackgerritA change was merged to openstack/sahara-specs: [EDP] Add an engine for a Spark standalone deployment  https://review.openstack.org/10940308:42
*** DenisEgorenko has joined #openstack-sahara08:51
*** DenisEgorenko has left #openstack-sahara08:57
*** DenisEgorenko has joined #openstack-sahara08:57
openstackgerritYuji Yamada proposed a change to openstack/sahara-specs: [EDP] Improve Java type compatibility  https://review.openstack.org/11057609:07
*** openstackgerrit has quit IRC09:16
*** openstackgerrit has joined #openstack-sahara09:17
openstackgerritA change was merged to openstack/sahara-image-elements: Fixes Ambari repo used by HDP 2 image generation script  https://review.openstack.org/11032009:23
*** tosky has joined #openstack-sahara09:26
openstackgerritDenis Egorenko proposed a change to stackforge/sahara-ci-config: Setting job 'diskimage-integration-hdp2' as voting  https://review.openstack.org/11058409:28
*** Longgeek_ has joined #openstack-sahara09:31
*** Longgeek has quit IRC09:34
*** _elmiko_ has joined #openstack-sahara09:44
*** akuznetsov has quit IRC09:44
*** bradd1 has quit IRC09:44
*** _elmiko has quit IRC09:44
*** bradd1 has joined #openstack-sahara09:44
*** akuznetsov has joined #openstack-sahara09:45
openstackgerritVitaly Gridnev proposed a change to openstack/sahara: Add notifications to Sahara  https://review.openstack.org/10898210:04
openstackgerritA change was merged to stackforge/sahara-ci-config: Setting job 'diskimage-integration-hdp2' as voting  https://review.openstack.org/11058410:09
*** tnovacik has quit IRC10:40
*** tnovacik has joined #openstack-sahara10:45
*** witlessb has quit IRC10:47
openstackgerritIvan Berezovskiy proposed a change to openstack/sahara-image-elements: Mark some element scripts as executable  https://review.openstack.org/11060310:49
openstackgerritA change was merged to openstack/sahara: Waiting deleting Heat stack  https://review.openstack.org/10958510:52
openstackgerritA change was merged to openstack/sahara: Add rm from docs env to whitelist to avoid warn  https://review.openstack.org/11026410:52
*** witlessb has joined #openstack-sahara10:58
openstackgerritA change was merged to openstack/sahara: Imported Translations from Transifex  https://review.openstack.org/11055011:20
*** witlessb has quit IRC11:23
openstackgerritTelles Mota Vidal Nóbrega proposed a change to openstack/sahara-image-elements: Adding Storm and Zookeeper elements  https://review.openstack.org/11030411:28
*** witlessb has joined #openstack-sahara11:58
*** xianghui has quit IRC12:01
openstackgerritTelles Mota Vidal Nóbrega proposed a change to openstack/sahara-image-elements: Adding Storm and Zookeeper elements  https://review.openstack.org/11030412:11
openstackgerritDenis Egorenko proposed a change to stackforge/sahara-ci-config: Fix variable's name for skipping tests  https://review.openstack.org/11062712:23
*** tmckay has joined #openstack-sahara12:27
*** tmckay has joined #openstack-sahara12:39
openstackgerritVitaly Gridnev proposed a change to openstack/sahara: Add notifications to Sahara  https://review.openstack.org/10898212:40
*** _elmiko_ is now known as elmiko13:05
*** bradd1 has quit IRC13:09
*** bradd1 has joined #openstack-sahara13:09
*** IvanBerezovskiy has left #openstack-sahara13:11
*** Networkn3rd has joined #openstack-sahara13:25
openstackgerritMichael McCune proposed a change to openstack/sahara: Adding generic trust creation and destruction methods  https://review.openstack.org/11013413:29
openstackgerritSergey Reshetnyak proposed a change to openstack/sahara: Add test for storing data in DB for 007 migration  https://review.openstack.org/11064513:31
openstackgerritDenis Egorenko proposed a change to stackforge/sahara-ci-config: Setting jobs with Vanilla 2.4 and Transient-Heat as voting  https://review.openstack.org/11065013:47
*** bradd11 has joined #openstack-sahara13:48
tellesnobregaelmiko: hi, about the question you posted on the storm image, what is the best approach you suggest13:51
tellesnobregai'm thinking either remove the check and set a default to always have or exit 1 when not given13:52
*** bradd1 has quit IRC13:52
*** _crobertsrh is now known as crobertsrh13:53
elmikotellesnobrega: i think the case statement looked ok, just the test might not be needed and then setting the download url again overwrites the case statement13:53
tellesnobrega the second part i will remove13:54
elmikotellesnobrega: since the case statement had a default case that exitted, that should be fine13:54
tellesnobregaalright13:54
elmikocool, thanks13:54
openstackgerritTelles Mota Vidal Nóbrega proposed a change to openstack/sahara-image-elements: Adding Storm and Zookeeper elements  https://review.openstack.org/11030414:03
openstackgerritA change was merged to openstack/sahara: Add translation support to service and utils modules  https://review.openstack.org/10708914:05
openstackgerritOpenStack Proposal Bot proposed a change to openstack/sahara: Updated from global requirements  https://review.openstack.org/11010814:12
*** bradd11 has quit IRC14:34
*** skolekonov has quit IRC15:11
openstackgerritA change was merged to stackforge/sahara-ci-config: Setting jobs with Vanilla 2.4 and Transient-Heat as voting  https://review.openstack.org/11065015:14
openstackgerritA change was merged to stackforge/sahara-ci-config: Fix variable's name for skipping tests  https://review.openstack.org/11062715:14
*** sballe_ has joined #openstack-sahara15:19
*** sballe has joined #openstack-sahara15:20
*** bradd1 has joined #openstack-sahara15:24
*** Networkn3rd has quit IRC15:26
*** Networkn3rd has joined #openstack-sahara15:28
*** sballe has quit IRC15:29
openstackgerritSergey Reshetnyak proposed a change to openstack/sahara: Fix closing HTTP session in Ambari plugin  https://review.openstack.org/11068815:41
*** witlessb has quit IRC15:50
*** shakamunyi has joined #openstack-sahara15:53
*** shakamunyi has quit IRC15:53
*** shakamunyi has joined #openstack-sahara15:54
*** shakamunyi has quit IRC15:54
openstackgerritDenis Egorenko proposed a change to stackforge/sahara-ci-config: Fixing missed symbol  https://review.openstack.org/11070215:58
*** Networkn3rd has quit IRC16:03
openstackgerritA change was merged to stackforge/sahara-ci-config: Fixing missed symbol  https://review.openstack.org/11070216:05
*** tnovacik has quit IRC16:19
elmikotmckay, crobertsrh, is there an object or common store i can use in Sahara to keep runtime information for a periodic task to check?16:21
elmikobasically, i want to keep track of token expiration times but i don't want to store them in the database16:21
tmckayelmiko, hmm, not sure.  Some of the periodic tasks just use the db and remote calls16:22
elmikotmckay: do you think it's safe to make class variables in the SaharaPeriodicTasks class?16:23
* tmckay takes a look16:24
tmckayelmiko, still looking, I'm guessing it's okay.  It may be better to create a store in another module as a singleton pattern, then have the task body use that module16:32
elmikotmckay: makes sense, i'll need to chew on this for a few16:33
tmckayquestion is what "task(self, context)" does on line 198 of periodic_task.py16:33
tmckayis that a constructor, or a call?16:33
* tmckay still looking16:33
tmckayinteresting question16:33
elmikothat's a call16:34
elmikoto the periodic task decorated function16:34
tmckayelmiko, hmm, self._periodic_tasks is a dictionary16:34
tmckayyou could propose a general pattern where self._periodic tasks has a slightly different structure and stores task data that is passed in on each invocation16:35
tmckaytask local persistent storage, basically16:35
tmckaycould be generally applicable across Sahara16:35
elmikoi'll have to think about that one16:35
tmckayooo, they're tuples16:36
elmikoi don't want to get into something too complicated, it might be easier to just use a singleton object somewhere16:36
tmckaynot a dictionary16:36
tmckaymay be.  Not sure this is too hard.16:37
tmckaythe proof is in trying :)16:38
elmikolol totally16:38
tmckayelmiko, hmm, I think this could be mocked up really quick.  You want me to try?  tuple containing a reference to a dictionary still allows the dictionary itself to be modified16:40
tmckaythe dict could be passed in if the signature for tasks included *args16:41
tmckayinited to empty16:41
tmckayyour task could use it, your changes to the dict I believe would persist16:41
elmikoso, this would be an extra parameter passed into the periodic_task decorated method?16:42
tmckayyep, interpreter backs me up16:42
tmckayyeah, the loop in periodic_task.py would make the call like this16:42
tmckay        for task_name, task, task_data in self._periodic_tasks:16:43
tmckay...16:43
tmckay            try:16:43
tmckay                task(self, context, task_data)16:43
tmckay            except Exception as e:16:43
tmckayI think it would work16:43
elmikowhere would task_data get injected then, the decorator?16:44
tmckayby definition, periodic tasks should only be running one at a time, so thread safety is okay16:44
tmckaylet me find one ...16:44
*** Networkn3rd has joined #openstack-sahara16:45
tmckay    def update_job_statuses(self, ctx) just becomes update_job_statuses(self, ctx, *args) I think16:45
tmckayif it wants to ignore the data16:45
elmikoit might be less disruptive if i use an external object16:46
tmckayline 142, periodic_task.py just creates the empty dict16:46
tmckay                cls._periodic_tasks.append((name, task, {}))16:47
tmckaycould be.  I think the disruption is small :)16:47
tmckayJust an option16:47
tmckayexternal object is fine too16:48
tmckayelmiko, oh, periodic task is openstack common =-O16:49
elmikoyea16:49
tmckayso we'd need a subtype.  Yeah, probably don't want to fight that battle.  But, I think it's a cool idea16:49
tmckaycarry on :)16:50
elmikoit is a good idea, but i think it's a bigger issue than i want to tackle with this change as ell16:50
elmiko*well16:50
tmckaygotcha16:50
elmikoi'll run a few tests and see if i can store a class local variable too16:51
crobertsrhsorry, was eating lunch.  Looks like you might be on it though :)16:56
elmikono worries, just fishing for some advice :)16:56
*** ViswaV has joined #openstack-sahara17:02
*** ViswaV has quit IRC17:16
openstackgerritTrevor McKay proposed a change to openstack/sahara-specs: [EDP] Add a Spark job type (instead of overloading Java)  https://review.openstack.org/11072717:31
tmckaycrobertsrh, I mentioned you by name in here ^^ You better read it :)17:31
crobertsrhOh my!  I'm like interweb-famous now!!17:31
tmckay:)  I lumped the UI stuff in with the sahara-api changes17:32
crobertsrhheh...actually, maybe not *that* famous....a search for me in google images doesn't seem to yield anything close to a picture of me17:32
tmckayI bet we could change that, lol17:33
crobertsrhBy the looks of things, I might as well grow an interesting beard...then, plausibly, there would be lots of pics of me.17:34
tmckayWhen was it that all the baseball teams had beards?  The 20s?  Earlier?17:35
crobertsrhNot sure I ever knew that bit of trivia17:35
tmckayI've seen a bunch of old black and whites of bearded baseball players17:38
tmckaymaybe it was a dream17:43
*** bradd1 has quit IRC17:44
*** Longgeek has joined #openstack-sahara17:48
*** Longgeek_ has quit IRC17:51
*** Networkn3rd has quit IRC17:53
tmckaycrobertsrh, one question on that, should we use edp.spark.main_class or reuse edp.java.main_class?  Either way is fine.17:57
crobertsrhI don't think it matters from the UI perspective.17:58
crobertsrhEither is just as easy.  Is one "more correct"?17:58
*** Networkn3rd has joined #openstack-sahara17:59
tmckaywell, I suppose "edp.spark.main_class" is more correct since it's the main class for a spark job, as opposed to a java job.17:59
tmckaybut if java refers to the language, then ....17:59
tmckay:) it could be Java or Scala18:00
tmckaymaybe we should just stick with java for now18:00
crobertsrhI'm not really offended if we go with java for now18:01
tmckayalright, sold18:01
*** Longgeek has quit IRC18:01
tmckaywow, looks like writing the spec might be more work than implementing this in sahara-api18:03
crobertsrhProbably true :)18:15
*** tosky has quit IRC18:27
*** Networkn3rd has quit IRC18:28
*** Networkn3rd has joined #openstack-sahara18:32
*** Longgeek has joined #openstack-sahara18:47
*** akuznetsov has quit IRC18:47
*** Networkn3rd has quit IRC20:05
tmckaycrobertsrh, heh, I hacked croberts-sahara to change edp.JOB_TYPE_HIVE to edp.JOB_TYPE_SPARK on job creation to test a Spark job type submission from the dashboad20:36
crobertsrhHeh, nice :)20:36
tmckaysince it allows mains, it tests the validation code.  And there is just enough config available to make it work :)20:36
crobertsrhso, you're saying that I should already have my dashboard patch done?? :)20:36
tmckayfound some bugs in my patch20:36
tmckaylol, way  not user friendly20:37
tmckaylies, lies, lies20:37
elmikodo either of you know which field in JobExecution contains the status?20:37
crobertsrhdang....I will avoid the temptation to do a quick git diff and roll that into "my" patch :)20:37
elmikolol20:37
tmckayelmiko, yes,20:37
crobertsrhI think it's under "info", right?20:37
tmckayshould be job_exec.info["status"]20:38
elmikothanks, wasn't sure which general field it might be in. and grepping for "info" was a little much lol20:38
crobertsrhAlso...don't forget to vote on OS Summit presentations.20:38
elmikoi didn't see the link for that, got it handy?20:39
crobertsrhhttps://www.openstack.org/vote-paris/20:39
elmikothanks20:39
tmckayI see we're up for another live demo, SergeyLukjanov20:39
tmckaywe need to plan ahead for that :)20:40
crobertsrhheh....just don't record it anytime soon....horizon is a mess atm...not just our dashboard...everything20:40
tmckayA Mac, and a network accessible from that Mac without copying vpn info20:40
tmckayor a really fast local box20:40
elmikocrobertsrh: no doubt, i ran a trunk version of horizon yesterday. it was bad...20:42
crobertsrhYeah, they upgraded the bootstrap bits........boom20:42
crobertsrhcalculated move to merge that patch and then fix everything20:42
elmikomakes sense20:42
elmikobut stuff could seriously fall through the cracks20:42
crobertsrhI made a patch for our stuff today.....it should catch the most ugly stuff.20:43
crobertsrhYeah, I agree.  I did not +1 that idea20:43
elmikoif i want to query an object is it preferred to use the conductor interface or the api interface?21:00
*** crobertsrh is now known as _crobertsrh21:04
tmckayelmiko, hey there.21:09
elmikohey21:10
tmckayconductor, I'd say21:10
tmckaythat's what the EDP stuff does21:10
tmckay(job_manager.py, for example_21:10
elmikoi'm going through these job executions states, and i'm thinking i should create some constants like we did for the JOB_TYPE_* stuff21:11
tmckaymay not be a bad idea21:12
elmikoi'm only seeing terminated states though, not running states21:13
*** Longgeek has quit IRC21:13
elmikoso, i'm gonna run some live tests to see what happens21:13
tmckaycool.  live tests of what?21:14
openstackgerritTrevor McKay proposed a change to openstack/sahara: Implement EDP for a Spark standalone cluster  https://review.openstack.org/10787121:14
openstackgerritTrevor McKay proposed a change to openstack/sahara: Add a Spark job type for EDP  https://review.openstack.org/11079121:15
elmikoi have a simple periodic task running, and i'm starting to loop through job executions to determine if auth tokens need updating21:16
elmikoso i need to determine if a JobExecution is still running or finished21:17
tmckayoh, right21:23
tmckayelmiko, in job_utils there should be terminated_job_states21:23
elmikosaw that, it's what gave me the idea to make constants21:24
tmckaypending/running should be the only "running" ones21:24
elmikolol that was my next question21:24
tmckaysucceeded, failed, donewitherror are all complete21:24
elmikodo you think it's a good idea to break the JOB_EXECUTION_STATE_* into a separate review?21:25
tmckayoh, and killed21:25
tmckayyeah, I guess running and pending are not called out anywhere21:25
tmckayyeah, separate review.  It will likely touch a bunch of places21:25
elmikok21:25
tmckaypending means job exec created but not submitted to the job server yet (oozie, spark, whatever). most likely in run_job21:26
elmikoi like breaking these into a bunch of small easily reviewed pieces, but i'm trying to be sensitive to the fact that i don't want to create a hellish dependency chain21:26
tmckay"running" should mean the server has it21:26
elmikok21:26
tmckayfor your current patch, you could just add a "running_job_states"21:27
elmikoyea21:27
elmikoi'm thinking about just creating the constants in sahara.util.edp, then allowing the individual modules to create their own lists as needed. do you think i should create 2 master lists (running, terminated)?21:28
*** tmckay has quit IRC21:29
*** elmiko is now known as _elmiko22:25

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