Friday, 2013-11-01

*** grapex has joined #openstack-trove00:00
*** grapex has quit IRC00:09
*** krow has quit IRC00:11
openstackgerritDirk Mueller proposed a change to openstack/python-troveclient: Fix Pep8 indentation issues only found with Pep8 1.4.6+  https://review.openstack.org/5485500:13
*** amytron has quit IRC00:15
*** coolsvap has quit IRC00:15
*** amcrn has quit IRC00:18
*** krow has joined #openstack-trove00:19
*** matsuhashi has joined #openstack-trove00:25
*** amcrn has joined #openstack-trove00:38
*** krow has quit IRC00:56
*** yidclare has quit IRC01:02
*** nosnos has joined #openstack-trove01:09
*** demorris has joined #openstack-trove01:14
*** krow has joined #openstack-trove01:27
*** krow has quit IRC01:32
*** esp has left #openstack-trove01:37
*** krow has joined #openstack-trove01:53
*** erkules has quit IRC02:06
*** krow has quit IRC02:11
*** erkules has joined #openstack-trove02:20
*** amcrn has quit IRC02:30
*** demorris has quit IRC02:30
*** krow has joined #openstack-trove02:42
*** matsuhashi has quit IRC02:43
*** matsuhashi has joined #openstack-trove02:43
*** matsuhas_ has joined #openstack-trove02:44
*** matsuhashi has quit IRC02:44
*** krow has quit IRC03:17
*** matsuhas_ has quit IRC03:20
*** jcooley_ has joined #openstack-trove03:21
*** matsuhashi has joined #openstack-trove03:21
*** matsuhashi has quit IRC03:26
*** yidclare has joined #openstack-trove03:36
*** haomaiwa_ has joined #openstack-trove03:46
*** haomaiwang has quit IRC03:48
*** krow has joined #openstack-trove04:15
*** matsuhashi has joined #openstack-trove04:28
*** krow has quit IRC04:33
*** rushiagr has joined #openstack-trove04:38
*** shakayumi has joined #openstack-trove05:09
*** yogeshmehra has joined #openstack-trove05:22
*** yogeshmehra has quit IRC05:30
*** yogeshmehra has joined #openstack-trove05:31
*** krow has joined #openstack-trove05:46
*** yogeshmehra has quit IRC06:01
*** yogeshmehra has joined #openstack-trove06:25
*** krow has quit IRC06:26
*** rushiagr has quit IRC06:34
*** krow has joined #openstack-trove07:04
*** krow has quit IRC07:47
*** krow has joined #openstack-trove07:49
*** matsuhashi has quit IRC08:08
*** matsuhashi has joined #openstack-trove08:08
*** matsuhashi has quit IRC08:12
*** matsuhashi has joined #openstack-trove08:16
*** krow has quit IRC08:21
*** matsuhashi has quit IRC08:34
*** krow has joined #openstack-trove08:40
*** yogeshmehra has quit IRC08:43
*** arborism has joined #openstack-trove08:51
*** westmaas_ has joined #openstack-trove08:55
*** westmaas has quit IRC08:58
*** arborism has quit IRC09:00
*** matsuhashi has joined #openstack-trove09:02
*** matsuhashi has quit IRC09:10
*** matsuhashi has joined #openstack-trove09:11
*** matsuhashi has quit IRC09:15
*** haomaiwang has joined #openstack-trove09:16
*** haomaiwa_ has quit IRC09:17
*** matsuhashi has joined #openstack-trove09:20
*** ashestakov has joined #openstack-trove09:22
*** krow has quit IRC09:31
*** krow has joined #openstack-trove09:37
openstackgerritDenis M. proposed a change to openstack/python-troveclient: Update PEP8 rules  https://review.openstack.org/5490010:16
*** ppenjoy has joined #openstack-trove10:21
*** matsuhashi has quit IRC10:25
*** nosnos has quit IRC10:32
*** ppenjoy has left #openstack-trove10:45
openstackgerritDenis M. proposed a change to openstack/trove: Absence of conf template issue  https://review.openstack.org/5387610:52
*** krow has quit IRC11:22
*** mwagner has joined #openstack-trove11:28
*** pdmars has joined #openstack-trove12:03
*** PradeepChandani_ has quit IRC12:06
*** grapex has joined #openstack-trove12:20
*** grapex has quit IRC12:21
*** grapex has joined #openstack-trove12:21
openstackgerritA change was merged to openstack/python-troveclient: Support datastore types  https://review.openstack.org/4793612:43
*** radez_g0n3 is now known as radez12:52
openstackgerritAndrey Shestakov proposed a change to openstack/trove: Add support of datastore types  https://review.openstack.org/4793413:01
openstackgerritAndrey Shestakov proposed a change to openstack/trove: Documentation for datastore types  https://review.openstack.org/5492113:08
*** robertmyers has joined #openstack-trove13:39
*** robertmy_ has joined #openstack-trove13:41
*** robertmyers has quit IRC13:42
*** robertmy_ has quit IRC13:42
*** jmontemayor has joined #openstack-trove13:43
*** ppenjoy has joined #openstack-trove13:45
*** robertmy_ has joined #openstack-trove13:45
*** robertmy_ has quit IRC13:46
*** robertmyers has joined #openstack-trove13:46
*** robertmyers has quit IRC13:47
*** robertmyers has joined #openstack-trove13:47
*** demorris has joined #openstack-trove13:47
*** robertmyers has quit IRC13:48
*** robertmyers has joined #openstack-trove13:48
*** robertmyers has quit IRC13:51
*** robertmyers has joined #openstack-trove13:52
*** robertmyers has quit IRC13:53
*** robertm__ has joined #openstack-trove13:57
*** robertm__ has quit IRC13:58
*** robertmyers has joined #openstack-trove13:58
*** robertmyers has quit IRC13:59
*** robertmyers has joined #openstack-trove13:59
*** robertmy_ has joined #openstack-trove14:00
*** robertmyers has quit IRC14:00
*** robertmy_ has quit IRC14:03
*** robertmyers has joined #openstack-trove14:03
*** robertmyers has quit IRC14:04
*** robertmyers has joined #openstack-trove14:04
*** robertmyers has quit IRC14:05
*** robertmyers has joined #openstack-trove14:05
*** robertmyers has quit IRC14:06
*** robertmyers has joined #openstack-trove14:06
*** jcru has joined #openstack-trove14:11
openstackgerritDenis M. proposed a change to openstack/trove: Externalisation of heat template  https://review.openstack.org/5349914:29
*** ppenjoy has left #openstack-trove14:29
*** Barker has joined #openstack-trove14:36
*** rnirmal has joined #openstack-trove14:38
*** jcru_ has joined #openstack-trove15:05
*** yidclare has quit IRC15:06
*** jcru has quit IRC15:08
*** datsun180b has joined #openstack-trove15:09
*** jasonb365 has joined #openstack-trove15:16
*** mayfield has quit IRC15:16
*** jcooley_ has quit IRC15:17
*** demorris_ has joined #openstack-trove15:34
*** demorris has quit IRC15:36
*** demorris_ is now known as demorris15:36
openstackgerritDmitriy Ukhlov proposed a change to openstack/trove: Trove instance model refactoring  https://review.openstack.org/5334615:36
*** dukhlov has quit IRC15:40
*** jcru_ has quit IRC15:41
*** dukhlov has joined #openstack-trove15:43
*** jcru has joined #openstack-trove15:43
*** jasonb365 has quit IRC15:48
datsun180bman, i'm getting some goofy failures running my tests locally15:50
datsun180band install or kick-start is "conveniently" updating our requirements files15:52
cp16nethub_cap: plz review. https://review.openstack.org/#/c/54565/15:55
*** jcru has quit IRC15:56
*** jcru has joined #openstack-trove15:57
*** ashestakov has quit IRC16:00
cp16netSlickNik: plz review ^^16:01
*** esp has joined #openstack-trove16:01
*** adrian_otto has joined #openstack-trove16:01
cp16netdatsun180b: haha yeah i just noticed that too16:01
*** kfox1111 has joined #openstack-trove16:09
kfox1111Is anyone actively working on adding mongodb support to trove?16:10
datsun180bi can't name names but i think someone is16:13
kevinconwaykfox1111: I'll name names. ikhudoshyn has a commit in at https://review.openstack.org/5059716:24
datsun180bthere you go16:24
datsun180bi said "can't", not "won't"16:24
openstackgerritA change was merged to openstack/trove: Fix checksum verification exception.  https://review.openstack.org/5456516:39
dmakogonkfox1111, yes ikhudoshyn is working on mongodb16:41
*** jcooley_ has joined #openstack-trove17:15
*** yogeshmehra has joined #openstack-trove17:16
*** yidclare has joined #openstack-trove17:29
*** yidclare1 has joined #openstack-trove17:29
*** yidclare has quit IRC17:29
*** coolsvap has joined #openstack-trove17:46
*** shakayumi has quit IRC17:50
*** mayfield has joined #openstack-trove17:53
*** arborism has joined #openstack-trove17:55
*** arborism has quit IRC18:02
*** amcrn has joined #openstack-trove18:03
*** jcooley_ has quit IRC18:07
*** jcooley_ has joined #openstack-trove18:08
*** shakayumi has joined #openstack-trove18:10
*** radez is now known as radez_g0n318:37
*** radez_g0n3 is now known as radez18:40
cp16netdmakogon: ping18:42
*** plodronio has joined #openstack-trove18:42
*** plodronio has left #openstack-trove18:43
*** adrian_otto has quit IRC18:44
openstackgerritDmitriy Ukhlov proposed a change to openstack/trove: Trove instance model refactoring  https://review.openstack.org/5334618:48
*** dukhlov has quit IRC18:49
*** plodronio has joined #openstack-trove18:49
dmakogoncp16net, pong18:50
*** plodronio has quit IRC18:51
dmakogoncp16net, i'd like to start ML for configurations, because it need to be discussed18:51
*** plodronio has joined #openstack-trove18:52
cp16netthere was a thread already startd there18:52
cp16netyou might want to read through it18:52
cp16netdmakogon: but i wanted to ask what the reason is to not fail a create if the default config is not available to pass down18:53
cp16netit seems like there should be a template of the config18:54
dmakogoncp16net, no18:54
cp16netwhy?18:54
dmakogoncp16net, because database already have config out of box18:54
dmakogoncp16net, templating is optional18:54
dmakogoncp16net, what if i don't what any rendering18:55
cp16netput a blank file18:55
cp16netthen it can be used later18:55
cp16netwhat database are you refering to?18:56
dmakogoncp16net, what sense makes empty file ?18:56
dmakogoncp16net, no matter which database i refer18:56
dmakogoncp16net, this should be optional and provisioning should not got failed because missing config18:57
datsun180bempty config != missing config though18:57
datsun180bif configs are missing there's a problem. if config is empty it's deliberate18:58
dmakogonthere is no difference rendered jinja template would be empty18:58
cp16nethmmm18:58
cp16netyeah i think it kinda makes sense18:58
dmakogonso, any way, missing template should not be a reason to fail, empty template should not override out-of-box template18:59
dmakogonthis idea perfectly suits to configurations updates18:59
cp16nettrue19:00
cp16neti think i get19:00
cp16neti think i get it.19:00
cp16netok then just one issue on your review19:00
dmakogonif i have no template at provisioning - fine, i could update default conf later19:00
dmakogoncp16net, which one ?19:00
cp16neton that review19:00
cp16netdmakogon: yeah that makes sense19:01
cp16netmakes it easier to get started with a new db19:01
cp16netdmakogon: https://review.openstack.org/#/c/53876/15/trove/tests/api/databases.py19:02
dmakogoncp16net, your complain - only text formating stuff19:04
dmakogoncp16net, it doesn't change functionality19:04
dmakogoncp16net, until it doesn't cause PEP8 error, i think that this is not the reason for -119:05
datsun180bno that's not very readable19:05
dmakogondatsun180b, ok19:06
*** adrian_otto has joined #openstack-trove19:07
openstackgerritDenis M. proposed a change to openstack/trove: Absence of conf template issue  https://review.openstack.org/5387619:09
dmakogondatsun180b, cp16net https://review.openstack.org/#/c/53876/16/trove/tests/api/databases.py19:09
dmakogonis it ok now ?19:10
datsun180bwould you mind adding a trailing comma to the last item in those dictionaries?19:12
*** demorris has quit IRC19:13
datsun180bsomething python that has not many others have, so that in the future adding an item to those lists is only a -1+1 diff19:13
*** achampion has joined #openstack-trove19:13
*** demorris has joined #openstack-trove19:13
datsun180boh wow this whole review19:15
datsun180boh those -0+0 changes scared me for a moment19:15
kevinconwaydmakogon: can you make those dictionaries fit on one line please?19:16
datsun180bdid you find -name *.py | xargs chmod a+x ?19:16
kevinconwayjust kidding19:16
dmakogonsomething happened while git review ...19:16
datsun180b /kick kevinconway19:17
openstackgerritDenis M. proposed a change to openstack/trove: Absence of conf template issue  https://review.openstack.org/5387619:17
datsun180boh that makes sense19:17
dmakogonplease , datsun180b, cp16net, kevinconway take a look at patch #1719:18
datsun180blooking19:18
datsun180bi see a trailing space on databases.py 9819:18
datsun180b9919:18
datsun180bbut i'm not just here for style19:18
kevinconwaydmakogon: what IDE / editor do you use?19:19
dmakogonkevinconway, last patch i've done with gedit19:20
dmakogondatsun180b, any complain except L94-102 ??19:20
dmakogondatsun180b, are you there ??19:21
datsun180bstill looking, i need to actually understand your whole patchset before i sign off on it19:21
datsun180bcmon man you gave me 60 seconds to answer19:21
openstackgerritDenis M. proposed a change to openstack/trove: Absence of conf template issue  https://review.openstack.org/5387619:22
kevinconwaydmakogon: i ask because sublimetext2 has options to auto strip trailing whitespace, insert newlines at end of files, and plugins for PEP8 / Flake8 validation as you type19:22
dmakogonkevinconway, k19:22
kevinconwaythat's what i use anyway19:23
kevinconwayi really like it19:23
cp16neti <3 sublimetext19:23
datsun180byou're all heathens, vim is truth and love and the only way19:23
datsun180bwhen the sun is dark and the world is ash there will still be vim19:24
datsun180byou'll cry out, reaching at me and begging for salvation19:24
datsun180band i'll look down at you and say :q!19:24
dmakogondatsun180b, 60 secs are out)))19:25
datsun180bi was busy proselytizing19:25
kevinconwaydatsun180b: that seems inefficient. i always type ESC, Q, q, enter19:25
datsun180b /kick kevinconway19:27
dmakogondatsun180b, ok, i'll be available in 1-1.5h19:28
* dmakogon going home19:28
*** adrian_otto has quit IRC19:29
*** mayfield_ has joined #openstack-trove19:33
*** mayfield has quit IRC19:35
*** adrian_otto has joined #openstack-trove19:36
the_real_kp+1 sublimetext219:39
*** radez is now known as radez_g0n319:41
*** tanisdl has joined #openstack-trove19:41
*** coolsvap has quit IRC19:49
*** demorris_ has joined #openstack-trove20:01
*** demorris has quit IRC20:03
*** demorris_ is now known as demorris20:03
cp16netthe_real_kp: knows whats up20:05
*** krow has joined #openstack-trove20:22
*** achampion has quit IRC20:25
*** krow has quit IRC20:29
*** david-lyle has quit IRC20:34
*** rnirmal_ has joined #openstack-trove20:40
*** rnirmal_ has quit IRC20:40
*** rnirmal has quit IRC20:42
*** shakayumi has quit IRC20:43
*** shakayumi has joined #openstack-trove20:45
*** ppenjoy1 has joined #openstack-trove20:47
*** ppenjoy1 has quit IRC20:48
*** ppenjoy2 has joined #openstack-trove20:48
*** rnirmal has joined #openstack-trove20:48
*** adrian_otto_hkg has joined #openstack-trove20:54
*** adrian_otto_hkg has quit IRC20:56
*** plodronio has quit IRC20:57
*** Barker has quit IRC20:59
*** pdmars has quit IRC21:02
*** mayfield_ has quit IRC21:05
*** plodronio has joined #openstack-trove21:05
*** cweid has quit IRC21:09
*** denis_makogon has joined #openstack-trove21:13
*** Barker has joined #openstack-trove21:14
denis_makogondatsun180b, cp16net ping21:16
datsun180bpolo21:19
*** robertmyers has quit IRC21:19
cp16netdenis_makogon: pong21:21
denis_makogoncp16net, have you looked at whole workflow of config swapping ?21:24
denis_makogoncp16net, if you do, that you should know that (in my patch) if outcome content is none, then 1st swapping would be skipped, it means that guestagent would relay on default my.cnf, guestagent would make a line-by-line copy of it and would add admin creds21:26
*** ppenjoy2 has quit IRC21:27
denis_makogonso, in my patch, 1st and 2nd config swapping are independent21:27
denis_makogondatsun180b, take a look at comments on #1721:28
datsun180bi didn't hear a "please" in there21:29
datsun180bbut okay21:29
datsun180bi'm worried that the TMP_MYCNF now has two ways to come into being and one of those ways is a little more nebulous than the other21:30
denis_makogondatsun180b, sorry, i'm a bit busy, was typing quickly =/21:30
denis_makogonbut those ways are independent21:31
denis_makogoneach of methods doesn't relay on existance of TMP_MYCNF21:32
datsun180bif config_contents is false/null, then 695-67 don't run21:32
denis_makogondatsun180b, when i was looking at code, i also was a bit confused21:32
denis_makogondatsun180b, yes21:33
datsun180bi see what's going on21:33
denis_makogondatsun180b, please tell21:34
datsun180bgah this whole tmp-mycnf thing is goofy21:34
datsun180bi think what you've got is right21:34
denis_makogonsure ?21:35
datsun180bwell let me resolve another issue first and i can devote my attention21:35
denis_makogonok, anyway, datsun180b thanks21:35
cp16nethrm21:37
cp16netdenis_makogon: i see what you are saying about reading and writing it again21:39
denis_makogoncp16net, good21:41
denis_makogoncp16net, any suggestions ?21:41
cp16netonly one i see is the gate failed due to instance didnt go active21:42
cp16netand i thinks its because of something in the code you changed...21:43
cp16neton a completely different note reguarding python21:44
cp16nethttps://gist.github.com/cp16net/727241021:44
denis_makogoncp16net, sometime gate failing21:44
cp16neti dont understand why a dictionary hasattr fails21:44
cp16netbut getting the attr is successful21:44
denis_makogoneasy))21:45
cp16netso the attr exists21:45
denis_makogonsingle kee isn't a class attr21:45
denis_makogonas i know even whole set is not class attr21:45
denis_makogon*jey21:45
denis_makogon*key21:45
denis_makogonif you need to perforn checks, it would be better to use dict.values(), dict.keys()21:46
denis_makogonor even haskey()21:46
cp16netoh....21:46
denis_makogoni don't remember about hasvalue()21:47
denis_makogonbut it easy to implement))21:47
cp16netthats for an object21:47
cp16netnot a dict21:47
denis_makogondict is object21:47
denis_makogoncp16net, i suggest you to take a look at dict impl at Py27 and Py33-3521:48
cp16neti think i was just doing things all wrong21:48
denis_makogonand, i personaly love, itertools21:48
denis_makogonthis lib is amazing21:48
*** rnirmal has quit IRC21:48
cp16netok that makes life much better21:49
cp16neti fixed it21:49
cp16netit was related to using Checks21:49
cp16netin my tests21:50
denis_makogongood)21:51
cp16netbtw using the dcit get() is not always a good thing21:54
cp16neti think this espcially in tests21:54
cp16netits better to raise the attr not found exception and see the error than checking for None after you get21:54
cp16netwhen i was using the dict['key'] for the configuration rules is because the data structure is hard coded21:55
cp16netand keys are expected21:56
denis_makogoncp16net, get is faster then ['fgdfgdfg'[21:56
cp16netreally?21:56
*** grapex has quit IRC21:56
denis_makogonyes21:56
cp16netinteresting21:56
cp16netit would take more code to handle the None that comes back tho21:57
denis_makogonas i know Py3x is going to give default dict method higher priority21:57
denis_makogoncp16net, you could use haskey, keys, value, items21:58
denis_makogonthey are preferable21:58
denis_makogonabout handling, process of hanling would be identical to each dict, you could wrap logic into separate method and then just call it21:59
denis_makogontrove already has one such func22:00
denis_makogonit called _log_and_raise22:00
denis_makogoni suppose22:00
datsun180bwhat22:03
datsun180b.get checks the keys first, how can it be faster22:03
denis_makogonyou could perform small test22:04
cp16netyeah that doesnt make sense22:04
datsun180bi'm in a sporting mood, i'll do just that22:04
denis_makogontry to .get and ['  ']1000000 items22:04
denis_makogonand measure time22:04
cp16netthen try the same thing is a missing key22:05
denis_makogoni think difference is in low-level implementation22:05
datsun180bi know how to write profile tests22:05
datsun180bthis is my day job22:05
denis_makogondatsun180b, nice)))22:05
denis_makogondidn't know22:05
denis_makogonthats great22:05
datsun180bouch man22:05
cp16netLOLZ22:05
denis_makogonhave anyone looked at C-ext impl ?22:06
*** yogeshmehra has quit IRC22:08
*** jcru has quit IRC22:08
*** adrian_otto has quit IRC22:12
datsun180bhttps://gist.github.com/ed-/e453833d43724fd0fe9622:16
datsun180blet's see what happens if i write it so that there's never a miss, just for fun22:16
datsun180bactually on second thought even with the try/except in there use_squares is faster by 2x22:18
*** Barker has quit IRC22:19
denis_makogonwhat about py3322:21
datsun180bworth a shot22:22
datsun180baugh i don't have 3.3 on this box22:23
*** krow has joined #openstack-trove22:24
*** demorris has quit IRC22:26
datsun180bon your revew denis_makogon if i'm reading this right you say if config_contents is null/empty in _write_mycnf then what happens is system.MYSQL_CONFIG is used as the base to substitute the admin account details and write to the tmp_mycnf, and then the tmp_mycnf is sudo-copied to the original location?22:27
denis_makogonyes22:28
datsun180bif system.mysql_config was empty or gone or syntactically incorrect whose fault is it when mysql is irrecoverable then?22:28
denis_makogonthat is what i said and this is what guestagent does22:28
denis_makogonyes22:28
datsun180bjust making sure we're swimming in the same river here22:28
denis_makogonyes, datsun180b we are on the same way22:29
denis_makogonthat is why system.mysql_config is not configurable and stores it separate file22:30
denis_makogon*stored22:30
datsun180bi could see this being potentially destructive but you'd have to be able to inject a bogus template file once and then never supply another template22:31
datsun180bbut i bet that's hiding behind server configs and not necessarily user input22:32
denis_makogondatsun180b, here comes configuration management22:34
*** jmontemayor has quit IRC22:34
denis_makogonif for some reasons we used default out-of-box config file, than we should update it22:34
denis_makogoneven to allow connectivity from any IP22:35
denis_makogondatsun180b, cp16net thanks for nice chat for today, i wish you good weekend, sorry, but i'm out for this week, cu monday22:37
* denis_makogon gone until monday22:37
*** krow has quit IRC22:37
*** datsun180b has left #openstack-trove22:39
*** krow has joined #openstack-trove22:50
*** mmcdaris has joined #openstack-trove22:57
*** adrian_otto has joined #openstack-trove23:16
*** plodronio has left #openstack-trove23:25
*** krow has quit IRC23:30
*** krow has joined #openstack-trove23:33
*** yidclare1 has quit IRC23:39
*** krow has quit IRC23:42
*** adrian_otto1 has joined #openstack-trove23:48
*** amcrn has quit IRC23:50
*** adrian_otto1 has quit IRC23:52
*** adrian_otto has quit IRC23:52

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