Monday, 2013-09-09

*** IlyaE has joined #savanna00:29
*** NikitaKonovalov has joined #savanna00:54
*** ErikB has joined #savanna00:54
*** NikitaKonovalov has quit IRC00:59
*** ErikB has quit IRC00:59
*** nosnos has joined #savanna01:22
*** IlyaE has quit IRC01:44
*** IlyaE has joined #savanna01:54
*** NikitaKonovalov has joined #savanna01:54
*** ErikB has joined #savanna01:55
*** matsuhashi has joined #savanna01:56
*** NikitaKonovalov has quit IRC01:59
*** ErikB has quit IRC02:00
*** IlyaE has quit IRC02:43
*** NikitaKonovalov has joined #savanna02:55
*** ErikB has joined #savanna02:56
*** NikitaKonovalov has quit IRC02:59
*** ErikB has quit IRC03:00
*** IlyaE has joined #savanna03:13
*** sacharya has quit IRC03:30
*** NikitaKonovalov has joined #savanna03:55
*** ErikB has joined #savanna03:56
*** NikitaKonovalov has quit IRC04:00
*** ErikB has quit IRC04:02
*** asavu has joined #savanna04:04
*** SergeyLukjanov has joined #savanna04:17
*** IlyaE has quit IRC04:19
*** akuznetsov has joined #savanna04:22
*** SergeyLukjanov is now known as SergeyLukjanov_04:31
*** SergeyLukjanov_ has quit IRC04:33
*** asavu has quit IRC04:35
*** SergeyLukjanov has joined #savanna04:41
*** NikitaKonovalov has joined #savanna04:56
*** ErikB has joined #savanna04:57
*** matsuhas_ has joined #savanna05:00
*** matsuhashi has quit IRC05:00
*** NikitaKonovalov has quit IRC05:00
*** ErikB has quit IRC05:02
*** SergeyLukjanov has quit IRC05:04
*** IlyaE has joined #savanna05:26
*** matsuhas_ has quit IRC05:26
*** matsuhashi has joined #savanna05:29
*** nosnos has quit IRC05:32
*** nosnos has joined #savanna05:32
*** matsuhashi has quit IRC05:34
*** matsuhashi has joined #savanna05:39
*** NikitaKonovalov has joined #savanna05:56
*** ErikB has joined #savanna05:58
*** NikitaKonovalov has quit IRC06:01
*** ErikB has quit IRC06:03
*** SergeyLukjanov has joined #savanna06:03
*** SergeyLukjanov has quit IRC06:06
*** NikitaKonovalov has joined #savanna06:49
*** NikitaKonovalov has quit IRC06:51
*** NikitaKonovalov has joined #savanna06:52
*** matsuhashi has quit IRC06:57
*** ErikB has joined #savanna06:59
*** nosnos_ has joined #savanna07:00
*** nosnos has quit IRC07:01
*** matsuhashi has joined #savanna07:01
*** ErikB has quit IRC07:04
*** SergeyLukjanov has joined #savanna07:16
*** NikitaKonovalov has quit IRC07:24
*** NikitaKonovalov has joined #savanna07:31
*** nprivalova has joined #savanna07:32
openstackgerritNikolay Mahotkin proposed a change to stackforge/savanna: Add /job-configs/<job_type> REST API call  https://review.openstack.org/4541907:38
*** IlyaE has quit IRC07:49
*** SergeyLukjanov has quit IRC07:57
*** ErikB1 has joined #savanna07:59
*** SergeyLukjanov has joined #savanna08:01
*** ErikB1 has quit IRC08:05
*** SergeyLukjanov has quit IRC08:12
*** SergeyLukjanov has joined #savanna08:17
*** nprivalova has quit IRC08:29
*** nprivalova has joined #savanna08:32
*** SergeyLukjanov has quit IRC08:53
openstackgerritYaroslav Lobankov proposed a change to stackforge/savanna: Integration test refactoring  https://review.openstack.org/4392508:54
*** ErikB1 has joined #savanna09:00
*** ErikB1 has quit IRC09:05
openstackgerritYaroslav Lobankov proposed a change to stackforge/savanna: Integration test refactoring  https://review.openstack.org/4392509:13
openstackgerritNadya Privalova proposed a change to stackforge/savanna: Add "mains" and "libs" fields to JobOrigins  https://review.openstack.org/4512909:23
*** matsuhashi has quit IRC09:26
*** matsuhashi has joined #savanna09:26
*** SergeyLukjanov has joined #savanna09:31
*** bmahe has quit IRC09:39
*** SergeyLukjanov is now known as SergeyLukjanov_09:39
*** SergeyLukjanov_ is now known as SergeyLukjanov09:41
openstackgerritYaroslav Lobankov proposed a change to stackforge/savanna: Integration test refactoring  https://review.openstack.org/4392509:42
*** nprivalova has quit IRC09:49
*** SergeyLukjanov is now known as SergeyLukjanov_09:59
*** SergeyLukjanov_ is now known as SergeyLukjanov10:00
*** ErikB1 has joined #savanna10:01
*** nprivalova has joined #savanna10:05
*** ErikB1 has quit IRC10:06
openstackgerritNikolay Mahotkin proposed a change to stackforge/savanna: Fix job manager for hive action  https://review.openstack.org/4502510:10
*** nprivalova has quit IRC10:20
openstackgerritYaroslav Lobankov proposed a change to stackforge/savanna: Integration test refactoring  https://review.openstack.org/4392510:23
*** SergeyLukjanov is now known as SergeyLukjanov_10:29
*** matsuhashi has quit IRC10:30
*** SergeyLukjanov_ has quit IRC10:31
*** nosnos_ has quit IRC10:39
*** ruhe has joined #savanna10:42
*** NikitaKonovalov has quit IRC10:48
*** nprivalova has joined #savanna10:54
*** _crobertsrh is now known as crobertsrh10:57
*** ruhe has quit IRC10:59
*** SergeyLukjanov has joined #savanna11:01
*** ErikB1 has joined #savanna11:02
*** ErikB1 has quit IRC11:07
openstackgerritA change was merged to stackforge/savanna: Fix job manager for hive action  https://review.openstack.org/4502511:10
openstackgerritNadya Privalova proposed a change to stackforge/savanna: Add "mains" and "libs" fields to JobOrigins  https://review.openstack.org/4512911:12
*** NikitaKonovalov has joined #savanna11:19
*** NikitaKonovalov has quit IRC11:24
*** ruhe has joined #savanna11:30
*** SergeyLukjanov is now known as SergeyLukjanov_11:32
openstackgerritNadya Privalova proposed a change to stackforge/savanna: Add "mains" and "libs" fields to JobOrigins  https://review.openstack.org/4512911:41
*** SergeyLukjanov_ has quit IRC11:41
openstackgerritNadya Privalova proposed a change to stackforge/savanna: Add "mains" and "libs" fields to JobOrigins  https://review.openstack.org/4512911:45
openstackgerritVadim Rovachev proposed a change to stackforge/savanna-dashboard: Added UI tests  https://review.openstack.org/4344211:47
*** aignatov has joined #savanna11:50
*** asavu has joined #savanna11:54
openstackgerritYaroslav Lobankov proposed a change to stackforge/python-savannaclient: Create methods return object while object creation  https://review.openstack.org/4566811:56
openstackgerritNikolay Mahotkin proposed a change to stackforge/savanna: Add /job-configs/<job_type> REST API call  https://review.openstack.org/4541911:58
*** nprivalova has quit IRC11:58
*** ruhe has quit IRC11:59
*** nprivalova has joined #savanna12:01
*** SergeyLukjanov has joined #savanna12:02
*** ErikB1 has joined #savanna12:02
*** SergeyLukjanov is now known as SergeyLukjanov_12:06
*** ErikB1 has quit IRC12:07
*** SergeyLukjanov_ is now known as SergeyLukjanov12:08
openstackgerritNikolay Mahotkin proposed a change to stackforge/savanna: Add /job-configs/<job_type> REST API call  https://review.openstack.org/4541912:11
openstackgerritYaroslav Lobankov proposed a change to stackforge/python-savannaclient: Create methods return object while object creation  https://review.openstack.org/4566812:15
*** akuznetsov has quit IRC12:16
*** asavu has quit IRC12:16
openstackgerritYaroslav Lobankov proposed a change to stackforge/python-savannaclient: Create methods return object while object creation  https://review.openstack.org/4566812:18
*** SergeyLukjanov is now known as SergeyLukjanov_12:19
*** SergeyLukjanov_ is now known as SergeyLukjanov12:24
*** ErikB1 has joined #savanna12:26
*** NikitaKonovalov has joined #savanna12:33
*** tmckay has joined #savanna12:34
*** SergeyLukjanov is now known as SergeyLukjanov_12:35
*** NikitaKonovalov has quit IRC12:39
*** NikitaKonovalov has joined #savanna12:39
*** sballe has joined #savanna12:40
*** ErikB1 has quit IRC12:41
tmckaynprivalova, hi!  I was working on Friday afternoon to make JobBinary deletion failed if it's referenced from a JobOrigin.  It turns out that a simple ForeignKey is not enough, because the assocation table is automatically cleaned up by sqlalchemy.  But, the association table can be queried for any occurrence of the job_binary id, and an exception raised.  Finishing up this morning...12:41
*** SergeyLukjanov_ has quit IRC12:43
nprivalovahi tmckay!12:43
nprivalova tmckay, I've resolved several comments during review12:44
*** mattf has quit IRC12:44
*** mattf has joined #savanna12:44
tmckaynprivalova, great, I'll take a look12:45
nprivalova tmckay, and there is no more news from my side :)12:45
tmckayyay, maybe we can get it reviewed soon :)12:46
*** ruhe has joined #savanna12:46
*** SergeyLukjanov has joined #savanna12:52
*** SergeyLukjanov is now known as SergeyLukjanov_12:52
*** SergeyLukjanov_ is now known as SergeyLukjanov12:52
*** akuznetsov has joined #savanna12:59
openstackgerritA change was merged to stackforge/python-savannaclient: Create methods return object while object creation  https://review.openstack.org/4566813:01
*** ErikB1 has joined #savanna13:04
nprivalovacrobertsrh, hi!13:22
crobertsrhhello13:22
nprivalovaI'd like to discuss UI part with you and other EDP-team members. The main question: am I right that there will be 3 separate pages for mr, pig and hive?13:25
crobertsrhI suppose we could do it that way.  I was trying to think of a way to integrate all into one page.  separate pages would probably be easier13:27
nprivalovaI absolutely agree with it13:28
crobertsrhdefinitely open to any suggestions13:29
*** _tstclair has quit IRC13:35
nprivalovaWe're thinking about additional rest methods for UI. Did you see https://review.openstack.org/#/c/45419 ?13:36
crobertsrhlooking now13:38
*** tstclair has joined #savanna13:44
crobertsrhThat change should be fine13:48
openstackgerritJonathan Maron proposed a change to stackforge/savanna: Update ambari admin credentials for scaling  https://review.openstack.org/4568613:48
crobertsrhThe thought there is that before submitting a job, the UI would make the appropriate call to get the associated config and then pass that along?13:49
*** kbroughton has joined #savanna13:51
*** NikitaKonovalov has quit IRC13:51
nprivalovayes. Chad, the problem here is that for Pig there should be the following fields to be edited: "script-name", "configuration", "params". For mr it is only "configs"13:54
nprivalovaso the sets of "changeable" fields depend on job-type13:55
nprivalovaThere may be the following REST: /job-fields/<job_type> and return value: {"configs": {name:value <=== defaults}, "script-name": "here we can show script name from JobOrigin"  , "params": "no defaults" }13:58
nprivalovacrobertsrh, akuznetsov, tmckay, aignatov, ping :)14:00
tmckayI'm here.14:01
aignatovpong14:02
akuznetsovpong14:02
nprivalovathoughts?14:02
nprivalovaabout the REST14:03
aignatovcrobertsrh, do you have fresh mock screens for UI? :)14:03
tmckayIt makes sense to me, if the UI is context-sensitive based on the job type14:04
akuznetsovFor now we have a two places where parameters can insert14:04
tmckayThe only other way to do it is encode the set of parameters for each job type in the UI itself.14:04
akuznetsovjob creation and job execution14:04
crobertsrhaignatov:  No, mock screens are rather stale right now14:05
crobertsrhI can add another "config" tab to the launch workflow where the configs can be edited.14:05
*** NikitaKonovalov has joined #savanna14:05
crobertsrhor rather a new config tab to the job creation itself.14:06
akuznetsovfor job creation parameters are not mandatory14:06
akuznetsovit can always set up in job execution14:07
crobertsrhI agree.  I'll add it to launch dialog14:07
akuznetsovSome parameters will unknown before job creation e.g. oozie workflows14:07
crobertsrhI thought I was getting fairly close, but it seems like I'm getting farther away :)14:08
nprivalovacrobertsrh, we are changing our vision every week but looks like the REST is rather stable. Anyway, maybe it would be easier to collaborate having mocks up-to-date? Just to let us know what is ready and what should not be broken :)14:11
*** rnirmal has joined #savanna14:13
akuznetsovnprivalova, aignatov and tmckay I think that job can define a new parameters e.g. if we have a pig script and it has some parameters in xml we can extract it and show before execution14:17
akuznetsovwhat do you think?14:18
tmckayExtract from where? :)  Something in a JobExecution, or from a JobBinary stored somewhere?14:20
*** sacharya has joined #savanna14:21
crobertsrhwhew...found my usb stick with the savanna UI mockups on it :)14:21
tmckayakuznetsov, I am unclear where the "some parameters in xml" would be14:22
*** ErikB1 has quit IRC14:25
akuznetsovtmckay e.g. we have section <param>[PARAM-VALUE]</param> in pig xml for this parameters can be specifies by placeholders which should be specified in job execution14:25
tmckayakuznetsov, okay, so it would be necessary then to read the pig xml from storage (swift, internal db, hdfs, etc) and parse it, and then prompt the user for values?14:27
akuznetsovI think yes before job execution creation14:27
nprivalova I think 'params' block should be in Job as well as 'configs' blocks14:27
openstackgerritJohn Speidel proposed a change to stackforge/savanna: Update Ambari repo URL for 0.2.2 release  https://review.openstack.org/4569214:30
openstackgerritJohn Speidel proposed a change to stackforge/savanna: Update Ambari repo URL for 0.2.2 release  https://review.openstack.org/4569214:31
*** ErikB1 has joined #savanna14:32
tmckaynprivalova, in that case, it seems like it is up to the user to create the job correctly and the UI forms can be created from the information in the Job.  Do we need any extra "helper" functions for a user to create a job with a "params" section? (beyond just retrieving whatever job binaries they want to use?)14:32
nprivalovatmckay, I think we do not need such mechanism for "params" itself. But UI should know that "params" may be asked from user14:36
*** asavu has joined #savanna14:40
nprivalovamaybe just add 'extra' to Job and JobExecution. extra:{configs:{name:value}, params: {name:value}}14:41
openstackgerritNikita Konovalov proposed a change to stackforge/savanna: Floating ip assignement support  https://review.openstack.org/4482214:42
*** SergeyLu_ has joined #savanna14:42
*** ruhe has quit IRC14:43
*** sacharya has quit IRC14:43
*** SergeyLu_ has quit IRC14:46
akuznetsovnprivalova agree we should made it simple14:46
*** ruhe has joined #savanna14:54
openstackgerritA change was merged to stackforge/savanna: Update Ambari repo URL for 0.2.2 release  https://review.openstack.org/4569214:55
openstackgerritTrevor McKay proposed a change to stackforge/savanna: Add "mains" and "libs" fields to JobOrigins  https://review.openstack.org/4512914:56
*** SergeyLukjanov is now known as SergeyLukjanov_15:04
*** SergeyLukjanov_ is now known as SergeyLukjanov15:05
openstackgerritXiang Hui proposed a change to stackforge/savanna: Fix typo  https://review.openstack.org/4569915:06
*** nprivalova has quit IRC15:07
*** asavu has quit IRC15:09
*** ErikB1 has quit IRC15:13
openstackgerritXiang Hui proposed a change to stackforge/savanna: Fix typo  https://review.openstack.org/4569915:13
*** sacharya has joined #savanna15:13
*** ErikB has joined #savanna15:15
openstackgerritA change was merged to stackforge/savanna: Fix typo  https://review.openstack.org/4569915:17
openstackgerritJonathan Maron proposed a change to stackforge/savanna: Update ambari admin credentials for scaling  https://review.openstack.org/4568615:25
*** IlyaE has joined #savanna15:27
openstackgerritNikita Konovalov proposed a change to stackforge/savanna: Floating ip assignement support  https://review.openstack.org/4482215:29
*** dmitryme has joined #savanna15:31
*** nprivalova has joined #savanna15:33
tmckaynprivalova, ping15:49
nprivalovatmckay, I'm here15:49
*** asavu has joined #savanna15:50
openstackgerritSergey Galkin proposed a change to stackforge/python-savannaclient: Added authentication by tenant name  https://review.openstack.org/4570515:51
tmckayHi.  Adding JobBinary tests -- I noticed that many of the "fields" tests could be a single shared test, the basic logic is the same.  Is there any convention in testing code that all tests should be standalone?  Is it okay to combine them through a utility routine?15:51
tmckayfields test is just "create some sample, compare fields in the object to the sample"15:51
tmckayI suppose maybe different getter names makes it not worth it...15:52
tmckaybut, still a general question15:52
nprivalovaThere is no strict convention. The main goal in really to test features15:53
tmckayokay, thanks15:54
openstackgerritSergey Galkin proposed a change to stackforge/python-savannaclient: Added authentication by tenant name  https://review.openstack.org/4570515:59
*** ruhe has quit IRC16:01
openstackgerritNikita Konovalov proposed a change to stackforge/savanna: Floating ip assignement support  https://review.openstack.org/4482216:02
*** tmckay is now known as tmckay_lunch16:04
*** IlyaE has quit IRC16:14
openstackgerritA change was merged to stackforge/python-savannaclient: Added authentication by tenant name  https://review.openstack.org/4570516:16
*** NikitaKonovalov has quit IRC16:17
*** nprivalova has quit IRC16:19
*** ruhe has joined #savanna16:23
*** ruhe has quit IRC16:24
*** ruhe has joined #savanna16:27
*** SergeyLukjanov is now known as SergeyLukjanov_16:32
*** SergeyLukjanov_ is now known as SergeyLukjanov16:32
*** SergeyLukjanov has quit IRC16:36
*** ruhe has quit IRC16:39
*** akuznetsov has quit IRC16:41
*** IlyaE has joined #savanna16:44
*** ruhe has joined #savanna16:48
*** NikitaKonovalov has joined #savanna16:52
*** NikitaKonovalov has quit IRC17:01
*** NikitaKonovalov has joined #savanna17:04
*** openstackgerrit has quit IRC17:05
*** openstackgerrit has joined #savanna17:05
*** akuznetsov has joined #savanna17:09
*** NikitaKonovalov has quit IRC17:21
*** NikitaKonovalov has joined #savanna17:21
*** tmckay_lunch is now known as tmckay17:26
*** SergeyLukjanov has joined #savanna17:30
*** SergeyLukjanov has quit IRC17:33
*** NikitaKonovalov has quit IRC17:35
*** NikitaKonovalov has joined #savanna17:36
openstackgerritTrevor McKay proposed a change to stackforge/savanna: Add "mains" and "libs" fields to JobOrigins  https://review.openstack.org/4512917:38
*** NikitaKonovalov has quit IRC17:38
*** SergeyLukjanov has joined #savanna17:39
*** NikitaKonovalov has joined #savanna17:40
openstackgerritDmitry Mescheryakov proposed a change to stackforge/savanna: Wrapping ssh calls into subprocesses  https://review.openstack.org/4571617:45
*** ruhe has quit IRC17:52
*** dmitryme has quit IRC17:54
*** sballe has quit IRC17:55
*** NikitaKonovalov has quit IRC17:55
*** NikitaKonovalov has joined #savanna17:56
*** NikitaKonovalov has quit IRC17:59
*** NikitaKonovalov has joined #savanna18:00
openstackgerritTrevor McKay proposed a change to stackforge/savanna: Add "mains" and "libs" fields to JobOrigins  https://review.openstack.org/4512918:06
crobertsrhUpdated set of UI mockups for EDP. https://wiki.openstack.org/wiki/Savanna/UIMockups/JobCreation  (a few more still to come)18:17
*** akuznetsov has quit IRC18:29
*** IlyaE has quit IRC18:31
*** NikitaKonovalov has quit IRC18:31
*** NikitaKonovalov has joined #savanna18:34
*** ErikB has quit IRC18:35
*** akuznetsov has joined #savanna18:35
*** ErikB has joined #savanna18:36
openstackgerritSergey Lukjanov proposed a change to stackforge/savanna: Use setup.py develop for tox install  https://review.openstack.org/4572418:39
openstackgerritA change was merged to stackforge/savanna: Update ambari admin credentials for scaling  https://review.openstack.org/4568618:40
*** akuznetsov has quit IRC18:56
*** dmitryme has joined #savanna19:01
openstackgerritSergey Lukjanov proposed a change to stackforge/savanna: Sync requirements with os/requirements  https://review.openstack.org/4573419:02
openstackgerritSergey Lukjanov proposed a change to stackforge/savanna: Fix AUTHORS file ordering  https://review.openstack.org/4573519:04
openstackgerritSergey Lukjanov proposed a change to stackforge/savanna: Sync oslo with os/oslo-incubator  https://review.openstack.org/4573919:14
*** dmitryme has quit IRC19:16
*** NikitaKonovalov has quit IRC19:16
*** NikitaKonovalov has joined #savanna19:16
*** ruhe has joined #savanna19:16
openstackgerritSergey Lukjanov proposed a change to stackforge/savanna: Fix AUTHORS file  https://review.openstack.org/4573519:16
*** NikitaKonovalov has quit IRC19:17
*** IlyaE has joined #savanna19:21
*** ruhe has quit IRC19:58
crobertsrhYou there tmckay?19:58
tmckayyes19:58
crobertsrhQuestion on creating a job origin....19:58
crobertsrhI have a main that I chose from a list of savanna-internal binaries....19:59
*** dmitryme has joined #savanna19:59
crobertsrhI transform that to savanna-db://{uid} on the create call, but I get a validation error that that uid doesn't exist.19:59
crobertsrhDoes that seem wrong?19:59
*** NikitaKonovalov has joined #savanna19:59
crobertsrhIf I do a savanna-binary-internals list, I see my uid happily there19:59
tmckayhmm, which branch are you working on?20:00
tmckayThere is a CR right now to change the object relationships20:00
crobertsrhmaster + I cherry picked your review20:00
crobertsrhAh, maybe there is a missing piece for me20:01
tmckayOkay.  job_origin["mains"] holds references to JobBinarys, which point to JobBinaryInternals20:01
tmckayanother level of indirection.20:01
tmckayJobBinaryInternals are strictly data blobs20:02
tmckayJobBinarys on the other hand might be ultimately be stored anywhere20:02
crobertsrhOk, maybe I'm misunderstanding something along the way20:02
crobertsrhPreviously, I just stored a job binary (which I think always just put it in the savanna db)20:02
crobertsrhI'm trying to make that happen again.20:03
tmckayright, that thing is now called a JobBinaryInternal20:03
crobertsrhOk, so I am creating a job-binary-internal20:03
crobertsrhI'm using those to populate a select box20:03
tmckaythe api is essentially the same but job-binary in the url has become job-binary-internal20:03
crobertsrhOk, that is what my working assumption was20:03
tmckayThen, you need to make a JobBinary that points to that internal20:04
crobertsrhOh20:04
tmckayAnd a JobOrigin that points to the JobBinary20:04
crobertsrhthanks for spelling it out to me again20:04
crobertsrhNow, just code it for me and we'll be in better shape :)20:04
tmckaythe choice came down to making JobBinary smart enough to hold BLOBs or urls in the same object, or to introduce another level20:04
crobertsrhYeah, I recall seeing that conversation, or at least part of it20:05
crobertsrhOk, I should be able to make magic happen again.20:05
tmckayHeh.  I can probably make you a paste of http calls that sets up something valid (Actually, I haven't tried to link it all the way through)20:05
tmckayAlso, the test code might be helpful in showing the relationships20:05
tmckayI've been playing with mains and libs so I just made JobBinary objects that didn't actually point anywhere real.20:06
crobertsrhSo to create a job binary that points to a job binary internal, the url needs to be "savanna-db://{uid}", right?20:09
tmckayyes20:09
crobertsrhOk, success now.20:19
tmckaycrobertsrh, great!20:24
tmckayI need to get a full environment set up.  Playing with decorators for better exception handling in REST calls.20:25
*** NikitaKonovalov has quit IRC20:25
tmckayIt annoys me when I get back "Internal server error"20:25
tmckaybbl20:25
*** NikitaKonovalov has joined #savanna20:26
crobertsrhYes, "internal server error" doesn't tell us much.  Probably better than an "external server error"...I would have no clue at all what that is.20:30
dmitrymehi guys20:37
dmitrymetmckay: what do you mean by "better exception handling in REST calls"?20:37
dmitrymethe idea behind "Internal Server Error" message is to hide from client details of an unexpected error20:38
dmitrymesince exposing them is a potential threat20:39
tmckaydmitryme, some of them I think are a problem, for instance duplicate record creation20:56
dmitrymeagree, that is for sure should be presented clearly to the user20:57
tmckayWhat I was playing with was a decorator that would grab SavannaException and create a better message.  RuntimeError for example could still be "Internal Server Error"20:58
tmckayThat way, we can pick and choose what we want to elaborate on.  Deletion failure because of constraints might be another one.20:58
dmitrymeI see. It just wash't clear from your message if going to show details for _every_ error20:59
tmckay:)  agreed, that would be bad, and exceptions can contain security flaws.20:59
*** NikitaKonovalov has quit IRC21:01
*** crobertsrh is now known as _crobertsrh21:01
tmckaydmitryme, ah, hmm, looks like this is easier than I thought.  The "route" call already catches SavannaExceptions and handles them.  So, RuntimeError from create can just be a SavannaException and it is handled correctly.21:05
tmckay(in the REST api)21:05
openstackgerritA change was merged to stackforge/savanna: Fix AUTHORS file  https://review.openstack.org/4573521:08
dmitrymeI didn't saw that code before, but I knew it was somewhere there just because I've never seen an unhandled error from Savanna21:09
tmckay:) yes, I just stepped through it in the debugger.  When I made my exception a Savanna exception the reporting magically changed, haha21:10
tmckayFixing my bug report21:10
tmckayThis is really an RFE for some errors21:10
dmitrymeRFE?21:11
dmitrymeI mean, I am not familiar with any meaning of that acronym21:13
dmitrymeand I don't see anything suitable in http://www.acronymfinder.com/RFE.html21:13
tmckay"request for enchancement"21:15
tmckayWhen something is maybe not a bug, and is working be design, but could be better :)21:15
dmitrymeoh, that one21:15
tmckaysome places use it, some don't21:16
*** dmitryme has quit IRC21:43
*** ErikB has quit IRC21:44
*** NikitaKonovalov has joined #savanna22:01
*** SergeyLukjanov has quit IRC22:01
*** NikitaKonovalov has quit IRC22:06
*** dmitryme has joined #savanna22:17
*** sacharya has quit IRC22:19
*** ErikB has joined #savanna22:37
*** ErikB has quit IRC22:43
*** dmitryme has quit IRC22:44
*** kbroughton has quit IRC22:51
*** NikitaKonovalov has joined #savanna23:02
*** sacharya has joined #savanna23:07
*** NikitaKonovalov has quit IRC23:07
*** rnirmal has quit IRC23:12
*** IlyaE has quit IRC23:17
*** IlyaE has joined #savanna23:18
*** IlyaE has quit IRC23:23
*** asavu has quit IRC23:39
*** ErikB has joined #savanna23:39
*** ErikB has quit IRC23:45

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